xref: /aosp_15_r20/external/googleapis/google/cloud/servicedirectory/v1beta1/namespace.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.servicedirectory.v1beta1;
18
19import "google/api/field_behavior.proto";
20import "google/api/resource.proto";
21import "google/protobuf/timestamp.proto";
22
23option cc_enable_arenas = true;
24option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1";
25option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb";
26option java_multiple_files = true;
27option java_outer_classname = "NamespaceProto";
28option java_package = "com.google.cloud.servicedirectory.v1beta1";
29option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1beta1";
30option ruby_package = "Google::Cloud::ServiceDirectory::V1beta1";
31
32// A container for [services][google.cloud.servicedirectory.v1beta1.Service].
33// Namespaces allow administrators to group services together and define
34// permissions for a collection of services.
35message Namespace {
36  option (google.api.resource) = {
37    type: "servicedirectory.googleapis.com/Namespace"
38    pattern: "projects/{project}/locations/{location}/namespaces/{namespace}"
39  };
40
41  // Immutable. The resource name for the namespace in the format
42  // `projects/*/locations/*/namespaces/*`.
43  string name = 1 [(google.api.field_behavior) = IMMUTABLE];
44
45  // Optional. Resource labels associated with this namespace.
46  // No more than 64 user labels can be associated with a given resource. Label
47  // keys and values can be no longer than 63 characters.
48  map<string, string> labels = 2 [(google.api.field_behavior) = OPTIONAL];
49
50  // Output only. The timestamp when the namespace was created.
51  google.protobuf.Timestamp create_time = 4
52      [(google.api.field_behavior) = OUTPUT_ONLY];
53
54  // Output only. The timestamp when the namespace was last updated.
55  google.protobuf.Timestamp update_time = 5
56      [(google.api.field_behavior) = OUTPUT_ONLY];
57
58  // Output only. A globally unique identifier (in UUID4 format) for this
59  // namespace.
60  string uid = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
61}
62