google-cloud-managed_identities-v1 0.3.0 → 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: 7e7665b5fc5ea1061e4108ec4b5e0c37598b5c9027f26eb19839efad32e36489
4
- data.tar.gz: c07c174dd259f1923f29401e7dfa5b256a1e6d8514f558ba00268fcc74ac691c
3
+ metadata.gz: f60416355ef1922b7ab4483a9b69c0d64e80dc9e8f2f281aa77ee4c3c0dc2410
4
+ data.tar.gz: 0b38e76ed45e028a828c01c1cc3dd59b350933db435301a14888bcbb96162838
5
5
  SHA512:
6
- metadata.gz: 7ec0c5735cd21f79410fbc2b66ef889221fb37272cd14efc9a6e540faf06f3e3d01ca994c75bd8211edb4046996c6c895d6de07bf85624fdd18ac0c658a05d8a
7
- data.tar.gz: 45ed8f0c8f1ebaa312f8086f1baabcb34f562b6a5ba9df6f8fb9f5fb8c7ee284d9a728170de2fcae71e334a05086a693dc9dab1e44179a526d126a8f753996ab
6
+ metadata.gz: e85d06e429068771b6b261a0e7d07e35c2f263d1d09c343cc3ae399b6d2e5d4608a857f521ba4348e098f211820bc7d84ce6b540012c4b699a750d7b17657587
7
+ data.tar.gz: 344b1b32e0cffa25fb2da00e6258ec9bb2417cf99ac1ac72f195c3b0f3895119510998139f96e39f949e8134687eab14a34a0dd21ce00d1ac9115c04f01779d6
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-managed_identities-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Credentials}):
68
68
 
69
- 1. `MANAGED_IDENTITIES_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `MANAGED_IDENTITIES_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `MANAGED_IDENTITIES_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `MANAGED_IDENTITIES_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/managed_identities/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Clien
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/managed_identities/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Clien
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/managed_identities/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/managed_identities/v1"
34
34
 
35
35
  client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::ManagedIdentities::V1::CreateMicrosoftAdDomainRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_microsoft_ad_domain request
