tenant.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.talent.v4;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/api/annotations.proto";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "TenantProto";
  22. option java_package = "com.google.cloud.talent.v4";
  23. option objc_class_prefix = "CTS";
  24. // A Tenant resource represents a tenant in the service. A tenant is a group or
  25. // entity that shares common access with specific privileges for resources like
  26. // jobs. Customer may create multiple tenants to provide data isolation for
  27. // different groups.
  28. message Tenant {
  29. option (google.api.resource) = {
  30. type: "jobs.googleapis.com/Tenant"
  31. pattern: "projects/{project}/tenants/{tenant}"
  32. };
  33. // Required during tenant update.
  34. //
  35. // The resource name for a tenant. This is generated by the service when a
  36. // tenant is created.
  37. //
  38. // The format is "projects/{project_id}/tenants/{tenant_id}", for example,
  39. // "projects/foo/tenants/bar".
  40. string name = 1;
  41. // Required. Client side tenant identifier, used to uniquely identify the tenant.
  42. //
  43. // The maximum number of allowed characters is 255.
  44. string external_id = 2 [(google.api.field_behavior) = REQUIRED];
  45. }