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
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]
The key data. Corresponds to the JSON property `privateKeyData` @return [String]
The type of the private key. Corresponds to the JSON property `privateKeyType` @return [String]
The key can be used after this timestamp. Corresponds to the JSON property `validAfterTime` @return [String]
The key can be used before this timestamp. Corresponds to the JSON property `validBeforeTime` @return [String]
Public Class Methods
# File generated/google/apis/iam_v1/classes.rb, line 224 def initialize(**args) update!(**args) end
Public Instance Methods
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