google-cloud-managed_identities-v1 0.3.3 → 0.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fc811fc7bc19b2d9d97d168ca8470522f5bc40891522f819d49439f7641dc11
4
- data.tar.gz: 288644711a9fce0dac79fac608cbdfbed366e84e9ea61a2f7414ef8bf153f595
3
+ metadata.gz: f60416355ef1922b7ab4483a9b69c0d64e80dc9e8f2f281aa77ee4c3c0dc2410
4
+ data.tar.gz: 0b38e76ed45e028a828c01c1cc3dd59b350933db435301a14888bcbb96162838
5
5
  SHA512:
6
- metadata.gz: e88d3be517da1cdbdcfa0bc3b26d4bfc019e1999559e875f6b3e43fa3b828ca50ec52e9cdbe49101e30501c9f349dba626b8029cee52fa8e7e7dc7b54327563a
7
- data.tar.gz: 83e3d2fe8bddd8aa77a886449c5bcd805f5fd96c7bbeb34cb1c7872981af3310a5129e827ffee379f69d0926c6f80568f4285bdec302559495d9cd060665406d
6
+ metadata.gz: e85d06e429068771b6b261a0e7d07e35c2f263d1d09c343cc3ae399b6d2e5d4608a857f521ba4348e098f211820bc7d84ce6b540012c4b699a750d7b17657587
7
+ data.tar.gz: 344b1b32e0cffa25fb2da00e6258ec9bb2417cf99ac1ac72f195c3b0f3895119510998139f96e39f949e8134687eab14a34a0dd21ce00d1ac9115c04f01779d6
@@ -252,6 +252,28 @@ module Google
252
252
  #
253
253
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
254
254
  #
255
+ # @example Basic example
256
+ # require "google/cloud/managed_identities/v1"
257
+ #
258
+ # # Create a client object. The client can be reused for multiple calls.
259
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
260
+ #
261
+ # # Create a request. To set request fields, pass in keyword arguments.
262
+ # request = Google::Cloud::ManagedIdentities::V1::CreateMicrosoftAdDomainRequest.new
263
+ #
264
+ # # Call the create_microsoft_ad_domain method.
265
+ # result = client.create_microsoft_ad_domain request
266
+ #
267
+ # # The returned object is of type Gapic::Operation. You can use this
268
+ # # object to check the status of an operation, cancel it, or wait
269
+ # # for results. Here is how to block until completion:
270
+ # result.wait_until_done! timeout: 60
271
+ # if result.response?
272
+ # p result.response
273
+ # else
274
+ # puts "Error!"
275
+ # end
276
+ #
255
277
  def create_microsoft_ad_domain request, options = nil
256
278
  raise ::ArgumentError, "request must be provided" if request.nil?
257
279
 
@@ -269,9 +291,11 @@ module Google
269
291
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
270
292
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
271
293
 
272
- header_params = {
273
- "parent" => request.parent
274
- }
294
+ header_params = {}
295
+ if request.parent
296
+ header_params["parent"] = request.parent
297
+ end
298
+
275
299
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
276
300
  metadata[:"x-goog-request-params"] ||= request_params_header
277
301
 
@@ -322,6 +346,21 @@ module Google
322
346
  #
323
347
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
324
348
  #
349
+ # @example Basic example
350
+ # require "google/cloud/managed_identities/v1"
351
+ #
352
+ # # Create a client object. The client can be reused for multiple calls.
353
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
354
+ #
355
+ # # Create a request. To set request fields, pass in keyword arguments.
356
+ # request = Google::Cloud::ManagedIdentities::V1::ResetAdminPasswordRequest.new
357
+ #
358
+ # # Call the reset_admin_password method.
359
+ # result = client.reset_admin_password request
360
+ #
361
+ # # The returned object is of type Google::Cloud::ManagedIdentities::V1::ResetAdminPasswordResponse.
362
+ # p result
363
+ #
325
364
  def reset_admin_password request, options = nil
326
365
  raise ::ArgumentError, "request must be provided" if request.nil?
327
366
 
@@ -339,9 +378,11 @@ module Google
339
378
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
340
379
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
341
380
 
342
- header_params = {
343
- "name" => request.name
344
- }
381
+ header_params = {}
382
+ if request.name
383
+ header_params["name"] = request.name
384
+ end
385
+
345
386
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
346
387
  metadata[:"x-goog-request-params"] ||= request_params_header
