Class: Google::Apis::ApphubV1alpha::ServiceProperties
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::ServiceProperties
- 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 cloud resource that can comprise a Service.
Instance Attribute Summary collapse
-
#gcp_project ⇒ String
Output only.
-
#location ⇒ String
Output only.
-
#zone ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceProperties
constructor
A new instance of ServiceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceProperties
Returns a new instance of ServiceProperties.
1771 1772 1773 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1771 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcp_project ⇒ String
Output only. The service project identifier that the underlying cloud resource
resides in.
Corresponds to the JSON property gcpProject
1757 1758 1759 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1757 def gcp_project @gcp_project end |
#location ⇒ String
Output only. The location that the underlying resource resides in, for example,
us-west1.
Corresponds to the JSON property location
1763 1764 1765 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1763 def location @location end |
#zone ⇒ String
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
1769 1770 1771 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1769 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1776 1777 1778 1779 1780 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1776 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 |