google-apis-policysimulator_v1 0.26.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: 3c722d34108fa1e278a0998a8a18c7f9e980dfe68b8445a5b1ea41948abc15be
4
- data.tar.gz: fed32b1d6d3e4c2a471c6b5b47b17d5c26bb1f3b4a646d1e751ee09855a5cec0
3
+ metadata.gz: e8fc705fe0145738157525dba88d0feffe40396bd288b7479721571997d6e565
4
+ data.tar.gz: 5968bcfe22d82096031a8b76639e751932aeec162344767d2728eaab7ffeeeaf
5
5
  SHA512:
6
- metadata.gz: e61a3c6e346759161eaf4c34a720533c7f4964b81f3ac8c24d440439f513e7b3f18b1c5209972c1aae056958863e0a4e81255e964336181d236228fe029273b0
7
- data.tar.gz: 6301d959e29eed287b2155138278e3e8bb56f8c4d404290833428fb7043d391a5d32f1af77a3455f8ce08cc9dec119c199889f7ac131effb40e9d5c8f4196c9b
6
+ metadata.gz: '02900adea70d7fadd6ac4159c65438778d0c559f80d11b5ee8d61f031bdb0db5807fad5666c2998e8962dc4466839c1e737ece19b9ef97a49d4b8fa9d6e81dac'
7
+ data.tar.gz: 8f6496da712c78ba69561ce3b1c0423bf10d2381a38dcbe366455e516aa123530b424b9524a6e8ec14cf7cc37b3aa5ee7d1ed38cea7f4994fba1c5d98eab5063
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.27.0 (2023-08-13)
8
+
9
+ * Regenerated from discovery document revision 20230806
10
+
3
11
  ### v0.26.0 (2023-08-03)
4
12
 
5
13
  * Regenerated from discovery document revision 20230723
@@ -63,7 +63,7 @@ module Google
63
63
  attr_accessor :action_type
64
64
 
65
65
  # Org policy condition/expression. For example: `resource.instanceName.matches("[
66
- # production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`
66
+ # production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true`
67
67
  # The max length of the condition is 1000 characters.
68
68
  # Corresponds to the JSON property `condition`
69
69
  # @return [String]
@@ -144,11 +144,11 @@ module Google
144
144
  attr_accessor :dry_run_spec
145
145
 
146
146
  # Immutable. The resource name of the policy. Must be one of the following forms,
147
- # where constraint_name is the name of the constraint which this policy
147
+ # where `constraint_name` is the name of the constraint which this policy
148
148
  # configures: * `projects/`project_number`/policies/`constraint_name`` * `
149
149
  # folders/`folder_id`/policies/`constraint_name`` * `organizations/`
150
- # organization_id`/policies/`constraint_name`` For example, "projects/123/
151
- # policies/compute.disableSerialPortAccess". Note: `projects/`project_id`/
150
+ # organization_id`/policies/`constraint_name`` For example, `projects/123/
151
+ # policies/compute.disableSerialPortAccess`. Note: `projects/`project_id`/
152
152
  # policies/`constraint_name`` is also an acceptable name for API requests, but
153
153
  # responses will return the name using the equivalent project number.
154
154
  # Corresponds to the JSON property `name`
@@ -288,10 +288,11 @@ module Google
288
288
  # prefix is used to denote resource subtree values. The `is:` prefix is used to
289
289
  # denote specific values, and is required only if the value contains a ":".
290
290
  # Values prefixed with "is:" are treated the same as values with no prefix.
291
- # Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
292
- # "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
293
- # e.g. "organizations/1234" The `supports_under` field of the associated `
294
- # Constraint` defines whether ancestry prefixes can be used.
291
+ # Ancestry subtrees must be in one of the following formats: - `projects/` (for
292
+ # example, `projects/tokyo-rain-123`) - `folders/` (for example, `folders/1234`)
293
+ # - `organizations/` (for example, `organizations/1234`) The `supports_under`
294
+ # field of the associated `Constraint` defines whether ancestry prefixes can be
295
+ # used.
295
296
  # Corresponds to the JSON property `values`
296
297
  # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues]
297
298
  attr_accessor :values
@@ -317,10 +318,11 @@ module Google
317
318
  # prefix is used to denote resource subtree values. The `is:` prefix is used to
318
319
  # denote specific values, and is required only if the value contains a ":".
319
320
  # Values prefixed with "is:" are treated the same as values with no prefix.
320
- # Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
321
- # "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
322
- # e.g. "organizations/1234" The `supports_under` field of the associated `
323
- # Constraint` defines whether ancestry prefixes can be used.
321
+ # Ancestry subtrees must be in one of the following formats: - `projects/` (for
322
+ # example, `projects/tokyo-rain-123`) - `folders/` (for example, `folders/1234`)
323
+ # - `organizations/` (for example, `organizations/1234`) The `supports_under`
324
+ # field of the associated `Constraint` defines whether ancestry prefixes can be
325
+ # used.
324
326
  class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
