Class: Google::Apis::SecretmanagerV1::AccessSecretVersionResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/secretmanager_v1/classes.rb,
generated/google/apis/secretmanager_v1/representations.rb,
generated/google/apis/secretmanager_v1/representations.rb

Overview

Response message for SecretManagerService.AccessSecretVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessSecretVersionResponse

Returns a new instance of AccessSecretVersionResponse.



41
42
43
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 41

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The resource name of the SecretVersion in the format projects/*/secrets/*/ versions/*. Corresponds to the JSON property name

Returns:

  • (String)


33
34
35
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 33

def name
  @name
end

#payloadGoogle::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 'generated/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 'generated/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