Class: Google::Apis::AndroidenterpriseV1::ServiceAccountKey

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb

Overview

Credentials that can be used to authenticate as a service account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAccountKey

Returns a new instance of ServiceAccountKey.



2542
2543
2544
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2542

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dataString

The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google. Corresponds to the JSON property data

Returns:

  • (String)


2522
2523
2524
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2522

def data
  @data
end

#idString

An opaque, unique identifier for this ServiceAccountKey. Assigned by the server. Corresponds to the JSON property id

Returns:

  • (String)


2528
2529
2530
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2528

def id
  @id
end

#public_dataString

Public key data for the credentials file. This is an X.509 cert. If you are using the googleCredentials key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file. Corresponds to the JSON property publicData

Returns:

  • (String)


2535
2536
2537
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2535

def public_data
  @public_data
end

#typeString

The file format of the generated key data. Corresponds to the JSON property type

Returns:

  • (String)


2540
2541
2542
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2540

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2547
2548
2549
2550
2551
2552
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2547

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @id = args[:id] if args.key?(:id)
  @public_data = args[:public_data] if args.key?(:public_data)
  @type = args[:type] if args.key?(:type)
end