Class: Google::Apis::ApphubV1::WorkloadProperties

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

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.



2004
2005
2006
# File 'lib/google/apis/apphub_v1/classes.rb', line 2004

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)


1990
1991
1992
# File 'lib/google/apis/apphub_v1/classes.rb', line 1990

def gcp_project
  @gcp_project
end

#locationString

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

Returns:

  • (String)


1996
1997
1998
# File 'lib/google/apis/apphub_v1/classes.rb', line 1996

def location
  @location
end

#zoneString

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

Returns:

  • (String)


2002
2003
2004
# File 'lib/google/apis/apphub_v1/classes.rb', line 2002

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2009
2010
2011
2012
2013
# File 'lib/google/apis/apphub_v1/classes.rb', line 2009

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