google-cloud-iap-v1 0.1.0 → 0.1.1

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: 0fbf6d0806df8bb04f6cc8aabf8f380e12990a32aaf4375af6472a712d3f1422
4
- data.tar.gz: 2cf7f0a3cc698ec9468515982a21cb48b42c3ac5bd6b1b957cbab785d91630d4
3
+ metadata.gz: 853ed566c6c75c63e2501774563449d6ce0c21dbb60af8aa9552b1810b7a23f5
4
+ data.tar.gz: ca78d86b332f4c22415ca60b6760ed4e7f11a5e05bc381048bf1cf82097653e4
5
5
  SHA512:
6
- metadata.gz: 55a22476264aec8e9b6a2fe79e1a0b41024bd40017a26d8cc724ad8b2f7531ad4f34a2e55f07ae7edd2b203bba322ac6104c7637e070697761d4c9cbefebcd86
7
- data.tar.gz: 8cbd38eee7f50bd0bab72db31a6539fd0121b6f55c1ea398299f0c90e30e49553395991a4945ccb3a737d7c33d1280bb413e0b2060e627eed40a3ebc370a6271
6
+ metadata.gz: 0b35c5f1fc7ce4531426b111fda91e1fe5d7a3521a938eb4e4ea35ef28cd08d339d210a29e577ab8d47e1b3f0340cbd71b080f13020e8ac40f13e04e314271c9
7
+ data.tar.gz: 4521edc75caddd02e0598856f0dab286dbbe91d99148ed260efc1f3de7c6722550e254712ab33ff450f09f66caa030ec0e5ec9a388c313c2cf96bd1918174c6f
@@ -39,13 +39,12 @@ module Google
39
39
  # See {::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client::Configuration}
40
40
  # for a description of the configuration fields.
41
41
  #
42
- # ## Example
42
+ # @example
43
43
  #
44
- # To modify the configuration for all IdentityAwareProxyAdminService clients:
45
- #
46
- # ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.configure do |config|
47
- # config.timeout = 10.0
48
- # end
44
+ # # Modify the configuration for all IdentityAwareProxyAdminService clients
45
+ # ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.configure do |config|
46
+ # config.timeout = 10.0
47
+ # end
49
48
  #
50
49
  # @yield [config] Configure the Client client.
51
50
  # @yieldparam config [Client::Configuration]
@@ -94,19 +93,15 @@ module Google
94
93
  ##
95
94
  # Create a new IdentityAwareProxyAdminService client object.
96
95
  #
97
- # ## Examples
98
- #
99
- # To create a new IdentityAwareProxyAdminService client with the default
100
- # configuration:
101
- #
102
- # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.new
96
+ # @example
103
97
  #
104
- # To create a new IdentityAwareProxyAdminService client with a custom
105
- # configuration:
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.new
106
100
  #
107
- # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.new do |config|
108
- # config.timeout = 10.0
109
- # end
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
110
105
  #
111
106
  # @yield [config] Configure the IdentityAwareProxyAdminService client.
112
107
  # @yieldparam config [Client::Configuration]
@@ -126,10 +121,9 @@ module Google
126
121
 
127
122
  # Create credentials
128
123
  credentials = @config.credentials
129
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
130
125
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
- @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
127
  !@config.endpoint.split(".").first.include?("-")
134
128
  credentials ||= Credentials.default scope: @config.scope,
135
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -214,7 +208,9 @@ module Google
214
208
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
215
209
  metadata: metadata,
216
210
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
217
- options.apply_defaults metadata: @config.metadata,
211
+
212
+ options.apply_defaults timeout: @config.timeout,
213
+ metadata: @config.metadata,
218
214
  retry_policy: @config.retry_policy
219
215
 
220
216
  @identity_aware_proxy_admin_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -287,7 +283,9 @@ module Google
287
283
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
288
284
  metadata: metadata,
289
285
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
290
- options.apply_defaults metadata: @config.metadata,
286
+
287
+ options.apply_defaults timeout: @config.timeout,
288
+ metadata: @config.metadata,
291
289
  retry_policy: @config.retry_policy
292
290
 
293
291
  @identity_aware_proxy_admin_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -362,7 +360,9 @@ module Google
362
360
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
363
361
  metadata: metadata,
364
362
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
365
- options.apply_defaults metadata: @config.metadata,
363
+
364
+ options.apply_defaults timeout: @config.timeout,
365
+ metadata: @config.metadata,
366
366
  retry_policy: @config.retry_policy
367
367
 
368
368
  @identity_aware_proxy_admin_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -430,7 +430,9 @@ module Google
430
430
  options.apply_defaults timeout: @config.rpcs.get_iap_settings.timeout,
431
431
  metadata: metadata,
432
432
  retry_policy: @config.rpcs.get_iap_settings.retry_policy
433
- options.apply_defaults metadata: @config.metadata,
433
+
434
+ options.apply_defaults timeout: @config.timeout,
435
+ metadata: @config.metadata,
434
436
  retry_policy: @config.retry_policy
435
437
 
436
438
  @identity_aware_proxy_admin_service_stub.call_rpc :get_iap_settings, request, options: options do |response, operation|
