google-apis-checks_v1alpha 0.1.0 → 0.3.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 +8 -0
- data/lib/google/apis/checks_v1alpha/classes.rb +101 -7
- data/lib/google/apis/checks_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/checks_v1alpha/representations.rb +65 -0
- data/lib/google/apis/checks_v1alpha/service.rb +336 -0
- data/lib/google/apis/checks_v1alpha.rb +0 -3
- 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: 37d0af86ae56cf9773adcdf8c9a6fb775c2ee37670226d24d0ca28487fab950f
|
4
|
+
data.tar.gz: 8f0b7732cedd9568cd56f4cdec25c67da08b41681c5560180ab271eadf6c4bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a2e1a4f84692a95954fb99cdf84f6851f48d0394082ffa4077e1598b02feb18d027570404ae33c72b4db486d2f48f40eaf9fc86f0329666e7a29d80eef1a25
|
7
|
+
data.tar.gz: f9f7e0002f91d4c9f374fc4d562c794e2c16b45e9d11ae090ee360e8d2de3e539b8d91f361483db764ae798c043a9b057752ed984360533755cdb497021c1536
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-checks_v1alpha
|
2
2
|
|
3
|
+
### v0.3.0 (2023-08-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230801
|
6
|
+
|
7
|
+
### v0.2.0 (2023-07-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230720
|
10
|
+
|
3
11
|
### v0.1.0 (2023-06-25)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230619
|
@@ -92,6 +92,19 @@ module Google
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
# The request message for Operations.CancelOperation.
|
96
|
+
class CancelOperationRequest
|
97
|
+
include Google::Apis::Core::Hashable
|
98
|
+
|
99
|
+
def initialize(**args)
|
100
|
+
update!(**args)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Update properties of this object
|
104
|
+
def update!(**args)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
95
108
|
# Represents a whole or partial calendar date, such as a birthday. The time of
|
96
109
|
# day and time zone are either specified elsewhere or are insignificant. The
|
97
110
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
@@ -133,6 +146,41 @@ module Google
|
|
133
146
|
end
|
134
147
|
end
|
135
148
|
|
149
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
150
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
151
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
152
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
153
|
+
class Empty
|
154
|
+
include Google::Apis::Core::Hashable
|
155
|
+
|
156
|
+
def initialize(**args)
|
157
|
+
update!(**args)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Update properties of this object
|
161
|
+
def update!(**args)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# Operation response for `FindPrivacyPolicy`.
|
166
|
+
class FindPrivacyPolicyResponse
|
167
|
+
include Google::Apis::Core::Hashable
|
168
|
+
|
169
|
+
# Resource name of the PrivacyPolicy that was found.
|
170
|
+
# Corresponds to the JSON property `privacyPolicy`
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :privacy_policy
|
173
|
+
|
174
|
+
def initialize(**args)
|
175
|
+
update!(**args)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Update properties of this object
|
179
|
+
def update!(**args)
|
180
|
+
@privacy_policy = args[:privacy_policy] if args.key?(:privacy_policy)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
136
184
|
# Information about the date when the privacy policy was last updated.
|
137
185
|
class LastUpdatedDate
|
138
186
|
include Google::Apis::Core::Hashable
|
@@ -179,6 +227,31 @@ module Google
|
|
179
227
|
end
|
180
228
|
end
|
181
229
|
|
230
|
+
# The response message for Operations.ListOperations.
|
231
|
+
class ListOperationsResponse
|
232
|
+
include Google::Apis::Core::Hashable
|
233
|
+
|
234
|
+
# The standard List next-page token.
|
235
|
+
# Corresponds to the JSON property `nextPageToken`
|
236
|
+
# @return [String]
|
237
|
+
attr_accessor :next_page_token
|
238
|
+
|
239
|
+
# A list of operations that matches the specified filter in the request.
|
240
|
+
# Corresponds to the JSON property `operations`
|
241
|
+
# @return [Array<Google::Apis::ChecksV1alpha::Operation>]
|
242
|
+
attr_accessor :operations
|
243
|
+
|
244
|
+
def initialize(**args)
|
245
|
+
update!(**args)
|
246
|
+
end
|
247
|
+
|
248
|
+
# Update properties of this object
|
249
|
+
def update!(**args)
|
250
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
251
|
+
@operations = args[:operations] if args.key?(:operations)
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
182
255
|
# This resource represents a long-running operation that is the result of a
|
183
256
|
# network API call.
|
184
257
|
class Operation
|
@@ -216,13 +289,13 @@ module Google
|
|
216
289
|
# @return [String]
|
217
290
|
attr_accessor :name
|
218
291
|
|
219
|
-
# The normal response of the operation
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
292
|
+
# The normal, successful response of the operation. If the original method
|
293
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
294
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
295
|
+
# response should be the resource. For other methods, the response should have
|
296
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
297
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
298
|
+
# `TakeSnapshotResponse`.
|
226
299
|
# Corresponds to the JSON property `response`
|
227
300
|
# @return [Hash<String,Object>]
|
228
301
|
attr_accessor :response
|
@@ -418,6 +491,27 @@ module Google
|
|
418
491
|
@message = args[:message] if args.key?(:message)
|
419
492
|
end
|
420
493
|
end
|
494
|
+
|
495
|
+
# The request message for Operations.WaitOperation.
|
496
|
+
class WaitOperationRequest
|
497
|
+
include Google::Apis::Core::Hashable
|
498
|
+
|
499
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
500
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
501
|
+
# context deadline is also specified, the shorter one will be used.
|
502
|
+
# Corresponds to the JSON property `timeout`
|
503
|
+
# @return [String]
|
504
|
+
attr_accessor :timeout
|
505
|
+
|
506
|
+
def initialize(**args)
|
507
|
+
update!(**args)
|
508
|
+
end
|
509
|
+
|
510
|
+
# Update properties of this object
|
511
|
+
def update!(**args)
|
512
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
513
|
+
end
|
514
|
+
end
|
421
515
|
end
|
422
516
|
end
|
423
517
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ChecksV1alpha
|
18
18
|
# Version of the google-apis-checks_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.3.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 = "20230801"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,18 +34,42 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class CancelOperationRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class Date
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
41
47
|
end
|
42
48
|
|
49
|
+
class Empty
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class FindPrivacyPolicyResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
43
61
|
class LastUpdatedDate
|
44
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
63
|
|
46
64
|
include Google::Apis::Core::JsonObjectSupport
|
47
65
|
end
|
48
66
|
|
67
|
+
class ListOperationsResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
49
73
|
class Operation
|
50
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
75
|
|
@@ -76,6 +100,12 @@ module Google
|
|
76
100
|
include Google::Apis::Core::JsonObjectSupport
|
77
101
|
end
|
78
102
|
|
103
|
+
class WaitOperationRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
79
109
|
class AnalyzePrivacyPolicyRequest
|
80
110
|
# @private
|
81
111
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -99,6 +129,12 @@ module Google
|
|
99
129
|
end
|
100
130
|
end
|
101
131
|
|
132
|
+
class CancelOperationRequest
|
133
|
+
# @private
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
102
138
|
class Date
|
103
139
|
# @private
|
104
140
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -108,6 +144,19 @@ module Google
|
|
108
144
|
end
|
109
145
|
end
|
110
146
|
|
147
|
+
class Empty
|
148
|
+
# @private
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
class FindPrivacyPolicyResponse
|
154
|
+
# @private
|
155
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
156
|
+
property :privacy_policy, as: 'privacyPolicy'
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
111
160
|
class LastUpdatedDate
|
112
161
|
# @private
|
113
162
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -119,6 +168,15 @@ module Google
|
|
119
168
|
end
|
120
169
|
end
|
121
170
|
|
171
|
+
class ListOperationsResponse
|
172
|
+
# @private
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
+
property :next_page_token, as: 'nextPageToken'
|
175
|
+
collection :operations, as: 'operations', class: Google::Apis::ChecksV1alpha::Operation, decorator: Google::Apis::ChecksV1alpha::Operation::Representation
|
176
|
+
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
122
180
|
class Operation
|
123
181
|
# @private
|
124
182
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -172,6 +230,13 @@ module Google
|
|
172
230
|
property :message, as: 'message'
|
173
231
|
end
|
174
232
|
end
|
233
|
+
|
234
|
+
class WaitOperationRequest
|
235
|
+
# @private
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
+
property :timeout, as: 'timeout'
|
238
|
+
end
|
239
|
+
end
|
175
240
|
end
|
176
241
|
end
|
177
242
|
end
|
@@ -50,6 +50,79 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
54
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
55
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
56
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
57
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
58
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
59
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
60
|
+
# corresponding to `Code.CANCELLED`.
|
61
|
+
# @param [String] name
|
62
|
+
# The name of the operation resource to be cancelled.
|
63
|
+
# @param [Google::Apis::ChecksV1alpha::CancelOperationRequest] cancel_operation_request_object
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
|
+
# @param [String] quota_user
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Empty] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::ChecksV1alpha::Empty]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
|
83
|
+
command.request_representation = Google::Apis::ChecksV1alpha::CancelOperationRequest::Representation
|
84
|
+
command.request_object = cancel_operation_request_object
|
85
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Empty::Representation
|
86
|
+
command.response_class = Google::Apis::ChecksV1alpha::Empty
|
87
|
+
command.params['name'] = name unless name.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
94
|
+
# longer interested in the operation result. It does not cancel the operation.
|
95
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
96
|
+
# UNIMPLEMENTED`.
|
97
|
+
# @param [String] name
|
98
|
+
# The name of the operation resource to be deleted.
|
99
|
+
# @param [String] fields
|
100
|
+
# Selector specifying which fields to include in a partial response.
|
101
|
+
# @param [String] quota_user
|
102
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
+
# @param [Google::Apis::RequestOptions] options
|
105
|
+
# Request-specific options
|
106
|
+
#
|
107
|
+
# @yield [result, err] Result & error if block supplied
|
108
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Empty] parsed result object
|
109
|
+
# @yieldparam err [StandardError] error object if request failed
|
110
|
+
#
|
111
|
+
# @return [Google::Apis::ChecksV1alpha::Empty]
|
112
|
+
#
|
113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
+
def delete_account_app_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
118
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Empty::Representation
|
119
|
+
command.response_class = Google::Apis::ChecksV1alpha::Empty
|
120
|
+
command.params['name'] = name unless name.nil?
|
121
|
+
command.query['fields'] = fields unless fields.nil?
|
122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
+
execute_or_queue_command(command, &block)
|
124
|
+
end
|
125
|
+
|
53
126
|
# Gets the latest state of a long-running operation. Clients can use this method
|
54
127
|
# to poll the operation result at intervals as recommended by the API service.
|
55
128
|
# @param [String] name
|
@@ -81,6 +154,86 @@ module Google
|
|
81
154
|
execute_or_queue_command(command, &block)
|
82
155
|
end
|
83
156
|
|
157
|
+
# Lists operations that match the specified filter in the request. If the server
|
158
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
159
|
+
# @param [String] name
|
160
|
+
# The name of the operation's parent resource.
|
161
|
+
# @param [String] filter
|
162
|
+
# The standard list filter.
|
163
|
+
# @param [Fixnum] page_size
|
164
|
+
# The standard list page size.
|
165
|
+
# @param [String] page_token
|
166
|
+
# The standard list page token.
|
167
|
+
# @param [String] fields
|
168
|
+
# Selector specifying which fields to include in a partial response.
|
169
|
+
# @param [String] quota_user
|
170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
172
|
+
# @param [Google::Apis::RequestOptions] options
|
173
|
+
# Request-specific options
|
174
|
+
#
|
175
|
+
# @yield [result, err] Result & error if block supplied
|
176
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::ListOperationsResponse] parsed result object
|
177
|
+
# @yieldparam err [StandardError] error object if request failed
|
178
|
+
#
|
179
|
+
# @return [Google::Apis::ChecksV1alpha::ListOperationsResponse]
|
180
|
+
#
|
181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
184
|
+
def list_account_app_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:get, 'v1alpha/{+name}/operations', options)
|
186
|
+
command.response_representation = Google::Apis::ChecksV1alpha::ListOperationsResponse::Representation
|
187
|
+
command.response_class = Google::Apis::ChecksV1alpha::ListOperationsResponse
|
188
|
+
command.params['name'] = name unless name.nil?
|
189
|
+
command.query['filter'] = filter unless filter.nil?
|
190
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
191
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
192
|
+
command.query['fields'] = fields unless fields.nil?
|
193
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
|
+
execute_or_queue_command(command, &block)
|
195
|
+
end
|
196
|
+
|
197
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
198
|
+
# specified timeout, returning the latest state. If the operation is already
|
199
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
200
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
201
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
202
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
203
|
+
# the latest state before the specified timeout (including immediately), meaning
|
204
|
+
# even an immediate response is no guarantee that the operation is done.
|
205
|
+
# @param [String] name
|
206
|
+
# The name of the operation resource to wait on.
|
207
|
+
# @param [Google::Apis::ChecksV1alpha::WaitOperationRequest] wait_operation_request_object
|
208
|
+
# @param [String] fields
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
210
|
+
# @param [String] quota_user
|
211
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
212
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
213
|
+
# @param [Google::Apis::RequestOptions] options
|
214
|
+
# Request-specific options
|
215
|
+
#
|
216
|
+
# @yield [result, err] Result & error if block supplied
|
217
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Operation] parsed result object
|
218
|
+
# @yieldparam err [StandardError] error object if request failed
|
219
|
+
#
|
220
|
+
# @return [Google::Apis::ChecksV1alpha::Operation]
|
221
|
+
#
|
222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
225
|
+
def wait_operation(name, wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
226
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:wait', options)
|
227
|
+
command.request_representation = Google::Apis::ChecksV1alpha::WaitOperationRequest::Representation
|
228
|
+
command.request_object = wait_operation_request_object
|
229
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Operation::Representation
|
230
|
+
command.response_class = Google::Apis::ChecksV1alpha::Operation
|
231
|
+
command.params['name'] = name unless name.nil?
|
232
|
+
command.query['fields'] = fields unless fields.nil?
|
233
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
234
|
+
execute_or_queue_command(command, &block)
|
235
|
+
end
|
236
|
+
|
84
237
|
# Analyzes the privacy policy of the given policy URL or content.
|
85
238
|
# @param [Google::Apis::ChecksV1alpha::AnalyzePrivacyPolicyRequest] analyze_privacy_policy_request_object
|
86
239
|
# @param [String] fields
|
@@ -110,6 +263,189 @@ module Google
|
|
110
263
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
111
264
|
execute_or_queue_command(command, &block)
|
112
265
|
end
|
266
|
+
|
267
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
268
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
269
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
270
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
271
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
272
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
273
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
274
|
+
# corresponding to `Code.CANCELLED`.
|
275
|
+
# @param [String] name
|
276
|
+
# The name of the operation resource to be cancelled.
|
277
|
+
# @param [String] fields
|
278
|
+
# Selector specifying which fields to include in a partial response.
|
279
|
+
# @param [String] quota_user
|
280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
282
|
+
# @param [Google::Apis::RequestOptions] options
|
283
|
+
# Request-specific options
|
284
|
+
#
|
285
|
+
# @yield [result, err] Result & error if block supplied
|
286
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Empty] parsed result object
|
287
|
+
# @yieldparam err [StandardError] error object if request failed
|
288
|
+
#
|
289
|
+
# @return [Google::Apis::ChecksV1alpha::Empty]
|
290
|
+
#
|
291
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
292
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
293
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
294
|
+
def cancel_project_privacypolicy_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
295
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
|
296
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Empty::Representation
|
297
|
+
command.response_class = Google::Apis::ChecksV1alpha::Empty
|
298
|
+
command.params['name'] = name unless name.nil?
|
299
|
+
command.query['fields'] = fields unless fields.nil?
|
300
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
301
|
+
execute_or_queue_command(command, &block)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
305
|
+
# longer interested in the operation result. It does not cancel the operation.
|
306
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
307
|
+
# UNIMPLEMENTED`.
|
308
|
+
# @param [String] name
|
309
|
+
# The name of the operation resource to be deleted.
|
310
|
+
# @param [String] fields
|
311
|
+
# Selector specifying which fields to include in a partial response.
|
312
|
+
# @param [String] quota_user
|
313
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
314
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
315
|
+
# @param [Google::Apis::RequestOptions] options
|
316
|
+
# Request-specific options
|
317
|
+
#
|
318
|
+
# @yield [result, err] Result & error if block supplied
|
319
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Empty] parsed result object
|
320
|
+
# @yieldparam err [StandardError] error object if request failed
|
321
|
+
#
|
322
|
+
# @return [Google::Apis::ChecksV1alpha::Empty]
|
323
|
+
#
|
324
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
+
def delete_project_privacypolicy_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
328
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
329
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Empty::Representation
|
330
|
+
command.response_class = Google::Apis::ChecksV1alpha::Empty
|
331
|
+
command.params['name'] = name unless name.nil?
|
332
|
+
command.query['fields'] = fields unless fields.nil?
|
333
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
334
|
+
execute_or_queue_command(command, &block)
|
335
|
+
end
|
336
|
+
|
337
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
338
|
+
# to poll the operation result at intervals as recommended by the API service.
|
339
|
+
# @param [String] name
|
340
|
+
# The name of the operation resource.
|
341
|
+
# @param [String] fields
|
342
|
+
# Selector specifying which fields to include in a partial response.
|
343
|
+
# @param [String] quota_user
|
344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
346
|
+
# @param [Google::Apis::RequestOptions] options
|
347
|
+
# Request-specific options
|
348
|
+
#
|
349
|
+
# @yield [result, err] Result & error if block supplied
|
350
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Operation] parsed result object
|
351
|
+
# @yieldparam err [StandardError] error object if request failed
|
352
|
+
#
|
353
|
+
# @return [Google::Apis::ChecksV1alpha::Operation]
|
354
|
+
#
|
355
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
356
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
357
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
358
|
+
def get_project_privacypolicy_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
359
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
360
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Operation::Representation
|
361
|
+
command.response_class = Google::Apis::ChecksV1alpha::Operation
|
362
|
+
command.params['name'] = name unless name.nil?
|
363
|
+
command.query['fields'] = fields unless fields.nil?
|
364
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
365
|
+
execute_or_queue_command(command, &block)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Lists operations that match the specified filter in the request. If the server
|
369
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
370
|
+
# @param [String] name
|
371
|
+
# The name of the operation's parent resource.
|
372
|
+
# @param [String] filter
|
373
|
+
# The standard list filter.
|
374
|
+
# @param [Fixnum] page_size
|
375
|
+
# The standard list page size.
|
376
|
+
# @param [String] page_token
|
377
|
+
# The standard list page token.
|
378
|
+
# @param [String] fields
|
379
|
+
# Selector specifying which fields to include in a partial response.
|
380
|
+
# @param [String] quota_user
|
381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
383
|
+
# @param [Google::Apis::RequestOptions] options
|
384
|
+
# Request-specific options
|
385
|
+
#
|
386
|
+
# @yield [result, err] Result & error if block supplied
|
387
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::ListOperationsResponse] parsed result object
|
388
|
+
# @yieldparam err [StandardError] error object if request failed
|
389
|
+
#
|
390
|
+
# @return [Google::Apis::ChecksV1alpha::ListOperationsResponse]
|
391
|
+
#
|
392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
395
|
+
def list_project_privacypolicy_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
396
|
+
command = make_simple_command(:get, 'v1alpha/{+name}/privacypolicy/operations', options)
|
397
|
+
command.response_representation = Google::Apis::ChecksV1alpha::ListOperationsResponse::Representation
|
398
|
+
command.response_class = Google::Apis::ChecksV1alpha::ListOperationsResponse
|
399
|
+
command.params['name'] = name unless name.nil?
|
400
|
+
command.query['filter'] = filter unless filter.nil?
|
401
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
402
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
403
|
+
command.query['fields'] = fields unless fields.nil?
|
404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
405
|
+
execute_or_queue_command(command, &block)
|
406
|
+
end
|
407
|
+
|
408
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
409
|
+
# specified timeout, returning the latest state. If the operation is already
|
410
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
411
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
412
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
413
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
414
|
+
# the latest state before the specified timeout (including immediately), meaning
|
415
|
+
# even an immediate response is no guarantee that the operation is done.
|
416
|
+
# @param [String] name
|
417
|
+
# The name of the operation resource to wait on.
|
418
|
+
# @param [String] timeout
|
419
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
420
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
421
|
+
# context deadline is also specified, the shorter one will be used.
|
422
|
+
# @param [String] fields
|
423
|
+
# Selector specifying which fields to include in a partial response.
|
424
|
+
# @param [String] quota_user
|
425
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
426
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
427
|
+
# @param [Google::Apis::RequestOptions] options
|
428
|
+
# Request-specific options
|
429
|
+
#
|
430
|
+
# @yield [result, err] Result & error if block supplied
|
431
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Operation] parsed result object
|
432
|
+
# @yieldparam err [StandardError] error object if request failed
|
433
|
+
#
|
434
|
+
# @return [Google::Apis::ChecksV1alpha::Operation]
|
435
|
+
#
|
436
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
437
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
438
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
439
|
+
def wait_project_privacypolicy_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
440
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:wait', options)
|
441
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Operation::Representation
|
442
|
+
command.response_class = Google::Apis::ChecksV1alpha::Operation
|
443
|
+
command.params['name'] = name unless name.nil?
|
444
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
445
|
+
command.query['fields'] = fields unless fields.nil?
|
446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
447
|
+
execute_or_queue_command(command, &block)
|
448
|
+
end
|
113
449
|
|
114
450
|
protected
|
115
451
|
|
@@ -29,9 +29,6 @@ module Google
|
|
29
29
|
# Version of the Checks API this client connects to.
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1alpha'
|
32
|
-
|
33
|
-
# Test scope for access to the Zoo service
|
34
|
-
AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo'
|
35
32
|
end
|
36
33
|
end
|
37
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-checks_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-06
|
11
|
+
date: 2023-08-06 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-checks_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-checks_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-checks_v1alpha/v0.3.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-checks_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|