Class: Google::Apis::ComposerV1beta1::Environment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Environment

Returns a new instance of Environment



94
95
96
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 94

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

Instance Attribute Details

#configGoogle::Apis::ComposerV1beta1::EnvironmentConfig

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



51
52
53
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 51

def config
  @config
end

#create_timeString

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

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 57

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


68
69
70
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 68

def labels
  @labels
end

#nameString

The resource name of the environment, in the form: "projects/projectId/locations/locationId/environments/environmentId" Corresponds to the JSON property name

Returns:

  • (String)


74
75
76
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 74

def name
  @name
end

#stateString

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

Returns:

  • (String)


79
80
81
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 79

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)


85
86
87
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 85

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)


92
93
94
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 92

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



99
100
101
102
103
104
105
106
107
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 99

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