# Google Cloud Sql Admin V1 Client - Class IpConfiguration (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.6 1.1.0 1.0.0 0.19.0 0.18.0 0.17.1 0.16.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.12 Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class IpConfiguration.

IP Management configuration.

Generated from protobuf message `google.cloud.sql.v1.IpConfiguration`

## Namespace

Google \\ Cloud \\ Sql \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ipv4_enabled` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Whether the instance is assigned a public IP address or not. |
| `↳ private_network` | `string` The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set. |
| `↳ require_ssl` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag. |
| `↳ authorized_networks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.AclEntry>` The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`). |
| `↳ allocated_ip_range` | `string` The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.` |
| `↳ enable_private_path_for_google_cloud_services` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Controls connectivity to private IP instances from Google services, such as BigQuery. |
| `↳ ssl_mode` | `int` Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: \* \* `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` \* \* `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` \* \* `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: \* \* `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` \* \* `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections. |
| `↳ psc_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.PscConfig` PSC settings for this instance. |
| `↳ server_ca_mode` | `int` Specify what type of CA is used for the server certificate. |
| `↳ custom_subject_alternative_names` | `string[]` Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance. |
| `↳ server_ca_pool` | `string` Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID} |
| `↳ server_certificate_rotation_mode` | `int` Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA. |

### getIpv4Enabled

Whether the instance is assigned a public IP address or not.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue|null` |   |

### hasIpv4Enabled

### clearIpv4Enabled

### getIpv4EnabledUnwrapped

Returns the unboxed value from `getIpv4Enabled()`

Whether the instance is assigned a public IP address or not.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool|null` |   |

### setIpv4Enabled

Whether the instance is assigned a public IP address or not.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### setIpv4EnabledUnwrapped

Sets the field by wrapping a primitive type in a Google\\Protobuf\\BoolValue object.

Whether the instance is assigned a public IP address or not.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool|null` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrivateNetwork

The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example,
`/projects/myProject/global/networks/default`. This setting can
be updated, but it cannot be removed after it is set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPrivateNetwork

The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example,
`/projects/myProject/global/networks/default`. This setting can
be updated, but it cannot be removed after it is set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequireSsl

Use `ssl_mode` instead.

Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the `ssl_mode` flag
instead of the `require_ssl` flag.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue|null` |   |

### hasRequireSsl

### clearRequireSsl

### getRequireSslUnwrapped

Returns the unboxed value from `getRequireSsl()`

Use `ssl_mode` instead.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the `ssl_mode` flag
instead of the `require_ssl` flag.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool|null` |   |

### setRequireSsl

Use `ssl_mode` instead.

Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the `ssl_mode` flag
instead of the `require_ssl` flag.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### setRequireSslUnwrapped

Sets the field by wrapping a primitive type in a Google\\Protobuf\\BoolValue object.

Use `ssl_mode` instead.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the `ssl_mode` flag
instead of the `require_ssl` flag.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool|null` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuthorizedNetworks

The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: `157.197.200.0/24`).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.AclEntry>` |   |

### setAuthorizedNetworks

The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: `157.197.200.0/24`).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.AclEntry>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAllocatedIpRange

The name of the allocated ip range for the private ip Cloud SQL instance.

For example: "google-managed-services-default". If set, the instance ip
will be created in the allocated range. The range name must comply with
[RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name
must be 1-63 characters long and match the regular expression
`[a-z]([-a-z0-9]*[a-z0-9])?.`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAllocatedIpRange

The name of the allocated ip range for the private ip Cloud SQL instance.

For example: "google-managed-services-default". If set, the instance ip
will be created in the allocated range. The range name must comply with
[RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name
must be 1-63 characters long and match the regular expression
`[a-z]([-a-z0-9]*[a-z0-9])?.`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnablePrivatePathForGoogleCloudServices

Controls connectivity to private IP instances from Google services,
such as BigQuery.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue|null` |   |

### hasEnablePrivatePathForGoogleCloudServices

### clearEnablePrivatePathForGoogleCloudServices

### getEnablePrivatePathForGoogleCloudServicesUnwrapped

Returns the unboxed value from `getEnablePrivatePathForGoogleCloudServices()`

Controls connectivity to private IP instances from Google services,
such as BigQuery.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool|null` |   |

### setEnablePrivatePathForGoogleCloudServices

Controls connectivity to private IP instances from Google services,
such as BigQuery.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### setEnablePrivatePathForGoogleCloudServicesUnwrapped

Sets the field by wrapping a primitive type in a Google\\Protobuf\\BoolValue object.

Controls connectivity to private IP instances from Google services,
such as BigQuery.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool|null` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSslMode

Specify how SSL/TLS is enforced in database connections. If you must use
the `require_ssl` flag for backward compatibility, then only the following
value pairs are valid:
For PostgreSQL and MySQL:

- `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false`
- `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`
- `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server:
- `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false`
- `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`.

For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and
`require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL
connections, while `require_ssl=false` means accept both non-SSL
and SSL connections. In this case, MySQL and PostgreSQL databases respect
`ssl_mode` and accepts only SSL connections.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SslMode](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.IpConfiguration.SslMode). |

### setSslMode

Specify how SSL/TLS is enforced in database connections. If you must use
the `require_ssl` flag for backward compatibility, then only the following
value pairs are valid:
For PostgreSQL and MySQL:

- `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false`
- `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`
- `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server:
- `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false`
- `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`.

For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and
`require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL
connections, while `require_ssl=false` means accept both non-SSL
and SSL connections. In this case, MySQL and PostgreSQL databases respect
`ssl_mode` and accepts only SSL connections.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SslMode](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.IpConfiguration.SslMode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscConfig

PSC settings for this instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.PscConfig|null` |   |

### hasPscConfig

### clearPscConfig

### setPscConfig

PSC settings for this instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.PscConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerCaMode

Specify what type of CA is used for the server certificate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasServerCaMode

### clearServerCaMode

### setServerCaMode

Specify what type of CA is used for the server certificate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCustomSubjectAlternativeNames

Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setCustomSubjectAlternativeNames

Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerCaPool

Optional. The resource name of the server CA pool for an instance with
`CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`.

Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasServerCaPool

### clearServerCaPool

### setServerCaPool

Optional. The resource name of the server CA pool for an instance with
`CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`.

Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerCertificateRotationMode

Optional. Controls the automatic server certificate rotation feature. This
feature is disabled by default. When enabled, the server certificate will
be automatically rotated during Cloud SQL scheduled maintenance or
self-service maintenance updates up to six months before it expires. This
setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA
or CUSTOMER_MANAGED_CAS_CA.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasServerCertificateRotationMode

### clearServerCertificateRotationMode

### setServerCertificateRotationMode

Optional. Controls the automatic server certificate rotation feature. This
feature is disabled by default. When enabled, the server certificate will
be automatically rotated during Cloud SQL scheduled maintenance or
self-service maintenance updates up to six months before it expires. This
setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA
or CUSTOMER_MANAGED_CAS_CA.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |