google-apis-policysimulator_v1alpha 0.16.0 → 0.17.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: 9a307c344c1887fc968b7d827130fe1f0220a801236f2203dde312316583b038
4
- data.tar.gz: 9b4cb8e5a2c86562b43bee93fe7b75bc19d14a99fb78b3e08260a5bbc67f0fea
3
+ metadata.gz: cc052c7a83eb88c2adcab53ff8672c5afe8da2f250d4fc7543ed79a4eb2b253b
4
+ data.tar.gz: 6dc6ccc03fad72698bf06372f18574d8a03405b5ad29cfa34dc5cbccabb7113c
5
5
  SHA512:
6
- metadata.gz: ed246aadc03804b3913149f280900fe58f868b02e5e6c5683ecc069c79e504b8ee13d3f9603934c5796d34161215b9d2c589aa545c8c481572b57bc9c72a96b2
7
- data.tar.gz: 65715e43d2e16439e0cd0675424b51262005ca0bec18637a7cafeb47579edb99bd2635cd13106a0e7f24a50bd3aaec093d20c23731800fbeb7069a421b29e604
6
+ metadata.gz: 794a0e58dcade56bb45d5bfd0e905973492b83fcf9491f45c39e2f4cf24eb516fdcad4e7973228a556f4cb03c81a74a8c4093a3ab30ff261f1bd29702bbc150c
7
+ data.tar.gz: 349a6cc1e739aef53cfc468f552e71274ec993aaf9f57b5bad5eb64bb7957d53998b1591c62fcd6385c231a09d4a17abfbfe4e01834386e6fd2ba9199f8ebef9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-policysimulator_v1alpha
2
2
 
3
+ ### v0.17.0 (2024-01-28)
4
+
5
+ * Regenerated from discovery document revision 20240121
6
+ * Regenerated using generator version 0.13.1
7
+
3
8
  ### v0.16.0 (2024-01-22)
4
9
 
5
10
  * Regenerated using generator version 0.13.0
@@ -990,20 +990,21 @@ module Google
990
990
  class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
991
991
  include Google::Apis::Core::Hashable
992
992
 
993
- # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
994
- # CustomConstraints with the same name will be overridden in the simulation.
995
- # That is, violations will be determined as if all custom constraints in the
996
- # overlay were instantiated. Only a single custom_constraint is supported in the
997
- # overlay at a time. For evaluating multiple constraints, multiple `
998
- # GenerateOrgPolicyViolationsPreview` requests are made, where each request
999
- # evaluates a single constraint.
993
+ # Optional. The OrgPolicy CustomConstraint changes to preview violations for.
994
+ # Any existing CustomConstraints with the same name will be overridden in the
995
+ # simulation. That is, violations will be determined as if all custom
996
+ # constraints in the overlay were instantiated. Only a single custom_constraint
997
+ # is supported in the overlay at a time. For evaluating multiple constraints,
998
+ # multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
999
+ # request evaluates a single constraint.
1000
1000
  # Corresponds to the JSON property `customConstraints`
1001
1001
  # @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
1002
1002
  attr_accessor :custom_constraints
1003
1003
 
1004
- # The OrgPolicy changes to preview violations for. Any existing OrgPolicies with
1005
- # the same name will be overridden in the simulation. That is, violations will
1006
- # be determined as if all policies in the overlay were created or updated.
1004
+ # Optional. The OrgPolicy changes to preview violations for. Any existing
1005
+ # OrgPolicies with the same name will be overridden in the simulation. That is,
1006
+ # violations will be determined as if all policies in the overlay were created
1007
+ # or updated.
1007
1008
  # Corresponds to the JSON property `policies`
1008
1009
  # @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay>]
1009
1010
  attr_accessor :policies
@@ -1031,7 +1032,8 @@ module Google
1031
1032
  # @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint]
1032
1033
  attr_accessor :custom_constraint
1033
1034
 
1034
- # Resource the constraint is attached to. Example: "organization/987654"
1035
+ # Optional. Resource the constraint is attached to. Example: "organization/
1036
+ # 987654"
1035
1037
  # Corresponds to the JSON property `customConstraintParent`
