google-apis-policysimulator_v1alpha 0.17.0 → 0.18.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 +5 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/policysimulator_v1alpha/classes.rb +104 -0
- data/lib/google/apis/policysimulator_v1alpha/gem_version.rb +3 -3
- data/lib/google/apis/policysimulator_v1alpha/representations.rb +36 -0
- data/lib/google/apis/policysimulator_v1alpha/service.rb +9 -6
- 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: 3f8ff90b122d437a11e6d2a18b79f224451b6e28b922022eb56661839301d113
|
4
|
+
data.tar.gz: 88274d06573db9943227dfde0c04750484b5e9aac8440822a677b633d883c69f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040735da40fc004aef06a8d5de48f223135ef8b28167867e75f743abd2c7cd8c3734d3d8b88e1ff005fa38dc575f6856fa17d2ce576d0e6c19c855e1d9321d48
|
7
|
+
data.tar.gz: a1be65719128e80fa33d7588813867b410d84579bad513320729d35bbc09577c94d749e3dd3656ee60b346e1915111c6429b64b877ce59c9a0ce16f5e4163393
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-policysimulator_v1alpha
|
2
2
|
|
3
|
+
### v0.18.0 (2024-02-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240218
|
6
|
+
* Regenerated using generator version 0.14.0
|
7
|
+
|
3
8
|
### v0.17.0 (2024-01-28)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20240121
|
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
|
|
@@ -708,6 +708,58 @@ module Google
|
|
708
708
|
end
|
709
709
|
end
|
710
710
|
|
711
|
+
# CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
712
|
+
# OrgPolicyViolationsPreview generations operation.
|
713
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
714
|
+
include Google::Apis::Core::Hashable
|
715
|
+
|
716
|
+
# Time when the request was received.
|
717
|
+
# Corresponds to the JSON property `requestTime`
|
718
|
+
# @return [String]
|
719
|
+
attr_accessor :request_time
|
720
|
+
|
721
|
+
# Total number of resources that need scanning. Should equal resource_scanned +
|
722
|
+
# resources_pending
|
723
|
+
# Corresponds to the JSON property `resourcesFound`
|
724
|
+
# @return [Fixnum]
|
725
|
+
attr_accessor :resources_found
|
726
|
+
|
727
|
+
# Number of resources still to scan.
|
728
|
+
# Corresponds to the JSON property `resourcesPending`
|
729
|
+
# @return [Fixnum]
|
730
|
+
attr_accessor :resources_pending
|
731
|
+
|
732
|
+
# Number of resources already scanned.
|
733
|
+
# Corresponds to the JSON property `resourcesScanned`
|
734
|
+
# @return [Fixnum]
|
735
|
+
attr_accessor :resources_scanned
|
736
|
+
|
737
|
+
# Time when the request started processing, i.e., when the state was set to
|
738
|
+
# RUNNING.
|
739
|
+
# Corresponds to the JSON property `startTime`
|
740
|
+
# @return [String]
|
741
|
+
attr_accessor :start_time
|
742
|
+
|
743
|
+
# Output only. The current state of the operation.
|
744
|
+
# Corresponds to the JSON property `state`
|
745
|
+
# @return [String]
|
746
|
+
attr_accessor :state
|
747
|
+
|
748
|
+
def initialize(**args)
|
749
|
+
update!(**args)
|
750
|
+
end
|
751
|
+
|
752
|
+
# Update properties of this object
|
753
|
+
def update!(**args)
|
754
|
+
@request_time = args[:request_time] if args.key?(:request_time)
|
755
|
+
@resources_found = args[:resources_found] if args.key?(:resources_found)
|
756
|
+
@resources_pending = args[:resources_pending] if args.key?(:resources_pending)
|
757
|
+
@resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
|
758
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
759
|
+
@state = args[:state] if args.key?(:state)
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
711
763
|
# Details about how a set of policies, listed in ExplainedPolicy, resulted in a
|
712
764
|
# certain AccessState when replaying an access tuple.
|
713
765
|
class GoogleCloudPolicysimulatorV1alphaExplainedAccess
|
@@ -1520,6 +1572,58 @@ module Google
|
|
1520
1572
|
end
|
1521
1573
|
end
|
1522
1574
|
|
1575
|
+
# CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
1576
|
+
# OrgPolicyViolationsPreview generations operation.
|
1577
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
1578
|
+
include Google::Apis::Core::Hashable
|
1579
|
+
|
1580
|
+
# Time when the request was received.
|
1581
|
+
# Corresponds to the JSON property `requestTime`
|
1582
|
+
# @return [String]
|
1583
|
+
attr_accessor :request_time
|
1584
|
+
|
1585
|
+
# Total number of resources that need scanning. Should equal resource_scanned +
|
1586
|
+
# resources_pending
|
1587
|
+
# Corresponds to the JSON property `resourcesFound`
|
1588
|
+
# @return [Fixnum]
|
1589
|
+
attr_accessor :resources_found
|
1590
|
+
|
1591
|
+
# Number of resources still to scan.
|
1592
|
+
# Corresponds to the JSON property `resourcesPending`
|
1593
|
+
# @return [Fixnum]
|
1594
|
+
attr_accessor :resources_pending
|
1595
|
+
|
1596
|
+
# Number of resources already scanned.
|
1597
|
+
# Corresponds to the JSON property `resourcesScanned`
|
1598
|
+
# @return [Fixnum]
|
1599
|
+
attr_accessor :resources_scanned
|
1600
|
+
|
1601
|
+
# Time when the request started processing, i.e., when the state was set to
|
1602
|
+
# RUNNING.
|
1603
|
+
# Corresponds to the JSON property `startTime`
|
1604
|
+
# @return [String]
|
1605
|
+
attr_accessor :start_time
|
1606
|
+
|
1607
|
+
# Output only. The current state of the operation.
|
1608
|
+
# Corresponds to the JSON property `state`
|
1609
|
+
# @return [String]
|
1610
|
+
attr_accessor :state
|
1611
|
+
|
1612
|
+
def initialize(**args)
|
1613
|
+
update!(**args)
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# Update properties of this object
|
1617
|
+
def update!(**args)
|
1618
|
+
@request_time = args[:request_time] if args.key?(:request_time)
|
1619
|
+
@resources_found = args[:resources_found] if args.key?(:resources_found)
|
1620
|
+
@resources_pending = args[:resources_pending] if args.key?(:resources_pending)
|
1621
|
+
@resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
|
1622
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1623
|
+
@state = args[:state] if args.key?(:state)
|
1624
|
+
end
|
1625
|
+
end
|
1626
|
+
|
1523
1627
|
# GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
1524
1628
|
# OrgPolicyViolationsPreview generations operation.
|
1525
1629
|
class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
@@ -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.18.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
|
@@ -106,6 +106,12 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
109
115
|
class GoogleCloudPolicysimulatorV1alphaExplainedAccess
|
110
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
117
|
|
@@ -220,6 +226,12 @@ module Google
|
|
220
226
|
include Google::Apis::Core::JsonObjectSupport
|
221
227
|
end
|
222
228
|
|
229
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
223
235
|
class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
224
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
237
|
|
@@ -465,6 +477,18 @@ module Google
|
|
465
477
|
end
|
466
478
|
end
|
467
479
|
|
480
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
481
|
+
# @private
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
483
|
+
property :request_time, as: 'requestTime'
|
484
|
+
property :resources_found, as: 'resourcesFound'
|
485
|
+
property :resources_pending, as: 'resourcesPending'
|
486
|
+
property :resources_scanned, as: 'resourcesScanned'
|
487
|
+
property :start_time, as: 'startTime'
|
488
|
+
property :state, as: 'state'
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
468
492
|
class GoogleCloudPolicysimulatorV1alphaExplainedAccess
|
469
493
|
# @private
|
470
494
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -672,6 +696,18 @@ module Google
|
|
672
696
|
end
|
673
697
|
end
|
674
698
|
|
699
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
700
|
+
# @private
|
701
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
702
|
+
property :request_time, as: 'requestTime'
|
703
|
+
property :resources_found, as: 'resourcesFound'
|
704
|
+
property :resources_pending, as: 'resourcesPending'
|
705
|
+
property :resources_scanned, as: 'resourcesScanned'
|
706
|
+
property :start_time, as: 'startTime'
|
707
|
+
property :state, as: 'state'
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
675
711
|
class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
676
712
|
# @private
|
677
713
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -389,15 +389,17 @@ module Google
|
|
389
389
|
execute_or_queue_command(command, &block)
|
390
390
|
end
|
391
391
|
|
392
|
-
#
|
393
|
-
#
|
394
|
-
#
|
395
|
-
#
|
396
|
-
# changes.
|
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.
|
397
396
|
# @param [String] parent
|
398
397
|
# Required. The organization under which this OrgPolicyViolationsPreview will be
|
399
398
|
# created. Example: `organizations/my-example-org/locations/global`
|
400
399
|
# @param [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1alpha_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.
|
401
403
|
# @param [String] fields
|
402
404
|
# Selector specifying which fields to include in a partial response.
|
403
405
|
# @param [String] quota_user
|
@@ -415,13 +417,14 @@ module Google
|
|
415
417
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
416
418
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
417
419
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
418
|
-
def
|
420
|
+
def create_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, org_policy_violations_preview_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
419
421
|
command = make_simple_command(:post, 'v1alpha/{+parent}/orgPolicyViolationsPreviews', options)
|
420
422
|
command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation
|
421
423
|
command.request_object = google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
|
422
424
|
command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
|
423
425
|
command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
|
424
426
|
command.params['parent'] = parent unless parent.nil?
|
427
|
+
command.query['orgPolicyViolationsPreviewId'] = org_policy_violations_preview_id unless org_policy_violations_preview_id.nil?
|
425
428
|
command.query['fields'] = fields unless fields.nil?
|
426
429
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
427
430
|
execute_or_queue_command(command, &block)
|
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.18.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_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.18.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: []
|
@@ -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 V1alpha
|