Class: Google::Apis::LoggingV2::AppHubWorkload

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

Overview

Metadata associated with an App Hub workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppHubWorkload

Returns a new instance of AppHubWorkload.



144
145
146
# File 'lib/google/apis/logging_v2/classes.rb', line 144

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

Instance Attribute Details

#criticality_typeString

Workload criticality type Example: "CRITICAL" Corresponds to the JSON property criticalityType

Returns:

  • (String)


132
133
134
# File 'lib/google/apis/logging_v2/classes.rb', line 132

def criticality_type
  @criticality_type
end

#environment_typeString

Workload environment type Example: "DEV" Corresponds to the JSON property environmentType

Returns:

  • (String)


137
138
139
# File 'lib/google/apis/logging_v2/classes.rb', line 137

def environment_type
  @environment_type
end

#idString

Workload Id. Example: "my-workload" Corresponds to the JSON property id

Returns:

  • (String)


142
143
144
# File 'lib/google/apis/logging_v2/classes.rb', line 142

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



149
150
151
152
153
# File 'lib/google/apis/logging_v2/classes.rb', line 149

def update!(**args)
  @criticality_type = args[:criticality_type] if args.key?(:criticality_type)
  @environment_type = args[:environment_type] if args.key?(:environment_type)
  @id = args[:id] if args.key?(:id)
end