class Google::Apis::IamV1::ServiceAccountKey

Represents a service account key. A service account can have 0 or more key pairs. The private keys for these are not stored by Google. ServiceAccountKeys are immutable.

Attributes

name[RW]

The resource name of the service account key in the format “projects/`project`/ serviceAccounts/`email`/keys/`key`”. Corresponds to the JSON property `name` @return [String]

private_key_data[RW]

The key data. Corresponds to the JSON property `privateKeyData` @return [String]

private_key_type[RW]

The type of the private key. Corresponds to the JSON property `privateKeyType` @return [String]

valid_after_time[RW]

The key can be used after this timestamp. Corresponds to the JSON property `validAfterTime` @return [String]

valid_before_time[RW]

The key can be used before this timestamp. Corresponds to the JSON property `validBeforeTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/iam_v1/classes.rb, line 224
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/iam_v1/classes.rb, line 229
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @private_key_type = args[:private_key_type] if args.key?(:private_key_type)
  @private_key_data = args[:private_key_data] if args.key?(:private_key_data)
  @valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
  @valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time)
end