## constraints.gatekeeper.sh/v1beta1

### GDCHRestrictedService

GDCHRestrictedService lets you restrict which service can be used on
Distributed Cloud. When applied, the policy prevents the use of the APIs
that it references.

| Field | Description |
|---|---|
| `apiVersion` *string* | `constraints.gatekeeper.sh/v1beta1` |
| `kind` *string* | `GDCHRestrictedService` |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `spec` *[GDCHRestrictedServiceSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#gdchrestrictedservicespec)* |   |
| `status` *[GDCHRestrictedServiceStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#gdchrestrictedservicestatus)* |   |

### GDCHRestrictedServiceSpec

GDCHRestrictedServiceSpec defines the desired state for a GDCHRestrictedService.

*Appears in:*
- [GDCHRestrictedService](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#gdchrestrictedservice)

| Field | Description |
|---|---|
| `match` *[Match](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/policy-match-section)* | Refer to the dedicated page for fields of `match`. |
| `parameters` *[Parameters](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#parameters)* | The parameters of the policy. |

### Parameters

Parameters define the parameters of a GDCHRestrictedService.

*Appears in:*
- [GDCHRestrictedServiceSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#gdchrestrictedservicespec)

| Field | Description |
|---|---|
| `disabledOperations` *string array* | The API operations that are disabled by the GDCHRestrictedService policy. Supported values: `CREATE` and `UPDATE`. |

### GDCHRestrictedServiceStatus

GDCHRestrictedServiceStatus defines the observed state of the
GDCHRestrictedService policy.

*Appears in:*
- [GDCHRestrictedService](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#gdchrestrictedservice)

| Field | Description |
|---|---|
| `auditTimestamp` *Timestamp* | The last time an audit item was generated. |
| `enforced` *boolean* | Whether the policy is currently enforced or not. |
| `violations` *[Violation](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#violation) array* | List of recent observed policy violations. |

### Violation

Violation represents an event where an attempted violation of the policy happened.

*Appears in:*
- [GDCHRestrictedServiceStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/org-policy/org-policy-krm-api#gdchrestrictedservicestatus)

| Field | Description |
|---|---|
| `enforcementAction` *string* | The enforcement action that was taken against this violation. This is often `deny`. |
| `message` *string* | The message that was given to the client who performed the action that triggered the violation. |
| `group` *string* | The API group to which the resource that triggered the violation belongs. |
| `version` *string* | The API version to which the resource that triggered the violation belongs. |
| `kind` *string* | The API kind of the resource that triggered the violation. |
| `name` *string* | The name of the resource that triggered the violation. |