Class: Google::Apis::ComposerV1beta1::Environment
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1beta1::Environment
- Defined in:
- generated/google/apis/composer_v1beta1/classes.rb,
generated/google/apis/composer_v1beta1/representations.rb,
generated/google/apis/composer_v1beta1/representations.rb
Overview
An environment for running orchestration tasks.
Instance Attribute Summary collapse
-
#config ⇒ Google::Apis::ComposerV1beta1::EnvironmentConfig
Configuration information for an environment.
-
#create_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
The resource name of the environment, in the form: "projects/
projectId
/locations/locationId
/environments/environmentId
" EnvironmentId must start with a lowercase letter followed by up to 63 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. -
#state ⇒ String
The current state of the environment.
-
#update_time ⇒ String
Output only.
-
#uuid ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Environment
constructor
A new instance of Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Environment
Returns a new instance of Environment.
126 127 128 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 126 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::ComposerV1beta1::EnvironmentConfig
Configuration information for an environment.
Corresponds to the JSON property config
83 84 85 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 83 def config @config end |
#create_time ⇒ String
Output only. The time at which this environment was created.
Corresponds to the JSON property createTime
88 89 90 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 88 def create_time @create_time end |
#labels ⇒ Hash<String,String>
Optional. User-defined labels for this environment. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions:
- Keys must conform to regexp: \p
Ll
\pLo
0,62
- Values must conform to regexp: [\p
Ll
\pLo
\pN
_-]0,63
- Both keys and values are additionally constrained to be <= 128 bytes in
size.
Corresponds to the JSON property
labels
99 100 101 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 99 def labels @labels end |
#name ⇒ String
The resource name of the environment, in the form:
"projects/projectId
/locations/locationId
/environments/environmentId
"
EnvironmentId must start with a lowercase letter followed by up to 63
lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Corresponds to the JSON property name
107 108 109 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 107 def name @name end |
#state ⇒ String
The current state of the environment.
Corresponds to the JSON property state
112 113 114 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 112 def state @state end |
#update_time ⇒ String
Output only. The time at which this environment was last modified.
Corresponds to the JSON property updateTime
117 118 119 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 117 def update_time @update_time end |
#uuid ⇒ String
Output only. The UUID (Universally Unique IDentifier) associated with this
environment.
This value is generated when the environment is created.
Corresponds to the JSON property uuid
124 125 126 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 124 def uuid @uuid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
131 132 133 134 135 136 137 138 139 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 131 def update!(**args) @config = args[:config] if args.key?(:config) @create_time = args[:create_time] if args.key?(:create_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) @uuid = args[:uuid] if args.key?(:uuid) end |