Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1beta Client class NetworkConfig.
Metadata related to network configuration.
Generated from protobuf message google.cloud.alloydb.v1beta.Cluster.NetworkConfig
Namespace
Google \ Cloud \ AlloyDb \ V1beta \ ClusterMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ network |
string
Required. 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. It can be updated, but it cannot be removed. |
↳ allocated_ip_range |
string
Optional. The 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?. Field name is intended to be consistent with CloudSQL. |
getNetwork
Required. 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. It can be updated, but it cannot be removed.
Returns | |
---|---|
Type | Description |
string |
setNetwork
Required. 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. It can be updated, but it cannot be removed.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAllocatedIpRange
Optional. The 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?.
Field name is intended to be consistent with CloudSQL.
Returns | |
---|---|
Type | Description |
string |
setAllocatedIpRange
Optional. The 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?.
Field name is intended to be consistent with CloudSQL.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |