Class: Google::Apis::SecretmanagerV1beta1::AddSecretVersionRequest

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

Request message for SecretManagerService.AddSecretVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddSecretVersionRequest

Returns a new instance of AddSecretVersionRequest.



62
63
64
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 62

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

Instance Attribute Details

#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



60
61
62
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 60

def payload
  @payload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



67
68
69
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 67

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