# Google Cloud Backup Dr V1 Client - Class ManagementServer (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class ManagementServer.

ManagementServer describes a single BackupDR ManagementServer instance.

Generated from protobuf message `google.cloud.backupdr.v1.ManagementServer`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Identifier. The resource name. |
| `↳ description` | `string` Optional. The description of the ManagementServer instance (2048 characters or less). |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Resource labels to represent user provided metadata. Labels currently defined: 1. migrate_from_go=\<false\|true\> If set to true, the MS is created in migration ready mode. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the instance was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the instance was updated. |
| `↳ type` | `int` Optional. The type of the ManagementServer resource. |
| `↳ management_uri` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ManagementURI` Output only. The hostname or ip address of the exposed AGM endpoints, used by clients to connect to AGM/RD graphical user interface and APIs. |
| `↳ workforce_identity_based_management_uri` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.WorkforceIdentityBasedManagementURI` Output only. The hostnames of the exposed AGM endpoints for both types of user i.e. 1p and 3p, used to connect AGM/RM UI. |
| `↳ state` | `int` Output only. The ManagementServer state. |
| `↳ networks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkConfig>` Optional. VPC networks to which the ManagementServer instance is connected. For this version, only a single network is supported. This field is optional if MS is created without PSA |
| `↳ etag` | `string` Optional. Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other. |
| `↳ oauth2_client_id` | `string` Output only. The OAuth 2.0 client id is required to make API calls to the BackupDR instance API of this ManagementServer. This is the value that should be provided in the 'aud' field of the OIDC ID Token (see openid specification <https://openid.net/specs/openid-connect-core-1_0.html#IDToken>). |
| `↳ workforce_identity_based_oauth2_client_id` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.WorkforceIdentityBasedOAuth2ClientID` Output only. The OAuth client IDs for both types of user i.e. 1p and 3p. |
| `↳ ba_proxy_uri` | `string[]` Output only. The hostname or ip address of the exposed AGM endpoints, used by BAs to connect to BA proxy. |
| `↳ satisfies_pzs` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Output only. Reserved for future use. |
| `↳ satisfies_pzi` | `bool` Output only. Reserved for future use. |

### getName

Output only. Identifier. The resource name.

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

### setName

Output only. Identifier. The resource name.

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

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

### getDescription

Optional. The description of the ManagementServer instance (2048 characters
or less).

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

### setDescription

Optional. The description of the ManagementServer instance (2048 characters
or less).

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

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

### getLabels

Optional. Resource labels to represent user provided metadata.

Labels currently defined:

1. migrate_from_go=\<false\|true\> If set to true, the MS is created in migration ready mode.

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

### setLabels

Optional. Resource labels to represent user provided metadata.

Labels currently defined:

1. migrate_from_go=\<false\|true\> If set to true, the MS is created in migration ready mode.

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

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

### getCreateTime

Output only. The time when the instance was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the instance was created.

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

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

### getUpdateTime

Output only. The time when the instance was updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the instance was updated.

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

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

### getType

Optional. The type of the ManagementServer resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [InstanceType](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ManagementServer.InstanceType). |

### setType

Optional. The type of the ManagementServer resource.

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

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

### getManagementUri

Output only. The hostname or ip address of the exposed AGM endpoints, used
by clients to connect to AGM/RD graphical user interface and APIs.

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

### hasManagementUri

### clearManagementUri

### setManagementUri

Output only. The hostname or ip address of the exposed AGM endpoints, used
by clients to connect to AGM/RD graphical user interface and APIs.

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

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

### getWorkforceIdentityBasedManagementUri

Output only. The hostnames of the exposed AGM endpoints for both types of
user i.e. 1p and 3p, used to connect AGM/RM UI.

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

### hasWorkforceIdentityBasedManagementUri

### clearWorkforceIdentityBasedManagementUri

### setWorkforceIdentityBasedManagementUri

Output only. The hostnames of the exposed AGM endpoints for both types of
user i.e. 1p and 3p, used to connect AGM/RM UI.

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

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

### getState

Output only. The ManagementServer state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [InstanceState](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ManagementServer.InstanceState). |

### setState

Output only. The ManagementServer state.

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

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

### getNetworks

Optional. VPC networks to which the ManagementServer instance is connected.

For this version, only a single network is supported. This field is
optional if MS is created without PSA

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

### setNetworks

Optional. VPC networks to which the ManagementServer instance is connected.

For this version, only a single network is supported. This field is
optional if MS is created without PSA

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

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

### getEtag

Optional. Server specified ETag for the ManagementServer resource to
prevent simultaneous updates from overwiting each other.

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

### setEtag

Optional. Server specified ETag for the ManagementServer resource to
prevent simultaneous updates from overwiting each other.

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

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

### getOauth2ClientId

Output only. The OAuth 2.0 client id is required to make API calls to the
BackupDR instance API of this ManagementServer. This is the value that
should be provided in the 'aud' field of the OIDC ID Token (see openid
specification
<https://openid.net/specs/openid-connect-core-1_0.html#IDToken>).

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

### setOauth2ClientId

Output only. The OAuth 2.0 client id is required to make API calls to the
BackupDR instance API of this ManagementServer. This is the value that
should be provided in the 'aud' field of the OIDC ID Token (see openid
specification
<https://openid.net/specs/openid-connect-core-1_0.html#IDToken>).

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

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

### getWorkforceIdentityBasedOauth2ClientId

Output only. The OAuth client IDs for both types of user i.e. 1p and 3p.

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

### hasWorkforceIdentityBasedOauth2ClientId

### clearWorkforceIdentityBasedOauth2ClientId

### setWorkforceIdentityBasedOauth2ClientId

Output only. The OAuth client IDs for both types of user i.e. 1p and 3p.

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

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

### getBaProxyUri

Output only. The hostname or ip address of the exposed AGM endpoints, used
by BAs to connect to BA proxy.

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

### setBaProxyUri

Output only. The hostname or ip address of the exposed AGM endpoints, used
by BAs to connect to BA proxy.

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

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

### getSatisfiesPzs

Output only. Reserved for future use.

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

### hasSatisfiesPzs

### clearSatisfiesPzs

### getSatisfiesPzsUnwrapped

Returns the unboxed value from `getSatisfiesPzs()`

Output only. Reserved for future use.

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

### setSatisfiesPzs

Output only. Reserved for future use.

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

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

### setSatisfiesPzsUnwrapped

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

Output only. Reserved for future use.

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

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

### getSatisfiesPzi

Output only. Reserved for future use.

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

### setSatisfiesPzi

Output only. Reserved for future use.

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

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