google-cloud-service_directory-v1beta1 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/service_directory/v1beta1/lookup_service/client.rb +20 -3
- data/lib/google/cloud/service_directory/v1beta1/registration_service/client.rb +378 -54
- data/lib/google/cloud/service_directory/v1beta1/version.rb +1 -1
- data/lib/google/cloud/servicedirectory/v1beta1/endpoint_pb.rb +2 -2
- data/lib/google/cloud/servicedirectory/v1beta1/lookup_service_pb.rb +2 -2
- data/lib/google/cloud/servicedirectory/v1beta1/lookup_service_services_pb.rb +1 -1
- data/lib/google/cloud/servicedirectory/v1beta1/namespace_pb.rb +2 -2
- data/lib/google/cloud/servicedirectory/v1beta1/registration_service_pb.rb +2 -2
- data/lib/google/cloud/servicedirectory/v1beta1/registration_service_services_pb.rb +1 -1
- data/lib/google/cloud/servicedirectory/v1beta1/service_pb.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eac0c2365f3c8d6b9a6691cd8bdabd6a4b4a2e6aad75d1f1d98a96d6615ab1b
|
4
|
+
data.tar.gz: '05578cc0a724647a4ad277443866feb7c84b17bc2fda23b6e0b2bec23b1fc534'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f52d38f85da3dcaadcdc8ea2ae3d33ba286c7c43f61905fb12e8c06bee5c61a5035ea37c5b585ec7acd133886bd7463b0c448739d0de2ee96ff5f699757ce58b
|
7
|
+
data.tar.gz: 794012b3c88649af6302406427539336af401fcf0ab4f838e285966c0ac2f74d07857dfb24f5993a20d95361ab48410cc2ccf56285ae8ee5ad37bbcdca0a9fd4
|
@@ -218,6 +218,21 @@ module Google
|
|
218
218
|
#
|
219
219
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
220
220
|
#
|
221
|
+
# @example Basic example
|
222
|
+
# require "google/cloud/service_directory/v1beta1"
|
223
|
+
#
|
224
|
+
# # Create a client object. The client can be reused for multiple calls.
|
225
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
|
226
|
+
#
|
227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
228
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest.new
|
229
|
+
#
|
230
|
+
# # Call the resolve_service method.
|
231
|
+
# result = client.resolve_service request
|
232
|
+
#
|
233
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse.
|
234
|
+
# p result
|
235
|
+
#
|
221
236
|
def resolve_service request, options = nil
|
222
237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
223
238
|
|
@@ -235,9 +250,11 @@ module Google
|
|
235
250
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
236
251
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
237
252
|
|
238
|
-
header_params = {
|
239
|
-
|
240
|
-
|
253
|
+
header_params = {}
|
254
|
+
if request.name
|
255
|
+
header_params["name"] = request.name
|
256
|
+
end
|
257
|
+
|
241
258
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
242
259
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
243
260
|
|
@@ -203,6 +203,21 @@ module Google
|
|
203
203
|
#
|
204
204
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
205
205
|
#
|
206
|
+
# @example Basic example
|
207
|
+
# require "google/cloud/service_directory/v1beta1"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest.new
|
214
|
+
#
|
215
|
+
# # Call the create_namespace method.
|
216
|
+
# result = client.create_namespace request
|
217
|
+
#
|
218
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
219
|
+
# p result
|
220
|
+
#
|
206
221
|
def create_namespace request, options = nil
|
207
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
208
223
|
|
@@ -220,9 +235,11 @@ module Google
|
|
220
235
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
221
236
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
222
237
|
|
223
|
-
header_params = {
|
224
|
-
|
225
|
-
|
238
|
+
header_params = {}
|
239
|
+
if request.parent
|
240
|
+
header_params["parent"] = request.parent
|
241
|
+
end
|
242
|
+
|
226
243
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
227
244
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
228
245
|
|
@@ -315,6 +332,27 @@ module Google
|
|
315
332
|
#
|
316
333
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
317
334
|
#
|
335
|
+
# @example Basic example
|
336
|
+
# require "google/cloud/service_directory/v1beta1"
|
337
|
+
#
|
338
|
+
# # Create a client object. The client can be reused for multiple calls.
|
339
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
340
|
+
#
|
341
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
342
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest.new
|
343
|
+
#
|
344
|
+
# # Call the list_namespaces method.
|
345
|
+
# result = client.list_namespaces request
|
346
|
+
#
|
347
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
348
|
+
# # iterate over all elements by calling #each, and the enumerable
|
349
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
350
|
+
# # methods are also available for managing paging directly.
|
351
|
+
# result.each do |response|
|
352
|
+
# # Each element is of type ::Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
353
|
+
# p response
|
354
|
+
# end
|
355
|
+
#
|
318
356
|
def list_namespaces request, options = nil
|
319
357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
320
358
|
|
@@ -332,9 +370,11 @@ module Google
|
|
332
370
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
333
371
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
334
372
|
|
335
|
-
header_params = {
|
336
|
-
|
337
|
-
|
373
|
+
header_params = {}
|
374
|
+
if request.parent
|
375
|
+
header_params["parent"] = request.parent
|
376
|
+
end
|
377
|
+
|
338
378
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
339
379
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
340
380
|
|
@@ -384,6 +424,21 @@ module Google
|
|
384
424
|
#
|
385
425
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
386
426
|
#
|
427
|
+
# @example Basic example
|
428
|
+
# require "google/cloud/service_directory/v1beta1"
|
429
|
+
#
|
430
|
+
# # Create a client object. The client can be reused for multiple calls.
|
431
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
432
|
+
#
|
433
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
434
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest.new
|
435
|
+
#
|
436
|
+
# # Call the get_namespace method.
|
437
|
+
# result = client.get_namespace request
|
438
|
+
#
|
439
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
440
|
+
# p result
|
441
|
+
#
|
387
442
|
def get_namespace request, options = nil
|
388
443
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
389
444
|
|
@@ -401,9 +456,11 @@ module Google
|
|
401
456
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
402
457
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
403
458
|
|
404
|
-
header_params = {
|
405
|
-
|
406
|
-
|
459
|
+
header_params = {}
|
460
|
+
if request.name
|
461
|
+
header_params["name"] = request.name
|
462
|
+
end
|
463
|
+
|
407
464
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
408
465
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
409
466
|
|
@@ -454,6 +511,21 @@ module Google
|
|
454
511
|
#
|
455
512
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
456
513
|
#
|
514
|
+
# @example Basic example
|
515
|
+
# require "google/cloud/service_directory/v1beta1"
|
516
|
+
#
|
517
|
+
# # Create a client object. The client can be reused for multiple calls.
|
518
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
519
|
+
#
|
520
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
521
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest.new
|
522
|
+
#
|
523
|
+
# # Call the update_namespace method.
|
524
|
+
# result = client.update_namespace request
|
525
|
+
#
|
526
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Namespace.
|
527
|
+
# p result
|
528
|
+
#
|
457
529
|
def update_namespace request, options = nil
|
458
530
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
459
531
|
|
@@ -471,9 +543,11 @@ module Google
|
|
471
543
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
472
544
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
473
545
|
|
474
|
-
header_params = {
|
475
|
-
|
476
|
-
|
546
|
+
header_params = {}
|
547
|
+
if request.namespace&.name
|
548
|
+
header_params["namespace.name"] = request.namespace.name
|
549
|
+
end
|
550
|
+
|
477
551
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
478
552
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
479
553
|
|
@@ -523,6 +597,21 @@ module Google
|
|
523
597
|
#
|
524
598
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
525
599
|
#
|
600
|
+
# @example Basic example
|
601
|
+
# require "google/cloud/service_directory/v1beta1"
|
602
|
+
#
|
603
|
+
# # Create a client object. The client can be reused for multiple calls.
|
604
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
605
|
+
#
|
606
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
607
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest.new
|
608
|
+
#
|
609
|
+
# # Call the delete_namespace method.
|
610
|
+
# result = client.delete_namespace request
|
611
|
+
#
|
612
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
613
|
+
# p result
|
614
|
+
#
|
526
615
|
def delete_namespace request, options = nil
|
527
616
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
528
617
|
|
@@ -540,9 +629,11 @@ module Google
|
|
540
629
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
541
630
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
542
631
|
|
543
|
-
header_params = {
|
544
|
-
|
545
|
-
|
632
|
+
header_params = {}
|
633
|
+
if request.name
|
634
|
+
header_params["name"] = request.name
|
635
|
+
end
|
636
|
+
|
546
637
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
547
638
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
548
639
|
|
@@ -601,6 +692,21 @@ module Google
|
|
601
692
|
#
|
602
693
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
603
694
|
#
|
695
|
+
# @example Basic example
|
696
|
+
# require "google/cloud/service_directory/v1beta1"
|
697
|
+
#
|
698
|
+
# # Create a client object. The client can be reused for multiple calls.
|
699
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
700
|
+
#
|
701
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
702
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest.new
|
703
|
+
#
|
704
|
+
# # Call the create_service method.
|
705
|
+
# result = client.create_service request
|
706
|
+
#
|
707
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Service.
|
708
|
+
# p result
|
709
|
+
#
|
604
710
|
def create_service request, options = nil
|
605
711
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
606
712
|
|
@@ -618,9 +724,11 @@ module Google
|
|
618
724
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
619
725
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
620
726
|
|
621
|
-
header_params = {
|
622
|
-
|
623
|
-
|
727
|
+
header_params = {}
|
728
|
+
if request.parent
|
729
|
+
header_params["parent"] = request.parent
|
730
|
+
end
|
731
|
+
|
624
732
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
625
733
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
626
734
|
|
@@ -717,6 +825,27 @@ module Google
|
|
717
825
|
#
|
718
826
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
719
827
|
#
|
828
|
+
# @example Basic example
|
829
|
+
# require "google/cloud/service_directory/v1beta1"
|
830
|
+
#
|
831
|
+
# # Create a client object. The client can be reused for multiple calls.
|
832
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
833
|
+
#
|
834
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
835
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest.new
|
836
|
+
#
|
837
|
+
# # Call the list_services method.
|
838
|
+
# result = client.list_services request
|
839
|
+
#
|
840
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
841
|
+
# # iterate over all elements by calling #each, and the enumerable
|
842
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
843
|
+
# # methods are also available for managing paging directly.
|
844
|
+
# result.each do |response|
|
845
|
+
# # Each element is of type ::Google::Cloud::ServiceDirectory::V1beta1::Service.
|
846
|
+
# p response
|
847
|
+
# end
|
848
|
+
#
|
720
849
|
def list_services request, options = nil
|
721
850
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
722
851
|
|
@@ -734,9 +863,11 @@ module Google
|
|
734
863
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
735
864
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
736
865
|
|
737
|
-
header_params = {
|
738
|
-
|
739
|
-
|
866
|
+
header_params = {}
|
867
|
+
if request.parent
|
868
|
+
header_params["parent"] = request.parent
|
869
|
+
end
|
870
|
+
|
740
871
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
741
872
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
742
873
|
|
@@ -786,6 +917,21 @@ module Google
|
|
786
917
|
#
|
787
918
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
788
919
|
#
|
920
|
+
# @example Basic example
|
921
|
+
# require "google/cloud/service_directory/v1beta1"
|
922
|
+
#
|
923
|
+
# # Create a client object. The client can be reused for multiple calls.
|
924
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
925
|
+
#
|
926
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
927
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest.new
|
928
|
+
#
|
929
|
+
# # Call the get_service method.
|
930
|
+
# result = client.get_service request
|
931
|
+
#
|
932
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Service.
|
933
|
+
# p result
|
934
|
+
#
|
789
935
|
def get_service request, options = nil
|
790
936
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
791
937
|
|
@@ -803,9 +949,11 @@ module Google
|
|
803
949
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
804
950
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
805
951
|
|
806
|
-
header_params = {
|
807
|
-
|
808
|
-
|
952
|
+
header_params = {}
|
953
|
+
if request.name
|
954
|
+
header_params["name"] = request.name
|
955
|
+
end
|
956
|
+
|
809
957
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
810
958
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
811
959
|
|
@@ -856,6 +1004,21 @@ module Google
|
|
856
1004
|
#
|
857
1005
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
858
1006
|
#
|
1007
|
+
# @example Basic example
|
1008
|
+
# require "google/cloud/service_directory/v1beta1"
|
1009
|
+
#
|
1010
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1011
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1012
|
+
#
|
1013
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1014
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest.new
|
1015
|
+
#
|
1016
|
+
# # Call the update_service method.
|
1017
|
+
# result = client.update_service request
|
1018
|
+
#
|
1019
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Service.
|
1020
|
+
# p result
|
1021
|
+
#
|
859
1022
|
def update_service request, options = nil
|
860
1023
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
861
1024
|
|
@@ -873,9 +1036,11 @@ module Google
|
|
873
1036
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
874
1037
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
875
1038
|
|
876
|
-
header_params = {
|
877
|
-
|
878
|
-
|
1039
|
+
header_params = {}
|
1040
|
+
if request.service&.name
|
1041
|
+
header_params["service.name"] = request.service.name
|
1042
|
+
end
|
1043
|
+
|
879
1044
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
880
1045
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
881
1046
|
|
@@ -925,6 +1090,21 @@ module Google
|
|
925
1090
|
#
|
926
1091
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
927
1092
|
#
|
1093
|
+
# @example Basic example
|
1094
|
+
# require "google/cloud/service_directory/v1beta1"
|
1095
|
+
#
|
1096
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1097
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1098
|
+
#
|
1099
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1100
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest.new
|
1101
|
+
#
|
1102
|
+
# # Call the delete_service method.
|
1103
|
+
# result = client.delete_service request
|
1104
|
+
#
|
1105
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1106
|
+
# p result
|
1107
|
+
#
|
928
1108
|
def delete_service request, options = nil
|
929
1109
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
930
1110
|
|
@@ -942,9 +1122,11 @@ module Google
|
|
942
1122
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
943
1123
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
944
1124
|
|
945
|
-
header_params = {
|
946
|
-
|
947
|
-
|
1125
|
+
header_params = {}
|
1126
|
+
if request.name
|
1127
|
+
header_params["name"] = request.name
|
1128
|
+
end
|
1129
|
+
|
948
1130
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
949
1131
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
950
1132
|
|
@@ -1003,6 +1185,21 @@ module Google
|
|
1003
1185
|
#
|
1004
1186
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1005
1187
|
#
|
1188
|
+
# @example Basic example
|
1189
|
+
# require "google/cloud/service_directory/v1beta1"
|
1190
|
+
#
|
1191
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1192
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1193
|
+
#
|
1194
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1195
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest.new
|
1196
|
+
#
|
1197
|
+
# # Call the create_endpoint method.
|
1198
|
+
# result = client.create_endpoint request
|
1199
|
+
#
|
1200
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1201
|
+
# p result
|
1202
|
+
#
|
1006
1203
|
def create_endpoint request, options = nil
|
1007
1204
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1008
1205
|
|
@@ -1020,9 +1217,11 @@ module Google
|
|
1020
1217
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1021
1218
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1022
1219
|
|
1023
|
-
header_params = {
|
1024
|
-
|
1025
|
-
|
1220
|
+
header_params = {}
|
1221
|
+
if request.parent
|
1222
|
+
header_params["parent"] = request.parent
|
1223
|
+
end
|
1224
|
+
|
1026
1225
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1027
1226
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1028
1227
|
|
@@ -1122,6 +1321,27 @@ module Google
|
|
1122
1321
|
#
|
1123
1322
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1124
1323
|
#
|
1324
|
+
# @example Basic example
|
1325
|
+
# require "google/cloud/service_directory/v1beta1"
|
1326
|
+
#
|
1327
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1328
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1329
|
+
#
|
1330
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1331
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest.new
|
1332
|
+
#
|
1333
|
+
# # Call the list_endpoints method.
|
1334
|
+
# result = client.list_endpoints request
|
1335
|
+
#
|
1336
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1337
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1338
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1339
|
+
# # methods are also available for managing paging directly.
|
1340
|
+
# result.each do |response|
|
1341
|
+
# # Each element is of type ::Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1342
|
+
# p response
|
1343
|
+
# end
|
1344
|
+
#
|
1125
1345
|
def list_endpoints request, options = nil
|
1126
1346
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1127
1347
|
|
@@ -1139,9 +1359,11 @@ module Google
|
|
1139
1359
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1140
1360
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1141
1361
|
|
1142
|
-
header_params = {
|
1143
|
-
|
1144
|
-
|
1362
|
+
header_params = {}
|
1363
|
+
if request.parent
|
1364
|
+
header_params["parent"] = request.parent
|
1365
|
+
end
|
1366
|
+
|
1145
1367
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1146
1368
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1147
1369
|
|
@@ -1191,6 +1413,21 @@ module Google
|
|
1191
1413
|
#
|
1192
1414
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1193
1415
|
#
|
1416
|
+
# @example Basic example
|
1417
|
+
# require "google/cloud/service_directory/v1beta1"
|
1418
|
+
#
|
1419
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1420
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1421
|
+
#
|
1422
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1423
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest.new
|
1424
|
+
#
|
1425
|
+
# # Call the get_endpoint method.
|
1426
|
+
# result = client.get_endpoint request
|
1427
|
+
#
|
1428
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1429
|
+
# p result
|
1430
|
+
#
|
1194
1431
|
def get_endpoint request, options = nil
|
1195
1432
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1196
1433
|
|
@@ -1208,9 +1445,11 @@ module Google
|
|
1208
1445
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1209
1446
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1210
1447
|
|
1211
|
-
header_params = {
|
1212
|
-
|
1213
|
-
|
1448
|
+
header_params = {}
|
1449
|
+
if request.name
|
1450
|
+
header_params["name"] = request.name
|
1451
|
+
end
|
1452
|
+
|
1214
1453
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1215
1454
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1216
1455
|
|
@@ -1261,6 +1500,21 @@ module Google
|
|
1261
1500
|
#
|
1262
1501
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1263
1502
|
#
|
1503
|
+
# @example Basic example
|
1504
|
+
# require "google/cloud/service_directory/v1beta1"
|
1505
|
+
#
|
1506
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1507
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1508
|
+
#
|
1509
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1510
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest.new
|
1511
|
+
#
|
1512
|
+
# # Call the update_endpoint method.
|
1513
|
+
# result = client.update_endpoint request
|
1514
|
+
#
|
1515
|
+
# # The returned object is of type Google::Cloud::ServiceDirectory::V1beta1::Endpoint.
|
1516
|
+
# p result
|
1517
|
+
#
|
1264
1518
|
def update_endpoint request, options = nil
|
1265
1519
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1266
1520
|
|
@@ -1278,9 +1532,11 @@ module Google
|
|
1278
1532
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1279
1533
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1280
1534
|
|
1281
|
-
header_params = {
|
1282
|
-
|
1283
|
-
|
1535
|
+
header_params = {}
|
1536
|
+
if request.endpoint&.name
|
1537
|
+
header_params["endpoint.name"] = request.endpoint.name
|
1538
|
+
end
|
1539
|
+
|
1284
1540
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1285
1541
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1286
1542
|
|
@@ -1329,6 +1585,21 @@ module Google
|
|
1329
1585
|
#
|
1330
1586
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1331
1587
|
#
|
1588
|
+
# @example Basic example
|
1589
|
+
# require "google/cloud/service_directory/v1beta1"
|
1590
|
+
#
|
1591
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1592
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1593
|
+
#
|
1594
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1595
|
+
# request = Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest.new
|
1596
|
+
#
|
1597
|
+
# # Call the delete_endpoint method.
|
1598
|
+
# result = client.delete_endpoint request
|
1599
|
+
#
|
1600
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1601
|
+
# p result
|
1602
|
+
#
|
1332
1603
|
def delete_endpoint request, options = nil
|
1333
1604
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1334
1605
|
|
@@ -1346,9 +1617,11 @@ module Google
|
|
1346
1617
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1347
1618
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1348
1619
|
|
1349
|
-
header_params = {
|
1350
|
-
|
1351
|
-
|
1620
|
+
header_params = {}
|
1621
|
+
if request.name
|
1622
|
+
header_params["name"] = request.name
|
1623
|
+
end
|
1624
|
+
|
1352
1625
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1353
1626
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1354
1627
|
|
@@ -1401,6 +1674,21 @@ module Google
|
|
1401
1674
|
#
|
1402
1675
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1403
1676
|
#
|
1677
|
+
# @example Basic example
|
1678
|
+
# require "google/cloud/service_directory/v1beta1"
|
1679
|
+
#
|
1680
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1681
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1682
|
+
#
|
1683
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1684
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1685
|
+
#
|
1686
|
+
# # Call the get_iam_policy method.
|
1687
|
+
# result = client.get_iam_policy request
|
1688
|
+
#
|
1689
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1690
|
+
# p result
|
1691
|
+
#
|
1404
1692
|
def get_iam_policy request, options = nil
|
1405
1693
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1406
1694
|
|
@@ -1418,9 +1706,11 @@ module Google
|
|
1418
1706
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1419
1707
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1420
1708
|
|
1421
|
-
header_params = {
|
1422
|
-
|
1423
|
-
|
1709
|
+
header_params = {}
|
1710
|
+
if request.resource
|
1711
|
+
header_params["resource"] = request.resource
|
1712
|
+
end
|
1713
|
+
|
1424
1714
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1425
1715
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1426
1716
|
|
@@ -1475,6 +1765,21 @@ module Google
|
|
1475
1765
|
#
|
1476
1766
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1477
1767
|
#
|
1768
|
+
# @example Basic example
|
1769
|
+
# require "google/cloud/service_directory/v1beta1"
|
1770
|
+
#
|
1771
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1772
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1773
|
+
#
|
1774
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1775
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1776
|
+
#
|
1777
|
+
# # Call the set_iam_policy method.
|
1778
|
+
# result = client.set_iam_policy request
|
1779
|
+
#
|
1780
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1781
|
+
# p result
|
1782
|
+
#
|
1478
1783
|
def set_iam_policy request, options = nil
|
1479
1784
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1480
1785
|
|
@@ -1492,9 +1797,11 @@ module Google
|
|
1492
1797
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1493
1798
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1494
1799
|
|
1495
|
-
header_params = {
|
1496
|
-
|
1497
|
-
|
1800
|
+
header_params = {}
|
1801
|
+
if request.resource
|
1802
|
+
header_params["resource"] = request.resource
|
1803
|
+
end
|
1804
|
+
|
1498
1805
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1499
1806
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1500
1807
|
|
@@ -1549,6 +1856,21 @@ module Google
|
|
1549
1856
|
#
|
1550
1857
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1551
1858
|
#
|
1859
|
+
# @example Basic example
|
1860
|
+
# require "google/cloud/service_directory/v1beta1"
|
1861
|
+
#
|
1862
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1863
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1864
|
+
#
|
1865
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1866
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1867
|
+
#
|
1868
|
+
# # Call the test_iam_permissions method.
|
1869
|
+
# result = client.test_iam_permissions request
|
1870
|
+
#
|
1871
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1872
|
+
# p result
|
1873
|
+
#
|
1552
1874
|
def test_iam_permissions request, options = nil
|
1553
1875
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1554
1876
|
|
@@ -1566,9 +1888,11 @@ module Google
|
|
1566
1888
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1567
1889
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1568
1890
|
|
1569
|
-
header_params = {
|
1570
|
-
|
1571
|
-
|
1891
|
+
header_params = {}
|
1892
|
+
if request.resource
|
1893
|
+
header_params["resource"] = request.resource
|
1894
|
+
end
|
1895
|
+
|
1572
1896
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1573
1897
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1574
1898
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/servicedirectory/v1beta1/endpoint.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
9
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/servicedirectory/v1beta1/endpoint.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.servicedirectory.v1beta1.Endpoint" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/servicedirectory/v1beta1/lookup_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/field_behavior_pb'
|
8
6
|
require 'google/api/resource_pb'
|
9
7
|
require 'google/cloud/servicedirectory/v1beta1/service_pb'
|
10
8
|
require 'google/api/client_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/servicedirectory/v1beta1/lookup_service.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.servicedirectory.v1beta1.ResolveServiceRequest" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/servicedirectory/v1beta1/namespace.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
9
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/servicedirectory/v1beta1/namespace.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.servicedirectory.v1beta1.Namespace" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/servicedirectory/v1beta1/registration_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -14,6 +12,8 @@ require 'google/iam/v1/iam_policy_pb'
|
|
14
12
|
require 'google/iam/v1/policy_pb'
|
15
13
|
require 'google/protobuf/empty_pb'
|
16
14
|
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf'
|
16
|
+
|
17
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
18
|
add_file("google/cloud/servicedirectory/v1beta1/registration_service.proto", :syntax => :proto3) do
|
19
19
|
add_message "google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/servicedirectory/v1beta1/service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/servicedirectory/v1beta1/endpoint_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/servicedirectory/v1beta1/service.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.servicedirectory.v1beta1.Service" do
|
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.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|