123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- syntax = "proto3";
- package google.cloud.talent.v4beta1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/talent/v4beta1/common.proto";
- import "google/cloud/talent/v4beta1/tenant.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent";
- option java_multiple_files = true;
- option java_outer_classname = "TenantServiceProto";
- option java_package = "com.google.cloud.talent.v4beta1";
- option objc_class_prefix = "CTS";
- service TenantService {
- option (google.api.default_host) = "jobs.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/jobs";
-
- rpc CreateTenant(CreateTenantRequest) returns (Tenant) {
- option (google.api.http) = {
- post: "/v4beta1/{parent=projects/*}/tenants"
- body: "*"
- };
- option (google.api.method_signature) = "parent,tenant";
- }
-
- rpc GetTenant(GetTenantRequest) returns (Tenant) {
- option (google.api.http) = {
- get: "/v4beta1/{name=projects/*/tenants/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc UpdateTenant(UpdateTenantRequest) returns (Tenant) {
- option (google.api.http) = {
- patch: "/v4beta1/{tenant.name=projects/*/tenants/*}"
- body: "*"
- };
- option (google.api.method_signature) = "tenant";
- }
-
- rpc DeleteTenant(DeleteTenantRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v4beta1/{name=projects/*/tenants/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListTenants(ListTenantsRequest) returns (ListTenantsResponse) {
- option (google.api.http) = {
- get: "/v4beta1/{parent=projects/*}/tenants"
- };
- option (google.api.method_signature) = "parent";
- }
- }
- message CreateTenantRequest {
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
- Tenant tenant = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message GetTenantRequest {
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "jobs.googleapis.com/Tenant"
- }
- ];
- }
- message UpdateTenantRequest {
-
- Tenant tenant = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message DeleteTenantRequest {
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "jobs.googleapis.com/Tenant"
- }
- ];
- }
- message ListTenantsRequest {
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
- string page_token = 2;
-
-
- int32 page_size = 3;
- }
- message ListTenantsResponse {
-
- repeated Tenant tenants = 1;
-
- string next_page_token = 2;
-
-
- ResponseMetadata metadata = 3;
- }
|