@@ -503,7 +505,9 @@ module Google
503
505
  options.apply_defaults timeout: @config.rpcs.update_iap_settings.timeout,
504
506
  metadata: metadata,
505
507
  retry_policy: @config.rpcs.update_iap_settings.retry_policy
506
- options.apply_defaults metadata: @config.metadata,
508
+
509
+ options.apply_defaults timeout: @config.timeout,
510
+ metadata: @config.metadata,
507
511
  retry_policy: @config.retry_policy
508
512
 
509
513
  @identity_aware_proxy_admin_service_stub.call_rpc :update_iap_settings, request, options: options do |response, operation|
@@ -527,22 +531,21 @@ module Google
527
531
  # Configuration can be applied globally to all clients, or to a single client
528
532
  # on construction.
529
533
  #
530
- # # Examples
531
- #
532
- # To modify the global config, setting the timeout for set_iam_policy
533
- # to 20 seconds, and all remaining timeouts to 10 seconds:
534
- #
535
- # ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.configure do |config|
536
- # config.timeout = 10.0
537
- # config.rpcs.set_iam_policy.timeout = 20.0
538
- # end
539
- #
540
- # To apply the above configuration only to a new client:
541
- #
542
- # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.new do |config|
543
- # config.timeout = 10.0
544
- # config.rpcs.set_iam_policy.timeout = 20.0
545
- # end
534
+ # @example
535
+ #
536
+ # # Modify the global config, setting the timeout for
537
+ # # set_iam_policy to 20 seconds,
538
+ # # and all remaining timeouts to 10 seconds.
539
+ # ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.configure do |config|
540
+ # config.timeout = 10.0
541
+ # config.rpcs.set_iam_policy.timeout = 20.0
542
+ # end
543
+ #
544
+ # # Apply the above configuration only to a new client.
545
+ # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyAdminService::Client.new do |config|
546
+ # config.timeout = 10.0
547
+ # config.rpcs.set_iam_policy.timeout = 20.0
548
+ # end
546
549
  #
547
550
  # @!attribute [rw] endpoint
548
551
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all IdentityAwareProxyOAuthService clients:
47
- #
48
- # ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all IdentityAwareProxyOAuthService clients
47
+ # ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -96,19 +95,15 @@ module Google
96
95
  ##
97
96
  # Create a new IdentityAwareProxyOAuthService client object.
98
97
  #
99
- # ## Examples
100
- #
101
- # To create a new IdentityAwareProxyOAuthService client with the default
102
- # configuration:
98
+ # @example
103
99
  #
104
- # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.new
100
+ # # Create a client using the default configuration
101
+ # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.new
105
102
  #
106
- # To create a new IdentityAwareProxyOAuthService client with a custom
107
- # configuration:
108
- #
109
- # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.new do |config|
110
- # config.timeout = 10.0
111
- # end
103
+ # # Create a client using a custom configuration
104
+ # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.new do |config|
105
+ # config.timeout = 10.0
106
+ # end
112
107
  #
113
108
  # @yield [config] Configure the IdentityAwareProxyOAuthService client.
114
109
  # @yieldparam config [Client::Configuration]
@@ -128,10 +123,9 @@ module Google
128
123
 
129
124
  # Create credentials
130
125
  credentials = @config.credentials
131
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
126
+ # Use self-signed JWT if the endpoint is unchanged from default,
132
127
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
134
- @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
135
129
  !@config.endpoint.split(".").first.include?("-")
136
130
  credentials ||= Credentials.default scope: @config.scope,
137
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -208,7 +202,9 @@ module Google
208
202
  options.apply_defaults timeout: @config.rpcs.list_brands.timeout,
209
203
  metadata: metadata,
210
204
  retry_policy: @config.rpcs.list_brands.retry_policy
211
- options.apply_defaults metadata: @config.metadata,
205
+
206
+ options.apply_defaults timeout: @config.timeout,
207
+ metadata: @config.metadata,
212
208
  retry_policy: @config.retry_policy
213
209
 
214
210
  @identity_aware_proxy_o_auth_service_stub.call_rpc :list_brands, request, options: options do |response, operation|
@@ -283,7 +279,9 @@ module Google
283
279
  options.apply_defaults timeout: @config.rpcs.create_brand.timeout,
284
280
  metadata: metadata,
285
281
  retry_policy: @config.rpcs.create_brand.retry_policy
286
- options.apply_defaults metadata: @config.metadata,
282
+
283
+ options.apply_defaults timeout: @config.timeout,
284
+ metadata: @config.metadata,
287
285
  retry_policy: @config.retry_policy
288
286
 
289
287
  @identity_aware_proxy_o_auth_service_stub.call_rpc :create_brand, request, options: options do |response, operation|
@@ -350,7 +348,9 @@ module Google
350
348
  options.apply_defaults timeout: @config.rpcs.get_brand.timeout,
351
349
  metadata: metadata,
352
350
  retry_policy: @config.rpcs.get_brand.retry_policy
353
- options.apply_defaults metadata: @config.metadata,
351
+
352
+ options.apply_defaults timeout: @config.timeout,
353
+ metadata: @config.metadata,
354
354
  retry_policy: @config.retry_policy
