google-apis-orgpolicy_v2 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac21104ce5fbca47e84def4a43440014bc9127474e6e3a8a8b267b8099fbc4d4
4
- data.tar.gz: d6d54135680e3745c01e95b43218a96842a8f2eed09dd7844e2c8ecfc7eb1da5
3
+ metadata.gz: b11157bfed861dede32b53fbe64497c8e6c03c40ad56627af33a97e05c44371b
4
+ data.tar.gz: 0a2d42c059cbe9cfbf5d036f2abcc4873c7af9486c7792b5e9a738287a7d5b0c
5
5
  SHA512:
6
- metadata.gz: d6a6eb8ebd7b602a1cc52f9e2b4866b7c037963d4a03b83fe20a4800cbad350124c467f3f523ada66ff4863d9225700c02b916fc3c3a94aac165fabde1d7955f
7
- data.tar.gz: 5c2c2c55c89eeb72cfbe5b3b66a1a5d91baf91cfc95e1b5a9eb7ec09df92fae12b6a866934020cf51b6068475715851e3799bb3f2655614b5b687ef2b28742f4
6
+ metadata.gz: c6b99f5cbb3c4e9e5fab14f0e25384fba74f28feaa9f16685f1a796e581417f77c40f29e93af6db766bb8777a4b347d7c6421e8f69f2ca841e23df99139ef2b5
7
+ data.tar.gz: 033cf3dc752bd5affb1fd63791790442bbcc66754c41d322c4edbb11615b91a501d4d1de1ecd6b5c52a76ede03584712b67402f918b6308818de3593a2b7179f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.32.0 (2024-02-23)
4
8
 
5
9
  * Regenerated using generator version 0.14.0
@@ -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.32.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231209"
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.32.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-02-25 00:00:00.000000000 Z
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
@@ -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.32.0
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: []