Class: Google::Apis::ApphubV1alpha::WorkloadProperties

Inherits:
Object
  • Object
show all
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

Properties of an underlying compute resource represented by the Workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadProperties

Returns a new instance of WorkloadProperties.



1619
1620
1621
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1619

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

Instance Attribute Details

#gcp_projectString

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non cloud resources. Corresponds to the JSON property gcpProject

Returns:

  • (String)


1605
1606
1607
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1605

def gcp_project
  @gcp_project
end

#locationString

Output only. The location that the underlying compute resource resides in (e.g us-west1). Corresponds to the JSON property location

Returns:

  • (String)


1611
1612
1613
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1611

def location
  @location
end

#zoneString

Output only. The location that the underlying compute resource resides in if it is zonal (e.g us-west1-a). Corresponds to the JSON property zone

Returns:

  • (String)


1617
1618
1619
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1617

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1624
1625
1626
1627
1628
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1624

def update!(**args)
  @gcp_project = args[:gcp_project] if args.key?(:gcp_project)
  @location = args[:location] if args.key?(:location)
  @zone = args[:zone] if args.key?(:zone)
end