google-apis-policysimulator_v1 0.27.0 → 0.29.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: 7b54260017ab741c18da617ade41247ae8b26d770167b9e9a0d36b691df54d28
4
- data.tar.gz: fb902cf74ef4aac84dfb1204c9300af1b0ab4ea836112a2f92790b953b9b8377
3
+ metadata.gz: 90cf8b40111f04a1164ee97158ff04c2c4b7fc1b78a18b958cb3dfb34d9c9f4a
4
+ data.tar.gz: b6d1c6a2e62aa1fb1663a3c8f9778417698d76fa62e70878dfac4eff080d1cae
5
5
  SHA512:
6
- metadata.gz: 549200bc42e2c369af075480bd9c80b77f14e0b531d39b06b911698d11850df344f988f49bd3a2ea7f770fe35a381983e72266be3a05d03df7db277c58990c83
7
- data.tar.gz: fb18a535fec33bc487ce85018538d9cb7df2c0c5b19abd05b6e3d095b6ba3ea4153952093ebb380666d56cbfcea9b4c5a76b6daa7a5bf3a94ccd8d1a06c3cf29
6
+ metadata.gz: d9954a5558c49de809ed96574902b15ff46433f75feaf52094069b17023e9c46368305f3bc6bf46842a26940e04d7d0f2c57d4e786ef6363f4b6a6b61c3bd859
7
+ data.tar.gz: cd592b222e86faa0011ad5f0ed902ed5254a9cfa8250bb3ec5264b342c75fba753496e54bc970cb074f152674ea7fe0c7036f5b3793c41a56a221df1f0250318
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-policysimulator_v1
2
2
 
3
+ ### v0.29.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231203
6
+
7
+ ### v0.28.0 (2023-09-24)
8
+
9
+ * Regenerated from discovery document revision 20230917
10
+
3
11
  ### v0.27.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230806
@@ -179,11 +179,11 @@ module Google
179
179
  class GoogleCloudOrgpolicyV2PolicySpec
180
180
  include Google::Apis::Core::Hashable
181
181
 
182
- # An opaque tag indicating the current version of the policy, used for
182
+ # An opaque tag indicating the current version of the policySpec, used for
183
183
  # concurrency control. This field is ignored if used in a `CreatePolicy` request.
184
- # When the policy` is returned from either a `GetPolicy` or a `ListPolicies`
185
- # request, this `etag` indicates the version of the current policy to use when
186
- # executing a read-modify-write loop. When the policy is returned from a `
184
+ # When the policy is returned from either a `GetPolicy` or a `ListPolicies`
185
+ # request, this `etag` indicates the version of the current policySpec to use
186
+ # when executing a read-modify-write loop. When the policy is returned from a `
187
187
  # GetEffectivePolicy` request, the `etag` will be unset.
188
188
  # Corresponds to the JSON property `etag`
189
189
  # @return [String]
@@ -996,7 +996,10 @@ module Google
996
996
  # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
997
997
  # CustomConstraints with the same name will be overridden in the simulation.
998
998
  # That is, violations will be determined as if all custom constraints in the
999
- # overlay were instantiated.
999
+ # overlay were instantiated. Only a single custom_constraint is supported in the
1000
+ # overlay at a time. For evaluating multiple constraints, multiple `
1001
+ # GenerateOrgPolicyViolationsPreview` requests are made, where each request
1002
+ # evaluates a single constraint.
1000
1003
  # Corresponds to the JSON property `customConstraints`
1001
1004
  # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
1002
1005
  attr_accessor :custom_constraints
@@ -1081,6 +1084,22 @@ module Google
1081
1084
  class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
1082
1085
  include Google::Apis::Core::Hashable
1083
1086
 
1087
+ # Output only. Time when this `OrgPolicyViolationsPreview` was created.
1088
+ # Corresponds to the JSON property `createTime`
1089
+ # @return [String]
1090
+ attr_accessor :create_time
1091
+
1092
+ # Output only. The names of the constraints against which all `
1093
+ # OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `
1094
+ # PolicyOverlay` then it contains the name of the configured custom constraint,
1095
+ # applicable to the specified policies. Otherwise it contains the name of the
1096
+ # constraint specified in `CustomConstraintOverlay`. Format: `organizations/`
1097
+ # organization_id`/customConstraints/`custom_constraint_id`` Example: `
1098
+ # organizations/123/customConstraints/custom.createOnlyE2TypeVms`
1099
+ # Corresponds to the JSON property `customConstraints`
1100
+ # @return [Array<String>]
1101
+ attr_accessor :custom_constraints
1102
+
1084
1103
  # Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
