google-cloud-asset 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/asset.rb +1 -1
- data/lib/google/cloud/asset/v1.rb +1 -1
- data/lib/google/cloud/asset/v1/asset_service_client.rb +3 -0
- data/lib/google/cloud/asset/v1beta1.rb +1 -1
- data/lib/google/cloud/asset/v1beta1/asset_service_client.rb +3 -0
- data/lib/google/cloud/asset/version.rb +1 -1
- data/lib/google/cloud/orgpolicy/v1/doc/google/cloud/orgpolicy/v1/orgpolicy.rb +308 -0
- data/lib/google/cloud/orgpolicy/v1/orgpolicy_pb.rb +55 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e59422bf47d4425f73d8d59dd7df5c8bd70a84329d62710630af7504f5c2f6f
|
4
|
+
data.tar.gz: 81799e8c6ee4c14e9fdcafa8551e63bad3f94569d24660edd4e3ac1e7f1f3c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77eb3fa5f53d89a90049254f489bb867056495fbf9fa8f2d2d92022bb43348ad4053732e659db9b4e9483b5a7522953d7e9070f173563653913e4240d4cd1cb6
|
7
|
+
data.tar.gz: 4d88e2b2e383ca35f2866588c30aaae9a5e725dee27dc883a8c2108a0295c6717dcb082c6746b532d79273f28d6cb8b8f3ba346b3f42af0ddbc257ae2f242eb5
|
data/README.md
CHANGED
data/lib/google/cloud/asset.rb
CHANGED
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Asset API
|
24
|
+
# # Ruby Client for Cloud Asset API
|
25
25
|
#
|
26
26
|
# [Cloud Asset API][Product Documentation]:
|
27
27
|
# The cloud asset API manages the history and inventory of cloud resources.
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# rubocop:disable LineLength
|
23
23
|
|
24
24
|
##
|
25
|
-
# # Ruby Client for Cloud Asset API
|
25
|
+
# # Ruby Client for Cloud Asset API
|
26
26
|
#
|
27
27
|
# [Cloud Asset API][Product Documentation]:
|
28
28
|
# The cloud asset API manages the history and inventory of cloud resources.
|
@@ -187,6 +187,9 @@ module Google
|
|
187
187
|
google_api_client.freeze
|
188
188
|
|
189
189
|
headers = { :"x-goog-api-client" => google_api_client }
|
190
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
191
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
192
|
+
end
|
190
193
|
headers.merge!(metadata) unless metadata.nil?
|
191
194
|
client_config_file = Pathname.new(__dir__).join(
|
192
195
|
"asset_service_client_config.json"
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# rubocop:disable LineLength
|
23
23
|
|
24
24
|
##
|
25
|
-
# # Ruby Client for Cloud Asset API
|
25
|
+
# # Ruby Client for Cloud Asset API
|
26
26
|
#
|
27
27
|
# [Cloud Asset API][Product Documentation]:
|
28
28
|
# The cloud asset API manages the history and inventory of cloud resources.
|
@@ -170,6 +170,9 @@ module Google
|
|
170
170
|
google_api_client.freeze
|
171
171
|
|
172
172
|
headers = { :"x-goog-api-client" => google_api_client }
|
173
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
174
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
175
|
+
end
|
173
176
|
headers.merge!(metadata) unless metadata.nil?
|
174
177
|
client_config_file = Pathname.new(__dir__).join(
|
175
178
|
"asset_service_client_config.json"
|
@@ -0,0 +1,308 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
19
|
+
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module OrgPolicy
|
24
|
+
module V1
|
25
|
+
# Defines a Cloud Organization `Policy` which is used to specify `Constraints`
|
26
|
+
# for configurations of Cloud Platform resources.
|
27
|
+
# @!attribute [rw] version
|
28
|
+
# @return [Integer]
|
29
|
+
# Version of the `Policy`. Default version is 0;
|
30
|
+
# @!attribute [rw] constraint
|
31
|
+
# @return [String]
|
32
|
+
# The name of the `Constraint` the `Policy` is configuring, for example,
|
33
|
+
# `constraints/serviceuser.services`.
|
34
|
+
#
|
35
|
+
# Immutable after creation.
|
36
|
+
# @!attribute [rw] etag
|
37
|
+
# @return [String]
|
38
|
+
# An opaque tag indicating the current version of the `Policy`, used for
|
39
|
+
# concurrency control.
|
40
|
+
#
|
41
|
+
# When the `Policy` is returned from either a `GetPolicy` or a
|
42
|
+
# `ListOrgPolicy` request, this `etag` indicates the version of the current
|
43
|
+
# `Policy` to use when executing a read-modify-write loop.
|
44
|
+
#
|
45
|
+
# When the `Policy` is returned from a `GetEffectivePolicy` request, the
|
46
|
+
# `etag` will be unset.
|
47
|
+
#
|
48
|
+
# When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
|
49
|
+
# that was returned from a `GetOrgPolicy` request as part of a
|
50
|
+
# read-modify-write loop for concurrency control. Not setting the `etag`in a
|
51
|
+
# `SetOrgPolicy` request will result in an unconditional write of the
|
52
|
+
# `Policy`.
|
53
|
+
# @!attribute [rw] update_time
|
54
|
+
# @return [Google::Protobuf::Timestamp]
|
55
|
+
# The time stamp the `Policy` was previously updated. This is set by the
|
56
|
+
# server, not specified by the caller, and represents the last time a call to
|
57
|
+
# `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
|
58
|
+
# be ignored.
|
59
|
+
# @!attribute [rw] list_policy
|
60
|
+
# @return [Google::Cloud::OrgPolicy::V1::Policy::ListPolicy]
|
61
|
+
# List of values either allowed or disallowed.
|
62
|
+
# @!attribute [rw] boolean_policy
|
63
|
+
# @return [Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy]
|
64
|
+
# For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
65
|
+
# @!attribute [rw] restore_default
|
66
|
+
# @return [Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault]
|
67
|
+
# Restores the default behavior of the constraint; independent of
|
68
|
+
# `Constraint` type.
|
69
|
+
class Policy
|
70
|
+
include Google::Protobuf::MessageExts
|
71
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
|
73
|
+
# Used in `policy_type` to specify how `list_policy` behaves at this
|
74
|
+
# resource.
|
75
|
+
#
|
76
|
+
# `ListPolicy` can define specific values and subtrees of Cloud Resource
|
77
|
+
# Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that
|
78
|
+
# are allowed or denied by setting the `allowed_values` and `denied_values`
|
79
|
+
# fields. This is achieved by using the `under:` and optional `is:` prefixes.
|
80
|
+
# The `under:` prefix is used to denote resource subtree values.
|
81
|
+
# The `is:` prefix is used to denote specific values, and is required only
|
82
|
+
# if the value contains a ":". Values prefixed with "is:" are treated the
|
83
|
+
# same as values with no prefix.
|
84
|
+
# Ancestry subtrees must be in one of the following formats:
|
85
|
+
# - "projects/<project-id>", e.g. "projects/tokyo-rain-123"
|
86
|
+
# - "folders/<folder-id>", e.g. "folders/1234"
|
87
|
+
# - "organizations/<organization-id>", e.g. "organizations/1234"
|
88
|
+
# The `supports_under` field of the associated `Constraint` defines whether
|
89
|
+
# ancestry prefixes can be used. You can set `allowed_values` and
|
90
|
+
# `denied_values` in the same `Policy` if `all_values` is
|
91
|
+
# `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all
|
92
|
+
# values. If `all_values` is set to either `ALLOW` or `DENY`,
|
93
|
+
# `allowed_values` and `denied_values` must be unset.
|
94
|
+
# @!attribute [rw] allowed_values
|
95
|
+
# @return [Array<String>]
|
96
|
+
# List of values allowed at this resource. Can only be set if `all_values`
|
97
|
+
# is set to `ALL_VALUES_UNSPECIFIED`.
|
98
|
+
# @!attribute [rw] denied_values
|
99
|
+
# @return [Array<String>]
|
100
|
+
# List of values denied at this resource. Can only be set if `all_values`
|
101
|
+
# is set to `ALL_VALUES_UNSPECIFIED`.
|
102
|
+
# @!attribute [rw] all_values
|
103
|
+
# @return [Google::Cloud::OrgPolicy::V1::Policy::ListPolicy::AllValues]
|
104
|
+
# The policy all_values state.
|
105
|
+
# @!attribute [rw] suggested_value
|
106
|
+
# @return [String]
|
107
|
+
# Optional. The Google Cloud Console will try to default to a configuration
|
108
|
+
# that matches the value specified in this `Policy`. If `suggested_value`
|
109
|
+
# is not set, it will inherit the value specified higher in the hierarchy,
|
110
|
+
# unless `inherit_from_parent` is `false`.
|
111
|
+
# @!attribute [rw] inherit_from_parent
|
112
|
+
# @return [Boolean]
|
113
|
+
# Determines the inheritance behavior for this `Policy`.
|
114
|
+
#
|
115
|
+
# By default, a `ListPolicy` set at a resource supercedes any `Policy` set
|
116
|
+
# anywhere up the resource hierarchy. However, if `inherit_from_parent` is
|
117
|
+
# set to `true`, then the values from the effective `Policy` of the parent
|
118
|
+
# resource are inherited, meaning the values set in this `Policy` are
|
119
|
+
# added to the values inherited up the hierarchy.
|
120
|
+
#
|
121
|
+
# Setting `Policy` hierarchies that inherit both allowed values and denied
|
122
|
+
# values isn't recommended in most circumstances to keep the configuration
|
123
|
+
# simple and understandable. However, it is possible to set a `Policy` with
|
124
|
+
# `allowed_values` set that inherits a `Policy` with `denied_values` set.
|
125
|
+
# In this case, the values that are allowed must be in `allowed_values` and
|
126
|
+
# not present in `denied_values`.
|
127
|
+
#
|
128
|
+
# For example, suppose you have a `Constraint`
|
129
|
+
# `constraints/serviceuser.services`, which has a `constraint_type` of
|
130
|
+
# `list_constraint`, and with `constraint_default` set to `ALLOW`.
|
131
|
+
# Suppose that at the Organization level, a `Policy` is applied that
|
132
|
+
# restricts the allowed API activations to \\\{`E1`, `E2`\}. Then, if a
|
133
|
+
# `Policy` is applied to a project below the Organization that has
|
134
|
+
# `inherit_from_parent` set to `false` and field all_values set to DENY,
|
135
|
+
# then an attempt to activate any API will be denied.
|
136
|
+
#
|
137
|
+
# The following examples demonstrate different possible layerings for
|
138
|
+
# `projects/bar` parented by `organizations/foo`:
|
139
|
+
#
|
140
|
+
# Example 1 (no inherited values):
|
141
|
+
# `organizations/foo` has a `Policy` with values:
|
142
|
+
# \\\{allowed_values: "E1" allowed_values:"E2"\}
|
143
|
+
# `projects/bar` has `inherit_from_parent` `false` and values:
|
144
|
+
# \\\{allowed_values: "E3" allowed_values: "E4"\}
|
145
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
146
|
+
# The accepted values at `projects/bar` are `E3`, and `E4`.
|
147
|
+
#
|
148
|
+
# Example 2 (inherited values):
|
149
|
+
# `organizations/foo` has a `Policy` with values:
|
150
|
+
# \\\{allowed_values: "E1" allowed_values:"E2"\}
|
151
|
+
# `projects/bar` has a `Policy` with values:
|
152
|
+
# \\\{value: "E3" value: "E4" inherit_from_parent: true\}
|
153
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
154
|
+
# The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.
|
155
|
+
#
|
156
|
+
# Example 3 (inheriting both allowed and denied values):
|
157
|
+
# `organizations/foo` has a `Policy` with values:
|
158
|
+
# \\\{allowed_values: "E1" allowed_values: "E2"\}
|
159
|
+
# `projects/bar` has a `Policy` with:
|
160
|
+
# \\\{denied_values: "E1"\}
|
161
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
162
|
+
# The value accepted at `projects/bar` is `E2`.
|
163
|
+
#
|
164
|
+
# Example 4 (RestoreDefault):
|
165
|
+
# `organizations/foo` has a `Policy` with values:
|
166
|
+
# \\\{allowed_values: "E1" allowed_values:"E2"\}
|
167
|
+
# `projects/bar` has a `Policy` with values:
|
168
|
+
# \\\{RestoreDefault: \\\{\}\}
|
169
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
170
|
+
# The accepted values at `projects/bar` are either all or none depending on
|
171
|
+
# the value of `constraint_default` (if `ALLOW`, all; if
|
172
|
+
# `DENY`, none).
|
173
|
+
#
|
174
|
+
# Example 5 (no policy inherits parent policy):
|
175
|
+
# `organizations/foo` has no `Policy` set.
|
176
|
+
# `projects/bar` has no `Policy` set.
|
177
|
+
# The accepted values at both levels are either all or none depending on
|
178
|
+
# the value of `constraint_default` (if `ALLOW`, all; if
|
179
|
+
# `DENY`, none).
|
180
|
+
#
|
181
|
+
# Example 6 (ListConstraint allowing all):
|
182
|
+
# `organizations/foo` has a `Policy` with values:
|
183
|
+
# \\\{allowed_values: "E1" allowed_values: "E2"\}
|
184
|
+
# `projects/bar` has a `Policy` with:
|
185
|
+
# \\\{all: ALLOW\}
|
186
|
+
# The accepted values at `organizations/foo` are `E1`, E2`.
|
187
|
+
# Any value is accepted at `projects/bar`.
|
188
|
+
#
|
189
|
+
# Example 7 (ListConstraint allowing none):
|
190
|
+
# `organizations/foo` has a `Policy` with values:
|
191
|
+
# \\\{allowed_values: "E1" allowed_values: "E2"\}
|
192
|
+
# `projects/bar` has a `Policy` with:
|
193
|
+
# \\\{all: DENY\}
|
194
|
+
# The accepted values at `organizations/foo` are `E1`, E2`.
|
195
|
+
# No value is accepted at `projects/bar`.
|
196
|
+
#
|
197
|
+
# Example 10 (allowed and denied subtrees of Resource Manager hierarchy):
|
198
|
+
# Given the following resource hierarchy
|
199
|
+
# O1->\\\{F1, F2\}; F1->\\\{P1\}; F2->\\\{P2, P3\},
|
200
|
+
# `organizations/foo` has a `Policy` with values:
|
201
|
+
# \\\{allowed_values: "under:organizations/O1"\}
|
202
|
+
# `projects/bar` has a `Policy` with:
|
203
|
+
# \\\{allowed_values: "under:projects/P3"\}
|
204
|
+
# \\\{denied_values: "under:folders/F2"\}
|
205
|
+
# The accepted values at `organizations/foo` are `organizations/O1`,
|
206
|
+
# `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`,
|
207
|
+
# `projects/P3`.
|
208
|
+
# The accepted values at `projects/bar` are `organizations/O1`,
|
209
|
+
# `folders/F1`, `projects/P1`.
|
210
|
+
class ListPolicy
|
211
|
+
include Google::Protobuf::MessageExts
|
212
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
213
|
+
|
214
|
+
# This enum can be used to set `Policies` that apply to all possible
|
215
|
+
# configuration values rather than specific values in `allowed_values` or
|
216
|
+
# `denied_values`.
|
217
|
+
#
|
218
|
+
# Settting this to `ALLOW` will mean this `Policy` allows all values.
|
219
|
+
# Similarly, setting it to `DENY` will mean no values are allowed. If
|
220
|
+
# set to either `ALLOW` or `DENY, `allowed_values` and `denied_values`
|
221
|
+
# must be unset. Setting this to `ALL_VALUES_UNSPECIFIED` allows for
|
222
|
+
# setting `allowed_values` and `denied_values`.
|
223
|
+
module AllValues
|
224
|
+
# Indicates that allowed_values or denied_values must be set.
|
225
|
+
ALL_VALUES_UNSPECIFIED = 0
|
226
|
+
|
227
|
+
# A policy with this set allows all values.
|
228
|
+
ALLOW = 1
|
229
|
+
|
230
|
+
# A policy with this set denies all values.
|
231
|
+
DENY = 2
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
236
|
+
# resource.
|
237
|
+
# @!attribute [rw] enforced
|
238
|
+
# @return [Boolean]
|
239
|
+
# If `true`, then the `Policy` is enforced. If `false`, then any
|
240
|
+
# configuration is acceptable.
|
241
|
+
#
|
242
|
+
# Suppose you have a `Constraint`
|
243
|
+
# `constraints/compute.disableSerialPortAccess` with `constraint_default`
|
244
|
+
# set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following
|
245
|
+
# behavior:
|
246
|
+
# - If the `Policy` at this resource has enforced set to `false`, serial
|
247
|
+
# port connection attempts will be allowed.
|
248
|
+
# - If the `Policy` at this resource has enforced set to `true`, serial
|
249
|
+
# port connection attempts will be refused.
|
250
|
+
# - If the `Policy` at this resource is `RestoreDefault`, serial port
|
251
|
+
# connection attempts will be allowed.
|
252
|
+
# - If no `Policy` is set at this resource or anywhere higher in the
|
253
|
+
# resource hierarchy, serial port connection attempts will be allowed.
|
254
|
+
# - If no `Policy` is set at this resource, but one exists higher in the
|
255
|
+
# resource hierarchy, the behavior is as if the`Policy` were set at
|
256
|
+
# this resource.
|
257
|
+
#
|
258
|
+
# The following examples demonstrate the different possible layerings:
|
259
|
+
#
|
260
|
+
# Example 1 (nearest `Constraint` wins):
|
261
|
+
# `organizations/foo` has a `Policy` with:
|
262
|
+
# \\\{enforced: false\}
|
263
|
+
# `projects/bar` has no `Policy` set.
|
264
|
+
# The constraint at `projects/bar` and `organizations/foo` will not be
|
265
|
+
# enforced.
|
266
|
+
#
|
267
|
+
# Example 2 (enforcement gets replaced):
|
268
|
+
# `organizations/foo` has a `Policy` with:
|
269
|
+
# \\\{enforced: false\}
|
270
|
+
# `projects/bar` has a `Policy` with:
|
271
|
+
# \\\{enforced: true\}
|
272
|
+
# The constraint at `organizations/foo` is not enforced.
|
273
|
+
# The constraint at `projects/bar` is enforced.
|
274
|
+
#
|
275
|
+
# Example 3 (RestoreDefault):
|
276
|
+
# `organizations/foo` has a `Policy` with:
|
277
|
+
# \\\{enforced: true\}
|
278
|
+
# `projects/bar` has a `Policy` with:
|
279
|
+
# \\\{RestoreDefault: \\\{\}\}
|
280
|
+
# The constraint at `organizations/foo` is enforced.
|
281
|
+
# The constraint at `projects/bar` is not enforced, because
|
282
|
+
# `constraint_default` for the `Constraint` is `ALLOW`.
|
283
|
+
class BooleanPolicy
|
284
|
+
include Google::Protobuf::MessageExts
|
285
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
286
|
+
end
|
287
|
+
|
288
|
+
# Ignores policies set above this resource and restores the
|
289
|
+
# `constraint_default` enforcement behavior of the specific `Constraint` at
|
290
|
+
# this resource.
|
291
|
+
#
|
292
|
+
# Suppose that `constraint_default` is set to `ALLOW` for the
|
293
|
+
# `Constraint` `constraints/serviceuser.services`. Suppose that organization
|
294
|
+
# foo.com sets a `Policy` at their Organization resource node that restricts
|
295
|
+
# the allowed service activations to deny all service activations. They
|
296
|
+
# could then set a `Policy` with the `policy_type` `restore_default` on
|
297
|
+
# several experimental projects, restoring the `constraint_default`
|
298
|
+
# enforcement of the `Constraint` for only those projects, allowing those
|
299
|
+
# projects to have all services activated.
|
300
|
+
class RestoreDefault
|
301
|
+
include Google::Protobuf::MessageExts
|
302
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
303
|
+
end
|
304
|
+
end
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
308
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/orgpolicy/v1/orgpolicy.proto
|
3
|
+
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/empty_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/cloud/orgpolicy/v1/orgpolicy.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.orgpolicy.v1.Policy" do
|
13
|
+
optional :version, :int32, 1
|
14
|
+
optional :constraint, :string, 2
|
15
|
+
optional :etag, :bytes, 3
|
16
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
17
|
+
oneof :policy_type do
|
18
|
+
optional :list_policy, :message, 5, "google.cloud.orgpolicy.v1.Policy.ListPolicy"
|
19
|
+
optional :boolean_policy, :message, 6, "google.cloud.orgpolicy.v1.Policy.BooleanPolicy"
|
20
|
+
optional :restore_default, :message, 7, "google.cloud.orgpolicy.v1.Policy.RestoreDefault"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
add_message "google.cloud.orgpolicy.v1.Policy.ListPolicy" do
|
24
|
+
repeated :allowed_values, :string, 1
|
25
|
+
repeated :denied_values, :string, 2
|
26
|
+
optional :all_values, :enum, 3, "google.cloud.orgpolicy.v1.Policy.ListPolicy.AllValues"
|
27
|
+
optional :suggested_value, :string, 4
|
28
|
+
optional :inherit_from_parent, :bool, 5
|
29
|
+
end
|
30
|
+
add_enum "google.cloud.orgpolicy.v1.Policy.ListPolicy.AllValues" do
|
31
|
+
value :ALL_VALUES_UNSPECIFIED, 0
|
32
|
+
value :ALLOW, 1
|
33
|
+
value :DENY, 2
|
34
|
+
end
|
35
|
+
add_message "google.cloud.orgpolicy.v1.Policy.BooleanPolicy" do
|
36
|
+
optional :enforced, :bool, 1
|
37
|
+
end
|
38
|
+
add_message "google.cloud.orgpolicy.v1.Policy.RestoreDefault" do
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
module Google
|
44
|
+
module Cloud
|
45
|
+
module OrgPolicy
|
46
|
+
module V1
|
47
|
+
Policy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v1.Policy").msgclass
|
48
|
+
Policy::ListPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v1.Policy.ListPolicy").msgclass
|
49
|
+
Policy::ListPolicy::AllValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v1.Policy.ListPolicy.AllValues").enummodule
|
50
|
+
Policy::BooleanPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v1.Policy.BooleanPolicy").msgclass
|
51
|
+
Policy::RestoreDefault = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v1.Policy.RestoreDefault").msgclass
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-asset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2020-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -196,6 +196,8 @@ files:
|
|
196
196
|
- lib/google/cloud/asset/v1beta1/doc/google/type/expr.rb
|
197
197
|
- lib/google/cloud/asset/v1beta1/helpers.rb
|
198
198
|
- lib/google/cloud/asset/version.rb
|
199
|
+
- lib/google/cloud/orgpolicy/v1/doc/google/cloud/orgpolicy/v1/orgpolicy.rb
|
200
|
+
- lib/google/cloud/orgpolicy/v1/orgpolicy_pb.rb
|
199
201
|
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-asset
|
200
202
|
licenses:
|
201
203
|
- Apache-2.0
|