Class: Google::Apis::SecretmanagerV1::SecretPayload

Inherits:
Object
  • Object
show all
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

A secret payload resource in the Secret Manager API. This contains the sensitive secret payload that is associated with a SecretVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretPayload

Returns a new instance of SecretPayload.



859
860
861
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 859

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

Instance Attribute Details

#dataString

The secret data. Must be no larger than 64KiB. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


857
858
859
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 857

def data
  @data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



864
865
866
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 864

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