google-apis-policysimulator_v1 0.27.0 → 0.28.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: 7b54260017ab741c18da617ade41247ae8b26d770167b9e9a0d36b691df54d28
4
- data.tar.gz: fb902cf74ef4aac84dfb1204c9300af1b0ab4ea836112a2f92790b953b9b8377
3
+ metadata.gz: e8fc705fe0145738157525dba88d0feffe40396bd288b7479721571997d6e565
4
+ data.tar.gz: 5968bcfe22d82096031a8b76639e751932aeec162344767d2728eaab7ffeeeaf
5
5
  SHA512:
6
- metadata.gz: 549200bc42e2c369af075480bd9c80b77f14e0b531d39b06b911698d11850df344f988f49bd3a2ea7f770fe35a381983e72266be3a05d03df7db277c58990c83
7
- data.tar.gz: fb18a535fec33bc487ce85018538d9cb7df2c0c5b19abd05b6e3d095b6ba3ea4153952093ebb380666d56cbfcea9b4c5a76b6daa7a5bf3a94ccd8d1a06c3cf29
6
+ metadata.gz: '02900adea70d7fadd6ac4159c65438778d0c559f80d11b5ee8d61f031bdb0db5807fad5666c2998e8962dc4466839c1e737ece19b9ef97a49d4b8fa9d6e81dac'
7
+ data.tar.gz: 8f6496da712c78ba69561ce3b1c0423bf10d2381a38dcbe366455e516aa123530b424b9524a6e8ec14cf7cc37b3aa5ee7d1ed38cea7f4994fba1c5d98eab5063
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-policysimulator_v1
2
2
 
3
+ ### v0.28.0 (2023-09-24)
4
+
5
+ * Regenerated from discovery document revision 20230917
6
+
3
7
  ### v0.27.0 (2023-08-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20230806
@@ -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.28.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 = "20230917"
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.28.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-09-24 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.28.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