google-apis-policysimulator_v1 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/policysimulator_v1/classes.rb +0 -158
- data/lib/google/apis/policysimulator_v1/gem_version.rb +2 -2
- data/lib/google/apis/policysimulator_v1/representations.rb +0 -66
- data/lib/google/apis/policysimulator_v1/service.rb +4 -28
- 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: 6679df35317d62bec7e9c9361ab3a02d9cab43588962add0053acd67b1bb75bd
|
4
|
+
data.tar.gz: a1ac18f7f8cfe18b1a8d7c2fa16c7bf11f8bdfcf61c8404d79477def965af7ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1e06ed39085fd4769880dbcb9a19752ea530641708318f9ba4696d2271466ab03799554523c1acc3b46cd498aac8603660eacc699277979693e089325782c13
|
7
|
+
data.tar.gz: 36ef25f796aeedd6cc997f72d58500d74ebdc5a5836fe69cca9e392db784d943677219c1843e9fc4dd48ff09422c0f5f7df434cd74e12092a85bc0617f8d7a84
|
data/CHANGELOG.md
CHANGED
@@ -612,164 +612,6 @@ module Google
|
|
612
612
|
end
|
613
613
|
end
|
614
614
|
|
615
|
-
# A resource describing a `Replay`, or simulation.
|
616
|
-
class GoogleCloudPolicysimulatorV1beta1Replay
|
617
|
-
include Google::Apis::Core::Hashable
|
618
|
-
|
619
|
-
# The configuration used for a Replay.
|
620
|
-
# Corresponds to the JSON property `config`
|
621
|
-
# @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayConfig]
|
622
|
-
attr_accessor :config
|
623
|
-
|
624
|
-
# Output only. The resource name of the `Replay`, which has the following format:
|
625
|
-
# ``projects|folders|organizations`/`resource-id`/locations/global/replays/`
|
626
|
-
# replay-id``, where ``resource-id`` is the ID of the project, folder, or
|
627
|
-
# organization that owns the Replay. Example: `projects/my-example-project/
|
628
|
-
# locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
629
|
-
# Corresponds to the JSON property `name`
|
630
|
-
# @return [String]
|
631
|
-
attr_accessor :name
|
632
|
-
|
633
|
-
# Summary statistics about the replayed log entries.
|
634
|
-
# Corresponds to the JSON property `resultsSummary`
|
635
|
-
# @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary]
|
636
|
-
attr_accessor :results_summary
|
637
|
-
|
638
|
-
# Output only. The current state of the `Replay`.
|
639
|
-
# Corresponds to the JSON property `state`
|
640
|
-
# @return [String]
|
641
|
-
attr_accessor :state
|
642
|
-
|
643
|
-
def initialize(**args)
|
644
|
-
update!(**args)
|
645
|
-
end
|
646
|
-
|
647
|
-
# Update properties of this object
|
648
|
-
def update!(**args)
|
649
|
-
@config = args[:config] if args.key?(:config)
|
650
|
-
@name = args[:name] if args.key?(:name)
|
651
|
-
@results_summary = args[:results_summary] if args.key?(:results_summary)
|
652
|
-
@state = args[:state] if args.key?(:state)
|
653
|
-
end
|
654
|
-
end
|
655
|
-
|
656
|
-
# The configuration used for a Replay.
|
657
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayConfig
|
658
|
-
include Google::Apis::Core::Hashable
|
659
|
-
|
660
|
-
# The logs to use as input for the Replay.
|
661
|
-
# Corresponds to the JSON property `logSource`
|
662
|
-
# @return [String]
|
663
|
-
attr_accessor :log_source
|
664
|
-
|
665
|
-
# A mapping of the resources that you want to simulate policies for and the
|
666
|
-
# policies that you want to simulate. Keys are the full resource names for the
|
667
|
-
# resources. For example, `//cloudresourcemanager.googleapis.com/projects/my-
|
668
|
-
# project`. For examples of full resource names for Google Cloud services, see
|
669
|
-
# https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values
|
670
|
-
# are Policy objects representing the policies that you want to simulate.
|
671
|
-
# Replays automatically take into account any IAM policies inherited through the
|
672
|
-
# resource hierarchy, and any policies set on descendant resources. You do not
|
673
|
-
# need to include these policies in the policy overlay.
|
674
|
-
# Corresponds to the JSON property `policyOverlay`
|
675
|
-
# @return [Hash<String,Google::Apis::PolicysimulatorV1::GoogleIamV1Policy>]
|
676
|
-
attr_accessor :policy_overlay
|
677
|
-
|
678
|
-
def initialize(**args)
|
679
|
-
update!(**args)
|
680
|
-
end
|
681
|
-
|
682
|
-
# Update properties of this object
|
683
|
-
def update!(**args)
|
684
|
-
@log_source = args[:log_source] if args.key?(:log_source)
|
685
|
-
@policy_overlay = args[:policy_overlay] if args.key?(:policy_overlay)
|
686
|
-
end
|
687
|
-
end
|
688
|
-
|
689
|
-
# Metadata about a Replay operation.
|
690
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
691
|
-
include Google::Apis::Core::Hashable
|
692
|
-
|
693
|
-
# Time when the request was received.
|
694
|
-
# Corresponds to the JSON property `startTime`
|
695
|
-
# @return [String]
|
696
|
-
attr_accessor :start_time
|
697
|
-
|
698
|
-
def initialize(**args)
|
699
|
-
update!(**args)
|
700
|
-
end
|
701
|
-
|
702
|
-
# Update properties of this object
|
703
|
-
def update!(**args)
|
704
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
705
|
-
end
|
706
|
-
end
|
707
|
-
|
708
|
-
# Summary statistics about the replayed log entries.
|
709
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
710
|
-
include Google::Apis::Core::Hashable
|
711
|
-
|
712
|
-
# The number of replayed log entries with a difference between baseline and
|
713
|
-
# simulated policies.
|
714
|
-
# Corresponds to the JSON property `differenceCount`
|
715
|
-
# @return [Fixnum]
|
716
|
-
attr_accessor :difference_count
|
717
|
-
|
718
|
-
# The number of log entries that could not be replayed.
|
719
|
-
# Corresponds to the JSON property `errorCount`
|
720
|
-
# @return [Fixnum]
|
721
|
-
attr_accessor :error_count
|
722
|
-
|
723
|
-
# The total number of log entries replayed.
|
724
|
-
# Corresponds to the JSON property `logCount`
|
725
|
-
# @return [Fixnum]
|
726
|
-
attr_accessor :log_count
|
727
|
-
|
728
|
-
# Represents a whole or partial calendar date, such as a birthday. The time of
|
729
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
730
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
731
|
-
# following: * A full date, with non-zero year, month, and day values. * A month
|
732
|
-
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
733
|
-
# with a zero month and a zero day. * A year and month, with a zero day (for
|
734
|
-
# example, a credit card expiration date). Related types: * google.type.
|
735
|
-
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
736
|
-
# Corresponds to the JSON property `newestDate`
|
737
|
-
# @return [Google::Apis::PolicysimulatorV1::GoogleTypeDate]
|
738
|
-
attr_accessor :newest_date
|
739
|
-
|
740
|
-
# Represents a whole or partial calendar date, such as a birthday. The time of
|
741
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
742
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
743
|
-
# following: * A full date, with non-zero year, month, and day values. * A month
|
744
|
-
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
745
|
-
# with a zero month and a zero day. * A year and month, with a zero day (for
|
746
|
-
# example, a credit card expiration date). Related types: * google.type.
|
747
|
-
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
748
|
-
# Corresponds to the JSON property `oldestDate`
|
749
|
-
# @return [Google::Apis::PolicysimulatorV1::GoogleTypeDate]
|
750
|
-
attr_accessor :oldest_date
|
751
|
-
|
752
|
-
# The number of replayed log entries with no difference between baseline and
|
753
|
-
# simulated policies.
|
754
|
-
# Corresponds to the JSON property `unchangedCount`
|
755
|
-
# @return [Fixnum]
|
756
|
-
attr_accessor :unchanged_count
|
757
|
-
|
758
|
-
def initialize(**args)
|
759
|
-
update!(**args)
|
760
|
-
end
|
761
|
-
|
762
|
-
# Update properties of this object
|
763
|
-
def update!(**args)
|
764
|
-
@difference_count = args[:difference_count] if args.key?(:difference_count)
|
765
|
-
@error_count = args[:error_count] if args.key?(:error_count)
|
766
|
-
@log_count = args[:log_count] if args.key?(:log_count)
|
767
|
-
@newest_date = args[:newest_date] if args.key?(:newest_date)
|
768
|
-
@oldest_date = args[:oldest_date] if args.key?(:oldest_date)
|
769
|
-
@unchanged_count = args[:unchanged_count] if args.key?(:unchanged_count)
|
770
|
-
end
|
771
|
-
end
|
772
|
-
|
773
615
|
# Specifies the audit configuration for a service. The configuration determines
|
774
616
|
# which permission types are logged, and what identities, if any, are exempted
|
775
617
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PolicysimulatorV1
|
18
18
|
# Version of the google-apis-policysimulator_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.24.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 = "20230304"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,30 +100,6 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class GoogleCloudPolicysimulatorV1beta1Replay
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayConfig
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
-
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
125
|
-
end
|
126
|
-
|
127
103
|
class GoogleIamV1AuditConfig
|
128
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
105
|
|
@@ -320,48 +296,6 @@ module Google
|
|
320
296
|
end
|
321
297
|
end
|
322
298
|
|
323
|
-
class GoogleCloudPolicysimulatorV1beta1Replay
|
324
|
-
# @private
|
325
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
-
property :config, as: 'config', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayConfig, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayConfig::Representation
|
327
|
-
|
328
|
-
property :name, as: 'name'
|
329
|
-
property :results_summary, as: 'resultsSummary', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary::Representation
|
330
|
-
|
331
|
-
property :state, as: 'state'
|
332
|
-
end
|
333
|
-
end
|
334
|
-
|
335
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayConfig
|
336
|
-
# @private
|
337
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
338
|
-
property :log_source, as: 'logSource'
|
339
|
-
hash :policy_overlay, as: 'policyOverlay', class: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy, decorator: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy::Representation
|
340
|
-
|
341
|
-
end
|
342
|
-
end
|
343
|
-
|
344
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
345
|
-
# @private
|
346
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
347
|
-
property :start_time, as: 'startTime'
|
348
|
-
end
|
349
|
-
end
|
350
|
-
|
351
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
352
|
-
# @private
|
353
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
354
|
-
property :difference_count, as: 'differenceCount'
|
355
|
-
property :error_count, as: 'errorCount'
|
356
|
-
property :log_count, as: 'logCount'
|
357
|
-
property :newest_date, as: 'newestDate', class: Google::Apis::PolicysimulatorV1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeDate::Representation
|
358
|
-
|
359
|
-
property :oldest_date, as: 'oldestDate', class: Google::Apis::PolicysimulatorV1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeDate::Representation
|
360
|
-
|
361
|
-
property :unchanged_count, as: 'unchangedCount'
|
362
|
-
end
|
363
|
-
end
|
364
|
-
|
365
299
|
class GoogleIamV1AuditConfig
|
366
300
|
# @private
|
367
301
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -187,13 +187,7 @@ module Google
|
|
187
187
|
end
|
188
188
|
|
189
189
|
# Lists operations that match the specified filter in the request. If the server
|
190
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
191
|
-
# binding allows API services to override the binding to use different resource
|
192
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
193
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
194
|
-
# service configuration. For backwards compatibility, the default name includes
|
195
|
-
# the operations collection id, however overriding users must ensure the name
|
196
|
-
# binding is the parent resource, without the operations collection id.
|
190
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
197
191
|
# @param [String] name
|
198
192
|
# The name of the operation's parent resource.
|
199
193
|
# @param [String] filter
|
@@ -307,13 +301,7 @@ module Google
|
|
307
301
|
end
|
308
302
|
|
309
303
|
# Lists operations that match the specified filter in the request. If the server
|
310
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
311
|
-
# binding allows API services to override the binding to use different resource
|
312
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
313
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
314
|
-
# service configuration. For backwards compatibility, the default name includes
|
315
|
-
# the operations collection id, however overriding users must ensure the name
|
316
|
-
# binding is the parent resource, without the operations collection id.
|
304
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
317
305
|
# @param [String] name
|
318
306
|
# The name of the operation's parent resource.
|
319
307
|
# @param [String] filter
|
@@ -484,13 +472,7 @@ module Google
|
|
484
472
|
end
|
485
473
|
|
486
474
|
# Lists operations that match the specified filter in the request. If the server
|
487
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
488
|
-
# binding allows API services to override the binding to use different resource
|
489
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
490
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
491
|
-
# service configuration. For backwards compatibility, the default name includes
|
492
|
-
# the operations collection id, however overriding users must ensure the name
|
493
|
-
# binding is the parent resource, without the operations collection id.
|
475
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
494
476
|
# @param [String] name
|
495
477
|
# The name of the operation's parent resource.
|
496
478
|
# @param [String] filter
|
@@ -704,13 +686,7 @@ module Google
|
|
704
686
|
end
|
705
687
|
|
706
688
|
# Lists operations that match the specified filter in the request. If the server
|
707
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
708
|
-
# binding allows API services to override the binding to use different resource
|
709
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
710
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
711
|
-
# service configuration. For backwards compatibility, the default name includes
|
712
|
-
# the operations collection id, however overriding users must ensure the name
|
713
|
-
# binding is the parent resource, without the operations collection id.
|
689
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
714
690
|
# @param [String] name
|
715
691
|
# The name of the operation's parent resource.
|
716
692
|
# @param [String] filter
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-policysimulator_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.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-
|
11
|
+
date: 2023-03-12 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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.24.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|