google-apis-orgpolicy_v2 0.31.0 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/orgpolicy_v2/classes.rb +48 -0
- data/lib/google/apis/orgpolicy_v2/gem_version.rb +3 -3
- data/lib/google/apis/orgpolicy_v2/representations.rb +18 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b11157bfed861dede32b53fbe64497c8e6c03c40ad56627af33a97e05c44371b
|
4
|
+
data.tar.gz: 0a2d42c059cbe9cfbf5d036f2abcc4873c7af9486c7792b5e9a738287a7d5b0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b99f5cbb3c4e9e5fab14f0e25384fba74f28feaa9f16685f1a796e581417f77c40f29e93af6db766bb8777a4b347d7c6421e8f69f2ca841e23df99139ef2b5
|
7
|
+
data.tar.gz: 033cf3dc752bd5affb1fd63791790442bbcc66754c41d322c4edbb11615b91a501d4d1de1ecd6b5c52a76ede03584712b67402f918b6308818de3593a2b7179f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-orgpolicy_v2
|
2
2
|
|
3
|
+
### v0.33.0 (2024-03-31)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240325
|
6
|
+
|
7
|
+
### v0.32.0 (2024-02-23)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.14.0
|
10
|
+
|
3
11
|
### v0.31.0 (2024-01-22)
|
4
12
|
|
5
13
|
* Regenerated using generator version 0.13.0
|
data/OVERVIEW.md
CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/orgpolicy/docs/reference/re
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby 2.
|
86
|
+
This library is supported on Ruby 2.7+.
|
87
87
|
|
88
|
-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life.
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
90
90
|
## License
|
91
91
|
|
@@ -77,6 +77,12 @@ module Google
|
|
77
77
|
# @return [String]
|
78
78
|
attr_accessor :constraint_default
|
79
79
|
|
80
|
+
# A Google defined custom constraint. This represents a subset of fields missing
|
81
|
+
# from Constraint proto that are required to describe CustomConstraint
|
82
|
+
# Corresponds to the JSON property `customConstraint`
|
83
|
+
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint]
|
84
|
+
attr_accessor :custom_constraint
|
85
|
+
|
80
86
|
# Detailed description of what this constraint controls as well as how and where
|
81
87
|
# it is enforced. Mutable.
|
82
88
|
# Corresponds to the JSON property `description`
|
@@ -117,6 +123,7 @@ module Google
|
|
117
123
|
def update!(**args)
|
118
124
|
@boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
|
119
125
|
@constraint_default = args[:constraint_default] if args.key?(:constraint_default)
|
126
|
+
@custom_constraint = args[:custom_constraint] if args.key?(:custom_constraint)
|
120
127
|
@description = args[:description] if args.key?(:description)
|
121
128
|
@display_name = args[:display_name] if args.key?(:display_name)
|
122
129
|
@list_constraint = args[:list_constraint] if args.key?(:list_constraint)
|
@@ -140,6 +147,47 @@ module Google
|
|
140
147
|
end
|
141
148
|
end
|
142
149
|
|
150
|
+
# A Google defined custom constraint. This represents a subset of fields missing
|
151
|
+
# from Constraint proto that are required to describe CustomConstraint
|
152
|
+
class GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint
|
153
|
+
include Google::Apis::Core::Hashable
|
154
|
+
|
155
|
+
# Allow or deny type.
|
156
|
+
# Corresponds to the JSON property `actionType`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :action_type
|
159
|
+
|
160
|
+
# Org policy condition/expression. For example: `resource.instanceName.matches("[
|
161
|
+
# production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true`
|
162
|
+
# The max length of the condition is 1000 characters.
|
163
|
+
# Corresponds to the JSON property `condition`
|
164
|
+
# @return [String]
|
165
|
+
attr_accessor :condition
|
166
|
+
|
167
|
+
# All the operations being applied for this constraint.
|
168
|
+
# Corresponds to the JSON property `methodTypes`
|
169
|
+
# @return [Array<String>]
|
170
|
+
attr_accessor :method_types
|
171
|
+
|
172
|
+
# The resource instance type on which this policy applies. Format will be of the
|
173
|
+
# form : `/` Example: * `compute.googleapis.com/Instance`.
|
174
|
+
# Corresponds to the JSON property `resourceTypes`
|
175
|
+
# @return [Array<String>]
|
176
|
+
attr_accessor :resource_types
|
177
|
+
|
178
|
+
def initialize(**args)
|
179
|
+
update!(**args)
|
180
|
+
end
|
181
|
+
|
182
|
+
# Update properties of this object
|
183
|
+
def update!(**args)
|
184
|
+
@action_type = args[:action_type] if args.key?(:action_type)
|
185
|
+
@condition = args[:condition] if args.key?(:condition)
|
186
|
+
@method_types = args[:method_types] if args.key?(:method_types)
|
187
|
+
@resource_types = args[:resource_types] if args.key?(:resource_types)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
143
191
|
# A constraint that allows or disallows a list of string values, which are
|
144
192
|
# configured by an Organization Policy administrator with a policy.
|
145
193
|
class GoogleCloudOrgpolicyV2ConstraintListConstraint
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module OrgpolicyV2
|
18
18
|
# Version of the google-apis-orgpolicy_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.33.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240325"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,12 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class GoogleCloudOrgpolicyV2ConstraintListConstraint
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
@@ -121,6 +127,8 @@ module Google
|
|
121
127
|
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintBooleanConstraint, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintBooleanConstraint::Representation
|
122
128
|
|
123
129
|
property :constraint_default, as: 'constraintDefault'
|
130
|
+
property :custom_constraint, as: 'customConstraint', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint::Representation
|
131
|
+
|
124
132
|
property :description, as: 'description'
|
125
133
|
property :display_name, as: 'displayName'
|
126
134
|
property :list_constraint, as: 'listConstraint', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint::Representation
|
@@ -136,6 +144,16 @@ module Google
|
|
136
144
|
end
|
137
145
|
end
|
138
146
|
|
147
|
+
class GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint
|
148
|
+
# @private
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
+
property :action_type, as: 'actionType'
|
151
|
+
property :condition, as: 'condition'
|
152
|
+
collection :method_types, as: 'methodTypes'
|
153
|
+
collection :resource_types, as: 'resourceTypes'
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
139
157
|
class GoogleCloudOrgpolicyV2ConstraintListConstraint
|
140
158
|
# @private
|
141
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-orgpolicy_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.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: 2024-
|
11
|
+
date: 2024-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.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.14.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-orgpolicy_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.33.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-orgpolicy_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
71
|
+
version: '2.7'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Organization Policy API V2
|