Class: Google::Apis::WorkloadmanagerV1::SqlLocationDetails
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::SqlLocationDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Location and networking details for configuring SQL server workload
Instance Attribute Summary collapse
-
#dns_zone ⇒ String
Optional.
-
#gcp_project_id ⇒ String
Required.
-
#internet_access ⇒ String
Required.
-
#network ⇒ String
Required.
-
#primary_zone ⇒ String
Required.
-
#region ⇒ String
Required.
-
#secondary_zone ⇒ String
Optional.
-
#subnetwork ⇒ String
Required.
-
#tertiary_zone ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SqlLocationDetails
constructor
A new instance of SqlLocationDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SqlLocationDetails
Returns a new instance of SqlLocationDetails.
3589 3590 3591 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3589 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dns_zone ⇒ String
Optional. create a new DNS Zone when the field is empty, Only show for Using
an existing DNS List of existing DNS Zones tf variable name:
existing_dns_zone_name
Corresponds to the JSON property dnsZone
3544 3545 3546 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3544 def dns_zone @dns_zone end |
#gcp_project_id ⇒ String
Required. the project that infrastructure deployed, currently only supports
the same project where the deployment resource exists.
Corresponds to the JSON property gcpProjectId
3550 3551 3552 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3550 def gcp_project_id @gcp_project_id end |
#internet_access ⇒ String
Required. Internet Access
Corresponds to the JSON property internetAccess
3555 3556 3557 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3555 def internet_access @internet_access end |
#network ⇒ String
Required. network name
Corresponds to the JSON property network
3560 3561 3562 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3560 def network @network end |
#primary_zone ⇒ String
Required. primary zone
Corresponds to the JSON property primaryZone
3565 3566 3567 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3565 def primary_zone @primary_zone end |
#region ⇒ String
Required. region name
Corresponds to the JSON property region
3570 3571 3572 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3570 def region @region end |
#secondary_zone ⇒ String
Optional. secondary zone can't be same as primary_zone and is only for High
Availability deployment mode
Corresponds to the JSON property secondaryZone
3576 3577 3578 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3576 def secondary_zone @secondary_zone end |
#subnetwork ⇒ String
Required. subnetwork name
Corresponds to the JSON property subnetwork
3581 3582 3583 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3581 def subnetwork @subnetwork end |
#tertiary_zone ⇒ String
Optional. teriary zone can't be same as primary_zone and secondary zone, and
it is only for High Availability deployment mode
Corresponds to the JSON property tertiaryZone
3587 3588 3589 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3587 def tertiary_zone @tertiary_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3594 def update!(**args) @dns_zone = args[:dns_zone] if args.key?(:dns_zone) @gcp_project_id = args[:gcp_project_id] if args.key?(:gcp_project_id) @internet_access = args[:internet_access] if args.key?(:internet_access) @network = args[:network] if args.key?(:network) @primary_zone = args[:primary_zone] if args.key?(:primary_zone) @region = args[:region] if args.key?(:region) @secondary_zone = args[:secondary_zone] if args.key?(:secondary_zone) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @tertiary_zone = args[:tertiary_zone] if args.key?(:tertiary_zone) end |