Class: Google::Apis::ApphubV1::ServiceProperties

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 cloud resource that can comprise a Service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceProperties

Returns a new instance of ServiceProperties.



1280
1281
1282
# File 'lib/google/apis/apphub_v1/classes.rb', line 1280

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

Instance Attribute Details

#gcp_projectString

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

Returns:

  • (String)


1266
1267
1268
# File 'lib/google/apis/apphub_v1/classes.rb', line 1266

def gcp_project
  @gcp_project
end

#locationString

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

Returns:

  • (String)


1272
1273
1274
# File 'lib/google/apis/apphub_v1/classes.rb', line 1272

def location
  @location
end

#zoneString

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

Returns:

  • (String)


1278
1279
1280
# File 'lib/google/apis/apphub_v1/classes.rb', line 1278

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1285
1286
1287
1288
1289
# File 'lib/google/apis/apphub_v1/classes.rb', line 1285

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