123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- syntax = "proto3";
- package google.cloud.bigquery.datapolicies.v1beta1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/iam/v1/iam_policy.proto";
- import "google/iam/v1/policy.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option csharp_namespace = "Google.Cloud.BigQuery.DataPolicies.V1Beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/datapolicies/v1beta1;datapolicies";
- option java_multiple_files = true;
- option java_outer_classname = "DataPolicyProto";
- option java_package = "com.google.cloud.bigquery.datapolicies.v1beta1";
- option php_namespace = "Google\\Cloud\\BigQuery\\DataPolicies\\V1beta1";
- option ruby_package = "Google::Cloud::Bigquery::DataPolicies::V1beta1";
- service DataPolicyService {
- option (google.api.default_host) = "bigquerydatapolicy.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/bigquery,"
- "https://www.googleapis.com/auth/cloud-platform";
-
-
- rpc CreateDataPolicy(CreateDataPolicyRequest) returns (DataPolicy) {
- option (google.api.http) = {
- post: "/v1beta1/{parent=projects/*/locations/*}/dataPolicies"
- body: "data_policy"
- };
- option (google.api.method_signature) = "parent,data_policy";
- }
-
-
- rpc UpdateDataPolicy(UpdateDataPolicyRequest) returns (DataPolicy) {
- option (google.api.http) = {
- patch: "/v1beta1/{data_policy.name=projects/*/locations/*/dataPolicies/*}"
- body: "data_policy"
- };
- option (google.api.method_signature) = "data_policy,update_mask";
- }
-
- rpc DeleteDataPolicy(DeleteDataPolicyRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1beta1/{name=projects/*/locations/*/dataPolicies/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc GetDataPolicy(GetDataPolicyRequest) returns (DataPolicy) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/dataPolicies/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListDataPolicies(ListDataPoliciesRequest) returns (ListDataPoliciesResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{parent=projects/*/locations/*}/dataPolicies"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- post: "/v1beta1/{resource=projects/*/locations/*/dataPolicies/*}:getIamPolicy"
- body: "*"
- };
- }
-
- rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- post: "/v1beta1/{resource=projects/*/locations/*/dataPolicies/*}:setIamPolicy"
- body: "*"
- };
- }
-
- rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
- option (google.api.http) = {
- post: "/v1beta1/{resource=projects/*/locations/*/dataPolicies/*}:testIamPermissions"
- body: "*"
- };
- }
- }
- message CreateDataPolicyRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "bigquerydatapolicy.googleapis.com/DataPolicy"
- }
- ];
-
-
- DataPolicy data_policy = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateDataPolicyRequest {
-
-
-
-
- DataPolicy data_policy = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message DeleteDataPolicyRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigquerydatapolicy.googleapis.com/DataPolicy"
- }
- ];
- }
- message GetDataPolicyRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigquerydatapolicy.googleapis.com/DataPolicy"
- }
- ];
- }
- message ListDataPoliciesRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "bigquerydatapolicy.googleapis.com/DataPolicy"
- }
- ];
-
-
-
- int32 page_size = 2;
-
-
- string page_token = 3;
- }
- message ListDataPoliciesResponse {
-
- repeated DataPolicy data_policies = 1;
-
-
- string next_page_token = 2;
- }
- message DataPolicy {
- option (google.api.resource) = {
- type: "bigquerydatapolicy.googleapis.com/DataPolicy"
- pattern: "projects/{project}/locations/{location}/dataPolicies/{data_policy}"
- };
-
- enum DataPolicyType {
-
- DATA_POLICY_TYPE_UNSPECIFIED = 0;
-
-
- COLUMN_LEVEL_SECURITY_POLICY = 3;
-
- DATA_MASKING_POLICY = 2;
- }
-
- oneof matching_label {
-
-
- string policy_tag = 4;
- }
-
- oneof policy {
-
- DataMaskingPolicy data_masking_policy = 5;
- }
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- DataPolicyType data_policy_type = 2;
-
-
-
- string data_policy_id = 3;
- }
- message DataMaskingPolicy {
-
-
- enum PredefinedExpression {
-
-
- PREDEFINED_EXPRESSION_UNSPECIFIED = 0;
-
- SHA256 = 3;
-
- ALWAYS_NULL = 5;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DEFAULT_MASKING_VALUE = 7;
- }
-
- oneof masking_expression {
-
- PredefinedExpression predefined_expression = 1;
- }
- }
|