Class: Google::Apis::DeveloperconnectV1::AppHubWorkload

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

Overview

AppHubWorkload represents the App Hub Workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppHubWorkload

Returns a new instance of AppHubWorkload.



164
165
166
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 164

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

Instance Attribute Details

#criticalityString

Output only. The criticality of the App Hub Workload. Corresponds to the JSON property criticality

Returns:

  • (String)


150
151
152
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 150

def criticality
  @criticality
end

#environmentString

Output only. The environment of the App Hub Workload. Corresponds to the JSON property environment

Returns:

  • (String)


155
156
157
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 155

def environment
  @environment
end

#workloadString

Required. Output only. Immutable. The name of the App Hub Workload. Format: projects/project/locations/location/applications/application/workloads/ workload`. Corresponds to the JSON propertyworkload`

Returns:

  • (String)


162
163
164
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 162

def workload
  @workload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



169
170
171
172
173
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 169

def update!(**args)
  @criticality = args[:criticality] if args.key?(:criticality)
  @environment = args[:environment] if args.key?(:environment)
  @workload = args[:workload] if args.key?(:workload)
end