347
388
 
@@ -409,6 +450,27 @@ module Google
409
450
  #
410
451
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
411
452
  #
453
+ # @example Basic example
454
+ # require "google/cloud/managed_identities/v1"
455
+ #
456
+ # # Create a client object. The client can be reused for multiple calls.
457
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
458
+ #
459
+ # # Create a request. To set request fields, pass in keyword arguments.
460
+ # request = Google::Cloud::ManagedIdentities::V1::ListDomainsRequest.new
461
+ #
462
+ # # Call the list_domains method.
463
+ # result = client.list_domains request
464
+ #
465
+ # # The returned object is of type Gapic::PagedEnumerable. You can
466
+ # # iterate over all elements by calling #each, and the enumerable
467
+ # # will lazily make API calls to fetch subsequent pages. Other
468
+ # # methods are also available for managing paging directly.
469
+ # result.each do |response|
470
+ # # Each element is of type ::Google::Cloud::ManagedIdentities::V1::Domain.
471
+ # p response
472
+ # end
473
+ #
412
474
  def list_domains request, options = nil
413
475
  raise ::ArgumentError, "request must be provided" if request.nil?
414
476
 
@@ -426,9 +488,11 @@ module Google
426
488
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
427
489
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
428
490
 
429
- header_params = {
430
- "parent" => request.parent
431
- }
491
+ header_params = {}
492
+ if request.parent
493
+ header_params["parent"] = request.parent
494
+ end
495
+
432
496
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
433
497
  metadata[:"x-goog-request-params"] ||= request_params_header
434
498
 
@@ -479,6 +543,21 @@ module Google
479
543
  #
480
544
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
481
545
  #
546
+ # @example Basic example
547
+ # require "google/cloud/managed_identities/v1"
548
+ #
549
+ # # Create a client object. The client can be reused for multiple calls.
550
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
551
+ #
552
+ # # Create a request. To set request fields, pass in keyword arguments.
553
+ # request = Google::Cloud::ManagedIdentities::V1::GetDomainRequest.new
554
+ #
555
+ # # Call the get_domain method.
556
+ # result = client.get_domain request
557
+ #
558
+ # # The returned object is of type Google::Cloud::ManagedIdentities::V1::Domain.
559
+ # p result
560
+ #
482
561
  def get_domain request, options = nil
483
562
  raise ::ArgumentError, "request must be provided" if request.nil?
484
563
 
@@ -496,9 +575,11 @@ module Google
496
575
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
497
576
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
498
577
 
499
- header_params = {
500
- "name" => request.name
501
- }
578
+ header_params = {}
579
+ if request.name
580
+ header_params["name"] = request.name
581
+ end
582
+
502
583
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
503
584
  metadata[:"x-goog-request-params"] ||= request_params_header
504
585
 
@@ -555,6 +636,28 @@ module Google
555
636
  #
556
637
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
557
638
  #
639
+ # @example Basic example
640
+ # require "google/cloud/managed_identities/v1"
641
+ #
642
+ # # Create a client object. The client can be reused for multiple calls.
643
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
644
+ #
645
+ # # Create a request. To set request fields, pass in keyword arguments.
646
+ # request = Google::Cloud::ManagedIdentities::V1::UpdateDomainRequest.new
647
+ #
648
+ # # Call the update_domain method.
649
+ # result = client.update_domain request
650
+ #
651
+ # # The returned object is of type Gapic::Operation. You can use this
652
+ # # object to check the status of an operation, cancel it, or wait
653
+ # # for results. Here is how to block until completion:
654
+ # result.wait_until_done! timeout: 60
655
+ # if result.response?
656
+ # p result.response
657
+ # else
658
+ # puts "Error!"
659
+ # end
660
+ #
558
661
  def update_domain request, options = nil
559
662
  raise ::ArgumentError, "request must be provided" if request.nil?
560
663
 
@@ -572,9 +675,11 @@ module Google
572
675
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
573
676
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
677
 
575
- header_params = {
576
- "domain.name" => request.domain.name
577
- }
678
+ header_params = {}
679
+ if request.domain&.name
680
+ header_params["domain.name"] = request.domain.name
681
+ end
682
+
578
683
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
579
684
  metadata[:"x-goog-request-params"] ||= request_params_header
