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.
2103 2104 2105 |
# File 'lib/google/apis/run_v2/classes.rb', line 2103 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
2096 2097 2098 |
# File 'lib/google/apis/run_v2/classes.rb', line 2096 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
2101 2102 2103 |
# File 'lib/google/apis/run_v2/classes.rb', line 2101 def regions @regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2108 2109 2110 2111 |
# File 'lib/google/apis/run_v2/classes.rb', line 2108 def update!(**args) @multi_region_id = args[:multi_region_id] if args.key?(:multi_region_id) @regions = args[:regions] if args.key?(:regions) end |