google-apis-policysimulator_v1beta 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/policysimulator_v1beta/classes.rb +152 -39
- data/lib/google/apis/policysimulator_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/policysimulator_v1beta/representations.rb +36 -0
- data/lib/google/apis/policysimulator_v1beta/service.rb +55 -14
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 475d0a1e53e6aed719fe5e9ce666321f881d1cfa8c3ce731c6e60ec9bb4fb249
|
4
|
+
data.tar.gz: 1d6aa354055be2d389e3a641f80851f82b564bc497c2047e2f8f8cab308e416f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849a5c54ce4c31ba8528410b034976c0227b6fc565a3e84148a45b6443ce443152da2f0215048b614ec63168b6630801d2773b46dc20bc122263b99c6c053905
|
7
|
+
data.tar.gz: 826c1ef36c0d7db69f7d5a2c8b19ed0765f9d2862fcb757bb3749f65796b872b52015bd968c5ee6816f23357d42df8e857d1d81533c807539de1e2b65f14863c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-policysimulator_v1beta
|
2
2
|
|
3
|
+
### v0.11.0 (2024-02-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240218
|
6
|
+
* Regenerated using generator version 0.14.0
|
7
|
+
|
8
|
+
### v0.10.0 (2024-01-28)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240121
|
11
|
+
* Regenerated using generator version 0.13.1
|
12
|
+
|
3
13
|
### v0.9.0 (2024-01-22)
|
4
14
|
|
5
15
|
* Regenerated using generator version 0.13.0
|
data/OVERVIEW.md
CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/iam/docs/simulating-access)
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby 2.
|
86
|
+
This library is supported on Ruby 2.7+.
|
87
87
|
|
88
|
-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life.
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
90
90
|
## License
|
91
91
|
|
@@ -514,6 +514,58 @@ module Google
|
|
514
514
|
end
|
515
515
|
end
|
516
516
|
|
517
|
+
# CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
518
|
+
# OrgPolicyViolationsPreview generations operation.
|
519
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
520
|
+
include Google::Apis::Core::Hashable
|
521
|
+
|
522
|
+
# Time when the request was received.
|
523
|
+
# Corresponds to the JSON property `requestTime`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :request_time
|
526
|
+
|
527
|
+
# Total number of resources that need scanning. Should equal resource_scanned +
|
528
|
+
# resources_pending
|
529
|
+
# Corresponds to the JSON property `resourcesFound`
|
530
|
+
# @return [Fixnum]
|
531
|
+
attr_accessor :resources_found
|
532
|
+
|
533
|
+
# Number of resources still to scan.
|
534
|
+
# Corresponds to the JSON property `resourcesPending`
|
535
|
+
# @return [Fixnum]
|
536
|
+
attr_accessor :resources_pending
|
537
|
+
|
538
|
+
# Number of resources already scanned.
|
539
|
+
# Corresponds to the JSON property `resourcesScanned`
|
540
|
+
# @return [Fixnum]
|
541
|
+
attr_accessor :resources_scanned
|
542
|
+
|
543
|
+
# Time when the request started processing, i.e., when the state was set to
|
544
|
+
# RUNNING.
|
545
|
+
# Corresponds to the JSON property `startTime`
|
546
|
+
# @return [String]
|
547
|
+
attr_accessor :start_time
|
548
|
+
|
549
|
+
# Output only. The current state of the operation.
|
550
|
+
# Corresponds to the JSON property `state`
|
551
|
+
# @return [String]
|
552
|
+
attr_accessor :state
|
553
|
+
|
554
|
+
def initialize(**args)
|
555
|
+
update!(**args)
|
556
|
+
end
|
557
|
+
|
558
|
+
# Update properties of this object
|
559
|
+
def update!(**args)
|
560
|
+
@request_time = args[:request_time] if args.key?(:request_time)
|
561
|
+
@resources_found = args[:resources_found] if args.key?(:resources_found)
|
562
|
+
@resources_pending = args[:resources_pending] if args.key?(:resources_pending)
|
563
|
+
@resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
|
564
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
565
|
+
@state = args[:state] if args.key?(:state)
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
517
569
|
# GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
518
570
|
# OrgPolicyViolationsPreview generations operation.
|
519
571
|
class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
@@ -570,20 +622,21 @@ module Google
|
|
570
622
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
|
571
623
|
include Google::Apis::Core::Hashable
|
572
624
|
|
573
|
-
# The OrgPolicy CustomConstraint changes to preview violations for.
|
574
|
-
# CustomConstraints with the same name will be overridden in the
|
575
|
-
# That is, violations will be determined as if all custom
|
576
|
-
# overlay were instantiated. Only a single custom_constraint
|
577
|
-
# overlay at a time. For evaluating multiple constraints,
|
578
|
-
# GenerateOrgPolicyViolationsPreview` requests are made, where each
|
579
|
-
# evaluates a single constraint.
|
625
|
+
# Optional. The OrgPolicy CustomConstraint changes to preview violations for.
|
626
|
+
# Any existing CustomConstraints with the same name will be overridden in the
|
627
|
+
# simulation. That is, violations will be determined as if all custom
|
628
|
+
# constraints in the overlay were instantiated. Only a single custom_constraint
|
629
|
+
# is supported in the overlay at a time. For evaluating multiple constraints,
|
630
|
+
# multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
|
631
|
+
# request evaluates a single constraint.
|
580
632
|
# Corresponds to the JSON property `customConstraints`
|
581
633
|
# @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
|
582
634
|
attr_accessor :custom_constraints
|
583
635
|
|
584
|
-
# The OrgPolicy changes to preview violations for. Any existing
|
585
|
-
# the same name will be overridden in the simulation. That is,
|
586
|
-
# be determined as if all policies in the overlay were created
|
636
|
+
# Optional. The OrgPolicy changes to preview violations for. Any existing
|
637
|
+
# OrgPolicies with the same name will be overridden in the simulation. That is,
|
638
|
+
# violations will be determined as if all policies in the overlay were created
|
639
|
+
# or updated.
|
587
640
|
# Corresponds to the JSON property `policies`
|
588
641
|
# @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay>]
|
589
642
|
attr_accessor :policies
|
@@ -611,7 +664,8 @@ module Google
|
|
611
664
|
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint]
|
612
665
|
attr_accessor :custom_constraint
|
613
666
|
|
614
|
-
# Resource the constraint is attached to. Example: "organization/
|
667
|
+
# Optional. Resource the constraint is attached to. Example: "organization/
|
668
|
+
# 987654"
|
615
669
|
# Corresponds to the JSON property `customConstraintParent`
|
616
670
|
# @return [String]
|
617
671
|
attr_accessor :custom_constraint_parent
|
@@ -637,7 +691,8 @@ module Google
|
|
637
691
|
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy]
|
638
692
|
attr_accessor :policy
|
639
693
|
|
640
|
-
# The parent of the policy we are attaching to. Example: "projects/
|
694
|
+
# Optional. The parent of the policy we are attaching to. Example: "projects/
|
695
|
+
# 123456"
|
641
696
|
# Corresponds to the JSON property `policyParent`
|
642
697
|
# @return [String]
|
643
698
|
attr_accessor :policy_parent
|
@@ -733,29 +788,29 @@ module Google
|
|
733
788
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
|
734
789
|
include Google::Apis::Core::Hashable
|
735
790
|
|
736
|
-
# Number of scanned resources with zero violations.
|
791
|
+
# Output only. Number of scanned resources with zero violations.
|
737
792
|
# Corresponds to the JSON property `compliant`
|
738
793
|
# @return [Fixnum]
|
739
794
|
attr_accessor :compliant
|
740
795
|
|
741
|
-
# Number of resources that returned an error when scanned.
|
796
|
+
# Output only. Number of resources that returned an error when scanned.
|
742
797
|
# Corresponds to the JSON property `errors`
|
743
798
|
# @return [Fixnum]
|
744
799
|
attr_accessor :errors
|
745
800
|
|
746
|
-
# Number of scanned resources with at least one violation.
|
801
|
+
# Output only. Number of scanned resources with at least one violation.
|
747
802
|
# Corresponds to the JSON property `noncompliant`
|
748
803
|
# @return [Fixnum]
|
749
804
|
attr_accessor :noncompliant
|
750
805
|
|
751
|
-
# Number of resources checked for compliance. Must equal:
|
752
|
-
# noncompliant + compliant + error
|
806
|
+
# Output only. Number of resources checked for compliance. Must equal:
|
807
|
+
# unenforced + noncompliant + compliant + error
|
753
808
|
# Corresponds to the JSON property `scanned`
|
754
809
|
# @return [Fixnum]
|
755
810
|
attr_accessor :scanned
|
756
811
|
|
757
|
-
# Number of resources where the constraint was not enforced, i.e.
|
758
|
-
# `enforced: false` for that resource.
|
812
|
+
# Output only. Number of resources where the constraint was not enforced, i.e.
|
813
|
+
# the Policy set `enforced: false` for that resource.
|
759
814
|
# Corresponds to the JSON property `unenforced`
|
760
815
|
# @return [Fixnum]
|
761
816
|
attr_accessor :unenforced
|
@@ -968,6 +1023,58 @@ module Google
|
|
968
1023
|
end
|
969
1024
|
end
|
970
1025
|
|
1026
|
+
# CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
1027
|
+
# OrgPolicyViolationsPreview generations operation.
|
1028
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
1029
|
+
include Google::Apis::Core::Hashable
|
1030
|
+
|
1031
|
+
# Time when the request was received.
|
1032
|
+
# Corresponds to the JSON property `requestTime`
|
1033
|
+
# @return [String]
|
1034
|
+
attr_accessor :request_time
|
1035
|
+
|
1036
|
+
# Total number of resources that need scanning. Should equal resource_scanned +
|
1037
|
+
# resources_pending
|
1038
|
+
# Corresponds to the JSON property `resourcesFound`
|
1039
|
+
# @return [Fixnum]
|
1040
|
+
attr_accessor :resources_found
|
1041
|
+
|
1042
|
+
# Number of resources still to scan.
|
1043
|
+
# Corresponds to the JSON property `resourcesPending`
|
1044
|
+
# @return [Fixnum]
|
1045
|
+
attr_accessor :resources_pending
|
1046
|
+
|
1047
|
+
# Number of resources already scanned.
|
1048
|
+
# Corresponds to the JSON property `resourcesScanned`
|
1049
|
+
# @return [Fixnum]
|
1050
|
+
attr_accessor :resources_scanned
|
1051
|
+
|
1052
|
+
# Time when the request started processing, i.e., when the state was set to
|
1053
|
+
# RUNNING.
|
1054
|
+
# Corresponds to the JSON property `startTime`
|
1055
|
+
# @return [String]
|
1056
|
+
attr_accessor :start_time
|
1057
|
+
|
1058
|
+
# Output only. The current state of the operation.
|
1059
|
+
# Corresponds to the JSON property `state`
|
1060
|
+
# @return [String]
|
1061
|
+
attr_accessor :state
|
1062
|
+
|
1063
|
+
def initialize(**args)
|
1064
|
+
update!(**args)
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# Update properties of this object
|
1068
|
+
def update!(**args)
|
1069
|
+
@request_time = args[:request_time] if args.key?(:request_time)
|
1070
|
+
@resources_found = args[:resources_found] if args.key?(:resources_found)
|
1071
|
+
@resources_pending = args[:resources_pending] if args.key?(:resources_pending)
|
1072
|
+
@resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
|
1073
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1074
|
+
@state = args[:state] if args.key?(:state)
|
1075
|
+
end
|
1076
|
+
end
|
1077
|
+
|
971
1078
|
# Details about how a set of policies, listed in ExplainedPolicy, resulted in a
|
972
1079
|
# certain AccessState when replaying an access tuple.
|
973
1080
|
class GoogleCloudPolicysimulatorV1betaExplainedAccess
|
@@ -1250,20 +1357,21 @@ module Google
|
|
1250
1357
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
|
1251
1358
|
include Google::Apis::Core::Hashable
|
1252
1359
|
|
1253
|
-
# The OrgPolicy CustomConstraint changes to preview violations for.
|
1254
|
-
# CustomConstraints with the same name will be overridden in the
|
1255
|
-
# That is, violations will be determined as if all custom
|
1256
|
-
# overlay were instantiated. Only a single custom_constraint
|
1257
|
-
# overlay at a time. For evaluating multiple constraints,
|
1258
|
-
# GenerateOrgPolicyViolationsPreview` requests are made, where each
|
1259
|
-
# evaluates a single constraint.
|
1360
|
+
# Optional. The OrgPolicy CustomConstraint changes to preview violations for.
|
1361
|
+
# Any existing CustomConstraints with the same name will be overridden in the
|
1362
|
+
# simulation. That is, violations will be determined as if all custom
|
1363
|
+
# constraints in the overlay were instantiated. Only a single custom_constraint
|
1364
|
+
# is supported in the overlay at a time. For evaluating multiple constraints,
|
1365
|
+
# multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
|
1366
|
+
# request evaluates a single constraint.
|
1260
1367
|
# Corresponds to the JSON property `customConstraints`
|
1261
1368
|
# @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
|
1262
1369
|
attr_accessor :custom_constraints
|
1263
1370
|
|
1264
|
-
# The OrgPolicy changes to preview violations for. Any existing
|
1265
|
-
# the same name will be overridden in the simulation. That is,
|
1266
|
-
# be determined as if all policies in the overlay were created
|
1371
|
+
# Optional. The OrgPolicy changes to preview violations for. Any existing
|
1372
|
+
# OrgPolicies with the same name will be overridden in the simulation. That is,
|
1373
|
+
# violations will be determined as if all policies in the overlay were created
|
1374
|
+
# or updated.
|
1267
1375
|
# Corresponds to the JSON property `policies`
|
1268
1376
|
# @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay>]
|
1269
1377
|
attr_accessor :policies
|
@@ -1291,7 +1399,8 @@ module Google
|
|
1291
1399
|
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint]
|
1292
1400
|
attr_accessor :custom_constraint
|
1293
1401
|
|
1294
|
-
# Resource the constraint is attached to. Example: "organization/
|
1402
|
+
# Optional. Resource the constraint is attached to. Example: "organization/
|
1403
|
+
# 987654"
|
1295
1404
|
# Corresponds to the JSON property `customConstraintParent`
|
1296
1405
|
# @return [String]
|
1297
1406
|
attr_accessor :custom_constraint_parent
|
@@ -1317,7 +1426,8 @@ module Google
|
|
1317
1426
|
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy]
|
1318
1427
|
attr_accessor :policy
|
1319
1428
|
|
1320
|
-
# The parent of the policy we are attaching to. Example: "projects/
|
1429
|
+
# Optional. The parent of the policy we are attaching to. Example: "projects/
|
1430
|
+
# 123456"
|
1321
1431
|
# Corresponds to the JSON property `policyParent`
|
1322
1432
|
# @return [String]
|
1323
1433
|
attr_accessor :policy_parent
|
@@ -1462,29 +1572,29 @@ module Google
|
|
1462
1572
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
|
1463
1573
|
include Google::Apis::Core::Hashable
|
1464
1574
|
|
1465
|
-
# Number of scanned resources with zero violations.
|
1575
|
+
# Output only. Number of scanned resources with zero violations.
|
1466
1576
|
# Corresponds to the JSON property `compliant`
|
1467
1577
|
# @return [Fixnum]
|
1468
1578
|
attr_accessor :compliant
|
1469
1579
|
|
1470
|
-
# Number of resources that returned an error when scanned.
|
1580
|
+
# Output only. Number of resources that returned an error when scanned.
|
1471
1581
|
# Corresponds to the JSON property `errors`
|
1472
1582
|
# @return [Fixnum]
|
1473
1583
|
attr_accessor :errors
|
1474
1584
|
|
1475
|
-
# Number of scanned resources with at least one violation.
|
1585
|
+
# Output only. Number of scanned resources with at least one violation.
|
1476
1586
|
# Corresponds to the JSON property `noncompliant`
|
1477
1587
|
# @return [Fixnum]
|
1478
1588
|
attr_accessor :noncompliant
|
1479
1589
|
|
1480
|
-
# Number of resources checked for compliance. Must equal:
|
1481
|
-
# noncompliant + compliant + error
|
1590
|
+
# Output only. Number of resources checked for compliance. Must equal:
|
1591
|
+
# unenforced + noncompliant + compliant + error
|
1482
1592
|
# Corresponds to the JSON property `scanned`
|
1483
1593
|
# @return [Fixnum]
|
1484
1594
|
attr_accessor :scanned
|
1485
1595
|
|
1486
|
-
# Number of resources where the constraint was not enforced, i.e.
|
1487
|
-
# `enforced: false` for that resource.
|
1596
|
+
# Output only. Number of resources where the constraint was not enforced, i.e.
|
1597
|
+
# the Policy set `enforced: false` for that resource.
|
1488
1598
|
# Corresponds to the JSON property `unenforced`
|
1489
1599
|
# @return [Fixnum]
|
1490
1600
|
attr_accessor :unenforced
|
@@ -1929,7 +2039,10 @@ module Google
|
|
1929
2039
|
attr_accessor :members
|
1930
2040
|
|
1931
2041
|
# Role that is assigned to the list of `members`, or principals. For example, `
|
1932
|
-
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
2042
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
|
2043
|
+
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
|
2044
|
+
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
|
2045
|
+
# here](https://cloud.google.com/iam/docs/understanding-roles).
|
1933
2046
|
# Corresponds to the JSON property `role`
|
1934
2047
|
# @return [String]
|
1935
2048
|
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.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240218"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -82,6 +82,12 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
85
91
|
class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
86
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
93
|
|
@@ -142,6 +148,12 @@ module Google
|
|
142
148
|
include Google::Apis::Core::JsonObjectSupport
|
143
149
|
end
|
144
150
|
|
151
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
145
157
|
class GoogleCloudPolicysimulatorV1betaExplainedAccess
|
146
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
159
|
|
@@ -422,6 +434,18 @@ module Google
|
|
422
434
|
end
|
423
435
|
end
|
424
436
|
|
437
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
438
|
+
# @private
|
439
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
440
|
+
property :request_time, as: 'requestTime'
|
441
|
+
property :resources_found, as: 'resourcesFound'
|
442
|
+
property :resources_pending, as: 'resourcesPending'
|
443
|
+
property :resources_scanned, as: 'resourcesScanned'
|
444
|
+
property :start_time, as: 'startTime'
|
445
|
+
property :state, as: 'state'
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
425
449
|
class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
426
450
|
# @private
|
427
451
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -531,6 +555,18 @@ module Google
|
|
531
555
|
end
|
532
556
|
end
|
533
557
|
|
558
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
559
|
+
# @private
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
561
|
+
property :request_time, as: 'requestTime'
|
562
|
+
property :resources_found, as: 'resourcesFound'
|
563
|
+
property :resources_pending, as: 'resourcesPending'
|
564
|
+
property :resources_scanned, as: 'resourcesScanned'
|
565
|
+
property :start_time, as: 'startTime'
|
566
|
+
property :state, as: 'state'
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
534
570
|
class GoogleCloudPolicysimulatorV1betaExplainedAccess
|
535
571
|
# @private
|
536
572
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -389,6 +389,47 @@ module Google
|
|
389
389
|
execute_or_queue_command(command, &block)
|
390
390
|
end
|
391
391
|
|
392
|
+
# CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the
|
393
|
+
# proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.
|
394
|
+
# The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The
|
395
|
+
# resources to scan are inferred from these specified changes.
|
396
|
+
# @param [String] parent
|
397
|
+
# Required. The organization under which this OrgPolicyViolationsPreview will be
|
398
|
+
# created. Example: `organizations/my-example-org/locations/global`
|
399
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
400
|
+
# @param [String] org_policy_violations_preview_id
|
401
|
+
# Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If
|
402
|
+
# not provided, a random ID will be generated.
|
403
|
+
# @param [String] fields
|
404
|
+
# Selector specifying which fields to include in a partial response.
|
405
|
+
# @param [String] quota_user
|
406
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
407
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
408
|
+
# @param [Google::Apis::RequestOptions] options
|
409
|
+
# Request-specific options
|
410
|
+
#
|
411
|
+
# @yield [result, err] Result & error if block supplied
|
412
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
413
|
+
# @yieldparam err [StandardError] error object if request failed
|
414
|
+
#
|
415
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
416
|
+
#
|
417
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
418
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
419
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
420
|
+
def create_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1beta_org_policy_violations_preview_object = nil, org_policy_violations_preview_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
421
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
|
422
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
423
|
+
command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
424
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
425
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
426
|
+
command.params['parent'] = parent unless parent.nil?
|
427
|
+
command.query['orgPolicyViolationsPreviewId'] = org_policy_violations_preview_id unless org_policy_violations_preview_id.nil?
|
428
|
+
command.query['fields'] = fields unless fields.nil?
|
429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
430
|
+
execute_or_queue_command(command, &block)
|
431
|
+
end
|
432
|
+
|
392
433
|
# GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
|
393
434
|
# the proposed changes in the provided OrgPolicyViolationsPreview.
|
394
435
|
# OrgPolicyOverlay. The changes to OrgPolicy are specified by this `
|
@@ -415,8 +456,8 @@ module Google
|
|
415
456
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
416
457
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
417
458
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
418
|
-
def
|
419
|
-
command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
|
459
|
+
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)
|
460
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews:generate', options)
|
420
461
|
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
421
462
|
command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
422
463
|
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
@@ -465,13 +506,13 @@ module Google
|
|
465
506
|
# organization`/locations/`location`` Example: `organizations/my-example-org/
|
466
507
|
# locations/global`
|
467
508
|
# @param [Fixnum] page_size
|
468
|
-
# The maximum number of items to return. The service may return fewer
|
469
|
-
# value. If unspecified, at most 5 items will be returned. The maximum
|
470
|
-
# 10; values above 10 will be coerced to 10.
|
509
|
+
# Optional. The maximum number of items to return. The service may return fewer
|
510
|
+
# than this value. If unspecified, at most 5 items will be returned. The maximum
|
511
|
+
# value is 10; values above 10 will be coerced to 10.
|
471
512
|
# @param [String] page_token
|
472
|
-
# A page token, received from a previous call. Provide this to
|
473
|
-
# subsequent page. When paginating, all other parameters must match
|
474
|
-
# that provided the page token.
|
513
|
+
# Optional. A page token, received from a previous call. Provide this to
|
514
|
+
# retrieve the subsequent page. When paginating, all other parameters must match
|
515
|
+
# the call that provided the page token.
|
475
516
|
# @param [String] fields
|
476
517
|
# Selector specifying which fields to include in a partial response.
|
477
518
|
# @param [String] quota_user
|
@@ -539,13 +580,13 @@ module Google
|
|
539
580
|
# Format: organizations/`organization`/locations/`location`/
|
540
581
|
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
|
541
582
|
# @param [Fixnum] page_size
|
542
|
-
# The maximum number of items to return. The service may return fewer
|
543
|
-
# value. If unspecified, at most 50 items will be returned. The
|
544
|
-
# 1000; values above 1000 will be coerced to 1000.
|
583
|
+
# Optional. The maximum number of items to return. The service may return fewer
|
584
|
+
# than this value. If unspecified, at most 50 items will be returned. The
|
585
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
545
586
|
# @param [String] page_token
|
546
|
-
# A page token, received from a previous call. Provide this to
|
547
|
-
# subsequent page. When paginating, all other parameters must match
|
548
|
-
# that provided the page token.
|
587
|
+
# Optional. A page token, received from a previous call. Provide this to
|
588
|
+
# retrieve the subsequent page. When paginating, all other parameters must match
|
589
|
+
# the call that provided the page token.
|
549
590
|
# @param [String] fields
|
550
591
|
# Selector specifying which fields to include in a partial response.
|
551
592
|
# @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.
|
4
|
+
version: 0.11.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-
|
11
|
+
date: 2024-02-25 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.
|
19
|
+
version: 0.14.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.
|
29
|
+
version: 0.14.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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.11.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: []
|
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
71
|
+
version: '2.7'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Policy Simulator API V1beta
|