Class: Google::Apis::ComposerV1::Environment

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

An environment for running orchestration tasks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Environment

Returns a new instance of Environment.



274
275
276
# File 'lib/google/apis/composer_v1/classes.rb', line 274

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

Instance Attribute Details

#configGoogle::Apis::ComposerV1::EnvironmentConfig

Configuration information for an environment. Corresponds to the JSON property config



234
235
236
# File 'lib/google/apis/composer_v1/classes.rb', line 234

def config
  @config
end

#create_timeString

Output only. The time at which this environment was created. Corresponds to the JSON property createTime

Returns:

  • (String)


239
240
241
# File 'lib/google/apis/composer_v1/classes.rb', line 239

def create_time
  @create_time
end

#labelsHash<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: \pLl\ pLo0,62 * Values must conform to regexp: [\pLl\pLo\pN_-]0,63 * Both keys and values are additionally constrained to be <= 128 bytes in size. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


248
249
250
# File 'lib/google/apis/composer_v1/classes.rb', line 248

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


256
257
258
# File 'lib/google/apis/composer_v1/classes.rb', line 256

def name
  @name
end

#stateString

The current state of the environment. Corresponds to the JSON property state

Returns:

  • (String)


261
262
263
# File 'lib/google/apis/composer_v1/classes.rb', line 261

def state
  @state
end

#update_timeString

Output only. The time at which this environment was last modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/composer_v1/classes.rb', line 266

def update_time
  @update_time
end

#uuidString

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

Returns:

  • (String)


272
273
274
# File 'lib/google/apis/composer_v1/classes.rb', line 272

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



279
280
281
282
283
284
285
286
287
# File 'lib/google/apis/composer_v1/classes.rb', line 279

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