Class: Google::Apis::ApphubV1::DiscoveredWorkload

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apphub_v1/classes.rb,
lib/google/apis/apphub_v1/representations.rb,
lib/google/apis/apphub_v1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiscoveredWorkload

Returns a new instance of DiscoveredWorkload.



583
584
585
# File 'lib/google/apis/apphub_v1/classes.rb', line 583

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

Instance Attribute Details

#nameString

Identifier. The resource name of the discovered workload. Format: "projects/ host-project-id/locations/location/discoveredWorkloads/uuid" Corresponds to the JSON property name

Returns:

  • (String)


571
572
573
# File 'lib/google/apis/apphub_v1/classes.rb', line 571

def name
  @name
end

#workload_propertiesGoogle::Apis::ApphubV1::WorkloadProperties

Properties of an underlying compute resource represented by the Workload. Corresponds to the JSON property workloadProperties



576
577
578
# File 'lib/google/apis/apphub_v1/classes.rb', line 576

def workload_properties
  @workload_properties
end

#workload_referenceGoogle::Apis::ApphubV1::WorkloadReference

Reference of an underlying compute resource represented by the Workload. Corresponds to the JSON property workloadReference



581
582
583
# File 'lib/google/apis/apphub_v1/classes.rb', line 581

def workload_reference
  @workload_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



588
589
590
591
592
# File 'lib/google/apis/apphub_v1/classes.rb', line 588

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