Class: Google::Apis::RunV2::GoogleCloudRunV2MultiRegionSettings
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2MultiRegionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
Settings for multi-region deployment.
Instance Attribute Summary collapse
-
#multi_region_id ⇒ String
Optional.
-
#regions ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2MultiRegionSettings
constructor
A new instance of GoogleCloudRunV2MultiRegionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2MultiRegionSettings
Returns a new instance of GoogleCloudRunV2MultiRegionSettings.
1704 1705 1706 |
# File 'lib/google/apis/run_v2/classes.rb', line 1704 def initialize(**args) update!(**args) end |
Instance Attribute Details
#multi_region_id ⇒ String
Optional. System-generated unique id for the multi-region Service.
Corresponds to the JSON property multiRegionId
1697 1698 1699 |
# File 'lib/google/apis/run_v2/classes.rb', line 1697 def multi_region_id @multi_region_id end |
#regions ⇒ Array<String>
Required. List of regions to deploy to, including primary region.
Corresponds to the JSON property regions
1702 1703 1704 |
# File 'lib/google/apis/run_v2/classes.rb', line 1702 def regions @regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1709 1710 1711 1712 |
# File 'lib/google/apis/run_v2/classes.rb', line 1709 def update!(**args) @multi_region_id = args[:multi_region_id] if args.key?(:multi_region_id) @regions = args[:regions] if args.key?(:regions) end |