# Cloud Controls Partner V1 API - Class Google::Cloud::CloudControlsPartner::V1::AccessReason (v2.3.0)

2.3.0 (latest) 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.1.1 Reference documentation and code samples for the Cloud Controls Partner V1 API class Google::Cloud::CloudControlsPartner::V1::AccessReason.

Reason for the access.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #detail

    def detail() -> ::String

**Returns**

- (::String) --- More detail about certain reason types. See comments for each type above.

### #detail=

    def detail=(value) -> ::String

**Parameter**

- **value** (::String) --- More detail about certain reason types. See comments for each type above.
**Returns**

- (::String) --- More detail about certain reason types. See comments for each type above.

### #type

    def type() -> ::Google::Cloud::CloudControlsPartner::V1::AccessReason::Type

**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1::AccessReason::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1/latest/Google-Cloud-CloudControlsPartner-V1-AccessReason-Type)) --- Type of access justification.

### #type=

    def type=(value) -> ::Google::Cloud::CloudControlsPartner::V1::AccessReason::Type

**Parameter**

- **value** ([::Google::Cloud::CloudControlsPartner::V1::AccessReason::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1/latest/Google-Cloud-CloudControlsPartner-V1-AccessReason-Type)) --- Type of access justification.
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1::AccessReason::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1/latest/Google-Cloud-CloudControlsPartner-V1-AccessReason-Type)) --- Type of access justification.