google-cloud-service_directory-v1 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/service_directory/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/service_directory/v1/lookup_service/client.rb +50 -16
- data/lib/google/cloud/service_directory/v1/lookup_service/rest/client.rb +58 -16
- data/lib/google/cloud/service_directory/v1/lookup_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/service_directory/v1/lookup_service/rest.rb +1 -0
- data/lib/google/cloud/service_directory/v1/registration_service/client.rb +138 -83
- data/lib/google/cloud/service_directory/v1/registration_service/paths.rb +17 -0
- data/lib/google/cloud/service_directory/v1/registration_service/rest/client.rb +147 -84
- data/lib/google/cloud/service_directory/v1/registration_service/rest/service_stub.rb +18 -18
- data/lib/google/cloud/service_directory/v1/registration_service/rest.rb +1 -0
- data/lib/google/cloud/service_directory/v1/rest.rb +1 -0
- data/lib/google/cloud/service_directory/v1/version.rb +1 -1
- data/lib/google/cloud/servicedirectory/v1/endpoint_pb.rb +1 -1
- data/lib/google/cloud/servicedirectory/v1/namespace_pb.rb +1 -1
- data/lib/google/cloud/servicedirectory/v1/registration_service_services_pb.rb +6 -6
- data/lib/google/cloud/servicedirectory/v1/service_pb.rb +1 -1
- data/proto_docs/google/cloud/servicedirectory/v1/endpoint.rb +40 -25
- data/proto_docs/google/cloud/servicedirectory/v1/lookup_service.rb +32 -14
- data/proto_docs/google/cloud/servicedirectory/v1/namespace.rb +6 -2
- data/proto_docs/google/cloud/servicedirectory/v1/registration_service.rb +116 -77
- data/proto_docs/google/cloud/servicedirectory/v1/service.rb +22 -18
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +26 -4
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/servicedirectory/v1/registration_service_pb"
|
21
21
|
require "google/cloud/service_directory/v1/registration_service/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -138,7 +139,7 @@ module Google
|
|
138
139
|
credentials = @config.credentials
|
139
140
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
140
141
|
# but only if the default endpoint does not have a region prefix.
|
141
|
-
enable_self_signed_jwt = @config.endpoint ==
|
142
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
142
143
|
!@config.endpoint.split(".").first.include?("-")
|
143
144
|
credentials ||= Credentials.default scope: @config.scope,
|
144
145
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -149,13 +150,27 @@ module Google
|
|
149
150
|
@quota_project_id = @config.quota_project
|
150
151
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
151
152
|
|
153
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
154
|
+
config.credentials = credentials
|
155
|
+
config.quota_project = @quota_project_id
|
156
|
+
config.endpoint = @config.endpoint
|
157
|
+
config.bindings_override = @config.bindings_override
|
158
|
+
end
|
159
|
+
|
152
160
|
@registration_service_stub = ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
153
161
|
end
|
154
162
|
|
163
|
+
##
|
164
|
+
# Get the associated client for mix-in of the Locations.
|
165
|
+
#
|
166
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
167
|
+
#
|
168
|
+
attr_reader :location_client
|
169
|
+
|
155
170
|
# Service calls
|
156
171
|
|
157
172
|
##
|
158
|
-
# Creates a namespace, and returns the new
|
173
|
+
# Creates a namespace, and returns the new namespace.
|
159
174
|
#
|
160
175
|
# @overload create_namespace(request, options = nil)
|
161
176
|
# Pass arguments to `create_namespace` via a request object, either of type
|
@@ -247,46 +262,52 @@ module Google
|
|
247
262
|
#
|
248
263
|
# @param parent [::String]
|
249
264
|
# Required. The resource name of the project and location whose namespaces
|
250
|
-
#
|
265
|
+
# you'd like to list.
|
251
266
|
# @param page_size [::Integer]
|
252
267
|
# Optional. The maximum number of items to return.
|
253
268
|
# @param page_token [::String]
|
254
269
|
# Optional. The next_page_token value returned from a previous List request,
|
255
270
|
# if any.
|
256
271
|
# @param filter [::String]
|
257
|
-
# Optional. The filter to list
|
272
|
+
# Optional. The filter to list results by.
|
258
273
|
#
|
259
|
-
# General filter string syntax:
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
274
|
+
# General `filter` string syntax:
|
275
|
+
# `<field> <operator> <value> (<logical connector>)`
|
276
|
+
#
|
277
|
+
# * `<field>` can be `name` or `labels.<key>` for map field
|
278
|
+
# * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
|
279
|
+
# means `HAS`, and is roughly the same as `=`
|
280
|
+
# * `<value>` must be the same data type as field
|
281
|
+
# * `<logical connector>` can be `AND`, `OR`, `NOT`
|
266
282
|
#
|
267
283
|
# Examples of valid filters:
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
284
|
+
#
|
285
|
+
# * `labels.owner` returns namespaces that have a label with the key
|
286
|
+
# `owner`, this is the same as `labels:owner`
|
287
|
+
# * `labels.owner=sd` returns namespaces that have key/value
|
288
|
+
# `owner=sd`
|
289
|
+
# * `name>projects/my-project/locations/us-east1/namespaces/namespace-c`
|
290
|
+
# returns namespaces that have name that is alphabetically later than the
|
291
|
+
# string, so "namespace-e" is returned but "namespace-a" is not
|
292
|
+
# * `labels.owner!=sd AND labels.foo=bar` returns namespaces that have
|
293
|
+
# `owner` in label key but value is not `sd` AND have key/value `foo=bar`
|
294
|
+
# * `doesnotexist.foo=bar` returns an empty list. Note that namespace
|
295
|
+
# doesn't have a field called "doesnotexist". Since the filter does not
|
296
|
+
# match any namespaces, it returns no results
|
297
|
+
#
|
298
|
+
# For more information about filtering, see
|
299
|
+
# [API Filtering](https://aip.dev/160).
|
280
300
|
# @param order_by [::String]
|
281
|
-
# Optional. The order to list
|
282
|
-
#
|
283
|
-
# General
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
287
|
-
#
|
288
|
-
#
|
289
|
-
#
|
301
|
+
# Optional. The order to list results by.
|
302
|
+
#
|
303
|
+
# General `order_by` string syntax: `<field> (<asc|desc>) (,)`
|
304
|
+
#
|
305
|
+
# * `<field>` allows value: `name`
|
306
|
+
# * `<asc|desc>` ascending or descending order by `<field>`. If this is
|
307
|
+
# left blank, `asc` is used
|
308
|
+
#
|
309
|
+
# Note that an empty `order_by` string results in default order, which is
|
310
|
+
# order by `name` in ascending order.
|
290
311
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
291
312
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1::Namespace>]
|
292
313
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -520,7 +541,7 @@ module Google
|
|
520
541
|
end
|
521
542
|
|
522
543
|
##
|
523
|
-
# Creates a service, and returns the new
|
544
|
+
# Creates a service, and returns the new service.
|
524
545
|
#
|
525
546
|
# @overload create_service(request, options = nil)
|
526
547
|
# Pass arguments to `create_service` via a request object, either of type
|
@@ -610,7 +631,7 @@ module Google
|
|
610
631
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
611
632
|
#
|
612
633
|
# @param parent [::String]
|
613
|
-
# Required. The resource name of the namespace whose services
|
634
|
+
# Required. The resource name of the namespace whose services you'd
|
614
635
|
# like to list.
|
615
636
|
# @param page_size [::Integer]
|
616
637
|
# Optional. The maximum number of items to return.
|
@@ -618,31 +639,47 @@ module Google
|
|
618
639
|
# Optional. The next_page_token value returned from a previous List request,
|
619
640
|
# if any.
|
620
641
|
# @param filter [::String]
|
621
|
-
# Optional. The filter to list
|
642
|
+
# Optional. The filter to list results by.
|
643
|
+
#
|
644
|
+
# General `filter` string syntax:
|
645
|
+
# `<field> <operator> <value> (<logical connector>)`
|
622
646
|
#
|
623
|
-
#
|
624
|
-
#
|
625
|
-
#
|
626
|
-
#
|
627
|
-
#
|
628
|
-
# <value> must be the same data type as field.
|
629
|
-
# <logical connector> can be "AND, OR, NOT".
|
647
|
+
# * `<field>` can be `name` or `annotations.<key>` for map field
|
648
|
+
# * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
|
649
|
+
# means `HAS`, and is roughly the same as `=`
|
650
|
+
# * `<value>` must be the same data type as field
|
651
|
+
# * `<logical connector>` can be `AND`, `OR`, `NOT`
|
630
652
|
#
|
631
653
|
# Examples of valid filters:
|
632
|
-
#
|
633
|
-
#
|
634
|
-
#
|
635
|
-
#
|
636
|
-
#
|
637
|
-
#
|
638
|
-
#
|
639
|
-
#
|
640
|
-
#
|
641
|
-
# *
|
642
|
-
#
|
643
|
-
#
|
654
|
+
#
|
655
|
+
# * `annotations.owner` returns services that have a annotation with the
|
656
|
+
# key `owner`, this is the same as `annotations:owner`
|
657
|
+
# * `annotations.protocol=gRPC` returns services that have key/value
|
658
|
+
# `protocol=gRPC`
|
659
|
+
# *
|
660
|
+
# `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/service-c`
|
661
|
+
# returns services that have name that is alphabetically later than the
|
662
|
+
# string, so "service-e" is returned but "service-a" is not
|
663
|
+
# * `annotations.owner!=sd AND annotations.foo=bar` returns services that
|
664
|
+
# have `owner` in annotation key but value is not `sd` AND have
|
665
|
+
# key/value `foo=bar`
|
666
|
+
# * `doesnotexist.foo=bar` returns an empty list. Note that service
|
667
|
+
# doesn't have a field called "doesnotexist". Since the filter does not
|
668
|
+
# match any services, it returns no results
|
669
|
+
#
|
670
|
+
# For more information about filtering, see
|
671
|
+
# [API Filtering](https://aip.dev/160).
|
644
672
|
# @param order_by [::String]
|
645
|
-
# Optional. The order to list
|
673
|
+
# Optional. The order to list results by.
|
674
|
+
#
|
675
|
+
# General `order_by` string syntax: `<field> (<asc|desc>) (,)`
|
676
|
+
#
|
677
|
+
# * `<field>` allows value: `name`
|
678
|
+
# * `<asc|desc>` ascending or descending order by `<field>`. If this is
|
679
|
+
# left blank, `asc` is used
|
680
|
+
#
|
681
|
+
# Note that an empty `order_by` string results in default order, which is
|
682
|
+
# order by `name` in ascending order.
|
646
683
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
647
684
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1::Service>]
|
648
685
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -876,7 +913,7 @@ module Google
|
|
876
913
|
end
|
877
914
|
|
878
915
|
##
|
879
|
-
# Creates
|
916
|
+
# Creates an endpoint, and returns the new endpoint.
|
880
917
|
#
|
881
918
|
# @overload create_endpoint(request, options = nil)
|
882
919
|
# Pass arguments to `create_endpoint` via a request object, either of type
|
@@ -966,7 +1003,7 @@ module Google
|
|
966
1003
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
967
1004
|
#
|
968
1005
|
# @param parent [::String]
|
969
|
-
# Required. The resource name of the service whose endpoints
|
1006
|
+
# Required. The resource name of the service whose endpoints you'd like to
|
970
1007
|
# list.
|
971
1008
|
# @param page_size [::Integer]
|
972
1009
|
# Optional. The maximum number of items to return.
|
@@ -974,33 +1011,50 @@ module Google
|
|
974
1011
|
# Optional. The next_page_token value returned from a previous List request,
|
975
1012
|
# if any.
|
976
1013
|
# @param filter [::String]
|
977
|
-
# Optional. The filter to list
|
1014
|
+
# Optional. The filter to list results by.
|
1015
|
+
#
|
1016
|
+
# General `filter` string syntax:
|
1017
|
+
# `<field> <operator> <value> (<logical connector>)`
|
978
1018
|
#
|
979
|
-
#
|
980
|
-
#
|
981
|
-
#
|
982
|
-
#
|
983
|
-
#
|
984
|
-
#
|
985
|
-
# <logical connector> can be "AND, OR, NOT".
|
1019
|
+
# * `<field>` can be `name`, `address`, `port`, or `annotations.<key>` for
|
1020
|
+
# map field
|
1021
|
+
# * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
|
1022
|
+
# means `HAS`, and is roughly the same as `=`
|
1023
|
+
# * `<value>` must be the same data type as field
|
1024
|
+
# * `<logical connector>` can be `AND`, `OR`, `NOT`
|
986
1025
|
#
|
987
1026
|
# Examples of valid filters:
|
988
|
-
#
|
989
|
-
#
|
990
|
-
#
|
991
|
-
#
|
992
|
-
#
|
993
|
-
# *
|
994
|
-
# *
|
995
|
-
#
|
996
|
-
#
|
997
|
-
#
|
998
|
-
#
|
999
|
-
# *
|
1000
|
-
#
|
1001
|
-
#
|
1027
|
+
#
|
1028
|
+
# * `annotations.owner` returns endpoints that have a annotation with the
|
1029
|
+
# key `owner`, this is the same as `annotations:owner`
|
1030
|
+
# * `annotations.protocol=gRPC` returns endpoints that have key/value
|
1031
|
+
# `protocol=gRPC`
|
1032
|
+
# * `address=192.108.1.105` returns endpoints that have this address
|
1033
|
+
# * `port>8080` returns endpoints that have port number larger than 8080
|
1034
|
+
# *
|
1035
|
+
# `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
|
1036
|
+
# returns endpoints that have name that is alphabetically later than the
|
1037
|
+
# string, so "endpoint-e" is returned but "endpoint-a" is not
|
1038
|
+
# * `annotations.owner!=sd AND annotations.foo=bar` returns endpoints that
|
1039
|
+
# have `owner` in annotation key but value is not `sd` AND have
|
1040
|
+
# key/value `foo=bar`
|
1041
|
+
# * `doesnotexist.foo=bar` returns an empty list. Note that endpoint
|
1042
|
+
# doesn't have a field called "doesnotexist". Since the filter does not
|
1043
|
+
# match any endpoints, it returns no results
|
1044
|
+
#
|
1045
|
+
# For more information about filtering, see
|
1046
|
+
# [API Filtering](https://aip.dev/160).
|
1002
1047
|
# @param order_by [::String]
|
1003
|
-
# Optional. The order to list
|
1048
|
+
# Optional. The order to list results by.
|
1049
|
+
#
|
1050
|
+
# General `order_by` string syntax: `<field> (<asc|desc>) (,)`
|
1051
|
+
#
|
1052
|
+
# * `<field>` allows values: `name`, `address`, `port`
|
1053
|
+
# * `<asc|desc>` ascending or descending order by `<field>`. If this is
|
1054
|
+
# left blank, `asc` is used
|
1055
|
+
#
|
1056
|
+
# Note that an empty `order_by` string results in default order, which is
|
1057
|
+
# order by `name` in ascending order.
|
1004
1058
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1005
1059
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1::Endpoint>]
|
1006
1060
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1045,7 +1099,7 @@ module Google
|
|
1045
1099
|
end
|
1046
1100
|
|
1047
1101
|
##
|
1048
|
-
# Gets
|
1102
|
+
# Gets an endpoint.
|
1049
1103
|
#
|
1050
1104
|
# @overload get_endpoint(request, options = nil)
|
1051
1105
|
# Pass arguments to `get_endpoint` via a request object, either of type
|
@@ -1107,7 +1161,7 @@ module Google
|
|
1107
1161
|
end
|
1108
1162
|
|
1109
1163
|
##
|
1110
|
-
# Updates
|
1164
|
+
# Updates an endpoint.
|
1111
1165
|
#
|
1112
1166
|
# @overload update_endpoint(request, options = nil)
|
1113
1167
|
# Pass arguments to `update_endpoint` via a request object, either of type
|
@@ -1171,7 +1225,7 @@ module Google
|
|
1171
1225
|
end
|
1172
1226
|
|
1173
1227
|
##
|
1174
|
-
# Deletes
|
1228
|
+
# Deletes an endpoint.
|
1175
1229
|
#
|
1176
1230
|
# @overload delete_endpoint(request, options = nil)
|
1177
1231
|
# Pass arguments to `delete_endpoint` via a request object, either of type
|
@@ -1513,7 +1567,9 @@ module Google
|
|
1513
1567
|
class Configuration
|
1514
1568
|
extend ::Gapic::Config
|
1515
1569
|
|
1516
|
-
|
1570
|
+
DEFAULT_ENDPOINT = "servicedirectory.googleapis.com"
|
1571
|
+
|
1572
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1517
1573
|
config_attr :credentials, nil do |value|
|
1518
1574
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1519
1575
|
allowed.any? { |klass| klass === value }
|
@@ -1526,6 +1582,13 @@ module Google
|
|
1526
1582
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1527
1583
|
config_attr :quota_project, nil, ::String, nil
|
1528
1584
|
|
1585
|
+
# @private
|
1586
|
+
# Overrides for http bindings for the RPCs of this service
|
1587
|
+
# are only used when this service is used as mixin, and only
|
1588
|
+
# by the host service.
|
1589
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1590
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
1591
|
+
|
1529
1592
|
# @private
|
1530
1593
|
def initialize parent_config = nil
|
1531
1594
|
@parent_config = parent_config unless parent_config.nil?
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_namespace_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_namespaces_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_namespace_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_namespace_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_namespace_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_service_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_services_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_service_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_service_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_service_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_endpoint_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_endpoints_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_endpoint_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_endpoint_request request_pb
|
555
555
|
query_string_params = if query_string_params.any?
|
556
|
-
query_string_params.to_h { |p| p.split
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
557
557
|
else
|
558
558
|
{}
|
559
559
|
end
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_endpoint_request request_pb
|
593
593
|
query_string_params = if query_string_params.any?
|
594
|
-
query_string_params.to_h { |p| p.split
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
end
|
@@ -629,7 +629,7 @@ module Google
|
|
629
629
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
631
631
|
query_string_params = if query_string_params.any?
|
632
|
-
query_string_params.to_h { |p| p.split
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
633
|
else
|
634
634
|
{}
|
635
635
|
end
|
@@ -667,7 +667,7 @@ module Google
|
|
667
667
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
669
669
|
query_string_params = if query_string_params.any?
|
670
|
-
query_string_params.to_h { |p| p.split
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
671
|
else
|
672
672
|
{}
|
673
673
|
end
|
@@ -705,7 +705,7 @@ module Google
|
|
705
705
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
707
707
|
query_string_params = if query_string_params.any?
|
708
|
-
query_string_params.to_h { |p| p.split
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
709
|
else
|
710
710
|
{}
|
711
711
|
end
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
21
21
|
require "gapic/config/method"
|
22
22
|
|
23
23
|
require "google/cloud/service_directory/v1/version"
|
24
|
+
require "google/cloud/service_directory/v1/bindings_override"
|
24
25
|
|
25
26
|
require "google/cloud/service_directory/v1/registration_service/credentials"
|
26
27
|
require "google/cloud/service_directory/v1/registration_service/paths"
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/service_directory/v1/lookup_service/rest"
|
20
20
|
require "google/cloud/service_directory/v1/registration_service/rest"
|
21
|
+
require "google/cloud/service_directory/v1/bindings_override"
|
21
22
|
require "google/cloud/service_directory/v1/version"
|
22
23
|
|
23
24
|
module Google
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n/google/cloud/servicedirectory/v1/endpoint.proto\x12 google.cloud.servicedirectory.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\
|
11
|
+
descriptor_data = "\n/google/cloud/servicedirectory/v1/endpoint.proto\x12 google.cloud.servicedirectory.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbe\x03\n\x08\x45ndpoint\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12U\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32;.google.cloud.servicedirectory.v1.Endpoint.AnnotationsEntryB\x03\xe0\x41\x01\x12@\n\x07network\x18\x08 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'servicedirectory.googleapis.com/Network\x12\x10\n\x03uid\x18\t \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x96\x01\xea\x41\x92\x01\n(servicedirectory.googleapis.com/Endpoint\x12\x66projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}B\xdc\x02\n$com.google.cloud.servicedirectory.v1B\rEndpointProtoP\x01ZPcloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02 Google.Cloud.ServiceDirectory.V1\xca\x02 Google\\Cloud\\ServiceDirectory\\V1\xea\x02#Google::Cloud::ServiceDirectory::V1\xea\x41\x61\n\'servicedirectory.googleapis.com/Network\x12\x36projects/{project}/locations/global/networks/{network}b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n0google/cloud/servicedirectory/v1/namespace.proto\x12 google.cloud.servicedirectory.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\
|
11
|
+
descriptor_data = "\n0google/cloud/servicedirectory/v1/namespace.proto\x12 google.cloud.servicedirectory.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9d\x02\n\tNamespace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12L\n\x06labels\x18\x02 \x03(\x0b\x32\x37.google.cloud.servicedirectory.v1.Namespace.LabelsEntryB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x05 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:n\xea\x41k\n)servicedirectory.googleapis.com/Namespace\x12>projects/{project}/locations/{location}/namespaces/{namespace}B\xf9\x01\n$com.google.cloud.servicedirectory.v1B\x0eNamespaceProtoP\x01ZPcloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02 Google.Cloud.ServiceDirectory.V1\xca\x02 Google\\Cloud\\ServiceDirectory\\V1\xea\x02#Google::Cloud::ServiceDirectory::V1b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -47,7 +47,7 @@ module Google
|
|
47
47
|
self.unmarshal_class_method = :decode
|
48
48
|
self.service_name = 'google.cloud.servicedirectory.v1.RegistrationService'
|
49
49
|
|
50
|
-
# Creates a namespace, and returns the new
|
50
|
+
# Creates a namespace, and returns the new namespace.
|
51
51
|
rpc :CreateNamespace, ::Google::Cloud::ServiceDirectory::V1::CreateNamespaceRequest, ::Google::Cloud::ServiceDirectory::V1::Namespace
|
52
52
|
# Lists all namespaces.
|
53
53
|
rpc :ListNamespaces, ::Google::Cloud::ServiceDirectory::V1::ListNamespacesRequest, ::Google::Cloud::ServiceDirectory::V1::ListNamespacesResponse
|
@@ -58,7 +58,7 @@ module Google
|
|
58
58
|
# Deletes a namespace. This also deletes all services and endpoints in
|
59
59
|
# the namespace.
|
60
60
|
rpc :DeleteNamespace, ::Google::Cloud::ServiceDirectory::V1::DeleteNamespaceRequest, ::Google::Protobuf::Empty
|
61
|
-
# Creates a service, and returns the new
|
61
|
+
# Creates a service, and returns the new service.
|
62
62
|
rpc :CreateService, ::Google::Cloud::ServiceDirectory::V1::CreateServiceRequest, ::Google::Cloud::ServiceDirectory::V1::Service
|
63
63
|
# Lists all services belonging to a namespace.
|
64
64
|
rpc :ListServices, ::Google::Cloud::ServiceDirectory::V1::ListServicesRequest, ::Google::Cloud::ServiceDirectory::V1::ListServicesResponse
|
@@ -69,15 +69,15 @@ module Google
|
|
69
69
|
# Deletes a service. This also deletes all endpoints associated with
|
70
70
|
# the service.
|
71
71
|
rpc :DeleteService, ::Google::Cloud::ServiceDirectory::V1::DeleteServiceRequest, ::Google::Protobuf::Empty
|
72
|
-
# Creates
|
72
|
+
# Creates an endpoint, and returns the new endpoint.
|
73
73
|
rpc :CreateEndpoint, ::Google::Cloud::ServiceDirectory::V1::CreateEndpointRequest, ::Google::Cloud::ServiceDirectory::V1::Endpoint
|
74
74
|
# Lists all endpoints.
|
75
75
|
rpc :ListEndpoints, ::Google::Cloud::ServiceDirectory::V1::ListEndpointsRequest, ::Google::Cloud::ServiceDirectory::V1::ListEndpointsResponse
|
76
|
-
# Gets
|
76
|
+
# Gets an endpoint.
|
77
77
|
rpc :GetEndpoint, ::Google::Cloud::ServiceDirectory::V1::GetEndpointRequest, ::Google::Cloud::ServiceDirectory::V1::Endpoint
|
78
|
-
# Updates
|
78
|
+
# Updates an endpoint.
|
79
79
|
rpc :UpdateEndpoint, ::Google::Cloud::ServiceDirectory::V1::UpdateEndpointRequest, ::Google::Cloud::ServiceDirectory::V1::Endpoint
|
80
|
-
# Deletes
|
80
|
+
# Deletes an endpoint.
|
81
81
|
rpc :DeleteEndpoint, ::Google::Cloud::ServiceDirectory::V1::DeleteEndpointRequest, ::Google::Protobuf::Empty
|
82
82
|
# Gets the IAM Policy for a resource (namespace or service only).
|
83
83
|
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/servicedirectory/v1/endpoint_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n.google/cloud/servicedirectory/v1/service.proto\x12 google.cloud.servicedirectory.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/servicedirectory/v1/endpoint.proto\"\
|
12
|
+
descriptor_data = "\n.google/cloud/servicedirectory/v1/service.proto\x12 google.cloud.servicedirectory.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/servicedirectory/v1/endpoint.proto\"\xfd\x02\n\x07Service\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12T\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32:.google.cloud.servicedirectory.v1.Service.AnnotationsEntryB\x03\xe0\x41\x01\x12\x42\n\tendpoints\x18\x03 \x03(\x0b\x32*.google.cloud.servicedirectory.v1.EndpointB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x07 \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}B\xf7\x01\n$com.google.cloud.servicedirectory.v1B\x0cServiceProtoP\x01ZPcloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02 Google.Cloud.ServiceDirectory.V1\xca\x02 Google\\Cloud\\ServiceDirectory\\V1\xea\x02#Google::Cloud::ServiceDirectory::V1b\x06proto3"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|