google-apis-policysimulator_v1alpha 0.11.0 → 0.12.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 +4 -0
- data/lib/google/apis/policysimulator_v1alpha/classes.rb +44 -2
- data/lib/google/apis/policysimulator_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/policysimulator_v1alpha/representations.rb +4 -0
- data/lib/google/apis/policysimulator_v1alpha/service.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5013d57a29d1d58b41691706bcb33b706865e4ec3d0e6de849570eee3ea797cb
|
4
|
+
data.tar.gz: 546bc9969abff57430c4443191e54ee569e8be5798e45cb99807c2b57d127d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 537b0afb2c2df7a4a3564addaf2368d2e0424cc6ea0938c65c8f53c88a95f1794b16fa35e4a25d16a1ab21050657532ad92e9bebd29ca6b0c182558c9f3eceee
|
7
|
+
data.tar.gz: cf6f335d9c6d89a0dd5d9fa1400916d7a1d975943730401af6e5602a2b82b47abab728fc04163ede4810677b26a4dd03b0d0cb2feed79b13661c366b3ffc8aae
|
data/CHANGELOG.md
CHANGED
@@ -984,7 +984,10 @@ module Google
|
|
984
984
|
# The OrgPolicy CustomConstraint changes to preview violations for. Any existing
|
985
985
|
# CustomConstraints with the same name will be overridden in the simulation.
|
986
986
|
# That is, violations will be determined as if all custom constraints in the
|
987
|
-
# overlay were instantiated.
|
987
|
+
# overlay were instantiated. Only a single custom_constraint is supported in the
|
988
|
+
# overlay at a time. For evaluating multiple constraints, multiple `
|
989
|
+
# GenerateOrgPolicyViolationsPreview` requests are made, where each request
|
990
|
+
# evaluates a single constraint.
|
988
991
|
# Corresponds to the JSON property `customConstraints`
|
989
992
|
# @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
|
990
993
|
attr_accessor :custom_constraints
|
@@ -1118,6 +1121,22 @@ module Google
|
|
1118
1121
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
|
1119
1122
|
include Google::Apis::Core::Hashable
|
1120
1123
|
|
1124
|
+
# Output only. Time when this `OrgPolicyViolationsPreview` was created.
|
1125
|
+
# Corresponds to the JSON property `createTime`
|
1126
|
+
# @return [String]
|
1127
|
+
attr_accessor :create_time
|
1128
|
+
|
1129
|
+
# Output only. The names of the constraints against which all `
|
1130
|
+
# OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `
|
1131
|
+
# PolicyOverlay` then it contains the name of the configured custom constraint,
|
1132
|
+
# applicable to the specified policies. Otherwise it contains the name of the
|
1133
|
+
# constraint specified in `CustomConstraintOverlay`. Format: `organizations/`
|
1134
|
+
# organization_id`/customConstraints/`custom_constraint_id`` Example: `
|
1135
|
+
# organizations/123/customConstraints/custom.createOnlyE2TypeVms`
|
1136
|
+
# Corresponds to the JSON property `customConstraints`
|
1137
|
+
# @return [Array<String>]
|
1138
|
+
attr_accessor :custom_constraints
|
1139
|
+
|
1121
1140
|
# Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
|
1122
1141
|
# following format: `organizations/`organization`/locations/`location`/
|
1123
1142
|
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
|
@@ -1159,6 +1178,8 @@ module Google
|
|
1159
1178
|
|
1160
1179
|
# Update properties of this object
|
1161
1180
|
def update!(**args)
|
1181
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1182
|
+
@custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
|
1162
1183
|
@name = args[:name] if args.key?(:name)
|
1163
1184
|
@overlay = args[:overlay] if args.key?(:overlay)
|
1164
1185
|
@resource_counts = args[:resource_counts] if args.key?(:resource_counts)
|
@@ -1546,7 +1567,10 @@ module Google
|
|
1546
1567
|
# The OrgPolicy CustomConstraint changes to preview violations for. Any existing
|
1547
1568
|
# CustomConstraints with the same name will be overridden in the simulation.
|
1548
1569
|
# That is, violations will be determined as if all custom constraints in the
|
1549
|
-
# overlay were instantiated.
|
1570
|
+
# overlay were instantiated. Only a single custom_constraint is supported in the
|
1571
|
+
# overlay at a time. For evaluating multiple constraints, multiple `
|
1572
|
+
# GenerateOrgPolicyViolationsPreview` requests are made, where each request
|
1573
|
+
# evaluates a single constraint.
|
1550
1574
|
# Corresponds to the JSON property `customConstraints`
|
1551
1575
|
# @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
|
1552
1576
|
attr_accessor :custom_constraints
|
@@ -1631,6 +1655,22 @@ module Google
|
|
1631
1655
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
|
1632
1656
|
include Google::Apis::Core::Hashable
|
1633
1657
|
|
1658
|
+
# Output only. Time when this `OrgPolicyViolationsPreview` was created.
|
1659
|
+
# Corresponds to the JSON property `createTime`
|
1660
|
+
# @return [String]
|
1661
|
+
attr_accessor :create_time
|
1662
|
+
|
1663
|
+
# Output only. The names of the constraints against which all `
|
1664
|
+
# OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `
|
1665
|
+
# PolicyOverlay` then it contains the name of the configured custom constraint,
|
1666
|
+
# applicable to the specified policies. Otherwise it contains the name of the
|
1667
|
+
# constraint specified in `CustomConstraintOverlay`. Format: `organizations/`
|
1668
|
+
# organization_id`/customConstraints/`custom_constraint_id`` Example: `
|
1669
|
+
# organizations/123/customConstraints/custom.createOnlyE2TypeVms`
|
1670
|
+
# Corresponds to the JSON property `customConstraints`
|
1671
|
+
# @return [Array<String>]
|
1672
|
+
attr_accessor :custom_constraints
|
1673
|
+
|
1634
1674
|
# Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
|
1635
1675
|
# following format: `organizations/`organization`/locations/`location`/
|
1636
1676
|
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
|
@@ -1672,6 +1712,8 @@ module Google
|
|
1672
1712
|
|
1673
1713
|
# Update properties of this object
|
1674
1714
|
def update!(**args)
|
1715
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1716
|
+
@custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
|
1675
1717
|
@name = args[:name] if args.key?(:name)
|
1676
1718
|
@overlay = args[:overlay] if args.key?(:overlay)
|
1677
1719
|
@resource_counts = args[:resource_counts] if args.key?(:resource_counts)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230917"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -580,6 +580,8 @@ module Google
|
|
580
580
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
|
581
581
|
# @private
|
582
582
|
class Representation < Google::Apis::Core::JsonRepresentation
|
583
|
+
property :create_time, as: 'createTime'
|
584
|
+
collection :custom_constraints, as: 'customConstraints'
|
583
585
|
property :name, as: 'name'
|
584
586
|
property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::Representation
|
585
587
|
|
@@ -712,6 +714,8 @@ module Google
|
|
712
714
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
|
713
715
|
# @private
|
714
716
|
class Representation < Google::Apis::Core::JsonRepresentation
|
717
|
+
property :create_time, as: 'createTime'
|
718
|
+
collection :custom_constraints, as: 'customConstraints'
|
715
719
|
property :name, as: 'name'
|
716
720
|
property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::Representation
|
717
721
|
|
@@ -459,8 +459,9 @@ module Google
|
|
459
459
|
# ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an
|
460
460
|
# organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
|
461
461
|
# @param [String] parent
|
462
|
-
# Required. The parent the violations are scoped to. Format: organizations/`
|
463
|
-
# organization`
|
462
|
+
# Required. The parent the violations are scoped to. Format: `organizations/`
|
463
|
+
# organization`/locations/`location`` Example: `organizations/my-example-org/
|
464
|
+
# locations/global`
|
464
465
|
# @param [Fixnum] page_size
|
465
466
|
# The maximum number of items to return. The service may return fewer than this
|
466
467
|
# value. If unspecified, at most 5 items will be returned. The maximum value is
|
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.
|
4
|
+
version: 0.12.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-09-
|
11
|
+
date: 2023-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.12.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: []
|