# Google Cloud Dataplex V1 Client - Class DataProductAccessRequest (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class DataProductAccessRequest.

Message for requesting access to a Data Product. This will be used to
create a ChangeRequest of type REQUEST_DATA_PRODUCT_ACCESS.

Generated from protobuf message `google.cloud.dataplex.v1.DataProductAccessRequest`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the data product. Format: projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} |
| `↳ access_group_id` | `string` Required. The ID of the access group for which access is being requested. This corresponds to the unique identifier of the AccessGroup defined in the Data Product. |
| `↳ access_group_display_name` | `string` Output only. The display name of the access group defined in the Data Product for which access is being requested. |
| `↳ requested_principal` | `string` Optional. The principal for which access is being requested in IAM format. If not specified, the requestor's principal will be used. Example: `serviceAccount:my-sa\@my-project.iam.gserviceaccount.com`. Only service account principals are currently supported. <https://cloud.google.com/iam/docs/principal-identifiers> |

### getParent

Required. The resource name of the data product.

Format:
projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id}

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

### setParent

Required. The resource name of the data product.

Format:
projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id}

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

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

### getAccessGroupId

Required. The ID of the access group for which access is being requested.

This corresponds to the unique identifier of the AccessGroup defined in the
Data Product.

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

### setAccessGroupId

Required. The ID of the access group for which access is being requested.

This corresponds to the unique identifier of the AccessGroup defined in the
Data Product.

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

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

### getAccessGroupDisplayName

Output only. The display name of the access group defined in the Data
Product for which access is being requested.

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

### setAccessGroupDisplayName

Output only. The display name of the access group defined in the Data
Product for which access is being requested.

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

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

### getRequestedPrincipal

Optional. The principal for which access is being requested in IAM format.

If not specified, the requestor's principal will be used.
Example: `serviceAccount:my-sa\@my-project.iam.gserviceaccount.com`.
Only service account principals are currently supported.
<https://cloud.google.com/iam/docs/principal-identifiers>

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

### hasRequestedPrincipal

### clearRequestedPrincipal

### setRequestedPrincipal

Optional. The principal for which access is being requested in IAM format.

If not specified, the requestor's principal will be used.
Example: `serviceAccount:my-sa\@my-project.iam.gserviceaccount.com`.
Only service account principals are currently supported.
<https://cloud.google.com/iam/docs/principal-identifiers>

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

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