Class: Google::Apis::SecretmanagerV1beta1::AccessSecretVersionResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/secretmanager_v1beta1/classes.rb,
lib/google/apis/secretmanager_v1beta1/representations.rb,
lib/google/apis/secretmanager_v1beta1/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 'lib/google/apis/secretmanager_v1beta1/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 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 33

def name
  @name
end

#payloadGoogle::Apis::SecretmanagerV1beta1::SecretPayload

A secret payload resource in the Secret Manager API. This contains the sensitive secret data that is associated with a SecretVersion. Corresponds to the JSON property payload



39
40
41
# File 'lib/google/apis/secretmanager_v1beta1/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_v1beta1/classes.rb', line 46

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @payload = args[:payload] if args.key?(:payload)
end