google-cloud-org_policy-v2 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/org_policy/v2/org_policy/client.rb +22 -21
- data/lib/google/cloud/org_policy/v2/org_policy/rest/client.rb +877 -0
- data/lib/google/cloud/org_policy/v2/org_policy/rest/service_stub.rb +565 -0
- data/lib/google/cloud/org_policy/v2/org_policy/rest.rb +71 -0
- data/lib/google/cloud/org_policy/v2/org_policy.rb +7 -1
- data/lib/google/cloud/org_policy/v2/rest.rb +37 -0
- data/lib/google/cloud/org_policy/v2/version.rb +1 -1
- data/lib/google/cloud/org_policy/v2.rb +7 -2
- data/lib/google/cloud/orgpolicy/v2/constraint_pb.rb +1 -0
- data/lib/google/cloud/orgpolicy/v2/orgpolicy_pb.rb +3 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/orgpolicy/v2/orgpolicy.rb +19 -8
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +17 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff493f46652eeff5e6b0944ebf297a667142a4d4f2d4407666dbaafc56497953
|
4
|
+
data.tar.gz: 012d4efc72c58b499db22ae76e666713e9891e414b8d889d63d4e8323ae37d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e836b558570788c9c04293311a72012cb74cf8397120fd0106bf2648d0e7dff7709238696a04843e711e6556566866295304ace582ea55710b05a9a3c6f7eb13
|
7
|
+
data.tar.gz: 21ebb47bedc67d7a4d0e1e13a7dd01078ec0347348c6fed1552200fcfc6e86c534b8737c2f5f26c41c9e10df46a44c48bd65340798b0ed69c557ebcd8743871d
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Organization Policy V2 API
|
2
2
|
|
3
|
-
API
|
3
|
+
The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy.
|
4
4
|
|
5
5
|
The Cloud Org Policy service provides a simple mechanism for organizations to restrict the allowed configurations across their entire Cloud Resource hierarchy.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -217,8 +217,8 @@ module Google
|
|
217
217
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
218
218
|
#
|
219
219
|
# @param parent [::String]
|
220
|
-
# Required. The Cloud resource that parents the constraint. Must be in one of
|
221
|
-
# following forms:
|
220
|
+
# Required. The Cloud resource that parents the constraint. Must be in one of
|
221
|
+
# the following forms:
|
222
222
|
# * `projects/{project_number}`
|
223
223
|
# * `projects/{project_id}`
|
224
224
|
# * `folders/{folder_id}`
|
@@ -251,13 +251,11 @@ module Google
|
|
251
251
|
# # Call the list_constraints method.
|
252
252
|
# result = client.list_constraints request
|
253
253
|
#
|
254
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
255
|
-
# #
|
256
|
-
#
|
257
|
-
# # methods are also available for managing paging directly.
|
258
|
-
# result.each do |response|
|
254
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
255
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
256
|
+
# result.each do |item|
|
259
257
|
# # Each element is of type ::Google::Cloud::OrgPolicy::V2::Constraint.
|
260
|
-
# p
|
258
|
+
# p item
|
261
259
|
# end
|
262
260
|
#
|
263
261
|
def list_constraints request, options = nil
|
@@ -321,9 +319,9 @@ module Google
|
|
321
319
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
322
320
|
#
|
323
321
|
# @param parent [::String]
|
324
|
-
# Required. The target Cloud resource that parents the set of constraints and
|
325
|
-
# that will be returned from this call. Must be in one of the
|
326
|
-
# forms:
|
322
|
+
# Required. The target Cloud resource that parents the set of constraints and
|
323
|
+
# policies that will be returned from this call. Must be in one of the
|
324
|
+
# following forms:
|
327
325
|
# * `projects/{project_number}`
|
328
326
|
# * `projects/{project_id}`
|
329
327
|
# * `folders/{folder_id}`
|
@@ -356,13 +354,11 @@ module Google
|
|
356
354
|
# # Call the list_policies method.
|
357
355
|
# result = client.list_policies request
|
358
356
|
#
|
359
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
360
|
-
# #
|
361
|
-
#
|
362
|
-
# # methods are also available for managing paging directly.
|
363
|
-
# result.each do |response|
|
357
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
358
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
359
|
+
# result.each do |item|
|
364
360
|
# # Each element is of type ::Google::Cloud::OrgPolicy::V2::Policy.
|
365
|
-
# p
|
361
|
+
# p item
|
366
362
|
# end
|
367
363
|
#
|
368
364
|
def list_policies request, options = nil
|
@@ -430,7 +426,8 @@ module Google
|
|
430
426
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
431
427
|
#
|
432
428
|
# @param name [::String]
|
433
|
-
# Required. Resource name of the policy. See `Policy` for naming
|
429
|
+
# Required. Resource name of the policy. See `Policy` for naming
|
430
|
+
# requirements.
|
434
431
|
#
|
435
432
|
# @yield [response, operation] Access the result along with the RPC operation
|
436
433
|
# @yieldparam response [::Google::Cloud::OrgPolicy::V2::Policy]
|
@@ -610,8 +607,8 @@ module Google
|
|
610
607
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
611
608
|
#
|
612
609
|
# @param parent [::String]
|
613
|
-
# Required. The Cloud resource that will parent the new Policy. Must be in
|
614
|
-
# following forms:
|
610
|
+
# Required. The Cloud resource that will parent the new Policy. Must be in
|
611
|
+
# one of the following forms:
|
615
612
|
# * `projects/{project_number}`
|
616
613
|
# * `projects/{project_id}`
|
617
614
|
# * `folders/{folder_id}`
|
@@ -704,13 +701,17 @@ module Google
|
|
704
701
|
# @param options [::Gapic::CallOptions, ::Hash]
|
705
702
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
706
703
|
#
|
707
|
-
# @overload update_policy(policy: nil)
|
704
|
+
# @overload update_policy(policy: nil, update_mask: nil)
|
708
705
|
# Pass arguments to `update_policy` via keyword arguments. Note that at
|
709
706
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
710
707
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
711
708
|
#
|
712
709
|
# @param policy [::Google::Cloud::OrgPolicy::V2::Policy, ::Hash]
|
713
710
|
# Required. `Policy` to update.
|
711
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
712
|
+
# Field mask used to specify the fields to be overwritten in the policy
|
713
|
+
# by the set. The fields specified in the update_mask are relative to the
|
714
|
+
# policy, not the full request.
|
714
715
|
#
|
715
716
|
# @yield [response, operation] Access the result along with the RPC operation
|
716
717
|
# @yieldparam response [::Google::Cloud::OrgPolicy::V2::Policy]
|