# Cloud KMS V1 Client - Class AccessReason (2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.2 2.4.0 2.3.1 2.2.0 2.1.6 2.0.0 1.23.0 1.22.1 1.21.4 1.20.3 1.19.0 1.18.1 1.17.0 1.16.4 1.15.3 Reference documentation and code samples for the Cloud KMS V1 Client class AccessReason.

Describes the reason for a data access. Please refer to
<https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes>
for the detailed semantic meaning of justification reason codes.

Protobuf type `google.cloud.kms.v1.AccessReason`

## Namespace

Google \\ Cloud \\ Kms \\ V1

## Methods

### static::name

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

### static::value

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

## Constants

### REASON_UNSPECIFIED

    Value: 0

Unspecified access reason.

Generated from protobuf enum `REASON_UNSPECIFIED = 0;`

### CUSTOMER_INITIATED_SUPPORT

    Value: 1

Customer-initiated support.

Generated from protobuf enum `CUSTOMER_INITIATED_SUPPORT = 1;`

### GOOGLE_INITIATED_SERVICE

    Value: 2

Google-initiated access for system management and troubleshooting.

Generated from protobuf enum `GOOGLE_INITIATED_SERVICE = 2;`

### THIRD_PARTY_DATA_REQUEST

    Value: 3

Google-initiated access in response to a legal request or legal process.

Generated from protobuf enum `THIRD_PARTY_DATA_REQUEST = 3;`

### GOOGLE_INITIATED_REVIEW

    Value: 4

Google-initiated access for security, fraud, abuse, or compliance purposes.

Generated from protobuf enum `GOOGLE_INITIATED_REVIEW = 4;`

### CUSTOMER_INITIATED_ACCESS

    Value: 5

Customer uses their account to perform any access to their own data which
their IAM policy authorizes.

Generated from protobuf enum `CUSTOMER_INITIATED_ACCESS = 5;`

### GOOGLE_INITIATED_SYSTEM_OPERATION

    Value: 6

Google systems access customer data to help optimize the structure of the
data or quality for future uses by the customer.

Generated from protobuf enum `GOOGLE_INITIATED_SYSTEM_OPERATION = 6;`

### REASON_NOT_EXPECTED

    Value: 7

No reason is expected for this key request.

Generated from protobuf enum `REASON_NOT_EXPECTED = 7;`

### MODIFIED_CUSTOMER_INITIATED_ACCESS

    Value: 8

Deprecated: This code is no longer generated by
Google Cloud. The GOOGLE_RESPONSE_TO_PRODUCTION_ALERT justification codes
available in both Key Access Justifications and Access Transparency logs
provide customer-visible signals of emergency access in more precise
contexts.

Customer uses their account to perform any access to their own data which
their IAM policy authorizes, and one of the following is true:

- A Google administrator has reset the root-access account associated with the user's organization within the past 7 days.
- A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days.

Generated from protobuf enum `MODIFIED_CUSTOMER_INITIATED_ACCESS = 8 [deprecated = true];`

### MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION

    Value: 9

Deprecated: This code is no longer generated by
Google Cloud. The GOOGLE_RESPONSE_TO_PRODUCTION_ALERT justification codes
available in both Key Access Justifications and Access Transparency logs
provide customer-visible signals of emergency access in more precise
contexts.

Google systems access customer data to help optimize the structure of the
data or quality for future uses by the customer, and one of the following
is true:

- A Google administrator has reset the root-access account associated with the user's organization within the past 7 days.
- A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days.

Generated from protobuf enum `MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION = 9 [deprecated = true];`

### GOOGLE_RESPONSE_TO_PRODUCTION_ALERT

    Value: 10

Google-initiated access to maintain system reliability.

Generated from protobuf enum `GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 10;`

### CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING

    Value: 11

One of the following operations is being executed while simultaneously
encountering an internal technical issue which prevented a more precise
justification code from being generated:

- Your account has been used to perform any access to your own data which
  your IAM policy authorizes.

- An automated Google system operates on encrypted customer data which your
  IAM policy authorizes.

- Customer-initiated Google support access.
- Google-initiated support access to protect system reliability.

Generated from protobuf enum `CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING = 11;`