1036
1038
  # @return [String]
1037
1039
  attr_accessor :custom_constraint_parent
@@ -1057,7 +1059,8 @@ module Google
1057
1059
  # @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy]
1058
1060
  attr_accessor :policy
1059
1061
 
1060
- # The parent of the policy we are attaching to. Example: "projects/123456"
1062
+ # Optional. The parent of the policy we are attaching to. Example: "projects/
1063
+ # 123456"
1061
1064
  # Corresponds to the JSON property `policyParent`
1062
1065
  # @return [String]
1063
1066
  attr_accessor :policy_parent
@@ -1202,29 +1205,29 @@ module Google
1202
1205
  class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
1203
1206
  include Google::Apis::Core::Hashable
1204
1207
 
1205
- # Number of scanned resources with zero violations.
1208
+ # Output only. Number of scanned resources with zero violations.
1206
1209
  # Corresponds to the JSON property `compliant`
1207
1210
  # @return [Fixnum]
1208
1211
  attr_accessor :compliant
1209
1212
 
1210
- # Number of resources that returned an error when scanned.
1213
+ # Output only. Number of resources that returned an error when scanned.
1211
1214
  # Corresponds to the JSON property `errors`
1212
1215
  # @return [Fixnum]
1213
1216
  attr_accessor :errors
1214
1217
 
1215
- # Number of scanned resources with at least one violation.
1218
+ # Output only. Number of scanned resources with at least one violation.
1216
1219
  # Corresponds to the JSON property `noncompliant`
1217
1220
  # @return [Fixnum]
1218
1221
  attr_accessor :noncompliant
1219
1222
 
1220
- # Number of resources checked for compliance. Must equal: unenforced +
1221
- # noncompliant + compliant + error
1223
+ # Output only. Number of resources checked for compliance. Must equal:
1224
+ # unenforced + noncompliant + compliant + error
1222
1225
  # Corresponds to the JSON property `scanned`
1223
1226
  # @return [Fixnum]
1224
1227
  attr_accessor :scanned
1225
1228
 
1226
- # Number of resources where the constraint was not enforced, i.e. the Policy set
1227
- # `enforced: false` for that resource.
1229
+ # Output only. Number of resources where the constraint was not enforced, i.e.
1230
+ # the Policy set `enforced: false` for that resource.
1228
1231
  # Corresponds to the JSON property `unenforced`
1229
1232
  # @return [Fixnum]
1230
1233
  attr_accessor :unenforced
@@ -1573,20 +1576,21 @@ module Google
1573
1576
  class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
1574
1577
  include Google::Apis::Core::Hashable
1575
1578
 
1576
- # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
1577
- # CustomConstraints with the same name will be overridden in the simulation.
1578
- # That is, violations will be determined as if all custom constraints in the
1579
- # overlay were instantiated. Only a single custom_constraint is supported in the
1580
- # overlay at a time. For evaluating multiple constraints, multiple `
1581
- # GenerateOrgPolicyViolationsPreview` requests are made, where each request
1582
- # evaluates a single constraint.
1579
+ # Optional. The OrgPolicy CustomConstraint changes to preview violations for.
1580
+ # Any existing CustomConstraints with the same name will be overridden in the
1581
+ # simulation. That is, violations will be determined as if all custom
1582
+ # constraints in the overlay were instantiated. Only a single custom_constraint
1583
+ # is supported in the overlay at a time. For evaluating multiple constraints,
1584
+ # multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
1585
+ # request evaluates a single constraint.
1583
1586
  # Corresponds to the JSON property `customConstraints`
1584
1587
  # @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
1585
1588
  attr_accessor :custom_constraints
1586
1589
 
1587
- # The OrgPolicy changes to preview violations for. Any existing OrgPolicies with
1588
- # the same name will be overridden in the simulation. That is, violations will
1589
- # be determined as if all policies in the overlay were created or updated.
1590
+ # Optional. The OrgPolicy changes to preview violations for. Any existing
1591
+ # OrgPolicies with the same name will be overridden in the simulation. That is,
1592
+ # violations will be determined as if all policies in the overlay were created
1593
+ # or updated.
1590
1594
  # Corresponds to the JSON property `policies`
