Class: Google::Apis::AlloydbV1alpha::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::NetworkConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
Metadata related to network configuration.
Instance Attribute Summary collapse
-
#allocated_ip_range ⇒ String
Optional.
-
#network ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
1727 1728 1729 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allocated_ip_range ⇒ String
Optional. Name of the allocated IP range for the private IP AlloyDB cluster,
for example: "google-managed-services-default". If set, the instance IPs for
this cluster will be created in the allocated range. The range name must
comply with RFC 1035. Specifically, the name must be 1-63 characters long and
match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?
. Field name is
intended to be consistent with Cloud SQL.
Corresponds to the JSON property allocatedIpRange
1716 1717 1718 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1716 def allocated_ip_range @allocated_ip_range end |
#network ⇒ String
Optional. The resource link for the VPC network in which cluster resources are
created and from which they are accessible via Private IP. The network must
belong to the same project as the cluster. It is specified in the form:
projects/
project_number/global/networks/
network_id`. This is required to
create a cluster.
Corresponds to the JSON property
network`
1725 1726 1727 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1725 def network @network end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1732 1733 1734 1735 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1732 def update!(**args) @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range) @network = args[:network] if args.key?(:network) end |