Class: Google::Apis::ComposerV1::UserWorkloadsSecret
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1::UserWorkloadsSecret
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/composer_v1/classes.rb,
lib/google/apis/composer_v1/representations.rb,
lib/google/apis/composer_v1/representations.rb
Overview
User workloads Secret used by Airflow tasks that run with Kubernetes executor or KubernetesPodOperator.
Instance Attribute Summary collapse
-
#data ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserWorkloadsSecret
constructor
A new instance of UserWorkloadsSecret.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserWorkloadsSecret
Returns a new instance of UserWorkloadsSecret.
2259 2260 2261 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2259 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ Hash<String,String>
Optional. The "data" field of Kubernetes Secret, organized in key-value pairs,
which can contain sensitive values such as a password, a token, or a key. The
values for all keys have to be base64-encoded strings. For details see: https:/
/kubernetes.io/docs/concepts/configuration/secret/ Example: "example": "
ZXhhbXBsZV92YWx1ZQ==", "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
Corresponds to the JSON property data
2250 2251 2252 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2250 def data @data end |
#name ⇒ String
Identifier. The resource name of the Secret, in the form: "projects/projectId
/locations/locationId
/environments/environmentId
/userWorkloadsSecrets/
userWorkloadsSecretId
"
Corresponds to the JSON property name
2257 2258 2259 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2257 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2264 2265 2266 2267 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2264 def update!(**args) @data = args[:data] if args.key?(:data) @name = args[:name] if args.key?(:name) end |