Class: Google::Apis::SecretmanagerV1beta1::SecretPayload

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SecretPayload

Returns a new instance of SecretPayload.



778
779
780
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 778

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)


776
777
778
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 776

def data
  @data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



783
784
785
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 783

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