Class: Google::Apis::RunV1::Secret

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

Overview

Cloud Run fully managed: not supported Cloud Run on GKE: supported Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.

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) ⇒ Secret

Returns a new instance of Secret.



2782
2783
2784
# File 'generated/google/apis/run_v1/classes.rb', line 2782

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

Instance Attribute Details

#dataHash<String,String>

Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 Corresponds to the JSON property data

Returns:

  • (Hash<String,String>)


2760
2761
2762
# File 'generated/google/apis/run_v1/classes.rb', line 2760

def data
  @data
end

#metadataGoogle::Apis::RunV1::ObjectMeta

k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



2766
2767
2768
# File 'generated/google/apis/run_v1/classes.rb', line 2766

def 
  @metadata
end

#string_dataHash<String,String>

stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false Corresponds to the JSON property stringData

Returns:

  • (Hash<String,String>)


2775
2776
2777
# File 'generated/google/apis/run_v1/classes.rb', line 2775

def string_data
  @string_data
end

#typeString

Used to facilitate programmatic handling of secret data. Corresponds to the JSON property type

Returns:

  • (String)


2780
2781
2782
# File 'generated/google/apis/run_v1/classes.rb', line 2780

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2787
2788
2789
2790
2791
2792
# File 'generated/google/apis/run_v1/classes.rb', line 2787

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