325
327
  include Google::Apis::Core::Hashable
326
328
 
@@ -618,22 +620,22 @@ module Google
618
620
  # evaluates to `true`. A condition can add constraints based on attributes of
619
621
  # the request, the resource, or both. To learn which resources support
620
622
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
621
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
623
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
622
624
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
623
625
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
624
626
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
625
627
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
626
628
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
627
629
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
628
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
629
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
630
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
631
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
632
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
633
- # access description: Does not grant access after Sep 2020 expression: request.
634
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
635
- # a description of IAM and its features, see the [IAM documentation](https://
636
- # cloud.google.com/iam/docs/).
630
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
631
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
632
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
633
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
634
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
635
+ # title: expirable access description: Does not grant access after Sep 2020
636
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
637
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
638
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
637
639
  # Corresponds to the JSON property `policy`
638
640
  # @return [Google::Apis::PolicysimulatorV1::GoogleIamV1Policy]
639
641
  attr_accessor :policy
@@ -994,7 +996,10 @@ module Google
994
996
  # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
995
997
  # CustomConstraints with the same name will be overridden in the simulation.
996
998
  # That is, violations will be determined as if all custom constraints in the
997
- # 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.
998
1003
  # Corresponds to the JSON property `customConstraints`
999
1004
  # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
1000
1005
  attr_accessor :custom_constraints
@@ -1079,6 +1084,22 @@ module Google
1079
1084
  class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
1080
1085
  include Google::Apis::Core::Hashable
1081
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
+
1082
1103
  # Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
1083
1104
  # following format: `organizations/`organization`/locations/`location`/
1084
1105
  # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
@@ -1120,6 +1141,8 @@ module Google
1120
1141
 
1121
1142
  # Update properties of this object
1122
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)
1123
1146
  @name = args[:name] if args.key?(:name)
1124
1147
  @overlay = args[:overlay] if args.key?(:overlay)
1125
1148
  @resource_counts = args[:resource_counts] if args.key?(:resource_counts)
@@ -1233,7 +1256,10 @@ module Google
1233
1256
  # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
1234
1257
  # CustomConstraints with the same name will be overridden in the simulation.
1235
1258
  # That is, violations will be determined as if all custom constraints in the
1236
- # 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.
1237
1263
  # Corresponds to the JSON property `customConstraints`
1238
1264
  # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
1239
1265
  attr_accessor :custom_constraints
@@ -1318,6 +1344,22 @@ module Google
1318
1344
  class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
1319
1345
  include Google::Apis::Core::Hashable
1320
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
+
1321
1363
  # Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
1322
1364
  # following format: `organizations/`organization`/locations/`location`/
1323
1365
  # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
@@ -1359,6 +1401,8 @@ module Google
1359
1401
 
1360
1402
  # Update properties of this object
1361
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)
1362
1406
  @name = args[:name] if args.key?(:name)
1363
1407
  @overlay = args[:overlay] if args.key?(:overlay)
1364
1408
  @resource_counts = args[:resource_counts] if args.key?(:resource_counts)
@@ -1571,22 +1615,22 @@ module Google
1571
1615
  # evaluates to `true`. A condition can add constraints based on attributes of
1572
1616
  # the request, the resource, or both. To learn which resources support
1573
1617
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1574
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1618
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
1575
1619
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1576
1620
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1577
1621
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1578
1622
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1579
1623
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
1580
1624
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1581
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1582
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
1583
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1584
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1585
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1586
- # access description: Does not grant access after Sep 2020 expression: request.
1587
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1588
- # a description of IAM and its features, see the [IAM documentation](https://
1589
- # cloud.google.com/iam/docs/).
1625
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
1626
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
1627
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
1628
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
1629
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
1630
+ # title: expirable access description: Does not grant access after Sep 2020
1631
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
1632
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
1633
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
1590
1634
  class GoogleIamV1Policy
1591
1635
  include Google::Apis::Core::Hashable
1592
1636
 
@@ -1717,13 +1761,13 @@ module Google
1717
1761
  # @return [String]
1718
1762
  attr_accessor :name
1719
1763
 
1720
- # The normal response of the operation in case of success. If the original
1721
- # method returns no data on success, such as `Delete`, the response is `google.
1722
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1723
- # the response should be the resource. For other methods, the response should
1724
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1725
- # example, if the original method name is `TakeSnapshot()`, the inferred
1726
- # response type is `TakeSnapshotResponse`.
1764
+ # The normal, successful response of the operation. If the original method
1765
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1766
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1767
+ # response should be the resource. For other methods, the response should have
1768
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1769
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1770
+ # `TakeSnapshotResponse`.
1727
1771
  # Corresponds to the JSON property `response`
1728
1772
  # @return [Hash<String,Object>]
1729
1773
  attr_accessor :response
@@ -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.26.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 = "20230723"
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.26.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-06 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.26.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