# Google Cloud Chronicle V1 Client - Class CreateDataAccessScopeRequest (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class CreateDataAccessScopeRequest.

Request message for CreateDataAccessScope.

Generated from protobuf message `google.cloud.chronicle.v1.CreateDataAccessScopeRequest`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this Data Access Scope will be created. Format: `projects/{project}/locations/{location}/instances/{instance}` |
| `↳ data_access_scope` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DataAccessScope` Required. Data access scope to create. |
| `↳ data_access_scope_id` | `string` Required. The user provided scope id which will become the last part of the name of the scope resource. Needs to be compliant with <https://google.aip.dev/122> |

### getParent

Required. The parent resource where this Data Access Scope will be created.

Format: `projects/{project}/locations/{location}/instances/{instance}`

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

### setParent

Required. The parent resource where this Data Access Scope will be created.

Format: `projects/{project}/locations/{location}/instances/{instance}`

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

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

### getDataAccessScope

Required. Data access scope to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DataAccessScope|null` |   |

### hasDataAccessScope

### clearDataAccessScope

### setDataAccessScope

Required. Data access scope to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DataAccessScope` |

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

### getDataAccessScopeId

Required. The user provided scope id which will become the last part of the
name of the scope resource. Needs to be compliant with
<https://google.aip.dev/122>

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

### setDataAccessScopeId

Required. The user provided scope id which will become the last part of the
name of the scope resource. Needs to be compliant with
<https://google.aip.dev/122>

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this Data Access Scope will be created. Format: `projects/{project}/locations/{location}/instances/{instance}` Please see DataAccessControlServiceClient::instanceName() for help formatting this field. |
| `dataAccessScope` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DataAccessScope` Required. Data access scope to create. |
| `dataAccessScopeId` | `string` Required. The user provided scope id which will become the last part of the name of the scope resource. Needs to be compliant with <https://google.aip.dev/122> |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.CreateDataAccessScopeRequest` |   |