Class: Google::Apis::IamV1::PatchServiceAccountKeyRequest
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::PatchServiceAccountKeyRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iam_v1/classes.rb,
lib/google/apis/iam_v1/representations.rb,
lib/google/apis/iam_v1/representations.rb
Overview
The service account key patch request.
Instance Attribute Summary collapse
-
#service_account_key ⇒ Google::Apis::IamV1::ServiceAccountKey
Represents a service account key.
-
#update_mask ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PatchServiceAccountKeyRequest
constructor
A new instance of PatchServiceAccountKeyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PatchServiceAccountKeyRequest
Returns a new instance of PatchServiceAccountKeyRequest.
1673 1674 1675 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1673 def initialize(**args) update!(**args) end |
Instance Attribute Details
#service_account_key ⇒ Google::Apis::IamV1::ServiceAccountKey
Represents a service account key. A service account has two sets of key-pairs:
user-managed, and system-managed. User-managed key-pairs can be created and
deleted by users. Users are responsible for rotating these keys periodically
to ensure security of their service accounts. Users retain the private key of
these key-pairs, and Google retains ONLY the public key. System-managed keys
are automatically rotated by Google, and are used for signing for a maximum of
two weeks. The rotation process is probabilistic, and usage of the new key
will gradually ramp up and down over the key's lifetime. If you cache the
public key set for a service account, we recommend that you update the cache
every 15 minutes. User-managed keys can be added and removed at any time, so
it is important to update the cache frequently. For Google-managed keys,
Google will publish a key at least 6 hours before it is first used for signing
and will keep publishing it for at least 6 hours after it was last used for
signing. Public keys for all service accounts are also published at the OAuth2
Service Account API.
Corresponds to the JSON property serviceAccountKey
1665 1666 1667 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1665 def service_account_key @service_account_key end |
#update_mask ⇒ String
Required. The update mask to apply to the service account key. Only the
following fields are eligible for patching: - contact - description
Corresponds to the JSON property updateMask
1671 1672 1673 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1671 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1678 1679 1680 1681 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1678 def update!(**args) @service_account_key = args[:service_account_key] if args.key?(:service_account_key) @update_mask = args[:update_mask] if args.key?(:update_mask) end |