123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- syntax = "proto3";
- package google.cloud.dataplex.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/dataplex/v1/analyze.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 go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex";
- option java_multiple_files = true;
- option java_outer_classname = "ContentProto";
- option java_package = "com.google.cloud.dataplex.v1";
- service ContentService {
- option (google.api.default_host) = "dataplex.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc CreateContent(CreateContentRequest) returns (Content) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*/lakes/*}/contentitems"
- body: "content"
- additional_bindings {
- post: "/v1/{parent=projects/*/locations/*/lakes/*}/content"
- body: "content"
- }
- };
- option (google.api.method_signature) = "parent,content";
- }
-
- rpc UpdateContent(UpdateContentRequest) returns (Content) {
- option (google.api.http) = {
- patch: "/v1/{content.name=projects/*/locations/*/lakes/*/contentitems/**}"
- body: "content"
- additional_bindings {
- patch: "/v1/{content.name=projects/*/locations/*/lakes/*/content/**}"
- body: "content"
- }
- };
- option (google.api.method_signature) = "content,update_mask";
- }
-
- rpc DeleteContent(DeleteContentRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}"
- additional_bindings {
- delete: "/v1/{name=projects/*/locations/*/lakes/*/content/**}"
- }
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc GetContent(GetContentRequest) returns (Content) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}"
- additional_bindings {
- get: "/v1/{name=projects/*/locations/*/lakes/*/content/**}"
- }
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
-
-
- rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- get: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:getIamPolicy"
- additional_bindings {
- get: "/v1/{resource=projects/*/locations/*/lakes/*/content/**}:getIamPolicy"
- }
- };
- option (google.api.method_signature) = "resource";
- }
-
-
-
-
-
- rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- post: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:setIamPolicy"
- body: "*"
- additional_bindings {
- post: "/v1/{resource=projects/*/locations/*/lakes/*/content/**}:setIamPolicy"
- body: "*"
- }
- };
- }
-
-
-
-
-
-
-
-
-
-
- rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
- option (google.api.http) = {
- post: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:testIamPermissions"
- body: "*"
- additional_bindings {
- post: "/v1/{resource=projects/*/locations/*/lakes/*/content/**}:testIamPermissions"
- body: "*"
- }
- };
- }
-
- rpc ListContent(ListContentRequest) returns (ListContentResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*/lakes/*}/contentitems"
- additional_bindings {
- get: "/v1/{parent=projects/*/locations/*/lakes/*}/content"
- }
- };
- option (google.api.method_signature) = "parent";
- }
- }
- message CreateContentRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Lake"
- }
- ];
-
- Content content = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message UpdateContentRequest {
-
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- Content content = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message DeleteContentRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Content"
- }
- ];
- }
- message ListContentRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Lake"
- }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
- string filter = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListContentResponse {
-
- repeated Content content = 1;
-
-
- string next_page_token = 2;
- }
- message GetContentRequest {
-
-
- enum ContentView {
-
-
- CONTENT_VIEW_UNSPECIFIED = 0;
-
- BASIC = 1;
-
- FULL = 2;
- }
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Content"
- }
- ];
-
- ContentView view = 2 [(google.api.field_behavior) = OPTIONAL];
- }
|