Class: Google::Apis::SecretmanagerV1::AccessSecretVersionResponse
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::AccessSecretVersionResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/secretmanager_v1/classes.rb,
lib/google/apis/secretmanager_v1/representations.rb,
lib/google/apis/secretmanager_v1/representations.rb
Overview
Response message for SecretManagerService.AccessSecretVersion.
Instance Attribute Summary collapse
-
#name ⇒ String
The resource name of the SecretVersion in the format
projects/*/secrets/*/ versions/*
orprojects/*/locations/*/secrets/*/versions/*
. -
#payload ⇒ Google::Apis::SecretmanagerV1::SecretPayload
A secret payload resource in the Secret Manager API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessSecretVersionResponse
constructor
A new instance of AccessSecretVersionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessSecretVersionResponse
Returns a new instance of AccessSecretVersionResponse.
41 42 43 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 41 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The resource name of the SecretVersion in the format projects/*/secrets/*/
versions/*
or projects/*/locations/*/secrets/*/versions/*
.
Corresponds to the JSON property name
33 34 35 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 33 def name @name end |
#payload ⇒ Google::Apis::SecretmanagerV1::SecretPayload
A secret payload resource in the Secret Manager API. This contains the
sensitive secret payload that is associated with a SecretVersion.
Corresponds to the JSON property payload
39 40 41 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 39 def payload @payload end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
46 47 48 49 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 46 def update!(**args) @name = args[:name] if args.key?(:name) @payload = args[:payload] if args.key?(:payload) end |