# Google Cloud Binary Authorization V1 Client - Class GetSystemPolicyRequest (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.8.7 0.7.0 0.6.1 0.5.13 Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class GetSystemPolicyRequest.

Request to read the current system policy.

Generated from protobuf message `google.cloud.binaryauthorization.v1.GetSystemPolicyRequest`

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Required. The resource name, in the format `locations/*/policy`.

Note that the system policy is not associated with a project.

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

### setName

Required. The resource name, in the format `locations/*/policy`.

Note that the system policy is not associated with a project.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name, in the format `locations/*/policy`. Note that the system policy is not associated with a project. Please see SystemPolicyV1Client::policyName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.GetSystemPolicyRequest` |   |