Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1beta1 Client class CreateDataPolicyRequest.
Request message for the CreateDataPolicy method.
Generated from protobuf message google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. Resource name of the project that the data policy will belong to. The format is |
↳ data_policy |
Google\Cloud\BigQuery\DataPolicies\V1beta1\DataPolicy
Required. The data policy to create. The |
getParent
Required. Resource name of the project that the data policy will belong to. The
format is projects/{project_number}/locations/{location_id}
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setParent
Required. Resource name of the project that the data policy will belong to. The
format is projects/{project_number}/locations/{location_id}
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDataPolicy
Required. The data policy to create. The name
field does not need to be
provided for the data policy creation.
Generated from protobuf field .google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Google\Cloud\BigQuery\DataPolicies\V1beta1\DataPolicy|null |
hasDataPolicy
clearDataPolicy
setDataPolicy
Required. The data policy to create. The name
field does not need to be
provided for the data policy creation.
Generated from protobuf field .google.cloud.bigquery.datapolicies.v1beta1.DataPolicy data_policy = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\BigQuery\DataPolicies\V1beta1\DataPolicy
|
Returns | |
---|---|
Type | Description |
$this |