google-apis-policysimulator_v1 0.22.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 +9 -0
- data/lib/google/apis/policysimulator_v1/classes.rb +10 -168
- data/lib/google/apis/policysimulator_v1/gem_version.rb +3 -3
- data/lib/google/apis/policysimulator_v1/representations.rb +0 -66
- data/lib/google/apis/policysimulator_v1/service.rb +97 -28
- metadata +6 -6
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
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-policysimulator_v1
|
2
2
|
|
3
|
+
### v0.24.0 (2023-03-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230304
|
6
|
+
|
7
|
+
### v0.23.0 (2023-02-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230219
|
10
|
+
* Regenerated using generator version 0.12.0
|
11
|
+
|
3
12
|
### v0.22.0 (2022-11-16)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20221112
|
@@ -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
|
@@ -879,22 +721,22 @@ module Google
|
|
879
721
|
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
|
880
722
|
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
881
723
|
# email address that represents a Google group. For example, `admins@example.com`
|
882
|
-
# . * `
|
883
|
-
#
|
884
|
-
#
|
885
|
-
#
|
886
|
-
# the
|
887
|
-
#
|
888
|
-
#
|
724
|
+
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
725
|
+
# users of that domain. For example, `google.com` or `example.com`. * `deleted:
|
726
|
+
# user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
|
727
|
+
# representing a user that has been recently deleted. For example, `alice@
|
728
|
+
# example.com?uid=123456789012345678901`. If the user is recovered, this value
|
729
|
+
# reverts to `user:`emailid`` and the recovered user retains the role in the
|
730
|
+
# binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
|
731
|
+
# (plus unique identifier) representing a service account that has been recently
|
732
|
+
# deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
889
733
|
# 123456789012345678901`. If the service account is undeleted, this value
|
890
734
|
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
891
735
|
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
892
736
|
# An email address (plus unique identifier) representing a Google group that has
|
893
737
|
# been recently deleted. For example, `admins@example.com?uid=
|
894
738
|
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
895
|
-
# group:`emailid`` and the recovered group retains the role in the binding.
|
896
|
-
# domain:`domain``: The G Suite domain (primary) that represents all the users
|
897
|
-
# of that domain. For example, `google.com` or `example.com`.
|
739
|
+
# group:`emailid`` and the recovered group retains the role in the binding.
|
898
740
|
# Corresponds to the JSON property `members`
|
899
741
|
# @return [Array<String>]
|
900
742
|
attr_accessor :members
|
@@ -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
|
-
GENERATOR_VERSION = "0.
|
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
|
@@ -55,6 +55,37 @@ module Google
|
|
55
55
|
@batch_path = 'batch'
|
56
56
|
end
|
57
57
|
|
58
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
59
|
+
# to poll the operation result at intervals as recommended by the API service.
|
60
|
+
# @param [String] name
|
61
|
+
# The name of the operation resource.
|
62
|
+
# @param [String] fields
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
64
|
+
# @param [String] quota_user
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
68
|
+
# Request-specific options
|
69
|
+
#
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
71
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
73
|
+
#
|
74
|
+
# @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
|
75
|
+
#
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
+
def get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
80
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
81
|
+
command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
|
82
|
+
command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
|
83
|
+
command.params['name'] = name unless name.nil?
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
execute_or_queue_command(command, &block)
|
87
|
+
end
|
88
|
+
|
58
89
|
# Creates and starts a Replay using the given ReplayConfig.
|
59
90
|
# @param [String] parent
|
60
91
|
# Required. The parent resource where this Replay will be created. This resource
|
@@ -156,13 +187,7 @@ module Google
|
|
156
187
|
end
|
157
188
|
|
158
189
|
# Lists operations that match the specified filter in the request. If the server
|
159
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
160
|
-
# binding allows API services to override the binding to use different resource
|
161
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
162
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
163
|
-
# service configuration. For backwards compatibility, the default name includes
|
164
|
-
# the operations collection id, however overriding users must ensure the name
|
165
|
-
# binding is the parent resource, without the operations collection id.
|
190
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
166
191
|
# @param [String] name
|
167
192
|
# The name of the operation's parent resource.
|
168
193
|
# @param [String] filter
|
@@ -276,13 +301,7 @@ module Google
|
|
276
301
|
end
|
277
302
|
|
278
303
|
# Lists operations that match the specified filter in the request. If the server
|
279
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
280
|
-
# binding allows API services to override the binding to use different resource
|
281
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
282
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
283
|
-
# service configuration. For backwards compatibility, the default name includes
|
284
|
-
# the operations collection id, however overriding users must ensure the name
|
285
|
-
# binding is the parent resource, without the operations collection id.
|
304
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
286
305
|
# @param [String] name
|
287
306
|
# The name of the operation's parent resource.
|
288
307
|
# @param [String] filter
|
@@ -321,6 +340,37 @@ module Google
|
|
321
340
|
execute_or_queue_command(command, &block)
|
322
341
|
end
|
323
342
|
|
343
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
344
|
+
# to poll the operation result at intervals as recommended by the API service.
|
345
|
+
# @param [String] name
|
346
|
+
# The name of the operation resource.
|
347
|
+
# @param [String] fields
|
348
|
+
# Selector specifying which fields to include in a partial response.
|
349
|
+
# @param [String] quota_user
|
350
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
351
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
352
|
+
# @param [Google::Apis::RequestOptions] options
|
353
|
+
# Request-specific options
|
354
|
+
#
|
355
|
+
# @yield [result, err] Result & error if block supplied
|
356
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
|
357
|
+
# @yieldparam err [StandardError] error object if request failed
|
358
|
+
#
|
359
|
+
# @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
|
360
|
+
#
|
361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
364
|
+
def get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
365
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
366
|
+
command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
|
367
|
+
command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
|
368
|
+
command.params['name'] = name unless name.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
324
374
|
# Creates and starts a Replay using the given ReplayConfig.
|
325
375
|
# @param [String] parent
|
326
376
|
# Required. The parent resource where this Replay will be created. This resource
|
@@ -422,13 +472,7 @@ module Google
|
|
422
472
|
end
|
423
473
|
|
424
474
|
# Lists operations that match the specified filter in the request. If the server
|
425
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
426
|
-
# binding allows API services to override the binding to use different resource
|
427
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
428
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
429
|
-
# service configuration. For backwards compatibility, the default name includes
|
430
|
-
# the operations collection id, however overriding users must ensure the name
|
431
|
-
# binding is the parent resource, without the operations collection id.
|
475
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
432
476
|
# @param [String] name
|
433
477
|
# The name of the operation's parent resource.
|
434
478
|
# @param [String] filter
|
@@ -510,6 +554,37 @@ module Google
|
|
510
554
|
execute_or_queue_command(command, &block)
|
511
555
|
end
|
512
556
|
|
557
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
558
|
+
# to poll the operation result at intervals as recommended by the API service.
|
559
|
+
# @param [String] name
|
560
|
+
# The name of the operation resource.
|
561
|
+
# @param [String] fields
|
562
|
+
# Selector specifying which fields to include in a partial response.
|
563
|
+
# @param [String] quota_user
|
564
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
565
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
566
|
+
# @param [Google::Apis::RequestOptions] options
|
567
|
+
# Request-specific options
|
568
|
+
#
|
569
|
+
# @yield [result, err] Result & error if block supplied
|
570
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
|
571
|
+
# @yieldparam err [StandardError] error object if request failed
|
572
|
+
#
|
573
|
+
# @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
|
574
|
+
#
|
575
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
576
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
577
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
578
|
+
def get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
579
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
580
|
+
command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
|
581
|
+
command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
|
582
|
+
command.params['name'] = name unless name.nil?
|
583
|
+
command.query['fields'] = fields unless fields.nil?
|
584
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
585
|
+
execute_or_queue_command(command, &block)
|
586
|
+
end
|
587
|
+
|
513
588
|
# Creates and starts a Replay using the given ReplayConfig.
|
514
589
|
# @param [String] parent
|
515
590
|
# Required. The parent resource where this Replay will be created. This resource
|
@@ -611,13 +686,7 @@ module Google
|
|
611
686
|
end
|
612
687
|
|
613
688
|
# Lists operations that match the specified filter in the request. If the server
|
614
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
615
|
-
# binding allows API services to override the binding to use different resource
|
616
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
617
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
618
|
-
# service configuration. For backwards compatibility, the default name includes
|
619
|
-
# the operations collection id, however overriding users must ensure the name
|
620
|
-
# binding is the parent resource, without the operations collection id.
|
689
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
621
690
|
# @param [String] name
|
622
691
|
# The name of the operation's parent resource.
|
623
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:
|
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
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.11.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.11.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_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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Policy Simulator API V1
|