google-apis-policysimulator_v1beta 0.8.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: fad11379a875021fd552044df8fdd5a651378fc2a71a73e0cd607005565dcaab
4
- data.tar.gz: aa748a9e105e4b25be095225d9ff906ed47833472c3d0e55b6031608631da59a
3
+ metadata.gz: d43b2f1577f22dd87de1deeba384ef850b4bfbe0ab233f762d7768c1afe80c30
4
+ data.tar.gz: 71bd27f8916aeee1e74141c2ce3a571af6ab5e6ed56082137a513fa471985ed8
5
5
  SHA512:
6
- metadata.gz: f964ab4368a61adc070f893b0f421db54078d6d38ed0b013b2a436dcd84ff91c511528ae1529e1e4893f7777b8c4803e3d74a9db43dbcbd0c7b9060ed0340732
7
- data.tar.gz: 17594030fb8a4f29a98c2863eecaf3c9e78d0bf68592d3bb3e62aa1971e7276628043322922aee34cb8b7c285f48f5ac8f09da526e140c1fdc7343ed8d903db3
6
+ metadata.gz: 5e93d2218e9276ca45e6644b61814ea681242b101a25976c318dcde79a403581eda1106b2c8b906802e605b315b7cf392e8431bddab02be1da9b8365a6410776
7
+ data.tar.gz: aad203994172220fc19175631ee8d0c40896e65c743f6b12e642b99833265989d8c772d12c4617df3f22bdccb1b565433fba7b0c0badba1d3b46d6b97f15030a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.9.0 (2024-01-22)
9
+
10
+ * Regenerated using generator version 0.13.0
11
+
3
12
  ### v0.8.0 (2023-12-24)
4
13
 
5
14
  * Regenerated from discovery document revision 20231217
@@ -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.8.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.12.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
@@ -38,6 +38,8 @@ module Google
38
38
  #
39
39
  # @see https://cloud.google.com/iam/docs/simulating-access
40
40
  class PolicySimulatorService < Google::Apis::Core::BaseService
41
+ DEFAULT_ENDPOINT_TEMPLATE = "https://policysimulator.$UNIVERSE_DOMAIN$/"
42
+
41
43
  # @return [String]
42
44
  # API key. Your API key identifies your project and provides you with API access,
43
45
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -49,7 +51,7 @@ module Google
49
51
  attr_accessor :quota_user
50
52
 
51
53
  def initialize
52
- super('https://policysimulator.googleapis.com/', '',
54
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
53
55
  client_name: 'google-apis-policysimulator_v1beta',
54
56
  client_version: Google::Apis::PolicysimulatorV1beta::GEM_VERSION)
55
57
  @batch_path = 'batch'
@@ -425,6 +427,44 @@ module Google
425
427
  execute_or_queue_command(command, &block)
426
428
  end
427
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
+
428
468
  # GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
429
469
  # Each OrgPolicyViolationsPreview is available for at least 7 days.
430
470
  # @param [String] name
@@ -463,13 +503,13 @@ module Google
463
503
  # organization`/locations/`location`` Example: `organizations/my-example-org/
464
504
  # locations/global`
465
505
  # @param [Fixnum] page_size
466
- # The maximum number of items to return. The service may return fewer than this
467
- # value. If unspecified, at most 5 items will be returned. The maximum value is
468
- # 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.
469
509
  # @param [String] page_token
470
- # A page token, received from a previous call. Provide this to retrieve the
471
- # subsequent page. When paginating, all other parameters must match the call
472
- # 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.
473
513
  # @param [String] fields
474
514
  # Selector specifying which fields to include in a partial response.
475
515
  # @param [String] quota_user
@@ -537,13 +577,13 @@ module Google
537
577
  # Format: organizations/`organization`/locations/`location`/
538
578
  # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
539
579
  # @param [Fixnum] page_size
540
- # The maximum number of items to return. The service may return fewer than this
541
- # value. If unspecified, at most 50 items will be returned. The maximum value is
542
- # 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.
543
583
  # @param [String] page_token
544
- # A page token, received from a previous call. Provide this to retrieve the
545
- # subsequent page. When paginating, all other parameters must match the call
546
- # 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.
547
587
  # @param [String] fields
548
588
  # Selector specifying which fields to include in a partial response.
549
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.8.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: 2023-12-24 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.8.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: []
@@ -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.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Policy Simulator API V1beta