1591
1595
  # @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay>]
1592
1596
  attr_accessor :policies
@@ -1614,7 +1618,8 @@ module Google
1614
1618
  # @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint]
1615
1619
  attr_accessor :custom_constraint
1616
1620
 
1617
- # Resource the constraint is attached to. Example: "organization/987654"
1621
+ # Optional. Resource the constraint is attached to. Example: "organization/
1622
+ # 987654"
1618
1623
  # Corresponds to the JSON property `customConstraintParent`
1619
1624
  # @return [String]
1620
1625
  attr_accessor :custom_constraint_parent
@@ -1640,7 +1645,8 @@ module Google
1640
1645
  # @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy]
1641
1646
  attr_accessor :policy
1642
1647
 
1643
- # The parent of the policy we are attaching to. Example: "projects/123456"
1648
+ # Optional. The parent of the policy we are attaching to. Example: "projects/
1649
+ # 123456"
1644
1650
  # Corresponds to the JSON property `policyParent`
1645
1651
  # @return [String]
1646
1652
  attr_accessor :policy_parent
@@ -1736,29 +1742,29 @@ module Google
1736
1742
  class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
1737
1743
  include Google::Apis::Core::Hashable
1738
1744
 
1739
- # Number of scanned resources with zero violations.
1745
+ # Output only. Number of scanned resources with zero violations.
1740
1746
  # Corresponds to the JSON property `compliant`
1741
1747
  # @return [Fixnum]
1742
1748
  attr_accessor :compliant
1743
1749
 
1744
- # Number of resources that returned an error when scanned.
1750
+ # Output only. Number of resources that returned an error when scanned.
1745
1751
  # Corresponds to the JSON property `errors`
1746
1752
  # @return [Fixnum]
1747
1753
  attr_accessor :errors
1748
1754
 
1749
- # Number of scanned resources with at least one violation.
1755
+ # Output only. Number of scanned resources with at least one violation.
1750
1756
  # Corresponds to the JSON property `noncompliant`
1751
1757
  # @return [Fixnum]
1752
1758
  attr_accessor :noncompliant
1753
1759
 
1754
- # Number of resources checked for compliance. Must equal: unenforced +
1755
- # noncompliant + compliant + error
1760
+ # Output only. Number of resources checked for compliance. Must equal:
1761
+ # unenforced + noncompliant + compliant + error
1756
1762
  # Corresponds to the JSON property `scanned`
1757
1763
  # @return [Fixnum]
1758
1764
  attr_accessor :scanned
1759
1765
 
1760
- # Number of resources where the constraint was not enforced, i.e. the Policy set
1761
- # `enforced: false` for that resource.
1766
+ # Output only. Number of resources where the constraint was not enforced, i.e.
1767
+ # the Policy set `enforced: false` for that resource.
1762
1768
  # Corresponds to the JSON property `unenforced`
1763
1769
  # @return [Fixnum]
1764
1770
  attr_accessor :unenforced
@@ -1929,7 +1935,10 @@ module Google
1929
1935
  attr_accessor :members
1930
1936
 
1931
1937
  # Role that is assigned to the list of `members`, or principals. For example, `
1932
- # roles/viewer`, `roles/editor`, or `roles/owner`.
1938
+ # roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
1939
+ # roles and permissions, see the [IAM documentation](https://cloud.google.com/
1940
+ # iam/docs/roles-overview). For a list of the available pre-defined roles, see [
1941
+ # here](https://cloud.google.com/iam/docs/understanding-roles).
1933
1942
  # Corresponds to the JSON property `role`
1934
1943
  # @return [String]
1935
1944
  attr_accessor :role
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PolicysimulatorV1alpha
18
18
  # Version of the google-apis-policysimulator_v1alpha gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231217"
25
+ REVISION = "20240121"
26
26
  end
27
27
  end
28
28
  end
