google-apis-policysimulator_v1beta 0.4.0 → 0.5.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_v1beta/classes.rb +44 -2
- data/lib/google/apis/policysimulator_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/policysimulator_v1beta/representations.rb +4 -0
- data/lib/google/apis/policysimulator_v1beta/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: f4d2ee2f4cca330ec238dca481dcd729c48dbc9dd4f4c41e26236b42abbc97b4
|
4
|
+
data.tar.gz: 9b9eb5981acfcde2d0cfa180be7c360e788cc759228af7ec864713c39fe40495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cd9b7a9263b04113f175d72af1de8866057a53b223bbdcd3edf56cc51d57bbb6e1d5c1f92997801230371b7f38aefc137d96d76d933201ac6dbc5f4aba46c0b
|
7
|
+
data.tar.gz: a8b5e38d6eb204aa745d173faa503f0b9f9bd56c89300ed417d1964650b337a49ff9fcd5226ffa6c18878d307b6ed0df269e9043dde4101be4571aa8cc6a9b1f
|
data/CHANGELOG.md
CHANGED
@@ -564,7 +564,10 @@ module Google
|
|
564
564
|
# The OrgPolicy CustomConstraint changes to preview violations for. Any existing
|
565
565
|
# CustomConstraints with the same name will be overridden in the simulation.
|
566
566
|
# That is, violations will be determined as if all custom constraints in the
|
567
|
-
# overlay were instantiated.
|
567
|
+
# overlay were instantiated. Only a single custom_constraint is supported in the
|
568
|
+
# overlay at a time. For evaluating multiple constraints, multiple `
|
569
|
+
# GenerateOrgPolicyViolationsPreview` requests are made, where each request
|
570
|
+
# evaluates a single constraint.
|
568
571
|
# Corresponds to the JSON property `customConstraints`
|
569
572
|
# @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
|
570
573
|
attr_accessor :custom_constraints
|
@@ -649,6 +652,22 @@ module Google
|
|
649
652
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
|
650
653
|
include Google::Apis::Core::Hashable
|
651
654
|
|
655
|
+
# Output only. Time when this `OrgPolicyViolationsPreview` was created.
|
656
|
+
# Corresponds to the JSON property `createTime`
|
657
|
+
# @return [String]
|
658
|
+
attr_accessor :create_time
|
659
|
+
|
660
|
+
# Output only. The names of the constraints against which all `
|
661
|
+
# OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `
|
662
|
+
# PolicyOverlay` then it contains the name of the configured custom constraint,
|
663
|
+
# applicable to the specified policies. Otherwise it contains the name of the
|
664
|
+
# constraint specified in `CustomConstraintOverlay`. Format: `organizations/`
|
665
|
+
# organization_id`/customConstraints/`custom_constraint_id`` Example: `
|
666
|
+
# organizations/123/customConstraints/custom.createOnlyE2TypeVms`
|
667
|
+
# Corresponds to the JSON property `customConstraints`
|
668
|
+
# @return [Array<String>]
|
669
|
+
attr_accessor :custom_constraints
|
670
|
+
|
652
671
|
# Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
|
653
672
|
# following format: `organizations/`organization`/locations/`location`/
|
654
673
|
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
|
@@ -690,6 +709,8 @@ module Google
|
|
690
709
|
|
691
710
|
# Update properties of this object
|
692
711
|
def update!(**args)
|
712
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
713
|
+
@custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
|
693
714
|
@name = args[:name] if args.key?(:name)
|
694
715
|
@overlay = args[:overlay] if args.key?(:overlay)
|
695
716
|
@resource_counts = args[:resource_counts] if args.key?(:resource_counts)
|
@@ -1223,7 +1244,10 @@ module Google
|
|
1223
1244
|
# The OrgPolicy CustomConstraint changes to preview violations for. Any existing
|
1224
1245
|
# CustomConstraints with the same name will be overridden in the simulation.
|
1225
1246
|
# That is, violations will be determined as if all custom constraints in the
|
1226
|
-
# overlay were instantiated.
|
1247
|
+
# overlay were instantiated. Only a single custom_constraint is supported in the
|
1248
|
+
# overlay at a time. For evaluating multiple constraints, multiple `
|
1249
|
+
# GenerateOrgPolicyViolationsPreview` requests are made, where each request
|
1250
|
+
# evaluates a single constraint.
|
1227
1251
|
# Corresponds to the JSON property `customConstraints`
|
1228
1252
|
# @return [Array<Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
|
1229
1253
|
attr_accessor :custom_constraints
|
@@ -1357,6 +1381,22 @@ module Google
|
|
1357
1381
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
|
1358
1382
|
include Google::Apis::Core::Hashable
|
1359
1383
|
|
1384
|
+
# Output only. Time when this `OrgPolicyViolationsPreview` was created.
|
1385
|
+
# Corresponds to the JSON property `createTime`
|
1386
|
+
# @return [String]
|
1387
|
+
attr_accessor :create_time
|
1388
|
+
|
1389
|
+
# Output only. The names of the constraints against which all `
|
1390
|
+
# OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `
|
1391
|
+
# PolicyOverlay` then it contains the name of the configured custom constraint,
|
1392
|
+
# applicable to the specified policies. Otherwise it contains the name of the
|
1393
|
+
# constraint specified in `CustomConstraintOverlay`. Format: `organizations/`
|
1394
|
+
# organization_id`/customConstraints/`custom_constraint_id`` Example: `
|
1395
|
+
# organizations/123/customConstraints/custom.createOnlyE2TypeVms`
|
1396
|
+
# Corresponds to the JSON property `customConstraints`
|
1397
|
+
# @return [Array<String>]
|
1398
|
+
attr_accessor :custom_constraints
|
1399
|
+
|
1360
1400
|
# Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
|
1361
1401
|
# following format: `organizations/`organization`/locations/`location`/
|
1362
1402
|
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
|
@@ -1398,6 +1438,8 @@ module Google
|
|
1398
1438
|
|
1399
1439
|
# Update properties of this object
|
1400
1440
|
def update!(**args)
|
1441
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1442
|
+
@custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
|
1401
1443
|
@name = args[:name] if args.key?(:name)
|
1402
1444
|
@overlay = args[:overlay] if args.key?(:overlay)
|
1403
1445
|
@resource_counts = args[:resource_counts] if args.key?(:resource_counts)
|
@@ -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.5.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
|
@@ -464,6 +464,8 @@ module Google
|
|
464
464
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
|
465
465
|
# @private
|
466
466
|
class Representation < Google::Apis::Core::JsonRepresentation
|
467
|
+
property :create_time, as: 'createTime'
|
468
|
+
collection :custom_constraints, as: 'customConstraints'
|
467
469
|
property :name, as: 'name'
|
468
470
|
property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::Representation
|
469
471
|
|
@@ -644,6 +646,8 @@ module Google
|
|
644
646
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
|
645
647
|
# @private
|
646
648
|
class Representation < Google::Apis::Core::JsonRepresentation
|
649
|
+
property :create_time, as: 'createTime'
|
650
|
+
collection :custom_constraints, as: 'customConstraints'
|
647
651
|
property :name, as: 'name'
|
648
652
|
property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::Representation
|
649
653
|
|
@@ -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_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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_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.5.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: []
|