google-apis-orgpolicy_v2 0.32.0 → 0.34.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: ac21104ce5fbca47e84def4a43440014bc9127474e6e3a8a8b267b8099fbc4d4
4
- data.tar.gz: d6d54135680e3745c01e95b43218a96842a8f2eed09dd7844e2c8ecfc7eb1da5
3
+ metadata.gz: 3bd3dca886526d3bc8911a39a07353a20d7d2fb5639bb3caff5e1b5e6bca8536
4
+ data.tar.gz: 67492e8c14679060c688f831dd1ca106f2dec83b9e1c54000ad6a04a23f4ffad
5
5
  SHA512:
6
- metadata.gz: d6a6eb8ebd7b602a1cc52f9e2b4866b7c037963d4a03b83fe20a4800cbad350124c467f3f523ada66ff4863d9225700c02b916fc3c3a94aac165fabde1d7955f
7
- data.tar.gz: 5c2c2c55c89eeb72cfbe5b3b66a1a5d91baf91cfc95e1b5a9eb7ec09df92fae12b6a866934020cf51b6068475715851e3799bb3f2655614b5b687ef2b28742f4
6
+ metadata.gz: 57b38eca721680bcde24907d5deba072beb84c987c76c9e045109403e93df29b31de07fce6290ea0accc5a431af8d8478e5995db467f7a9d8ca725eff6a0df15
7
+ data.tar.gz: 23828acef02160b792b64c40f2fb4258593183a11f4e545add30604abbaba6adb2ff67781904487641f91a21fa0c7018487fa7ea0eb4cc34bc2525f76ed4e9fb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.34.0 (2024-04-28)
4
+
5
+ * Regenerated from discovery document revision 20240422
6
+
7
+ ### v0.33.0 (2024-03-31)
8
+
9
+ * Regenerated from discovery document revision 20240325
10
+
3
11
  ### v0.32.0 (2024-02-23)
4
12
 
5
13
  * Regenerated using generator version 0.14.0
@@ -88,6 +88,12 @@ module Google
88
88
  # @return [String]
89
89
  attr_accessor :display_name
90
90
 
91
+ # A Google managed constraint. This represents a subset of fields missing from
92
+ # Constraint proto that are required to describe CustomConstraint
93
+ # Corresponds to the JSON property `googleManagedConstraint`
94
+ # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint]
95
+ attr_accessor :google_managed_constraint
96
+
91
97
  # A constraint that allows or disallows a list of string values, which are
92
98
  # configured by an Organization Policy administrator with a policy.
93
99
  # Corresponds to the JSON property `listConstraint`
@@ -119,6 +125,7 @@ module Google
119
125
  @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
120
126
  @description = args[:description] if args.key?(:description)
121
127
  @display_name = args[:display_name] if args.key?(:display_name)
128
+ @google_managed_constraint = args[:google_managed_constraint] if args.key?(:google_managed_constraint)
122
129
  @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
123
130
  @name = args[:name] if args.key?(:name)
124
131
  @supports_dry_run = args[:supports_dry_run] if args.key?(:supports_dry_run)
@@ -140,6 +147,47 @@ module Google
140
147
  end
141
148
  end
142
149
 
150
+ # A Google managed constraint. This represents a subset of fields missing from
151
+ # Constraint proto that are required to describe CustomConstraint
152
+ class GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint
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.34.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 = "20240422"
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 GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint
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
 
@@ -123,6 +129,8 @@ module Google
123
129
  property :constraint_default, as: 'constraintDefault'
124
130
  property :description, as: 'description'
125
131
  property :display_name, as: 'displayName'
132
+ property :google_managed_constraint, as: 'googleManagedConstraint', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint::Representation
133
+
126
134
  property :list_constraint, as: 'listConstraint', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint::Representation
127
135
 
128
136
  property :name, as: 'name'
@@ -136,6 +144,16 @@ module Google
136
144
  end
137
145
  end
138
146
 
147
+ class GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint
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.34.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-04-28 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.34.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: []