google-cloud-org_policy-v2 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc44d8fa933f44d058363936720b672f4df3aac1f8ce90eccc613ade2ef5694
|
4
|
+
data.tar.gz: 70f7505e296689faeac5d0ff42fea5b0e30b2e151d255cf892452726ed18a349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7b97925338466725df3f3e5cf7a3ea17801e10725544f447758b18a7bc2131e454775f5c463ed5ee8310efb00e163a2ba4cfbe40d089ab79088ad6cb30249ca
|
7
|
+
data.tar.gz: ccbbb1c8b5384e102fe47894f2e5c24d41261b5fe9625fd4327a590dc6af50ad0bb08e7946177f9141760f30ea6d5992011689ff284f8fb2235b4ceb6d0972bf
|
@@ -60,13 +60,12 @@ module Google
|
|
60
60
|
# See {::Google::Cloud::OrgPolicy::V2::OrgPolicy::Client::Configuration}
|
61
61
|
# for a description of the configuration fields.
|
62
62
|
#
|
63
|
-
#
|
63
|
+
# @example
|
64
64
|
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
# end
|
65
|
+
# # Modify the configuration for all OrgPolicy clients
|
66
|
+
# ::Google::Cloud::OrgPolicy::V2::OrgPolicy::Client.configure do |config|
|
67
|
+
# config.timeout = 10.0
|
68
|
+
# end
|
70
69
|
#
|
71
70
|
# @yield [config] Configure the Client client.
|
72
71
|
# @yieldparam config [Client::Configuration]
|
@@ -148,19 +147,15 @@ module Google
|
|
148
147
|
##
|
149
148
|
# Create a new OrgPolicy client object.
|
150
149
|
#
|
151
|
-
#
|
152
|
-
#
|
153
|
-
# To create a new OrgPolicy client with the default
|
154
|
-
# configuration:
|
150
|
+
# @example
|
155
151
|
#
|
156
|
-
#
|
152
|
+
# # Create a client using the default configuration
|
153
|
+
# client = ::Google::Cloud::OrgPolicy::V2::OrgPolicy::Client.new
|
157
154
|
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
# config.timeout = 10.0
|
163
|
-
# end
|
155
|
+
# # Create a client using a custom configuration
|
156
|
+
# client = ::Google::Cloud::OrgPolicy::V2::OrgPolicy::Client.new do |config|
|
157
|
+
# config.timeout = 10.0
|
158
|
+
# end
|
164
159
|
#
|
165
160
|
# @yield [config] Configure the OrgPolicy client.
|
166
161
|
# @yieldparam config [Client::Configuration]
|
@@ -180,10 +175,9 @@ module Google
|
|
180
175
|
|
181
176
|
# Create credentials
|
182
177
|
credentials = @config.credentials
|
183
|
-
# Use self-signed JWT if the
|
178
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
184
179
|
# but only if the default endpoint does not have a region prefix.
|
185
|
-
enable_self_signed_jwt = @config.
|
186
|
-
@config.endpoint == Client.configure.endpoint &&
|
180
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
187
181
|
!@config.endpoint.split(".").first.include?("-")
|
188
182
|
credentials ||= Credentials.default scope: @config.scope,
|
189
183
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -271,7 +265,9 @@ module Google
|
|
271
265
|
options.apply_defaults timeout: @config.rpcs.list_constraints.timeout,
|
272
266
|
metadata: metadata,
|
273
267
|
retry_policy: @config.rpcs.list_constraints.retry_policy
|
274
|
-
|
268
|
+
|
269
|
+
options.apply_defaults timeout: @config.timeout,
|
270
|
+
metadata: @config.metadata,
|
275
271
|
retry_policy: @config.retry_policy
|
276
272
|
|
277
273
|
@org_policy_stub.call_rpc :list_constraints, request, options: options do |response, operation|
|
@@ -351,7 +347,9 @@ module Google
|
|
351
347
|
options.apply_defaults timeout: @config.rpcs.list_policies.timeout,
|
352
348
|
metadata: metadata,
|
353
349
|
retry_policy: @config.rpcs.list_policies.retry_policy
|
354
|
-
|
350
|
+
|
351
|
+
options.apply_defaults timeout: @config.timeout,
|
352
|
+
metadata: @config.metadata,
|
355
353
|
retry_policy: @config.retry_policy
|
356
354
|
|
357
355
|
@org_policy_stub.call_rpc :list_policies, request, options: options do |response, operation|
|
@@ -422,7 +420,9 @@ module Google
|
|
422
420
|
options.apply_defaults timeout: @config.rpcs.get_policy.timeout,
|
423
421
|
metadata: metadata,
|
424
422
|
retry_policy: @config.rpcs.get_policy.retry_policy
|
425
|
-
|
423
|
+
|
424
|
+
options.apply_defaults timeout: @config.timeout,
|
425
|
+
metadata: @config.metadata,
|
426
426
|
retry_policy: @config.retry_policy
|
427
427
|
|
428
428
|
@org_policy_stub.call_rpc :get_policy, request, options: options do |response, operation|
|
@@ -493,7 +493,9 @@ module Google
|
|
493
493
|
options.apply_defaults timeout: @config.rpcs.get_effective_policy.timeout,
|
494
494
|
metadata: metadata,
|
495
495
|
retry_policy: @config.rpcs.get_effective_policy.retry_policy
|
496
|
-
|
496
|
+
|
497
|
+
options.apply_defaults timeout: @config.timeout,
|
498
|
+
metadata: @config.metadata,
|
497
499
|
retry_policy: @config.retry_policy
|
498
500
|
|
499
501
|
@org_policy_stub.call_rpc :get_effective_policy, request, options: options do |response, operation|
|
@@ -571,7 +573,9 @@ module Google
|
|
571
573
|
options.apply_defaults timeout: @config.rpcs.create_policy.timeout,
|
572
574
|
metadata: metadata,
|
573
575
|
retry_policy: @config.rpcs.create_policy.retry_policy
|
574
|
-
|
576
|
+
|
577
|
+
options.apply_defaults timeout: @config.timeout,
|
578
|
+
metadata: @config.metadata,
|
575
579
|
retry_policy: @config.retry_policy
|
576
580
|
|
577
581
|
@org_policy_stub.call_rpc :create_policy, request, options: options do |response, operation|
|
@@ -645,7 +649,9 @@ module Google
|
|
645
649
|
options.apply_defaults timeout: @config.rpcs.update_policy.timeout,
|
646
650
|
metadata: metadata,
|
647
651
|
retry_policy: @config.rpcs.update_policy.retry_policy
|
648
|
-
|
652
|
+
|
653
|
+
options.apply_defaults timeout: @config.timeout,
|
654
|
+
metadata: @config.metadata,
|
649
655
|
retry_policy: @config.retry_policy
|
650
656
|
|
651
657
|
@org_policy_stub.call_rpc :update_policy, request, options: options do |response, operation|
|
@@ -715,7 +721,9 @@ module Google
|
|
715
721
|
options.apply_defaults timeout: @config.rpcs.delete_policy.timeout,
|
716
722
|
metadata: metadata,
|
717
723
|
retry_policy: @config.rpcs.delete_policy.retry_policy
|
718
|
-
|
724
|
+
|
725
|
+
options.apply_defaults timeout: @config.timeout,
|
726
|
+
metadata: @config.metadata,
|
719
727
|
retry_policy: @config.retry_policy
|
720
728
|
|
721
729
|
@org_policy_stub.call_rpc :delete_policy, request, options: options do |response, operation|
|
@@ -739,22 +747,21 @@ module Google
|
|
739
747
|
# Configuration can be applied globally to all clients, or to a single client
|
740
748
|
# on construction.
|
741
749
|
#
|
742
|
-
#
|
743
|
-
#
|
744
|
-
#
|
745
|
-
# to 20 seconds,
|
746
|
-
#
|
747
|
-
#
|
748
|
-
#
|
749
|
-
#
|
750
|
-
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
#
|
754
|
-
#
|
755
|
-
#
|
756
|
-
#
|
757
|
-
# end
|
750
|
+
# @example
|
751
|
+
#
|
752
|
+
# # Modify the global config, setting the timeout for
|
753
|
+
# # list_constraints to 20 seconds,
|
754
|
+
# # and all remaining timeouts to 10 seconds.
|
755
|
+
# ::Google::Cloud::OrgPolicy::V2::OrgPolicy::Client.configure do |config|
|
756
|
+
# config.timeout = 10.0
|
757
|
+
# config.rpcs.list_constraints.timeout = 20.0
|
758
|
+
# end
|
759
|
+
#
|
760
|
+
# # Apply the above configuration only to a new client.
|
761
|
+
# client = ::Google::Cloud::OrgPolicy::V2::OrgPolicy::Client.new do |config|
|
762
|
+
# config.timeout = 10.0
|
763
|
+
# config.rpcs.list_constraints.timeout = 20.0
|
764
|
+
# end
|
758
765
|
#
|
759
766
|
# @!attribute [rw] endpoint
|
760
767
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-org_policy-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|