Class: Google::Apis::ApphubV1alpha::DiscoveredWorkload
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::DiscoveredWorkload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1alpha/classes.rb,
lib/google/apis/apphub_v1alpha/representations.rb,
lib/google/apis/apphub_v1alpha/representations.rb
Overview
DiscoveredWorkload is a binary deployment (such as managed instance groups ( MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload.
Instance Attribute Summary collapse
-
#name ⇒ String
Identifier.
-
#workload_properties ⇒ Google::Apis::ApphubV1alpha::WorkloadProperties
Properties of an underlying compute resource represented by the Workload.
-
#workload_reference ⇒ Google::Apis::ApphubV1alpha::WorkloadReference
Reference of an underlying compute resource represented by the Workload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiscoveredWorkload
constructor
A new instance of DiscoveredWorkload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiscoveredWorkload
Returns a new instance of DiscoveredWorkload.
483 484 485 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 483 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. The resource name of the discovered workload. Format: "projects/
host-project-id/locations/location/discoveredWorkloads/uuid"
Corresponds to the JSON property name
471 472 473 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 471 def name @name end |
#workload_properties ⇒ Google::Apis::ApphubV1alpha::WorkloadProperties
Properties of an underlying compute resource represented by the Workload.
Corresponds to the JSON property workloadProperties
476 477 478 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 476 def workload_properties @workload_properties end |
#workload_reference ⇒ Google::Apis::ApphubV1alpha::WorkloadReference
Reference of an underlying compute resource represented by the Workload.
Corresponds to the JSON property workloadReference
481 482 483 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 481 def workload_reference @workload_reference end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
488 489 490 491 492 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 488 def update!(**args) @name = args[:name] if args.key?(:name) @workload_properties = args[:workload_properties] if args.key?(:workload_properties) @workload_reference = args[:workload_reference] if args.key?(:workload_reference) end |