38
38
  ```
39
39
 
@@ -27,7 +27,7 @@ module Google
27
27
  ##
28
28
  # Client for the ManagedIdentitiesService service.
29
29
  #
30
- # ## API Overview
30
+ # API Overview
31
31
  #
32
32
  # The `managedidentites.googleapis.com` service implements the Google Cloud
33
33
  # Managed Identites API for identity services
@@ -37,7 +37,7 @@ module Google
37
37
  # (create/read/update/delete) domains, reset managed identities admin password,
38
38
  # add/remove domain controllers in GCP regions and add/remove VPC peering.
39
39
  #
40
- # ## Data Model
40
+ # Data Model
41
41
  #
42
42
  # The Managed Identities service exposes the following resources:
43
43
  #
@@ -72,13 +72,12 @@ module Google
72
72
  # See {::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client::Configuration}
73
73
  # for a description of the configuration fields.
74
74
  #
75
- # ## Example
75
+ # @example
76
76
  #
77
- # To modify the configuration for all ManagedIdentitiesService clients:
78
- #
79
- # ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.configure do |config|
80
- # config.timeout = 10.0
81
- # end
77
+ # # Modify the configuration for all ManagedIdentitiesService clients
78
+ # ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.configure do |config|
79
+ # config.timeout = 10.0
80
+ # end
82
81
  #
83
82
  # @yield [config] Configure the Client client.
84
83
  # @yieldparam config [Client::Configuration]
@@ -145,19 +144,15 @@ module Google
145
144
  ##
146
145
  # Create a new ManagedIdentitiesService client object.
147
146
  #
148
- # ## Examples
149
- #
150
- # To create a new ManagedIdentitiesService client with the default
151
- # configuration:
152
- #
153
- # client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
147
+ # @example
154
148
  #
155
- # To create a new ManagedIdentitiesService client with a custom
156
- # configuration:
149
+ # # Create a client using the default configuration
150
+ # client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new
157
151
  #
158
- # client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new do |config|
159
- # config.timeout = 10.0
160
- # end
152
+ # # Create a client using a custom configuration
153
+ # client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new do |config|
154
+ # config.timeout = 10.0
155
+ # end
161
156
  #
162
157
  # @yield [config] Configure the ManagedIdentitiesService client.
163
158
  # @yieldparam config [Client::Configuration]
@@ -177,14 +172,13 @@ module Google
177
172
 
178
173
  # Create credentials
179
174
  credentials = @config.credentials
180
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
175
+ # Use self-signed JWT if the endpoint is unchanged from default,
181
176
  # but only if the default endpoint does not have a region prefix.
182
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
183
- @config.endpoint == Client.configure.endpoint &&
177
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
184
178
  !@config.endpoint.split(".").first.include?("-")
185
179
  credentials ||= Credentials.default scope: @config.scope,
186
180
  enable_self_signed_jwt: enable_self_signed_jwt
187
- if credentials.is_a?(String) || credentials.is_a?(Hash)
181
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
188
182
  credentials = Credentials.new credentials, scope: @config.scope
189
183
  end
190
184
  @quota_project_id = @config.quota_project
@@ -258,6 +252,28 @@ module Google
258
252
  #
259
253
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
260
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
+ #
261
277
  def create_microsoft_ad_domain request, options = nil
262
278
  raise ::ArgumentError, "request must be provided" if request.nil?
263
279
 
@@ -275,16 +291,20 @@ module Google
275
291
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
276
292
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
277
293
 
278
- header_params = {
279
- "parent" => request.parent
280
- }
294
+ header_params = {}
295
+ if request.parent
296
+ header_params["parent"] = request.parent
297
+ end
298
+
281
299
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
282
300
  metadata[:"x-goog-request-params"] ||= request_params_header
283
301
 
284
302
  options.apply_defaults timeout: @config.rpcs.create_microsoft_ad_domain.timeout,
285
303
  metadata: metadata,
286
304
  retry_policy: @config.rpcs.create_microsoft_ad_domain.retry_policy
287
- options.apply_defaults metadata: @config.metadata,
305
+
306
+ options.apply_defaults timeout: @config.timeout,
307
+ metadata: @config.metadata,
288
308
  retry_policy: @config.retry_policy
289
309
 
290
310
  @managed_identities_service_stub.call_rpc :create_microsoft_ad_domain, request, options: options do |response, operation|
@@ -326,6 +346,21 @@ module Google
326
346
  #
327
347
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
328
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
+ #
329
364
  def reset_admin_password request, options = nil
330
365
  raise ::ArgumentError, "request must be provided" if request.nil?
331
366
 
@@ -343,16 +378,20 @@ module Google
343
378
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
344
379
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
380
 
346
- header_params = {
347
- "name" => request.name
348
- }
381
+ header_params = {}
382
+ if request.name
383
+ header_params["name"] = request.name
384
+ end
385
+
349
386
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
350
387
  metadata[:"x-goog-request-params"] ||= request_params_header
351
388
 
352
389
  options.apply_defaults timeout: @config.rpcs.reset_admin_password.timeout,
353
390
  metadata: metadata,
354
391
  retry_policy: @config.rpcs.reset_admin_password.retry_policy
355
- options.apply_defaults metadata: @config.metadata,
392
+
393
+ options.apply_defaults timeout: @config.timeout,
394
+ metadata: @config.metadata,
356
395
  retry_policy: @config.retry_policy
357
396
 
358
397
  @managed_identities_service_stub.call_rpc :reset_admin_password, request, options: options do |response, operation|
@@ -411,6 +450,27 @@ module Google
411
450
  #
412
451
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
413
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
+ #
414
474
  def list_domains request, options = nil
415
475
  raise ::ArgumentError, "request must be provided" if request.nil?
416
476
 
@@ -428,16 +488,20 @@ module Google
428
488
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
429
489
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
490
 
431
- header_params = {
432
- "parent" => request.parent
433
- }
491
+ header_params = {}
492
+ if request.parent
493
+ header_params["parent"] = request.parent
494
+ end
495
+
434
496
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
435
497
  metadata[:"x-goog-request-params"] ||= request_params_header
436
498
 
437
499
  options.apply_defaults timeout: @config.rpcs.list_domains.timeout,
438
500
  metadata: metadata,
439
501
  retry_policy: @config.rpcs.list_domains.retry_policy
440
- options.apply_defaults metadata: @config.metadata,
502
+
503
+ options.apply_defaults timeout: @config.timeout,
504
+ metadata: @config.metadata,
441
505
  retry_policy: @config.retry_policy
442
506
 
443
507
  @managed_identities_service_stub.call_rpc :list_domains, request, options: options do |response, operation|
@@ -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,16 +575,20 @@ 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
 
505
586
  options.apply_defaults timeout: @config.rpcs.get_domain.timeout,
506
587
  metadata: metadata,
507
588
  retry_policy: @config.rpcs.get_domain.retry_policy
508
- options.apply_defaults metadata: @config.metadata,
589
+
590
+ options.apply_defaults timeout: @config.timeout,
591
+ metadata: @config.metadata,
509
592
  retry_policy: @config.retry_policy
510
593
 
511
594
  @managed_identities_service_stub.call_rpc :get_domain, request, options: options do |response, operation|
@@ -553,6 +636,28 @@ module Google
553
636
  #
554
637
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
555
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
+ #
556
661
  def update_domain request, options = nil
557
662
  raise ::ArgumentError, "request must be provided" if request.nil?
558
663
 
@@ -570,16 +675,20 @@ module Google
570
675
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
571
676
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
572
677
 
573
- header_params = {
574
- "domain.name" => request.domain.name
575
- }
678
+ header_params = {}
679
+ if request.domain&.name
680
+ header_params["domain.name"] = request.domain.name
681
+ end
682
+
576
683
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
577
684
  metadata[:"x-goog-request-params"] ||= request_params_header
578
685
 
579
686
  options.apply_defaults timeout: @config.rpcs.update_domain.timeout,
580
687
  metadata: metadata,
581
688
  retry_policy: @config.rpcs.update_domain.retry_policy
582
- options.apply_defaults metadata: @config.metadata,
689
+
690
+ options.apply_defaults timeout: @config.timeout,
691
+ metadata: @config.metadata,
583
692
  retry_policy: @config.retry_policy
584
693
 
585
694
  @managed_identities_service_stub.call_rpc :update_domain, request, options: options do |response, operation|
@@ -621,6 +730,28 @@ module Google
621
730
  #
622
731
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
623
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
+ #
624
755
  def delete_domain request, options = nil
625
756
  raise ::ArgumentError, "request must be provided" if request.nil?
626
757
 
@@ -638,16 +769,20 @@ module Google
638
769
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
639
770
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
640
771
 
641
- header_params = {
642
- "name" => request.name
643
- }
772
+ header_params = {}
773
+ if request.name
774
+ header_params["name"] = request.name
775
+ end
776
+
644
777
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
645
778
  metadata[:"x-goog-request-params"] ||= request_params_header
646
779
 
647
780
  options.apply_defaults timeout: @config.rpcs.delete_domain.timeout,
648
781
  metadata: metadata,
649
782
  retry_policy: @config.rpcs.delete_domain.retry_policy
650
- options.apply_defaults metadata: @config.metadata,
783
+
784
+ options.apply_defaults timeout: @config.timeout,
785
+ metadata: @config.metadata,
651
786
  retry_policy: @config.retry_policy
652
787
 
653
788
  @managed_identities_service_stub.call_rpc :delete_domain, request, options: options do |response, operation|
@@ -691,6 +826,28 @@ module Google
691
826
  #
692
827
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
693
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
+ #
694
851
  def attach_trust request, options = nil
695
852
  raise ::ArgumentError, "request must be provided" if request.nil?
696
853
 
@@ -708,16 +865,20 @@ module Google
708
865
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
709
866
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
710
867
 
711
- header_params = {
712
- "name" => request.name
713
- }
868
+ header_params = {}
869
+ if request.name
870
+ header_params["name"] = request.name
871
+ end
872
+
714
873
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
715
874
  metadata[:"x-goog-request-params"] ||= request_params_header
716
875
 
717
876
  options.apply_defaults timeout: @config.rpcs.attach_trust.timeout,
718
877
  metadata: metadata,
719
878
  retry_policy: @config.rpcs.attach_trust.retry_policy
720
- options.apply_defaults metadata: @config.metadata,
879
+
880
+ options.apply_defaults timeout: @config.timeout,
881
+ metadata: @config.metadata,
721
882
  retry_policy: @config.retry_policy
722
883
 
723
884
  @managed_identities_service_stub.call_rpc :attach_trust, request, options: options do |response, operation|
@@ -765,6 +926,28 @@ module Google
765
926
  #
766
927
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
767
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
+ #
768
951
  def reconfigure_trust request, options = nil
769
952
  raise ::ArgumentError, "request must be provided" if request.nil?
770
953
 
@@ -782,16 +965,20 @@ module Google
782
965
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
783
966
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
784
967
 
785
- header_params = {
786
- "name" => request.name
787
- }
968
+ header_params = {}
969
+ if request.name
970
+ header_params["name"] = request.name
971
+ end
972
+
788
973
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
789
974
  metadata[:"x-goog-request-params"] ||= request_params_header
790
975
 
791
976
  options.apply_defaults timeout: @config.rpcs.reconfigure_trust.timeout,
792
977
  metadata: metadata,
793
978
  retry_policy: @config.rpcs.reconfigure_trust.retry_policy
794
- options.apply_defaults metadata: @config.metadata,
979
+
980
+ options.apply_defaults timeout: @config.timeout,
981
+ metadata: @config.metadata,
795
982
  retry_policy: @config.retry_policy
796
983
 
797
984
  @managed_identities_service_stub.call_rpc :reconfigure_trust, request, options: options do |response, operation|
@@ -835,6 +1022,28 @@ module Google
835
1022
  #
836
1023
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
837
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
+ #
838
1047
  def detach_trust request, options = nil
839
1048
  raise ::ArgumentError, "request must be provided" if request.nil?
840
1049
 
@@ -852,16 +1061,20 @@ module Google
852
1061
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
853
1062
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
854
1063
 
855
- header_params = {
856
- "name" => request.name
857
- }
1064
+ header_params = {}
1065
+ if request.name
1066
+ header_params["name"] = request.name
1067
+ end
1068
+
858
1069
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
859
1070
  metadata[:"x-goog-request-params"] ||= request_params_header
860
1071
 
861
1072
  options.apply_defaults timeout: @config.rpcs.detach_trust.timeout,
862
1073
  metadata: metadata,
863
1074
  retry_policy: @config.rpcs.detach_trust.retry_policy
864
- options.apply_defaults metadata: @config.metadata,
1075
+
1076
+ options.apply_defaults timeout: @config.timeout,
1077
+ metadata: @config.metadata,
865
1078
  retry_policy: @config.retry_policy
866
1079
 
867
1080
  @managed_identities_service_stub.call_rpc :detach_trust, request, options: options do |response, operation|
@@ -906,6 +1119,28 @@ module Google
906
1119
  #
907
1120
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
908
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
+ #
909
1144
  def validate_trust request, options = nil
910
1145
  raise ::ArgumentError, "request must be provided" if request.nil?
911
1146
 
@@ -923,16 +1158,20 @@ module Google
923
1158
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
924
1159
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
925
1160
 
926
- header_params = {
927
- "name" => request.name
928
- }
1161
+ header_params = {}
1162
+ if request.name
1163
+ header_params["name"] = request.name
1164
+ end
1165
+
929
1166
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
930
1167
  metadata[:"x-goog-request-params"] ||= request_params_header
931
1168
 
932
1169
  options.apply_defaults timeout: @config.rpcs.validate_trust.timeout,
933
1170
  metadata: metadata,
934
1171
  retry_policy: @config.rpcs.validate_trust.retry_policy
935
- options.apply_defaults metadata: @config.metadata,
1172
+
1173
+ options.apply_defaults timeout: @config.timeout,
1174
+ metadata: @config.metadata,
936
1175
  retry_policy: @config.retry_policy
937
1176
 
938
1177
  @managed_identities_service_stub.call_rpc :validate_trust, request, options: options do |response, operation|
@@ -957,22 +1196,21 @@ module Google
957
1196
  # Configuration can be applied globally to all clients, or to a single client
958
1197
  # on construction.
959
1198
  #
960
- # # Examples
961
- #
962
- # To modify the global config, setting the timeout for create_microsoft_ad_domain
963
- # to 20 seconds, and all remaining timeouts to 10 seconds:
964
- #
965
- # ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.configure do |config|
966
- # config.timeout = 10.0
967
- # config.rpcs.create_microsoft_ad_domain.timeout = 20.0
968
- # end
969
- #
970
- # To apply the above configuration only to a new client:
971
- #
972
- # client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new do |config|
973
- # config.timeout = 10.0
974
- # config.rpcs.create_microsoft_ad_domain.timeout = 20.0
975
- # end
1199
+ # @example
1200
+ #
1201
+ # # Modify the global config, setting the timeout for
1202
+ # # create_microsoft_ad_domain to 20 seconds,
1203
+ # # and all remaining timeouts to 10 seconds.
1204
+ # ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.configure do |config|
1205
+ # config.timeout = 10.0
1206
+ # config.rpcs.create_microsoft_ad_domain.timeout = 20.0
1207
+ # end
1208
+ #
1209
+ # # Apply the above configuration only to a new client.
1210
+ # client = ::Google::Cloud::ManagedIdentities::V1::ManagedIdentitiesService::Client.new do |config|
1211
+ # config.timeout = 10.0
1212
+ # config.rpcs.create_microsoft_ad_domain.timeout = 20.0
1213
+ # end
976
1214
  #
977
1215
  # @!attribute [rw] endpoint
978
1216
  # The hostname or hostname:port of the service endpoint.
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -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,16 +181,20 @@ 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
 
169
192
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
193
  metadata: metadata,
171
194
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
195
+
196
+ options.apply_defaults timeout: @config.timeout,
197
+ metadata: @config.metadata,
173
198
  retry_policy: @config.retry_policy
174
199
 
175
200
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -213,6 +238,28 @@ module Google
213
238
  #
214
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
215
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
+ #
216
263
  def get_operation request, options = nil
217
264
  raise ::ArgumentError, "request must be provided" if request.nil?
218
265
 
@@ -230,16 +277,20 @@ module Google
230
277
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
231
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
279
 
233
- header_params = {
234
- "name" => request.name
235
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
236
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
237
286
  metadata[:"x-goog-request-params"] ||= request_params_header
238
287
 
239
288
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
289
  metadata: metadata,
241
290
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
291
+
292
+ options.apply_defaults timeout: @config.timeout,
293
+ metadata: @config.metadata,
243
294
  retry_policy: @config.retry_policy
244
295
 
245
296
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -283,6 +334,21 @@ module Google
283
334
  #
284
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
285
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
+ #
286
352
  def delete_operation request, options = nil
287
353
  raise ::ArgumentError, "request must be provided" if request.nil?
288
354
 
@@ -300,16 +366,20 @@ module Google
300
366
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
301
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
302
368
 
303
- header_params = {
304
- "name" => request.name
305
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
306
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
307
375
  metadata[:"x-goog-request-params"] ||= request_params_header
308
376
 
309
377
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
378
  metadata: metadata,
311
379
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
380
+
381
+ options.apply_defaults timeout: @config.timeout,
382
+ metadata: @config.metadata,
313
383
  retry_policy: @config.retry_policy
314
384
 
315
385
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -358,6 +428,21 @@ module Google
358
428
  #
359
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
360
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
+ #
361
446
  def cancel_operation request, options = nil
362
447
  raise ::ArgumentError, "request must be provided" if request.nil?
363
448
 
@@ -375,16 +460,20 @@ module Google
375
460
  gapic_version: ::Google::Cloud::ManagedIdentities::V1::VERSION
376
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
377
462
 
378
- header_params = {
379
- "name" => request.name
380
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
381
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
382
469
  metadata[:"x-goog-request-params"] ||= request_params_header
383
470
 
384
471
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
472
  metadata: metadata,
386
473
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
474
+
475
+ options.apply_defaults timeout: @config.timeout,
476
+ metadata: @config.metadata,
388
477
  retry_policy: @config.retry_policy
389
478
 
390
479
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -396,9 +485,9 @@ module Google
396
485
  end
397
486
 
398
487
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
488
+ # Waits until the specified long-running operation is done or reaches at most
489
+ # a specified timeout, returning the latest state. If the operation is
490
+ # already done, the latest state is immediately returned. If the timeout
402
491
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
492
  # timeout is used. If the server does not support this method, it returns
404
493
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -436,6 +525,28 @@ module Google
436
525
  #
437
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
438
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
+ #
439
550
  def wait_operation request, options = nil
440
551
  raise ::ArgumentError, "request must be provided" if request.nil?
441
552
 
@@ -456,7 +567,9 @@ module Google
456
567
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
568
  metadata: metadata,
458
569
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
570
+
571
+ options.apply_defaults timeout: @config.timeout,
572
+ metadata: @config.metadata,
460
573
  retry_policy: @config.retry_policy
461
574
 
462
575
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +594,21 @@ module Google
481
594
  # Configuration can be applied globally to all clients, or to a single client
482
595
  # on construction.
483
596
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
597
+ # @example
598
+ #
599
+ # # Modify the global config, setting the timeout for
600
+ # # list_operations to 20 seconds,
601
+ # # and all remaining timeouts to 10 seconds.
602
+ # ::Google::Longrunning::Operations::Client.configure do |config|
603
+ # config.timeout = 10.0
604
+ # config.rpcs.list_operations.timeout = 20.0
605
+ # end
606
+ #
607
+ # # Apply the above configuration only to a new client.
608
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
609
+ # config.timeout = 10.0
610
+ # config.rpcs.list_operations.timeout = 20.0
611
+ # end
500
612
  #
501
613
  # @!attribute [rw] endpoint
502
614
  # The hostname or hostname:port of the service endpoint.
@@ -32,7 +32,7 @@ module Google
32
32
  module ManagedIdentities
33
33
  module V1
34
34
  ##
35
- # ## API Overview
35
+ # API Overview
36
36
  #
37
37
  # The `managedidentites.googleapis.com` service implements the Google Cloud
38
38
  # Managed Identites API for identity services
@@ -42,7 +42,7 @@ module Google
42
42
  # (create/read/update/delete) domains, reset managed identities admin password,
43
43
  # add/remove domain controllers in GCP regions and add/remove VPC peering.
44
44
  #
45
- # ## Data Model
45
+ # Data Model
46
46
  #
47
47
  # The Managed Identities service exposes the following resources:
48
48
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ManagedIdentities
23
23
  module V1
24
- VERSION = "0.3.0"
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
@@ -25,7 +25,7 @@ module Google
25
25
  module ManagedIdentities
26
26
  module V1
27
27
  module ManagedIdentitiesService
28
- # ## API Overview
28
+ # API Overview
29
29
  #
30
30
  # The `managedidentites.googleapis.com` service implements the Google Cloud
31
31
  # Managed Identites API for identity services
@@ -35,7 +35,7 @@ module Google
35
35
  # (create/read/update/delete) domains, reset managed identities admin password,
36
36
  # add/remove domain controllers in GCP regions and add/remove VPC peering.
37
37
  #
38
- # ## Data Model
38
+ # Data Model
39
39
  #
40
40
  # The Managed Identities service exposes the following resources:
41
41
  #
@@ -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
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,29 +1,35 @@
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.0
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-03-08 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.3'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -206,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
212
  - !ruby/object:Gem::Version
207
213
  version: '0'
208
214
  requirements: []
209
- rubygems_version: 3.2.13
215
+ rubygems_version: 3.2.17
210
216
  signing_key:
211
217
  specification_version: 4
212
218
  summary: API Client library for the Managed Service for Microsoft Active Directory