google-cloud-org_policy-v2 0.6.0 → 0.7.0
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: e378f7877a32aa784289727dc206ca2d22fbfe049ed01088bcc446b730277f8c
|
4
|
+
data.tar.gz: 36a87a2dc8d5efe61470fba7aeae1548d5028ca205b15cecbe9ea9531655e5d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8d5699411a488557efe185a0100641136670269ba6f8bab1d06326c2d7d8acc41bb436c31643496ee858ba317a6da53c0b85b8afa28eadc7d64f78d0efb53a3
|
7
|
+
data.tar.gz: 70ba3cda52c4985c9f418a5e37b16969884c0dc7a66c32ca68cc06f764960a3113a829a690e3463d6e55c53a55cb99af0383fa018b3bfc106091c9a08f4b8df4
|
@@ -192,7 +192,8 @@ module Google
|
|
192
192
|
credentials: credentials,
|
193
193
|
endpoint: @config.endpoint,
|
194
194
|
channel_args: @config.channel_args,
|
195
|
-
interceptors: @config.interceptors
|
195
|
+
interceptors: @config.interceptors,
|
196
|
+
channel_pool_config: @config.channel_pool
|
196
197
|
)
|
197
198
|
end
|
198
199
|
|
@@ -985,6 +986,14 @@ module Google
|
|
985
986
|
end
|
986
987
|
end
|
987
988
|
|
989
|
+
##
|
990
|
+
# Configuration for the channel pool
|
991
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
992
|
+
#
|
993
|
+
def channel_pool
|
994
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
995
|
+
end
|
996
|
+
|
988
997
|
##
|
989
998
|
# Configuration RPC class for the OrgPolicy API.
|
990
999
|
#
|
@@ -228,6 +228,26 @@ module Google
|
|
228
228
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OrgPolicy::V2::Constraint>]
|
229
229
|
#
|
230
230
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
231
|
+
#
|
232
|
+
# @example Basic example
|
233
|
+
# require "google/cloud/org_policy/v2"
|
234
|
+
#
|
235
|
+
# # Create a client object. The client can be reused for multiple calls.
|
236
|
+
# client = Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::Client.new
|
237
|
+
#
|
238
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
239
|
+
# request = Google::Cloud::OrgPolicy::V2::ListConstraintsRequest.new
|
240
|
+
#
|
241
|
+
# # Call the list_constraints method.
|
242
|
+
# result = client.list_constraints request
|
243
|
+
#
|
244
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
245
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
246
|
+
# result.each do |item|
|
247
|
+
# # Each element is of type ::Google::Cloud::OrgPolicy::V2::Constraint.
|
248
|
+
# p item
|
249
|
+
# end
|
250
|
+
#
|
231
251
|
def list_constraints request, options = nil
|
232
252
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
233
253
|
|
@@ -304,6 +324,26 @@ module Google
|
|
304
324
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OrgPolicy::V2::Policy>]
|
305
325
|
#
|
306
326
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
327
|
+
#
|
328
|
+
# @example Basic example
|
329
|
+
# require "google/cloud/org_policy/v2"
|
330
|
+
#
|
331
|
+
# # Create a client object. The client can be reused for multiple calls.
|
332
|
+
# client = Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::Client.new
|
333
|
+
#
|
334
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
335
|
+
# request = Google::Cloud::OrgPolicy::V2::ListPoliciesRequest.new
|
336
|
+
#
|
337
|
+
# # Call the list_policies method.
|
338
|
+
# result = client.list_policies request
|
339
|
+
#
|
340
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
341
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
342
|
+
# result.each do |item|
|
343
|
+
# # Each element is of type ::Google::Cloud::OrgPolicy::V2::Policy.
|
344
|
+
# p item
|
345
|
+
# end
|
346
|
+
#
|
307
347
|
def list_policies request, options = nil
|
308
348
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
309
349
|
|
@@ -372,6 +412,22 @@ module Google
|
|
372
412
|
# @return [::Google::Cloud::OrgPolicy::V2::Policy]
|
373
413
|
#
|
374
414
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
415
|
+
#
|
416
|
+
# @example Basic example
|
417
|
+
# require "google/cloud/org_policy/v2"
|
418
|
+
#
|
419
|
+
# # Create a client object. The client can be reused for multiple calls.
|
420
|
+
# client = Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::Client.new
|
421
|
+
#
|
422
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
423
|
+
# request = Google::Cloud::OrgPolicy::V2::GetPolicyRequest.new
|
424
|
+
#
|
425
|
+
# # Call the get_policy method.
|
426
|
+
# result = client.get_policy request
|
427
|
+
#
|
428
|
+
# # The returned object is of type Google::Cloud::OrgPolicy::V2::Policy.
|
429
|
+
# p result
|
430
|
+
#
|
375
431
|
def get_policy request, options = nil
|
376
432
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
377
433
|
|
@@ -439,6 +495,22 @@ module Google
|
|
439
495
|
# @return [::Google::Cloud::OrgPolicy::V2::Policy]
|
440
496
|
#
|
441
497
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
498
|
+
#
|
499
|
+
# @example Basic example
|
500
|
+
# require "google/cloud/org_policy/v2"
|
501
|
+
#
|
502
|
+
# # Create a client object. The client can be reused for multiple calls.
|
503
|
+
# client = Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::Client.new
|
504
|
+
#
|
505
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
506
|
+
# request = Google::Cloud::OrgPolicy::V2::GetEffectivePolicyRequest.new
|
507
|
+
#
|
508
|
+
# # Call the get_effective_policy method.
|
509
|
+
# result = client.get_effective_policy request
|
510
|
+
#
|
511
|
+
# # The returned object is of type Google::Cloud::OrgPolicy::V2::Policy.
|
512
|
+
# p result
|
513
|
+
#
|
442
514
|
def get_effective_policy request, options = nil
|
443
515
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
444
516
|
|
@@ -513,6 +585,22 @@ module Google
|
|
513
585
|
# @return [::Google::Cloud::OrgPolicy::V2::Policy]
|
514
586
|
#
|
515
587
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
588
|
+
#
|
589
|
+
# @example Basic example
|
590
|
+
# require "google/cloud/org_policy/v2"
|
591
|
+
#
|
592
|
+
# # Create a client object. The client can be reused for multiple calls.
|
593
|
+
# client = Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::Client.new
|
594
|
+
#
|
595
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
596
|
+
# request = Google::Cloud::OrgPolicy::V2::CreatePolicyRequest.new
|
597
|
+
#
|
598
|
+
# # Call the create_policy method.
|
599
|
+
# result = client.create_policy request
|
600
|
+
#
|
601
|
+
# # The returned object is of type Google::Cloud::OrgPolicy::V2::Policy.
|
602
|
+
# p result
|
603
|
+
#
|
516
604
|
def create_policy request, options = nil
|
517
605
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
518
606
|
|
@@ -587,6 +675,22 @@ module Google
|
|
587
675
|
# @return [::Google::Cloud::OrgPolicy::V2::Policy]
|
588
676
|
#
|
589
677
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
678
|
+
#
|
679
|
+
# @example Basic example
|
680
|
+
# require "google/cloud/org_policy/v2"
|
681
|
+
#
|
682
|
+
# # Create a client object. The client can be reused for multiple calls.
|
683
|
+
# client = Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::Client.new
|
684
|
+
#
|
685
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
686
|
+
# request = Google::Cloud::OrgPolicy::V2::UpdatePolicyRequest.new
|
687
|
+
#
|
688
|
+
# # Call the update_policy method.
|
689
|
+
# result = client.update_policy request
|
690
|
+
#
|
691
|
+
# # The returned object is of type Google::Cloud::OrgPolicy::V2::Policy.
|
692
|
+
# p result
|
693
|
+
#
|
590
694
|
def update_policy request, options = nil
|
591
695
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
592
696
|
|
@@ -653,6 +757,22 @@ module Google
|
|
653
757
|
# @return [::Google::Protobuf::Empty]
|
654
758
|
#
|
655
759
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
760
|
+
#
|
761
|
+
# @example Basic example
|
762
|
+
# require "google/cloud/org_policy/v2"
|
763
|
+
#
|
764
|
+
# # Create a client object. The client can be reused for multiple calls.
|
765
|
+
# client = Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::Client.new
|
766
|
+
#
|
767
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
768
|
+
# request = Google::Cloud::OrgPolicy::V2::DeletePolicyRequest.new
|
769
|
+
#
|
770
|
+
# # Call the delete_policy method.
|
771
|
+
# result = client.delete_policy request
|
772
|
+
#
|
773
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
774
|
+
# p result
|
775
|
+
#
|
656
776
|
def delete_policy request, options = nil
|
657
777
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
658
778
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
rubygems_version: 3.4.
|
218
|
+
rubygems_version: 3.4.19
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: The Organization Policy API allows users to configure governance rules on
|