1085
1104
  # following format: `organizations/`organization`/locations/`location`/
1086
1105
  # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
@@ -1122,6 +1141,8 @@ module Google
1122
1141
 
1123
1142
  # Update properties of this object
1124
1143
  def update!(**args)
1144
+ @create_time = args[:create_time] if args.key?(:create_time)
1145
+ @custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
1125
1146
  @name = args[:name] if args.key?(:name)
1126
1147
  @overlay = args[:overlay] if args.key?(:overlay)
1127
1148
  @resource_counts = args[:resource_counts] if args.key?(:resource_counts)
@@ -1235,7 +1256,10 @@ module Google
1235
1256
  # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
1236
1257
  # CustomConstraints with the same name will be overridden in the simulation.
1237
1258
  # That is, violations will be determined as if all custom constraints in the
1238
- # overlay were instantiated.
1259
+ # overlay were instantiated. Only a single custom_constraint is supported in the
1260
+ # overlay at a time. For evaluating multiple constraints, multiple `
1261
+ # GenerateOrgPolicyViolationsPreview` requests are made, where each request
1262
+ # evaluates a single constraint.
1239
1263
  # Corresponds to the JSON property `customConstraints`
1240
1264
  # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
1241
1265
  attr_accessor :custom_constraints
@@ -1320,6 +1344,22 @@ module Google
1320
1344
  class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
1321
1345
  include Google::Apis::Core::Hashable
1322
1346
 
1347
+ # Output only. Time when this `OrgPolicyViolationsPreview` was created.
1348
+ # Corresponds to the JSON property `createTime`
1349
+ # @return [String]
1350
+ attr_accessor :create_time
1351
+
1352
+ # Output only. The names of the constraints against which all `
1353
+ # OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `
1354
+ # PolicyOverlay` then it contains the name of the configured custom constraint,
1355
+ # applicable to the specified policies. Otherwise it contains the name of the
1356
+ # constraint specified in `CustomConstraintOverlay`. Format: `organizations/`
1357
+ # organization_id`/customConstraints/`custom_constraint_id`` Example: `
1358
+ # organizations/123/customConstraints/custom.createOnlyE2TypeVms`
1359
+ # Corresponds to the JSON property `customConstraints`
1360
+ # @return [Array<String>]
1361
+ attr_accessor :custom_constraints
1362
+
1323
1363
  # Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
1324
1364
  # following format: `organizations/`organization`/locations/`location`/
1325
1365
  # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
@@ -1361,6 +1401,8 @@ module Google
1361
1401
 
1362
1402
  # Update properties of this object
1363
1403
  def update!(**args)
1404
+ @create_time = args[:create_time] if args.key?(:create_time)
1405
+ @custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
1364
1406
  @name = args[:name] if args.key?(:name)
1365
1407
  @overlay = args[:overlay] if args.key?(:overlay)
1366
1408
  @resource_counts = args[:resource_counts] if args.key?(:resource_counts)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PolicysimulatorV1
18
18
  # Version of the google-apis-policysimulator_v1 gem
19
- GEM_VERSION = "0.27.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230806"
25
+ REVISION = "20231203"
26
26
  end
27
27
  end
28
28
  end
@@ -516,6 +516,8 @@ module Google
516
516
  class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
517
517
  # @private
518
518
  class Representation < Google::Apis::Core::JsonRepresentation
519
+ property :create_time, as: 'createTime'
520
+ collection :custom_constraints, as: 'customConstraints'
519
521
  property :name, as: 'name'
520
522
  property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::Representation
521
523
 
@@ -580,6 +582,8 @@ module Google
580
582
  class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
581
583
  # @private
582
584
  class Representation < Google::Apis::Core::JsonRepresentation
585
+ property :create_time, as: 'createTime'
586
+ collection :custom_constraints, as: 'customConstraints'
583
587
  property :name, as: 'name'
584
588
  property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::Representation
585
589
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-policysimulator_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.29.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: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-12-10 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-policysimulator_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.29.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Policy Simulator API V1