580
685
 
@@ -625,6 +730,28 @@ module Google
625
730
  #
626
731
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
627
732
  #
733
+ # @example Basic example
734
+ # require "google/cloud/managed_identities/v1"
735
+ #
736
+ # # Create a client object. The client can be reused for multiple calls.
737
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
738
+ #
739
+ # # Create a request. To set request fields, pass in keyword arguments.
740
+ # request = Google::Cloud::ManagedIdentities::V1::DeleteDomainRequest.new
741
+ #
742
+ # # Call the delete_domain method.
743
+ # result = client.delete_domain request
744
+ #
745
+ # # The returned object is of type Gapic::Operation. You can use this
746
+ # # object to check the status of an operation, cancel it, or wait
747
+ # # for results. Here is how to block until completion:
748
+ # result.wait_until_done! timeout: 60
749
+ # if result.response?
750
+ # p result.response
751
+ # else
752
+ # puts "Error!"
753
+ # end
754
+ #
628
755
  def delete_domain request, options = nil
629
756
  raise ::ArgumentError, "request must be provided" if request.nil?
630
757
 
@@ -642,9 +769,11 @@ module Google
642
769
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
643
770
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
644
771
 
645
- header_params = {
646
- "name" => request.name
647
- }
772
+ header_params = {}
773
+ if request.name
774
+ header_params["name"] = request.name
775
+ end
776
+
648
777
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
649
778
  metadata[:"x-goog-request-params"] ||= request_params_header
650
779
 
@@ -697,6 +826,28 @@ module Google
697
826
  #
698
827
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
699
828
  #
829
+ # @example Basic example
830
+ # require "google/cloud/managed_identities/v1"
831
+ #
832
+ # # Create a client object. The client can be reused for multiple calls.
833
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
834
+ #
835
+ # # Create a request. To set request fields, pass in keyword arguments.
836
+ # request = Google::Cloud::ManagedIdentities::V1::AttachTrustRequest.new
837
+ #
838
+ # # Call the attach_trust method.
839
+ # result = client.attach_trust request
840
+ #
841
+ # # The returned object is of type Gapic::Operation. You can use this
842
+ # # object to check the status of an operation, cancel it, or wait
843
+ # # for results. Here is how to block until completion:
844
+ # result.wait_until_done! timeout: 60
845
+ # if result.response?
846
+ # p result.response
847
+ # else
848
+ # puts "Error!"
849
+ # end
850
+ #
700
851
  def attach_trust request, options = nil
701
852
  raise ::ArgumentError, "request must be provided" if request.nil?
702
853
 
@@ -714,9 +865,11 @@ module Google
714
865
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
715
866
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
716
867
 
717
- header_params = {
718
- "name" => request.name
719
- }
868
+ header_params = {}
869
+ if request.name
870
+ header_params["name"] = request.name
871
+ end
872
+
720
873
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
721
874
  metadata[:"x-goog-request-params"] ||= request_params_header
722
875
 
@@ -773,6 +926,28 @@ module Google
773
926
  #
774
927
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
775
928
  #
929
+ # @example Basic example
930
+ # require "google/cloud/managed_identities/v1"
931
+ #
932
+ # # Create a client object. The client can be reused for multiple calls.
933
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
934
+ #
935
+ # # Create a request. To set request fields, pass in keyword arguments.
936
+ # request = Google::Cloud::ManagedIdentities::V1::ReconfigureTrustRequest.new
937
+ #
938
+ # # Call the reconfigure_trust method.
939
+ # result = client.reconfigure_trust request
940
+ #
941
+ # # The returned object is of type Gapic::Operation. You can use this
942
+ # # object to check the status of an operation, cancel it, or wait
943
+ # # for results. Here is how to block until completion:
944
+ # result.wait_until_done! timeout: 60
945
+ # if result.response?
946
+ # p result.response
947
+ # else
948
+ # puts "Error!"
949
+ # end
950
+ #
776
951
  def reconfigure_trust request, options = nil
777
952
  raise ::ArgumentError, "request must be provided" if request.nil?
778
953
 
@@ -790,9 +965,11 @@ module Google
790
965
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
791
966
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
792
967
 
