google-cloud-service_directory-v1beta1 0.12.0 → 0.13.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/v1beta1/lookup_service/client.rb +10 -1
- data/lib/google/cloud/service_directory/v1beta1/lookup_service/rest/client.rb +16 -0
- data/lib/google/cloud/service_directory/v1beta1/registration_service/client.rb +10 -1
- data/lib/google/cloud/service_directory/v1beta1/registration_service/rest/client.rb +300 -0
- data/lib/google/cloud/service_directory/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29777dcf865afc43e88f92da452a14469d852aa2661861f488d4eac502108588
|
4
|
+
data.tar.gz: 405597213a886c382dd0a9d0a7ceb85080b5413405de0056896a3512c9fd88da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54b3157d0ac2b8f702199f5a541db56eae06c4492bd61a0a9c5a996918398b5f10f97c14ac957643fe0498222fb731c9d38cfe6c19abc6faad6c8f0b8c1ffb2c
|
7
|
+
data.tar.gz: 3a9fa46878d828325792aa6f4340d2f7a86ad6bdff3d1cac030b3e8e978c686384384959036c9834562333950ad136ec64ace5cd0bc13d9b5f3946f2ae401d2f
|
@@ -150,7 +150,8 @@ module Google
|
|
150
150
|
credentials: credentials,
|
151
151
|
endpoint: @config.endpoint,
|
152
152
|
channel_args: @config.channel_args,
|
153
|
-
interceptors: @config.interceptors
|
153
|
+
interceptors: @config.interceptors,
|
154
|
+
channel_pool_config: @config.channel_pool
|
154
155
|
)
|
155
156
|
end
|
156
157
|
|
@@ -410,6 +411,14 @@ module Google
|
|
410
411
|
end
|
411
412
|
end
|
412
413
|
|
414
|
+
##
|
415
|
+
# Configuration for the channel pool
|
416
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
417
|
+
#
|
418
|
+
def channel_pool
|
419
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
420
|
+
end
|
421
|
+
|
413
422
|
##
|
414
423
|
# Configuration RPC class for the LookupService API.
|
415
424
|
#
|
@@ -225,6 +225,22 @@ module Google
|
|
225
225
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
|
226
226
|
#
|
227
227
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
228
|
+
#
|
229
|
+
# @example Basic example
|
230
|
+
# require "google/cloud/service_directory/v1beta1"
|
231
|
+
#
|
232
|
+
# # Create a client object. The client can be reused for multiple calls.
|
233
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Rest::Client.new
|
234
|
+
#
|
235
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
236
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest.new
|
237
|
+
#
|
238
|
+
# # Call the resolve_service method.
|
239
|
+
# result = client.resolve_service request
|
240
|
+
#
|
241
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse.
|
242
|
+
# p result
|
243
|
+
#
|
228
244
|
def resolve_service request, options = nil
|
229
245
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
230
246
|
|
@@ -164,7 +164,8 @@ module Google
|
|
164
164
|
credentials: credentials,
|
165
165
|
endpoint: @config.endpoint,
|
166
166
|
channel_args: @config.channel_args,
|
167
|
-
interceptors: @config.interceptors
|
167
|
+
interceptors: @config.interceptors,
|
168
|
+
channel_pool_config: @config.channel_pool
|
168
169
|
)
|
169
170
|
end
|
170
171
|
|
@@ -2055,6 +2056,14 @@ module Google
|
|
2055
2056
|
end
|
2056
2057
|
end
|
2057
2058
|
|
2059
|
+
##
|
2060
|
+
# Configuration for the channel pool
|
2061
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2062
|
+
#
|
2063
|
+
def channel_pool
|
2064
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2065
|
+
end
|
2066
|
+
|
2058
2067
|
##
|
2059
2068
|
# Configuration RPC class for the RegistrationService API.
|
2060
2069
|
#
|
@@ -207,6 +207,22 @@ module Google
|
|
207
207
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/service_directory/v1beta1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest.new
|
219
|
+
#
|
220
|
+
# # Call the create_namespace method.
|
221
|
+
# result = client.create_namespace request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
224
|
+
# p result
|
225
|
+
#
|
210
226
|
def create_namespace request, options = nil
|
211
227
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
228
|
|
@@ -317,6 +333,26 @@ module Google
|
|
317
333
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Namespace>]
|
318
334
|
#
|
319
335
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
336
|
+
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/cloud/service_directory/v1beta1"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest.new
|
345
|
+
#
|
346
|
+
# # Call the list_namespaces method.
|
347
|
+
# result = client.list_namespaces request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
350
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
351
|
+
# result.each do |item|
|
352
|
+
# # Each element is of type ::Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
353
|
+
# p item
|
354
|
+
# end
|
355
|
+
#
|
320
356
|
def list_namespaces request, options = nil
|
321
357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
322
358
|
|
@@ -380,6 +416,22 @@ module Google
|
|
380
416
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
|
381
417
|
#
|
382
418
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
419
|
+
#
|
420
|
+
# @example Basic example
|
421
|
+
# require "google/cloud/service_directory/v1beta1"
|
422
|
+
#
|
423
|
+
# # Create a client object. The client can be reused for multiple calls.
|
424
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
425
|
+
#
|
426
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
427
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest.new
|
428
|
+
#
|
429
|
+
# # Call the get_namespace method.
|
430
|
+
# result = client.get_namespace request
|
431
|
+
#
|
432
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
433
|
+
# p result
|
434
|
+
#
|
383
435
|
def get_namespace request, options = nil
|
384
436
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
385
437
|
|
@@ -444,6 +496,22 @@ module Google
|
|
444
496
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
|
445
497
|
#
|
446
498
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
499
|
+
#
|
500
|
+
# @example Basic example
|
501
|
+
# require "google/cloud/service_directory/v1beta1"
|
502
|
+
#
|
503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
504
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
505
|
+
#
|
506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
507
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest.new
|
508
|
+
#
|
509
|
+
# # Call the update_namespace method.
|
510
|
+
# result = client.update_namespace request
|
511
|
+
#
|
512
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
513
|
+
# p result
|
514
|
+
#
|
447
515
|
def update_namespace request, options = nil
|
448
516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
517
|
|
@@ -507,6 +575,22 @@ module Google
|
|
507
575
|
# @return [::Google::Protobuf::Empty]
|
508
576
|
#
|
509
577
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
578
|
+
#
|
579
|
+
# @example Basic example
|
580
|
+
# require "google/cloud/service_directory/v1beta1"
|
581
|
+
#
|
582
|
+
# # Create a client object. The client can be reused for multiple calls.
|
583
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
584
|
+
#
|
585
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
586
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest.new
|
587
|
+
#
|
588
|
+
# # Call the delete_namespace method.
|
589
|
+
# result = client.delete_namespace request
|
590
|
+
#
|
591
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
592
|
+
# p result
|
593
|
+
#
|
510
594
|
def delete_namespace request, options = nil
|
511
595
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
512
596
|
|
@@ -579,6 +663,22 @@ module Google
|
|
579
663
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Service]
|
580
664
|
#
|
581
665
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
666
|
+
#
|
667
|
+
# @example Basic example
|
668
|
+
# require "google/cloud/service_directory/v1beta1"
|
669
|
+
#
|
670
|
+
# # Create a client object. The client can be reused for multiple calls.
|
671
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
672
|
+
#
|
673
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
674
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest.new
|
675
|
+
#
|
676
|
+
# # Call the create_service method.
|
677
|
+
# result = client.create_service request
|
678
|
+
#
|
679
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Service.
|
680
|
+
# p result
|
681
|
+
#
|
582
682
|
def create_service request, options = nil
|
583
683
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
584
684
|
|
@@ -692,6 +792,26 @@ module Google
|
|
692
792
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Service>]
|
693
793
|
#
|
694
794
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
795
|
+
#
|
796
|
+
# @example Basic example
|
797
|
+
# require "google/cloud/service_directory/v1beta1"
|
798
|
+
#
|
799
|
+
# # Create a client object. The client can be reused for multiple calls.
|
800
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
801
|
+
#
|
802
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
803
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest.new
|
804
|
+
#
|
805
|
+
# # Call the list_services method.
|
806
|
+
# result = client.list_services request
|
807
|
+
#
|
808
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
809
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
810
|
+
# result.each do |item|
|
811
|
+
# # Each element is of type ::Google::Cloud::ServiceDirectory::V1beta1::Service.
|
812
|
+
# p item
|
813
|
+
# end
|
814
|
+
#
|
695
815
|
def list_services request, options = nil
|
696
816
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
697
817
|
|
@@ -755,6 +875,22 @@ module Google
|
|
755
875
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Service]
|
756
876
|
#
|
757
877
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
878
|
+
#
|
879
|
+
# @example Basic example
|
880
|
+
# require "google/cloud/service_directory/v1beta1"
|
881
|
+
#
|
882
|
+
# # Create a client object. The client can be reused for multiple calls.
|
883
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
884
|
+
#
|
885
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
886
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest.new
|
887
|
+
#
|
888
|
+
# # Call the get_service method.
|
889
|
+
# result = client.get_service request
|
890
|
+
#
|
891
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Service.
|
892
|
+
# p result
|
893
|
+
#
|
758
894
|
def get_service request, options = nil
|
759
895
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
760
896
|
|
@@ -819,6 +955,22 @@ module Google
|
|
819
955
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Service]
|
820
956
|
#
|
821
957
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
958
|
+
#
|
959
|
+
# @example Basic example
|
960
|
+
# require "google/cloud/service_directory/v1beta1"
|
961
|
+
#
|
962
|
+
# # Create a client object. The client can be reused for multiple calls.
|
963
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
964
|
+
#
|
965
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
966
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest.new
|
967
|
+
#
|
968
|
+
# # Call the update_service method.
|
969
|
+
# result = client.update_service request
|
970
|
+
#
|
971
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Service.
|
972
|
+
# p result
|
973
|
+
#
|
822
974
|
def update_service request, options = nil
|
823
975
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
824
976
|
|
@@ -882,6 +1034,22 @@ module Google
|
|
882
1034
|
# @return [::Google::Protobuf::Empty]
|
883
1035
|
#
|
884
1036
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1037
|
+
#
|
1038
|
+
# @example Basic example
|
1039
|
+
# require "google/cloud/service_directory/v1beta1"
|
1040
|
+
#
|
1041
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1042
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1043
|
+
#
|
1044
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1045
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest.new
|
1046
|
+
#
|
1047
|
+
# # Call the delete_service method.
|
1048
|
+
# result = client.delete_service request
|
1049
|
+
#
|
1050
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1051
|
+
# p result
|
1052
|
+
#
|
885
1053
|
def delete_service request, options = nil
|
886
1054
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
887
1055
|
|
@@ -954,6 +1122,22 @@ module Google
|
|
954
1122
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
|
955
1123
|
#
|
956
1124
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1125
|
+
#
|
1126
|
+
# @example Basic example
|
1127
|
+
# require "google/cloud/service_directory/v1beta1"
|
1128
|
+
#
|
1129
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1130
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1131
|
+
#
|
1132
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1133
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest.new
|
1134
|
+
#
|
1135
|
+
# # Call the create_endpoint method.
|
1136
|
+
# result = client.create_endpoint request
|
1137
|
+
#
|
1138
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1139
|
+
# p result
|
1140
|
+
#
|
957
1141
|
def create_endpoint request, options = nil
|
958
1142
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
959
1143
|
|
@@ -1069,6 +1253,26 @@ module Google
|
|
1069
1253
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Endpoint>]
|
1070
1254
|
#
|
1071
1255
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1256
|
+
#
|
1257
|
+
# @example Basic example
|
1258
|
+
# require "google/cloud/service_directory/v1beta1"
|
1259
|
+
#
|
1260
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1261
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1262
|
+
#
|
1263
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1264
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest.new
|
1265
|
+
#
|
1266
|
+
# # Call the list_endpoints method.
|
1267
|
+
# result = client.list_endpoints request
|
1268
|
+
#
|
1269
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1270
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1271
|
+
# result.each do |item|
|
1272
|
+
# # Each element is of type ::Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1273
|
+
# p item
|
1274
|
+
# end
|
1275
|
+
#
|
1072
1276
|
def list_endpoints request, options = nil
|
1073
1277
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1074
1278
|
|
@@ -1132,6 +1336,22 @@ module Google
|
|
1132
1336
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
|
1133
1337
|
#
|
1134
1338
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1339
|
+
#
|
1340
|
+
# @example Basic example
|
1341
|
+
# require "google/cloud/service_directory/v1beta1"
|
1342
|
+
#
|
1343
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1344
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1345
|
+
#
|
1346
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1347
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest.new
|
1348
|
+
#
|
1349
|
+
# # Call the get_endpoint method.
|
1350
|
+
# result = client.get_endpoint request
|
1351
|
+
#
|
1352
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1353
|
+
# p result
|
1354
|
+
#
|
1135
1355
|
def get_endpoint request, options = nil
|
1136
1356
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1137
1357
|
|
@@ -1196,6 +1416,22 @@ module Google
|
|
1196
1416
|
# @return [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
|
1197
1417
|
#
|
1198
1418
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1419
|
+
#
|
1420
|
+
# @example Basic example
|
1421
|
+
# require "google/cloud/service_directory/v1beta1"
|
1422
|
+
#
|
1423
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1424
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1425
|
+
#
|
1426
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1427
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest.new
|
1428
|
+
#
|
1429
|
+
# # Call the update_endpoint method.
|
1430
|
+
# result = client.update_endpoint request
|
1431
|
+
#
|
1432
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1433
|
+
# p result
|
1434
|
+
#
|
1199
1435
|
def update_endpoint request, options = nil
|
1200
1436
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1201
1437
|
|
@@ -1258,6 +1494,22 @@ module Google
|
|
1258
1494
|
# @return [::Google::Protobuf::Empty]
|
1259
1495
|
#
|
1260
1496
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1497
|
+
#
|
1498
|
+
# @example Basic example
|
1499
|
+
# require "google/cloud/service_directory/v1beta1"
|
1500
|
+
#
|
1501
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1502
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1503
|
+
#
|
1504
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1505
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest.new
|
1506
|
+
#
|
1507
|
+
# # Call the delete_endpoint method.
|
1508
|
+
# result = client.delete_endpoint request
|
1509
|
+
#
|
1510
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1511
|
+
# p result
|
1512
|
+
#
|
1261
1513
|
def delete_endpoint request, options = nil
|
1262
1514
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1263
1515
|
|
@@ -1324,6 +1576,22 @@ module Google
|
|
1324
1576
|
# @return [::Google::Iam::V1::Policy]
|
1325
1577
|
#
|
1326
1578
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1579
|
+
#
|
1580
|
+
# @example Basic example
|
1581
|
+
# require "google/cloud/service_directory/v1beta1"
|
1582
|
+
#
|
1583
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1584
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1585
|
+
#
|
1586
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1587
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1588
|
+
#
|
1589
|
+
# # Call the get_iam_policy method.
|
1590
|
+
# result = client.get_iam_policy request
|
1591
|
+
#
|
1592
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1593
|
+
# p result
|
1594
|
+
#
|
1327
1595
|
def get_iam_policy request, options = nil
|
1328
1596
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1329
1597
|
|
@@ -1398,6 +1666,22 @@ module Google
|
|
1398
1666
|
# @return [::Google::Iam::V1::Policy]
|
1399
1667
|
#
|
1400
1668
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1669
|
+
#
|
1670
|
+
# @example Basic example
|
1671
|
+
# require "google/cloud/service_directory/v1beta1"
|
1672
|
+
#
|
1673
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1674
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1675
|
+
#
|
1676
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1677
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1678
|
+
#
|
1679
|
+
# # Call the set_iam_policy method.
|
1680
|
+
# result = client.set_iam_policy request
|
1681
|
+
#
|
1682
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1683
|
+
# p result
|
1684
|
+
#
|
1401
1685
|
def set_iam_policy request, options = nil
|
1402
1686
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1403
1687
|
|
@@ -1467,6 +1751,22 @@ module Google
|
|
1467
1751
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
1468
1752
|
#
|
1469
1753
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1754
|
+
#
|
1755
|
+
# @example Basic example
|
1756
|
+
# require "google/cloud/service_directory/v1beta1"
|
1757
|
+
#
|
1758
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1759
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new
|
1760
|
+
#
|
1761
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1762
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1763
|
+
#
|
1764
|
+
# # Call the test_iam_permissions method.
|
1765
|
+
# result = client.test_iam_permissions request
|
1766
|
+
#
|
1767
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1768
|
+
# p result
|
1769
|
+
#
|
1470
1770
|
def test_iam_permissions request, options = nil
|
1471
1771
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1472
1772
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -40,6 +40,7 @@ module Google
|
|
40
40
|
#
|
41
41
|
# **JSON example:**
|
42
42
|
#
|
43
|
+
# ```
|
43
44
|
# {
|
44
45
|
# "bindings": [
|
45
46
|
# {
|
@@ -67,9 +68,11 @@ module Google
|
|
67
68
|
# "etag": "BwWWja0YfJA=",
|
68
69
|
# "version": 3
|
69
70
|
# }
|
71
|
+
# ```
|
70
72
|
#
|
71
73
|
# **YAML example:**
|
72
74
|
#
|
75
|
+
# ```
|
73
76
|
# bindings:
|
74
77
|
# - members:
|
75
78
|
# - user:mike@example.com
|
@@ -86,6 +89,7 @@ module Google
|
|
86
89
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
87
90
|
# etag: BwWWja0YfJA=
|
88
91
|
# version: 3
|
92
|
+
# ```
|
89
93
|
#
|
90
94
|
# For a description of IAM and its features, see the
|
91
95
|
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
@@ -157,7 +161,7 @@ module Google
|
|
157
161
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
158
162
|
# @!attribute [rw] members
|
159
163
|
# @return [::Array<::String>]
|
160
|
-
# Specifies the principals requesting access for a Cloud
|
164
|
+
# Specifies the principals requesting access for a Google Cloud resource.
|
161
165
|
# `members` can have the following values:
|
162
166
|
#
|
163
167
|
# * `allUsers`: A special identifier that represents anyone who is
|
@@ -267,8 +271,8 @@ module Google
|
|
267
271
|
# }
|
268
272
|
#
|
269
273
|
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
270
|
-
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
271
|
-
# aliya@example.com from DATA_WRITE logging.
|
274
|
+
# logging. It also exempts `jose@example.com` from DATA_READ logging, and
|
275
|
+
# `aliya@example.com` from DATA_WRITE logging.
|
272
276
|
# @!attribute [rw] service
|
273
277
|
# @return [::String]
|
274
278
|
# Specifies a service that will be enabled for audit logging.
|
@@ -356,7 +360,7 @@ module Google
|
|
356
360
|
# Required
|
357
361
|
# @!attribute [rw] member
|
358
362
|
# @return [::String]
|
359
|
-
# A single identity requesting access for a Cloud
|
363
|
+
# A single identity requesting access for a Google Cloud resource.
|
360
364
|
# Follows the same format of Binding.members.
|
361
365
|
# Required
|
362
366
|
# @!attribute [rw] condition
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-service_directory-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
- !ruby/object:Gem::Version
|
268
268
|
version: '0'
|
269
269
|
requirements: []
|
270
|
-
rubygems_version: 3.4.
|
270
|
+
rubygems_version: 3.4.19
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: Service Directory is a platform for discovering, publishing, and connecting
|