namespace.proto 2.4 KB

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