google-cloud-service_directory-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-service_directory-v1.rb +21 -0
- data/lib/google/cloud/service_directory/v1.rb +36 -0
- data/lib/google/cloud/service_directory/v1/lookup_service.rb +49 -0
- data/lib/google/cloud/service_directory/v1/lookup_service/client.rb +402 -0
- data/lib/google/cloud/service_directory/v1/lookup_service/credentials.rb +51 -0
- data/lib/google/cloud/service_directory/v1/lookup_service/paths.rb +54 -0
- data/lib/google/cloud/service_directory/v1/registration_service.rb +63 -0
- data/lib/google/cloud/service_directory/v1/registration_service/client.rb +1796 -0
- data/lib/google/cloud/service_directory/v1/registration_service/credentials.rb +51 -0
- data/lib/google/cloud/service_directory/v1/registration_service/paths.rb +113 -0
- data/lib/google/cloud/service_directory/v1/version.rb +28 -0
- data/lib/google/cloud/servicedirectory/v1/endpoint_pb.rb +28 -0
- data/lib/google/cloud/servicedirectory/v1/lookup_service_pb.rb +33 -0
- data/lib/google/cloud/servicedirectory/v1/lookup_service_services_pb.rb +47 -0
- data/lib/google/cloud/servicedirectory/v1/namespace_pb.rb +26 -0
- data/lib/google/cloud/servicedirectory/v1/registration_service_pb.rb +125 -0
- data/lib/google/cloud/servicedirectory/v1/registration_service_services_pb.rb +95 -0
- data/lib/google/cloud/servicedirectory/v1/service_pb.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/servicedirectory/v1/endpoint.rb +82 -0
- data/proto_docs/google/cloud/servicedirectory/v1/lookup_service.rb +71 -0
- data/proto_docs/google/cloud/servicedirectory/v1/namespace.rb +52 -0
- data/proto_docs/google/cloud/servicedirectory/v1/registration_service.rb +386 -0
- data/proto_docs/google/cloud/servicedirectory/v1/service.rb +76 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
- data/proto_docs/google/iam/v1/options.rb +40 -0
- data/proto_docs/google/iam/v1/policy.rb +248 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/type/expr.rb +52 -0
- metadata +239 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceDirectory
|
23
|
+
module V1
|
24
|
+
# An individual endpoint that provides a
|
25
|
+
# {::Google::Cloud::ServiceDirectory::V1::Service service}. The service must
|
26
|
+
# already exist to create an endpoint.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Immutable. The resource name for the endpoint in the format
|
30
|
+
# 'projects/*/locations/*/namespaces/*/services/*/endpoints/*'.
|
31
|
+
# @!attribute [rw] address
|
32
|
+
# @return [::String]
|
33
|
+
# Optional. An IPv4 or IPv6 address. Service Directory will reject bad
|
34
|
+
# addresses like:
|
35
|
+
# "8.8.8"
|
36
|
+
# "8.8.8.8:53"
|
37
|
+
# "test:bad:address"
|
38
|
+
# "[::1]"
|
39
|
+
# "[::1]:8080"
|
40
|
+
# Limited to 45 characters.
|
41
|
+
# @!attribute [rw] port
|
42
|
+
# @return [::Integer]
|
43
|
+
# Optional. Service Directory will reject values outside of [0, 65535].
|
44
|
+
# @!attribute [rw] annotations
|
45
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
46
|
+
# Optional. Annotations for the endpoint. This data can be consumed by
|
47
|
+
# service clients. Restrictions:
|
48
|
+
# - The entire annotations dictionary may contain up to 512 characters,
|
49
|
+
# spread accoss all key-value pairs. Annotations that goes beyond any
|
50
|
+
# these limits will be rejected.
|
51
|
+
# - Valid annotation keys have two segments: an optional prefix and name,
|
52
|
+
# separated by a slash (/). The name segment is required and must be 63
|
53
|
+
# characters or less, beginning and ending with an alphanumeric character
|
54
|
+
# ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
|
55
|
+
# alphanumerics between. The prefix is optional. If specified, the prefix
|
56
|
+
# must be a DNS subdomain: a series of DNS labels separated by dots (.),
|
57
|
+
# not longer than 253 characters in total, followed by a slash (/).
|
58
|
+
# Annotations that fails to meet these requirements will be rejected.
|
59
|
+
# - The '(*.)google.com/' and '(*.)googleapis.com/' prefixes are reserved
|
60
|
+
# for system annotations managed by Service Directory. If the user tries
|
61
|
+
# to write to these keyspaces, those entries will be silently ignored by
|
62
|
+
# the system.
|
63
|
+
# Note: This field is equivalent to the 'metadata' field in the v1beta1 API.
|
64
|
+
# They have the same syntax and read/write to the same location in Service
|
65
|
+
# Directory.
|
66
|
+
class Endpoint
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
|
70
|
+
# @!attribute [rw] key
|
71
|
+
# @return [::String]
|
72
|
+
# @!attribute [rw] value
|
73
|
+
# @return [::String]
|
74
|
+
class AnnotationsEntry
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceDirectory
|
23
|
+
module V1
|
24
|
+
# The request message for
|
25
|
+
# {::Google::Cloud::ServiceDirectory::V1::LookupService::Client#resolve_service LookupService.ResolveService}.
|
26
|
+
# Looks up a service by its name, returns the service and its endpoints.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Required. The name of the service to resolve.
|
30
|
+
# @!attribute [rw] max_endpoints
|
31
|
+
# @return [::Integer]
|
32
|
+
# Optional. The maximum number of endpoints to return. Defaults to 25.
|
33
|
+
# Maximum is 100. If a value less than one is specified, the Default is used.
|
34
|
+
# If a value greater than the Maximum is specified, the Maximum is used.
|
35
|
+
# @!attribute [rw] endpoint_filter
|
36
|
+
# @return [::String]
|
37
|
+
# Optional. The filter applied to the endpoints of the resolved service.
|
38
|
+
#
|
39
|
+
# General filter string syntax:
|
40
|
+
# <field> <operator> <value> (<logical connector>)
|
41
|
+
# <field> can be "name" or "metadata.<key>" for map field.
|
42
|
+
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS and is
|
43
|
+
# roughly the same as "=".
|
44
|
+
# <value> must be the same data type as the field.
|
45
|
+
# <logical connector> can be "AND, OR, NOT".
|
46
|
+
#
|
47
|
+
# Examples of valid filters:
|
48
|
+
# * "metadata.owner" returns Endpoints that have a label with the
|
49
|
+
# key "owner", this is the same as "metadata:owner"
|
50
|
+
# * "metadata.protocol=gRPC" returns Endpoints that have key/value
|
51
|
+
# "protocol=gRPC"
|
52
|
+
# * "metadata.owner!=sd AND metadata.foo=bar" returns
|
53
|
+
# Endpoints that have "owner" field in metadata with a value that is not
|
54
|
+
# "sd" AND have the key/value foo=bar.
|
55
|
+
class ResolveServiceRequest
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
end
|
59
|
+
|
60
|
+
# The response message for
|
61
|
+
# {::Google::Cloud::ServiceDirectory::V1::LookupService::Client#resolve_service LookupService.ResolveService}.
|
62
|
+
# @!attribute [rw] service
|
63
|
+
# @return [::Google::Cloud::ServiceDirectory::V1::Service]
|
64
|
+
class ResolveServiceResponse
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceDirectory
|
23
|
+
module V1
|
24
|
+
# A container for {::Google::Cloud::ServiceDirectory::V1::Service services}.
|
25
|
+
# Namespaces allow administrators to group services together and define
|
26
|
+
# permissions for a collection of services.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Immutable. The resource name for the namespace in the format
|
30
|
+
# 'projects/*/locations/*/namespaces/*'.
|
31
|
+
# @!attribute [rw] labels
|
32
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
33
|
+
# Optional. Resource labels associated with this Namespace.
|
34
|
+
# No more than 64 user labels can be associated with a given resource. Label
|
35
|
+
# keys and values can be no longer than 63 characters.
|
36
|
+
class Namespace
|
37
|
+
include ::Google::Protobuf::MessageExts
|
38
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
39
|
+
|
40
|
+
# @!attribute [rw] key
|
41
|
+
# @return [::String]
|
42
|
+
# @!attribute [rw] value
|
43
|
+
# @return [::String]
|
44
|
+
class LabelsEntry
|
45
|
+
include ::Google::Protobuf::MessageExts
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,386 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceDirectory
|
23
|
+
module V1
|
24
|
+
# The request message for
|
25
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#create_namespace RegistrationService.CreateNamespace}.
|
26
|
+
# @!attribute [rw] parent
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The resource name of the project and location the namespace
|
29
|
+
# will be created in.
|
30
|
+
# @!attribute [rw] namespace_id
|
31
|
+
# @return [::String]
|
32
|
+
# Required. The Resource ID must be 1-63 characters long, and comply with
|
33
|
+
# <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
|
34
|
+
# Specifically, the name must be 1-63 characters long and match the regular
|
35
|
+
# expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
|
36
|
+
# character must be a lowercase letter, and all following characters must
|
37
|
+
# be a dash, lowercase letter, or digit, except the last character, which
|
38
|
+
# cannot be a dash.
|
39
|
+
# @!attribute [rw] namespace
|
40
|
+
# @return [::Google::Cloud::ServiceDirectory::V1::Namespace]
|
41
|
+
# Required. A namespace with initial fields set.
|
42
|
+
class CreateNamespaceRequest
|
43
|
+
include ::Google::Protobuf::MessageExts
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
45
|
+
end
|
46
|
+
|
47
|
+
# The request message for
|
48
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#list_namespaces RegistrationService.ListNamespaces}.
|
49
|
+
# @!attribute [rw] parent
|
50
|
+
# @return [::String]
|
51
|
+
# Required. The resource name of the project and location whose namespaces
|
52
|
+
# we'd like to list.
|
53
|
+
# @!attribute [rw] page_size
|
54
|
+
# @return [::Integer]
|
55
|
+
# Optional. The maximum number of items to return.
|
56
|
+
# @!attribute [rw] page_token
|
57
|
+
# @return [::String]
|
58
|
+
# Optional. The next_page_token value returned from a previous List request,
|
59
|
+
# if any.
|
60
|
+
# @!attribute [rw] filter
|
61
|
+
# @return [::String]
|
62
|
+
# Optional. The filter to list result by.
|
63
|
+
#
|
64
|
+
# General filter string syntax:
|
65
|
+
# <field> <operator> <value> (<logical connector>)
|
66
|
+
# <field> can be "name", or "labels.<key>" for map field.
|
67
|
+
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and
|
68
|
+
# is roughly the same as "=".
|
69
|
+
# <value> must be the same data type as field.
|
70
|
+
# <logical connector> can be "AND, OR, NOT".
|
71
|
+
#
|
72
|
+
# Examples of valid filters:
|
73
|
+
# * "labels.owner" returns Namespaces that have a label with the key "owner"
|
74
|
+
# this is the same as "labels:owner".
|
75
|
+
# * "labels.protocol=gRPC" returns Namespaces that have key/value
|
76
|
+
# "protocol=gRPC".
|
77
|
+
# * "name>projects/my-project/locations/us-east/namespaces/namespace-c"
|
78
|
+
# returns Namespaces that have name that is alphabetically later than the
|
79
|
+
# string, so "namespace-e" will be returned but "namespace-a" will not be.
|
80
|
+
# * "labels.owner!=sd AND labels.foo=bar" returns Namespaces that have
|
81
|
+
# "owner" in label key but value is not "sd" AND have key/value foo=bar.
|
82
|
+
# * "doesnotexist.foo=bar" returns an empty list. Note that Namespace doesn't
|
83
|
+
# have a field called "doesnotexist". Since the filter does not match any
|
84
|
+
# Namespaces, it returns no results.
|
85
|
+
# @!attribute [rw] order_by
|
86
|
+
# @return [::String]
|
87
|
+
# Optional. The order to list result by.
|
88
|
+
#
|
89
|
+
# General order by string syntax:
|
90
|
+
# <field> (<asc|desc>) (,)
|
91
|
+
# <field> allows values \\{"name"}
|
92
|
+
# <asc/desc> ascending or descending order by <field>. If this is left
|
93
|
+
# blank, "asc" is used.
|
94
|
+
# Note that an empty order_by string result in default order, which is order
|
95
|
+
# by name in ascending order.
|
96
|
+
class ListNamespacesRequest
|
97
|
+
include ::Google::Protobuf::MessageExts
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
|
+
end
|
100
|
+
|
101
|
+
# The response message for
|
102
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#list_namespaces RegistrationService.ListNamespaces}.
|
103
|
+
# @!attribute [rw] namespaces
|
104
|
+
# @return [::Array<::Google::Cloud::ServiceDirectory::V1::Namespace>]
|
105
|
+
# The list of namespaces.
|
106
|
+
# @!attribute [rw] next_page_token
|
107
|
+
# @return [::String]
|
108
|
+
# Token to retrieve the next page of results, or empty if there are no
|
109
|
+
# more results in the list.
|
110
|
+
class ListNamespacesResponse
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
end
|
114
|
+
|
115
|
+
# The request message for
|
116
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#get_namespace RegistrationService.GetNamespace}.
|
117
|
+
# @!attribute [rw] name
|
118
|
+
# @return [::String]
|
119
|
+
# Required. The name of the namespace to retrieve.
|
120
|
+
class GetNamespaceRequest
|
121
|
+
include ::Google::Protobuf::MessageExts
|
122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
123
|
+
end
|
124
|
+
|
125
|
+
# The request message for
|
126
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#update_namespace RegistrationService.UpdateNamespace}.
|
127
|
+
# @!attribute [rw] namespace
|
128
|
+
# @return [::Google::Cloud::ServiceDirectory::V1::Namespace]
|
129
|
+
# Required. The updated namespace.
|
130
|
+
# @!attribute [rw] update_mask
|
131
|
+
# @return [::Google::Protobuf::FieldMask]
|
132
|
+
# Required. List of fields to be updated in this request.
|
133
|
+
class UpdateNamespaceRequest
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
|
+
end
|
137
|
+
|
138
|
+
# The request message for
|
139
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#delete_namespace RegistrationService.DeleteNamespace}.
|
140
|
+
# @!attribute [rw] name
|
141
|
+
# @return [::String]
|
142
|
+
# Required. The name of the namespace to delete.
|
143
|
+
class DeleteNamespaceRequest
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
end
|
147
|
+
|
148
|
+
# The request message for
|
149
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#create_service RegistrationService.CreateService}.
|
150
|
+
# @!attribute [rw] parent
|
151
|
+
# @return [::String]
|
152
|
+
# Required. The resource name of the namespace this service will belong to.
|
153
|
+
# @!attribute [rw] service_id
|
154
|
+
# @return [::String]
|
155
|
+
# Required. The Resource ID must be 1-63 characters long, and comply with
|
156
|
+
# <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
|
157
|
+
# Specifically, the name must be 1-63 characters long and match the regular
|
158
|
+
# expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
|
159
|
+
# character must be a lowercase letter, and all following characters must
|
160
|
+
# be a dash, lowercase letter, or digit, except the last character, which
|
161
|
+
# cannot be a dash.
|
162
|
+
# @!attribute [rw] service
|
163
|
+
# @return [::Google::Cloud::ServiceDirectory::V1::Service]
|
164
|
+
# Required. A service with initial fields set.
|
165
|
+
class CreateServiceRequest
|
166
|
+
include ::Google::Protobuf::MessageExts
|
167
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
168
|
+
end
|
169
|
+
|
170
|
+
# The request message for
|
171
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#list_services RegistrationService.ListServices}.
|
172
|
+
# @!attribute [rw] parent
|
173
|
+
# @return [::String]
|
174
|
+
# Required. The resource name of the namespace whose services we'd
|
175
|
+
# like to list.
|
176
|
+
# @!attribute [rw] page_size
|
177
|
+
# @return [::Integer]
|
178
|
+
# Optional. The maximum number of items to return.
|
179
|
+
# @!attribute [rw] page_token
|
180
|
+
# @return [::String]
|
181
|
+
# Optional. The next_page_token value returned from a previous List request,
|
182
|
+
# if any.
|
183
|
+
# @!attribute [rw] filter
|
184
|
+
# @return [::String]
|
185
|
+
# Optional. The filter to list result by.
|
186
|
+
#
|
187
|
+
# General filter string syntax:
|
188
|
+
# <field> <operator> <value> (<logical connector>)
|
189
|
+
# <field> can be "name", or "metadata.<key>" for map field.
|
190
|
+
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and
|
191
|
+
# is roughly the same as "=".
|
192
|
+
# <value> must be the same data type as field.
|
193
|
+
# <logical connector> can be "AND, OR, NOT".
|
194
|
+
#
|
195
|
+
# Examples of valid filters:
|
196
|
+
# * "metadata.owner" returns Services that have a label with the key "owner"
|
197
|
+
# this is the same as "metadata:owner".
|
198
|
+
# * "metadata.protocol=gRPC" returns Services that have key/value
|
199
|
+
# "protocol=gRPC".
|
200
|
+
# * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/service-c"
|
201
|
+
# returns Services that have name that is alphabetically later than the
|
202
|
+
# string, so "service-e" will be returned but "service-a" will not be.
|
203
|
+
# * "metadata.owner!=sd AND metadata.foo=bar" returns Services that have
|
204
|
+
# "owner" in label key but value is not "sd" AND have key/value foo=bar.
|
205
|
+
# * "doesnotexist.foo=bar" returns an empty list. Note that Service doesn't
|
206
|
+
# have a field called "doesnotexist". Since the filter does not match any
|
207
|
+
# Services, it returns no results.
|
208
|
+
# @!attribute [rw] order_by
|
209
|
+
# @return [::String]
|
210
|
+
# Optional. The order to list result by.
|
211
|
+
class ListServicesRequest
|
212
|
+
include ::Google::Protobuf::MessageExts
|
213
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
214
|
+
end
|
215
|
+
|
216
|
+
# The response message for
|
217
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#list_services RegistrationService.ListServices}.
|
218
|
+
# @!attribute [rw] services
|
219
|
+
# @return [::Array<::Google::Cloud::ServiceDirectory::V1::Service>]
|
220
|
+
# The list of services.
|
221
|
+
# @!attribute [rw] next_page_token
|
222
|
+
# @return [::String]
|
223
|
+
# Token to retrieve the next page of results, or empty if there are no
|
224
|
+
# more results in the list.
|
225
|
+
class ListServicesResponse
|
226
|
+
include ::Google::Protobuf::MessageExts
|
227
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
228
|
+
end
|
229
|
+
|
230
|
+
# The request message for
|
231
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#get_service RegistrationService.GetService}.
|
232
|
+
# This should not be used for looking up a service. Insead, use the `resolve`
|
233
|
+
# method as it will contain all endpoints and associated metadata.
|
234
|
+
# @!attribute [rw] name
|
235
|
+
# @return [::String]
|
236
|
+
# Required. The name of the service to get.
|
237
|
+
class GetServiceRequest
|
238
|
+
include ::Google::Protobuf::MessageExts
|
239
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
240
|
+
end
|
241
|
+
|
242
|
+
# The request message for
|
243
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#update_service RegistrationService.UpdateService}.
|
244
|
+
# @!attribute [rw] service
|
245
|
+
# @return [::Google::Cloud::ServiceDirectory::V1::Service]
|
246
|
+
# Required. The updated service.
|
247
|
+
# @!attribute [rw] update_mask
|
248
|
+
# @return [::Google::Protobuf::FieldMask]
|
249
|
+
# Required. List of fields to be updated in this request.
|
250
|
+
class UpdateServiceRequest
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# The request message for
|
256
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#delete_service RegistrationService.DeleteService}.
|
257
|
+
# @!attribute [rw] name
|
258
|
+
# @return [::String]
|
259
|
+
# Required. The name of the service to delete.
|
260
|
+
class DeleteServiceRequest
|
261
|
+
include ::Google::Protobuf::MessageExts
|
262
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
263
|
+
end
|
264
|
+
|
265
|
+
# The request message for
|
266
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#create_endpoint RegistrationService.CreateEndpoint}.
|
267
|
+
# @!attribute [rw] parent
|
268
|
+
# @return [::String]
|
269
|
+
# Required. The resource name of the service that this endpoint provides.
|
270
|
+
# @!attribute [rw] endpoint_id
|
271
|
+
# @return [::String]
|
272
|
+
# Required. The Resource ID must be 1-63 characters long, and comply with
|
273
|
+
# <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
|
274
|
+
# Specifically, the name must be 1-63 characters long and match the regular
|
275
|
+
# expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
|
276
|
+
# character must be a lowercase letter, and all following characters must
|
277
|
+
# be a dash, lowercase letter, or digit, except the last character, which
|
278
|
+
# cannot be a dash.
|
279
|
+
# @!attribute [rw] endpoint
|
280
|
+
# @return [::Google::Cloud::ServiceDirectory::V1::Endpoint]
|
281
|
+
# Required. A endpoint with initial fields set.
|
282
|
+
class CreateEndpointRequest
|
283
|
+
include ::Google::Protobuf::MessageExts
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
285
|
+
end
|
286
|
+
|
287
|
+
# The request message for
|
288
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#list_endpoints RegistrationService.ListEndpoints}.
|
289
|
+
# @!attribute [rw] parent
|
290
|
+
# @return [::String]
|
291
|
+
# Required. The resource name of the service whose endpoints we'd like to
|
292
|
+
# list.
|
293
|
+
# @!attribute [rw] page_size
|
294
|
+
# @return [::Integer]
|
295
|
+
# Optional. The maximum number of items to return.
|
296
|
+
# @!attribute [rw] page_token
|
297
|
+
# @return [::String]
|
298
|
+
# Optional. The next_page_token value returned from a previous List request,
|
299
|
+
# if any.
|
300
|
+
# @!attribute [rw] filter
|
301
|
+
# @return [::String]
|
302
|
+
# Optional. The filter to list result by.
|
303
|
+
#
|
304
|
+
# General filter string syntax:
|
305
|
+
# <field> <operator> <value> (<logical connector>)
|
306
|
+
# <field> can be "name", "address", "port" or "metadata.<key>" for map field.
|
307
|
+
# <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and
|
308
|
+
# is roughly the same as "=".
|
309
|
+
# <value> must be the same data type as field.
|
310
|
+
# <logical connector> can be "AND, OR, NOT".
|
311
|
+
#
|
312
|
+
# Examples of valid filters:
|
313
|
+
# * "metadata.owner" returns Endpoints that have a label with the key "owner"
|
314
|
+
# this is the same as "metadata:owner".
|
315
|
+
# * "metadata.protocol=gRPC" returns Endpoints that have key/value
|
316
|
+
# "protocol=gRPC".
|
317
|
+
# * "address=192.108.1.105" returns Endpoints that have this address.
|
318
|
+
# * "port>8080" returns Endpoints that have port number larger than 8080.
|
319
|
+
# * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c"
|
320
|
+
# returns Endpoints that have name that is alphabetically later than the
|
321
|
+
# string, so "endpoint-e" will be returned but "endpoint-a" will not be.
|
322
|
+
# * "metadata.owner!=sd AND metadata.foo=bar" returns Endpoints that have
|
323
|
+
# "owner" in label key but value is not "sd" AND have key/value foo=bar.
|
324
|
+
# * "doesnotexist.foo=bar" returns an empty list. Note that Endpoint doesn't
|
325
|
+
# have a field called "doesnotexist". Since the filter does not match any
|
326
|
+
# Endpoints, it returns no results.
|
327
|
+
# @!attribute [rw] order_by
|
328
|
+
# @return [::String]
|
329
|
+
# Optional. The order to list result by.
|
330
|
+
class ListEndpointsRequest
|
331
|
+
include ::Google::Protobuf::MessageExts
|
332
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
333
|
+
end
|
334
|
+
|
335
|
+
# The response message for
|
336
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#list_endpoints RegistrationService.ListEndpoints}.
|
337
|
+
# @!attribute [rw] endpoints
|
338
|
+
# @return [::Array<::Google::Cloud::ServiceDirectory::V1::Endpoint>]
|
339
|
+
# The list of endpoints.
|
340
|
+
# @!attribute [rw] next_page_token
|
341
|
+
# @return [::String]
|
342
|
+
# Token to retrieve the next page of results, or empty if there are no
|
343
|
+
# more results in the list.
|
344
|
+
class ListEndpointsResponse
|
345
|
+
include ::Google::Protobuf::MessageExts
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
347
|
+
end
|
348
|
+
|
349
|
+
# The request message for
|
350
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#get_endpoint RegistrationService.GetEndpoint}.
|
351
|
+
# This should not be used to lookup endpoints at runtime. Instead, use
|
352
|
+
# the `resolve` method.
|
353
|
+
# @!attribute [rw] name
|
354
|
+
# @return [::String]
|
355
|
+
# Required. The name of the endpoint to get.
|
356
|
+
class GetEndpointRequest
|
357
|
+
include ::Google::Protobuf::MessageExts
|
358
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
359
|
+
end
|
360
|
+
|
361
|
+
# The request message for
|
362
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#update_endpoint RegistrationService.UpdateEndpoint}.
|
363
|
+
# @!attribute [rw] endpoint
|
364
|
+
# @return [::Google::Cloud::ServiceDirectory::V1::Endpoint]
|
365
|
+
# Required. The updated endpoint.
|
366
|
+
# @!attribute [rw] update_mask
|
367
|
+
# @return [::Google::Protobuf::FieldMask]
|
368
|
+
# Required. List of fields to be updated in this request.
|
369
|
+
class UpdateEndpointRequest
|
370
|
+
include ::Google::Protobuf::MessageExts
|
371
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
372
|
+
end
|
373
|
+
|
374
|
+
# The request message for
|
375
|
+
# {::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#delete_endpoint RegistrationService.DeleteEndpoint}.
|
376
|
+
# @!attribute [rw] name
|
377
|
+
# @return [::String]
|
378
|
+
# Required. The name of the endpoint to delete.
|
379
|
+
class DeleteEndpointRequest
|
380
|
+
include ::Google::Protobuf::MessageExts
|
381
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
382
|
+
end
|
383
|
+
end
|
384
|
+
end
|
385
|
+
end
|
386
|
+
end
|