google-cloud-service_directory-v1beta1 0.7.2 → 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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/service_directory/v1beta1/lookup_service/client.rb +20 -3
- data/lib/google/cloud/service_directory/v1beta1/registration_service/client.rb +386 -56
- data/lib/google/cloud/service_directory/v1beta1/version.rb +1 -1
- data/lib/google/cloud/service_directory/v1beta1.rb +2 -0
- 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
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/iam/v1/iam_policy.rb +8 -1
- data/proto_docs/google/iam/v1/options.rb +14 -4
- data/proto_docs/google/iam/v1/policy.rb +208 -38
- metadata +7 -13
@@ -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
|
|
@@ -1391,7 +1664,7 @@ module Google
|
|
1391
1664
|
# See the operation documentation for the appropriate value for this field.
|
1392
1665
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
1393
1666
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
1394
|
-
# `GetIamPolicy`.
|
1667
|
+
# `GetIamPolicy`.
|
1395
1668
|
#
|
1396
1669
|
# @yield [response, operation] Access the result along with the RPC operation
|
1397
1670
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
@@ -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
|
|
@@ -1453,7 +1743,7 @@ module Google
|
|
1453
1743
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1454
1744
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1455
1745
|
#
|
1456
|
-
# @overload set_iam_policy(resource: nil, policy: nil)
|
1746
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
1457
1747
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
1458
1748
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1459
1749
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1466,6 +1756,12 @@ module Google
|
|
1466
1756
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
1467
1757
|
# valid policy but certain Cloud Platform services (such as Projects)
|
1468
1758
|
# might reject them.
|
1759
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1760
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
1761
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
1762
|
+
# following default mask is used:
|
1763
|
+
#
|
1764
|
+
# `paths: "bindings, etag"`
|
1469
1765
|
#
|
1470
1766
|
# @yield [response, operation] Access the result along with the RPC operation
|
1471
1767
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
@@ -1475,6 +1771,21 @@ module Google
|
|
1475
1771
|
#
|
1476
1772
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1477
1773
|
#
|
1774
|
+
# @example Basic example
|
1775
|
+
# require "google/cloud/service_directory/v1beta1"
|
1776
|
+
#
|
1777
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1778
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1779
|
+
#
|
1780
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1781
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1782
|
+
#
|
1783
|
+
# # Call the set_iam_policy method.
|
1784
|
+
# result = client.set_iam_policy request
|
1785
|
+
#
|
1786
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1787
|
+
# p result
|
1788
|
+
#
|
1478
1789
|
def set_iam_policy request, options = nil
|
1479
1790
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1480
1791
|
|
@@ -1492,9 +1803,11 @@ module Google
|
|
1492
1803
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1493
1804
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1494
1805
|
|
1495
|
-
header_params = {
|
1496
|
-
|
1497
|
-
|
1806
|
+
header_params = {}
|
1807
|
+
if request.resource
|
1808
|
+
header_params["resource"] = request.resource
|
1809
|
+
end
|
1810
|
+
|
1498
1811
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1499
1812
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1500
1813
|
|
@@ -1549,6 +1862,21 @@ module Google
|
|
1549
1862
|
#
|
1550
1863
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1551
1864
|
#
|
1865
|
+
# @example Basic example
|
1866
|
+
# require "google/cloud/service_directory/v1beta1"
|
1867
|
+
#
|
1868
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1869
|
+
# client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
|
1870
|
+
#
|
1871
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1872
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1873
|
+
#
|
1874
|
+
# # Call the test_iam_permissions method.
|
1875
|
+
# result = client.test_iam_permissions request
|
1876
|
+
#
|
1877
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1878
|
+
# p result
|
1879
|
+
#
|
1552
1880
|
def test_iam_permissions request, options = nil
|
1553
1881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1554
1882
|
|
@@ -1566,9 +1894,11 @@ module Google
|
|
1566
1894
|
gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
|
1567
1895
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1568
1896
|
|
1569
|
-
header_params = {
|
1570
|
-
|
1571
|
-
|
1897
|
+
header_params = {}
|
1898
|
+
if request.resource
|
1899
|
+
header_params["resource"] = request.resource
|
1900
|
+
end
|
1901
|
+
|
1572
1902
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1573
1903
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1574
1904
|
|