793
- header_params = {
794
- "name" => request.name
795
- }
968
+ header_params = {}
969
+ if request.name
970
+ header_params["name"] = request.name
971
+ end
972
+
796
973
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
797
974
  metadata[:"x-goog-request-params"] ||= request_params_header
798
975
 
@@ -845,6 +1022,28 @@ module Google
845
1022
  #
846
1023
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
847
1024
  #
1025
+ # @example Basic example
1026
+ # require "google/cloud/managed_identities/v1"
1027
+ #
1028
+ # # Create a client object. The client can be reused for multiple calls.
1029
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
1030
+ #
1031
+ # # Create a request. To set request fields, pass in keyword arguments.
1032
+ # request = Google::Cloud::ManagedIdentities::V1::DetachTrustRequest.new
1033
+ #
1034
+ # # Call the detach_trust method.
1035
+ # result = client.detach_trust request
1036
+ #
1037
+ # # The returned object is of type Gapic::Operation. You can use this
1038
+ # # object to check the status of an operation, cancel it, or wait
1039
+ # # for results. Here is how to block until completion:
1040
+ # result.wait_until_done! timeout: 60
1041
+ # if result.response?
1042
+ # p result.response
1043
+ # else
1044
+ # puts "Error!"
1045
+ # end
1046
+ #
848
1047
  def detach_trust request, options = nil
849
1048
  raise ::ArgumentError, "request must be provided" if request.nil?
850
1049
 
@@ -862,9 +1061,11 @@ module Google
862
1061
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
863
1062
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
864
1063
 
865
- header_params = {
866
- "name" => request.name
867
- }
1064
+ header_params = {}
1065
+ if request.name
1066
+ header_params["name"] = request.name
1067
+ end
1068
+
868
1069
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
869
1070
  metadata[:"x-goog-request-params"] ||= request_params_header
870
1071
 
@@ -918,6 +1119,28 @@ module Google
918
1119
  #
919
1120
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
920
1121
  #
1122
+ # @example Basic example
1123
+ # require "google/cloud/managed_identities/v1"
1124
+ #
1125
+ # # Create a client object. The client can be reused for multiple calls.
1126
+ # client = Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
1127
+ #
1128
+ # # Create a request. To set request fields, pass in keyword arguments.
1129
+ # request = Google::Cloud::ManagedIdentities::V1::ValidateTrustRequest.new
1130
+ #
1131
+ # # Call the validate_trust method.
1132
+ # result = client.validate_trust request
1133
+ #
1134
+ # # The returned object is of type Gapic::Operation. You can use this
1135
+ # # object to check the status of an operation, cancel it, or wait
1136
+ # # for results. Here is how to block until completion:
1137
+ # result.wait_until_done! timeout: 60
1138
+ # if result.response?
1139
+ # p result.response
1140
+ # else
1141
+ # puts "Error!"
1142
+ # end
1143
+ #
921
1144
  def validate_trust request, options = nil
922
1145
  raise ::ArgumentError, "request must be provided" if request.nil?
923
1146
 
@@ -935,9 +1158,11 @@ module Google
935
1158
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
936
1159
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
937
1160
 
938
- header_params = {
939
- "name" => request.name
940
- }
1161
+ header_params = {}
1162
+ if request.name
1163
+ header_params["name"] = request.name
1164
+ end
1165
+
941
1166
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
942
1167
  metadata[:"x-goog-request-params"] ||= request_params_header
943
1168
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ManagedIdentities
23
23
  module V1
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/managedidentities/v1/managed_identities_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'
@@ -11,6 +9,8 @@ require 'google/cloud/managedidentities/v1/resource_pb'
11
9
  require 'google/longrunning/operations_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/managedidentities/v1/managed_identities_service.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.managedidentities.v1.OpMetadata" do
@@ -59,7 +59,7 @@ module Google
59
59
  # * Must be unique within the customer project.
60
60
  class Service
61
61
 
62
- include GRPC::GenericService
62
+ include ::GRPC::GenericService
63
63
 
64
64
  self.marshal_class_method = :encode
65
65
  self.unmarshal_class_method = :decode
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/managedidentities/v1/resource.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/managedidentities/v1/resource.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.managedidentities.v1.Domain" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-managed_identities-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common