@@ -427,6 +427,44 @@ module Google
427
427
  execute_or_queue_command(command, &block)
428
428
  end
429
429
 
430
+ # GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
431
+ # the proposed changes in the provided OrgPolicyViolationsPreview.
432
+ # OrgPolicyOverlay. The changes to OrgPolicy are specified by this `
433
+ # OrgPolicyOverlay`. The resources to scan are inferred from these specified
434
+ # changes.
435
+ # @param [String] parent
436
+ # Required. The organization under which this OrgPolicyViolationsPreview will be
437
+ # created. Example: `organizations/my-example-org/locations/global`
438
+ # @param [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
439
+ # @param [String] fields
440
+ # Selector specifying which fields to include in a partial response.
441
+ # @param [String] quota_user
442
+ # Available to use for quota purposes for server-side applications. Can be any
443
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
444
+ # @param [Google::Apis::RequestOptions] options
445
+ # Request-specific options
446
+ #
447
+ # @yield [result, err] Result & error if block supplied
448
+ # @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation] parsed result object
449
+ # @yieldparam err [StandardError] error object if request failed
450
+ #
451
+ # @return [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation]
452
+ #
453
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
454
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
455
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
456
+ def generate_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block)
457
+ command = make_simple_command(:post, 'v1alpha/{+parent}/orgPolicyViolationsPreviews:generate', options)
458
+ command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation
459
+ command.request_object = google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
460
+ command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
461
+ command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
462
+ command.params['parent'] = parent unless parent.nil?
463
+ command.query['fields'] = fields unless fields.nil?
464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
465
+ execute_or_queue_command(command, &block)
466
+ end
467
+
430
468
  # GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
431
469
  # Each OrgPolicyViolationsPreview is available for at least 7 days.
432
470
  # @param [String] name
@@ -465,13 +503,13 @@ module Google
465
503
  # organization`/locations/`location`` Example: `organizations/my-example-org/
466
504
  # locations/global`
467
505
  # @param [Fixnum] page_size
468
- # The maximum number of items to return. The service may return fewer than this
469
- # value. If unspecified, at most 5 items will be returned. The maximum value is
470
- # 10; values above 10 will be coerced to 10.
506
+ # Optional. The maximum number of items to return. The service may return fewer
507
+ # than this value. If unspecified, at most 5 items will be returned. The maximum
508
+ # value is 10; values above 10 will be coerced to 10.
471
509
  # @param [String] page_token
472
- # A page token, received from a previous call. Provide this to retrieve the
473
- # subsequent page. When paginating, all other parameters must match the call
474
- # that provided the page token.
510
+ # Optional. A page token, received from a previous call. Provide this to
511
+ # retrieve the subsequent page. When paginating, all other parameters must match
512
+ # the call that provided the page token.
475
513
  # @param [String] fields
476
514
  # Selector specifying which fields to include in a partial response.
477
515
  # @param [String] quota_user
@@ -539,13 +577,13 @@ module Google
539
577
  # Format: organizations/`organization`/locations/`location`/
540
578
  # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
541
579
  # @param [Fixnum] page_size
542
- # The maximum number of items to return. The service may return fewer than this
543
- # value. If unspecified, at most 50 items will be returned. The maximum value is
544
- # 1000; values above 1000 will be coerced to 1000.
580
+ # Optional. The maximum number of items to return. The service may return fewer
581
+ # than this value. If unspecified, at most 50 items will be returned. The
582
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
545
583
  # @param [String] page_token
546
- # A page token, received from a previous call. Provide this to retrieve the
547
- # subsequent page. When paginating, all other parameters must match the call
548
- # that provided the page token.
584
+ # Optional. A page token, received from a previous call. Provide this to
585
+ # retrieve the subsequent page. When paginating, all other parameters must match
586
+ # the call that provided the page token.
549
587
  # @param [String] fields
550
588
  # Selector specifying which fields to include in a partial response.
551
589
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-policysimulator_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.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-01-23 00:00:00.000000000 Z
11
+ date: 2024-01-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-policysimulator_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []