google-apis-policysimulator_v1beta 0.9.0 → 0.10.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: e33b3af900299987c8c4a9d3e9614ab36d4cdae3f1157026ef9d6eec5572629e
4
- data.tar.gz: 4dbdfaade2a41b7b4c69b4dadbd670c5b20f39584a3f9317bd0e024383feeef0
3
+ metadata.gz: d43b2f1577f22dd87de1deeba384ef850b4bfbe0ab233f762d7768c1afe80c30
4
+ data.tar.gz: 71bd27f8916aeee1e74141c2ce3a571af6ab5e6ed56082137a513fa471985ed8
5
5
  SHA512:
6
- metadata.gz: 4efee980e344a2a9e5a85149c964fe295fd6bebd0175005443d3dc4dba928890637911744d9b3eee5b459dc4e45767602281af5e8a594c120f7cc14477ff873e
7
- data.tar.gz: 188e5b10310ea8ed681a9a3bf52ebfed9fd63a9273e5c82957e173bcd437853f5916733db36ec8dca67f38736c23ffdfe047092dddf2d46bbe0767303cc37d25
6
+ metadata.gz: 5e93d2218e9276ca45e6644b61814ea681242b101a25976c318dcde79a403581eda1106b2c8b906802e605b315b7cf392e8431bddab02be1da9b8365a6410776
7
+ data.tar.gz: aad203994172220fc19175631ee8d0c40896e65c743f6b12e642b99833265989d8c772d12c4617df3f22bdccb1b565433fba7b0c0badba1d3b46d6b97f15030a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-policysimulator_v1beta
2
2
 
3
+ ### v0.10.0 (2024-01-28)
4
+
5
+ * Regenerated from discovery document revision 20240121
6
+ * Regenerated using generator version 0.13.1
7
+
3
8
  ### v0.9.0 (2024-01-22)
4
9
 
5
10
  * Regenerated using generator version 0.13.0
@@ -570,20 +570,21 @@ module Google
570
570
  class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
571
571
  include Google::Apis::Core::Hashable
572
572
 
573
- # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
574
- # CustomConstraints with the same name will be overridden in the simulation.
575
- # That is, violations will be determined as if all custom constraints in the
576
- # overlay were instantiated. Only a single custom_constraint is supported in the
577
- # overlay at a time. For evaluating multiple constraints, multiple `
578
- # GenerateOrgPolicyViolationsPreview` requests are made, where each request
579
- # evaluates a single constraint.
573
+ # Optional. The OrgPolicy CustomConstraint changes to preview violations for.
574
+ # Any existing CustomConstraints with the same name will be overridden in the
575
+ # simulation. That is, violations will be determined as if all custom
576
+ # constraints in the overlay were instantiated. Only a single custom_constraint
577
+ # is supported in the overlay at a time. For evaluating multiple constraints,
578
+ # multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
579
+ # request evaluates a single constraint.
580
580
  # Corresponds to the JSON property `customConstraints`
581
581
  # @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
582
582
  attr_accessor :custom_constraints
583
583
 
584
- # The OrgPolicy changes to preview violations for. Any existing OrgPolicies with
585
- # the same name will be overridden in the simulation. That is, violations will
586
- # be determined as if all policies in the overlay were created or updated.
584
+ # Optional. The OrgPolicy changes to preview violations for. Any existing
585
+ # OrgPolicies with the same name will be overridden in the simulation. That is,
586
+ # violations will be determined as if all policies in the overlay were created
587
+ # or updated.
587
588
  # Corresponds to the JSON property `policies`
588
589
  # @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay>]
589
590
  attr_accessor :policies
@@ -611,7 +612,8 @@ module Google
611
612
  # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint]
612
613
  attr_accessor :custom_constraint
613
614
 
614
- # Resource the constraint is attached to. Example: "organization/987654"
615
+ # Optional. Resource the constraint is attached to. Example: "organization/
616
+ # 987654"
615
617
  # Corresponds to the JSON property `customConstraintParent`
616
618
  # @return [String]
617
619
  attr_accessor :custom_constraint_parent
@@ -637,7 +639,8 @@ module Google
637
639
  # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy]
638
640
  attr_accessor :policy
639
641
 
640
- # The parent of the policy we are attaching to. Example: "projects/123456"
642
+ # Optional. The parent of the policy we are attaching to. Example: "projects/
643
+ # 123456"
641
644
  # Corresponds to the JSON property `policyParent`
642
645
  # @return [String]
643
646
  attr_accessor :policy_parent
@@ -733,29 +736,29 @@ module Google
733
736
  class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
734
737
  include Google::Apis::Core::Hashable
735
738
 
736
- # Number of scanned resources with zero violations.
739
+ # Output only. Number of scanned resources with zero violations.
737
740
  # Corresponds to the JSON property `compliant`
738
741
  # @return [Fixnum]
739
742
  attr_accessor :compliant
740
743
 
741
- # Number of resources that returned an error when scanned.
744
+ # Output only. Number of resources that returned an error when scanned.
742
745
  # Corresponds to the JSON property `errors`
743
746
  # @return [Fixnum]
744
747
  attr_accessor :errors
745
748
 
746
- # Number of scanned resources with at least one violation.
749
+ # Output only. Number of scanned resources with at least one violation.
747
750
  # Corresponds to the JSON property `noncompliant`
748
751
  # @return [Fixnum]
749
752
  attr_accessor :noncompliant
750
753
 
751
- # Number of resources checked for compliance. Must equal: unenforced +
752
- # noncompliant + compliant + error
754
+ # Output only. Number of resources checked for compliance. Must equal:
755
+ # unenforced + noncompliant + compliant + error
753
756
  # Corresponds to the JSON property `scanned`
754
757
  # @return [Fixnum]
755
758
  attr_accessor :scanned
756
759
 
757
- # Number of resources where the constraint was not enforced, i.e. the Policy set
758
- # `enforced: false` for that resource.
760
+ # Output only. Number of resources where the constraint was not enforced, i.e.
761
+ # the Policy set `enforced: false` for that resource.
759
762
  # Corresponds to the JSON property `unenforced`
760
763
  # @return [Fixnum]
761
764
  attr_accessor :unenforced
@@ -1250,20 +1253,21 @@ module Google
1250
1253
  class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
1251
1254
  include Google::Apis::Core::Hashable
1252
1255
 
1253
- # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
1254
- # CustomConstraints with the same name will be overridden in the simulation.
1255
- # That is, violations will be determined as if all custom constraints in the
1256
- # overlay were instantiated. Only a single custom_constraint is supported in the
1257
- # overlay at a time. For evaluating multiple constraints, multiple `
1258
- # GenerateOrgPolicyViolationsPreview` requests are made, where each request
1259
- # evaluates a single constraint.
1256
+ # Optional. The OrgPolicy CustomConstraint changes to preview violations for.
1257
+ # Any existing CustomConstraints with the same name will be overridden in the
1258
+ # simulation. That is, violations will be determined as if all custom
1259
+ # constraints in the overlay were instantiated. Only a single custom_constraint
1260
+ # is supported in the overlay at a time. For evaluating multiple constraints,
1261
+ # multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
1262
+ # request evaluates a single constraint.
1260
1263
  # Corresponds to the JSON property `customConstraints`
1261
1264
  # @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
1262
1265
  attr_accessor :custom_constraints
1263
1266
 
1264
- # The OrgPolicy changes to preview violations for. Any existing OrgPolicies with
1265
- # the same name will be overridden in the simulation. That is, violations will
1266
- # be determined as if all policies in the overlay were created or updated.
1267
+ # Optional. The OrgPolicy changes to preview violations for. Any existing
1268
+ # OrgPolicies with the same name will be overridden in the simulation. That is,
1269
+ # violations will be determined as if all policies in the overlay were created
1270
+ # or updated.
1267
1271
  # Corresponds to the JSON property `policies`
1268
1272
  # @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay>]
1269
1273
  attr_accessor :policies
@@ -1291,7 +1295,8 @@ module Google
1291
1295
  # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint]
1292
1296
  attr_accessor :custom_constraint
1293
1297
 
1294
- # Resource the constraint is attached to. Example: "organization/987654"
1298
+ # Optional. Resource the constraint is attached to. Example: "organization/
1299
+ # 987654"
1295
1300
  # Corresponds to the JSON property `customConstraintParent`
1296
1301
  # @return [String]
1297
1302
  attr_accessor :custom_constraint_parent
@@ -1317,7 +1322,8 @@ module Google
1317
1322
  # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy]
1318
1323
  attr_accessor :policy
1319
1324
 
1320
- # The parent of the policy we are attaching to. Example: "projects/123456"
1325
+ # Optional. The parent of the policy we are attaching to. Example: "projects/
1326
+ # 123456"
1321
1327
  # Corresponds to the JSON property `policyParent`
1322
1328
  # @return [String]
1323
1329
  attr_accessor :policy_parent
@@ -1462,29 +1468,29 @@ module Google
1462
1468
  class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
1463
1469
  include Google::Apis::Core::Hashable
1464
1470
 
1465
- # Number of scanned resources with zero violations.
1471
+ # Output only. Number of scanned resources with zero violations.
1466
1472
  # Corresponds to the JSON property `compliant`
1467
1473
  # @return [Fixnum]
1468
1474
  attr_accessor :compliant
1469
1475
 
1470
- # Number of resources that returned an error when scanned.
1476
+ # Output only. Number of resources that returned an error when scanned.
1471
1477
  # Corresponds to the JSON property `errors`
1472
1478
  # @return [Fixnum]
1473
1479
  attr_accessor :errors
1474
1480
 
1475
- # Number of scanned resources with at least one violation.
1481
+ # Output only. Number of scanned resources with at least one violation.
1476
1482
  # Corresponds to the JSON property `noncompliant`
1477
1483
  # @return [Fixnum]
1478
1484
  attr_accessor :noncompliant
1479
1485
 
1480
- # Number of resources checked for compliance. Must equal: unenforced +
1481
- # noncompliant + compliant + error
1486
+ # Output only. Number of resources checked for compliance. Must equal:
1487
+ # unenforced + noncompliant + compliant + error
1482
1488
  # Corresponds to the JSON property `scanned`
1483
1489
  # @return [Fixnum]
1484
1490
  attr_accessor :scanned
1485
1491
 
1486
- # Number of resources where the constraint was not enforced, i.e. the Policy set
1487
- # `enforced: false` for that resource.
1492
+ # Output only. Number of resources where the constraint was not enforced, i.e.
1493
+ # the Policy set `enforced: false` for that resource.
1488
1494
  # Corresponds to the JSON property `unenforced`
1489
1495
  # @return [Fixnum]
1490
1496
  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 PolicysimulatorV1beta
18
18
  # Version of the google-apis-policysimulator_v1beta gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.10.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::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_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::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
449
+ # @yieldparam err [StandardError] error object if request failed
450
+ #
451
+ # @return [Google::Apis::PolicysimulatorV1beta::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_v1beta_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block)
457
+ command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews:generate', options)
458
+ command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
459
+ command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
460
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
461
+ command.response_class = Google::Apis::PolicysimulatorV1beta::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_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.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_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.10.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []