namespace.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright 2021 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.servicedirectory.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. import "google/api/annotations.proto";
  20. option cc_enable_arenas = true;
  21. option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1";
  22. option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1;servicedirectory";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "NamespaceProto";
  25. option java_package = "com.google.cloud.servicedirectory.v1beta1";
  26. option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1beta1";
  27. option ruby_package = "Google::Cloud::ServiceDirectory::V1beta1";
  28. // A container for [services][google.cloud.servicedirectory.v1beta1.Service].
  29. // Namespaces allow administrators to group services together and define
  30. // permissions for a collection of services.
  31. message Namespace {
  32. option (google.api.resource) = {
  33. type: "servicedirectory.googleapis.com/Namespace"
  34. pattern: "projects/{project}/locations/{location}/namespaces/{namespace}"
  35. };
  36. // Immutable. The resource name for the namespace in the format
  37. // `projects/*/locations/*/namespaces/*`.
  38. string name = 1 [(google.api.field_behavior) = IMMUTABLE];
  39. // Optional. Resource labels associated with this namespace.
  40. // No more than 64 user labels can be associated with a given resource. Label
  41. // keys and values can be no longer than 63 characters.
  42. map<string, string> labels = 2 [(google.api.field_behavior) = OPTIONAL];
  43. // Output only. The timestamp when the namespace was created.
  44. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  45. // Output only. The timestamp when the namespace was last updated.
  46. google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  47. }