355
355
 
356
356
  @identity_aware_proxy_o_auth_service_stub.call_rpc :get_brand, request, options: options do |response, operation|
@@ -423,7 +423,9 @@ module Google
423
423
  options.apply_defaults timeout: @config.rpcs.create_identity_aware_proxy_client.timeout,
424
424
  metadata: metadata,
425
425
  retry_policy: @config.rpcs.create_identity_aware_proxy_client.retry_policy
426
- options.apply_defaults metadata: @config.metadata,
426
+
427
+ options.apply_defaults timeout: @config.timeout,
428
+ metadata: @config.metadata,
427
429
  retry_policy: @config.retry_policy
428
430
 
429
431
  @identity_aware_proxy_o_auth_service_stub.call_rpc :create_identity_aware_proxy_client, request, options: options do |response, operation|
@@ -502,7 +504,9 @@ module Google
502
504
  options.apply_defaults timeout: @config.rpcs.list_identity_aware_proxy_clients.timeout,
503
505
  metadata: metadata,
504
506
  retry_policy: @config.rpcs.list_identity_aware_proxy_clients.retry_policy
505
- options.apply_defaults metadata: @config.metadata,
507
+
508
+ options.apply_defaults timeout: @config.timeout,
509
+ metadata: @config.metadata,
506
510
  retry_policy: @config.retry_policy
507
511
 
508
512
  @identity_aware_proxy_o_auth_service_stub.call_rpc :list_identity_aware_proxy_clients, request, options: options do |response, operation|
@@ -572,7 +576,9 @@ module Google
572
576
  options.apply_defaults timeout: @config.rpcs.get_identity_aware_proxy_client.timeout,
573
577
  metadata: metadata,
574
578
  retry_policy: @config.rpcs.get_identity_aware_proxy_client.retry_policy
575
- options.apply_defaults metadata: @config.metadata,
579
+
580
+ options.apply_defaults timeout: @config.timeout,
581
+ metadata: @config.metadata,
576
582
  retry_policy: @config.retry_policy
577
583
 
578
584
  @identity_aware_proxy_o_auth_service_stub.call_rpc :get_identity_aware_proxy_client, request, options: options do |response, operation|
@@ -641,7 +647,9 @@ module Google
641
647
  options.apply_defaults timeout: @config.rpcs.reset_identity_aware_proxy_client_secret.timeout,
642
648
  metadata: metadata,
643
649
  retry_policy: @config.rpcs.reset_identity_aware_proxy_client_secret.retry_policy
644
- options.apply_defaults metadata: @config.metadata,
650
+
651
+ options.apply_defaults timeout: @config.timeout,
652
+ metadata: @config.metadata,
645
653
  retry_policy: @config.retry_policy
646
654
 
647
655
  @identity_aware_proxy_o_auth_service_stub.call_rpc :reset_identity_aware_proxy_client_secret, request, options: options do |response, operation|
@@ -711,7 +719,9 @@ module Google
711
719
  options.apply_defaults timeout: @config.rpcs.delete_identity_aware_proxy_client.timeout,
712
720
  metadata: metadata,
713
721
  retry_policy: @config.rpcs.delete_identity_aware_proxy_client.retry_policy
714
- options.apply_defaults metadata: @config.metadata,
722
+
723
+ options.apply_defaults timeout: @config.timeout,
724
+ metadata: @config.metadata,
715
725
  retry_policy: @config.retry_policy
716
726
 
717
727
  @identity_aware_proxy_o_auth_service_stub.call_rpc :delete_identity_aware_proxy_client, request, options: options do |response, operation|
@@ -735,22 +745,21 @@ module Google
735
745
  # Configuration can be applied globally to all clients, or to a single client
736
746
  # on construction.
737
747
  #
738
- # # Examples
739
- #
740
- # To modify the global config, setting the timeout for list_brands
741
- # to 20 seconds, and all remaining timeouts to 10 seconds:
742
- #
743
- # ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.configure do |config|
744
- # config.timeout = 10.0
745
- # config.rpcs.list_brands.timeout = 20.0
746
- # end
747
- #
748
- # To apply the above configuration only to a new client:
749
- #
750
- # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.new do |config|
751
- # config.timeout = 10.0
752
- # config.rpcs.list_brands.timeout = 20.0
753
- # end
748
+ # @example
749
+ #
750
+ # # Modify the global config, setting the timeout for
751
+ # # list_brands to 20 seconds,
752
+ # # and all remaining timeouts to 10 seconds.
753
+ # ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.configure do |config|
754
+ # config.timeout = 10.0
755
+ # config.rpcs.list_brands.timeout = 20.0
756
+ # end
757
+ #
758
+ # # Apply the above configuration only to a new client.
759
+ # client = ::Google::Cloud::Iap::V1::IdentityAwareProxyOAuthService::Client.new do |config|
760
+ # config.timeout = 10.0
761
+ # config.rpcs.list_brands.timeout = 20.0
762
+ # end
754
763
  #
755
764
  # @!attribute [rw] endpoint
756
765
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Iap
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-iap-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-07-23 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a