Class: Google::Apis::IamV1::ServiceAccountKey
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::ServiceAccountKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/iam_v1/classes.rb,
generated/google/apis/iam_v1/representations.rb,
generated/google/apis/iam_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#name ⇒ String
The resource name of the service account key in the format "projects/
project
/ serviceAccounts/email
/keys/key
". -
#private_key_data ⇒ String
The key data.
-
#private_key_type ⇒ String
The type of the private key.
-
#valid_after_time ⇒ String
The key can be used after this timestamp.
-
#valid_before_time ⇒ String
The key can be used before this timestamp.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceAccountKey
constructor
A new instance of ServiceAccountKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceAccountKey
Returns a new instance of ServiceAccountKey.
224 225 226 |
# File 'generated/google/apis/iam_v1/classes.rb', line 224 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The resource name of the service account key in the format "projects/project
/
serviceAccounts/email
/keys/key
".
Corresponds to the JSON property name
202 203 204 |
# File 'generated/google/apis/iam_v1/classes.rb', line 202 def name @name end |
#private_key_data ⇒ String
The key data.
Corresponds to the JSON property privateKeyData
212 213 214 |
# File 'generated/google/apis/iam_v1/classes.rb', line 212 def private_key_data @private_key_data end |
#private_key_type ⇒ String
The type of the private key.
Corresponds to the JSON property privateKeyType
207 208 209 |
# File 'generated/google/apis/iam_v1/classes.rb', line 207 def private_key_type @private_key_type end |
#valid_after_time ⇒ String
The key can be used after this timestamp.
Corresponds to the JSON property validAfterTime
217 218 219 |
# File 'generated/google/apis/iam_v1/classes.rb', line 217 def valid_after_time @valid_after_time end |
#valid_before_time ⇒ String
The key can be used before this timestamp.
Corresponds to the JSON property validBeforeTime
222 223 224 |
# File 'generated/google/apis/iam_v1/classes.rb', line 222 def valid_before_time @valid_before_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
229 230 231 232 233 234 235 |
# 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 |