google-apis-checks_v1alpha 0.1.0 → 0.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3952e087b5250f05b9cd5debff8df2cc98a03e6a631aed5504107061a712b255
|
4
|
+
data.tar.gz: d0fb8c934fa6a064f0e19c4944ac328c4c062eaf83b4dff7dd83f30bf6130db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 970b5149f8156818ce76c96e9e3aad4a279da2f84d1896c420140875197253312ca7ae73597a4a86defc8a6b2fbac93cbb634426e9e92b6087bcd1984cb04ef7
|
7
|
+
data.tar.gz: 7b6ee091151c92cf82ecb1ed0c89891d97514599f7bff21d1cb9b49d33db57ef68dbb6c05f96337bef6e92cba388e7e6dc42c0cb2a0bab9462b029fa87dfd75e
|
data/CHANGELOG.md
CHANGED
@@ -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,22 @@ 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
|
+
|
136
165
|
# Information about the date when the privacy policy was last updated.
|
137
166
|
class LastUpdatedDate
|
138
167
|
include Google::Apis::Core::Hashable
|
@@ -179,6 +208,31 @@ module Google
|
|
179
208
|
end
|
180
209
|
end
|
181
210
|
|
211
|
+
# The response message for Operations.ListOperations.
|
212
|
+
class ListOperationsResponse
|
213
|
+
include Google::Apis::Core::Hashable
|
214
|
+
|
215
|
+
# The standard List next-page token.
|
216
|
+
# Corresponds to the JSON property `nextPageToken`
|
217
|
+
# @return [String]
|
218
|
+
attr_accessor :next_page_token
|
219
|
+
|
220
|
+
# A list of operations that matches the specified filter in the request.
|
221
|
+
# Corresponds to the JSON property `operations`
|
222
|
+
# @return [Array<Google::Apis::ChecksV1alpha::Operation>]
|
223
|
+
attr_accessor :operations
|
224
|
+
|
225
|
+
def initialize(**args)
|
226
|
+
update!(**args)
|
227
|
+
end
|
228
|
+
|
229
|
+
# Update properties of this object
|
230
|
+
def update!(**args)
|
231
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
232
|
+
@operations = args[:operations] if args.key?(:operations)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
182
236
|
# This resource represents a long-running operation that is the result of a
|
183
237
|
# network API call.
|
184
238
|
class Operation
|
@@ -380,6 +434,50 @@ module Google
|
|
380
434
|
end
|
381
435
|
end
|
382
436
|
|
437
|
+
# Privacy policy.
|
438
|
+
class PrivacyPolicy
|
439
|
+
include Google::Apis::Core::Hashable
|
440
|
+
|
441
|
+
# HTML content for the privacy policy page.
|
442
|
+
# Corresponds to the JSON property `htmlContent`
|
443
|
+
# @return [String]
|
444
|
+
attr_accessor :html_content
|
445
|
+
|
446
|
+
# Resource name. Example: projects/123/privacyPolicies/456
|
447
|
+
# Corresponds to the JSON property `name`
|
448
|
+
# @return [String]
|
449
|
+
attr_accessor :name
|
450
|
+
|
451
|
+
# URI of the privacy policy corresponding to this resource.
|
452
|
+
# Corresponds to the JSON property `privacyPolicyUri`
|
453
|
+
# @return [String]
|
454
|
+
attr_accessor :privacy_policy_uri
|
455
|
+
|
456
|
+
# Confidence that the privacy policy URI is indeed from a privacy policy.
|
457
|
+
# Corresponds to the JSON property `score`
|
458
|
+
# @return [Float]
|
459
|
+
attr_accessor :score
|
460
|
+
|
461
|
+
# URI of the original website used to find this privacy policy. Only populated
|
462
|
+
# for resources created by the FindPrivacyPolicy API.
|
463
|
+
# Corresponds to the JSON property `websiteUri`
|
464
|
+
# @return [String]
|
465
|
+
attr_accessor :website_uri
|
466
|
+
|
467
|
+
def initialize(**args)
|
468
|
+
update!(**args)
|
469
|
+
end
|
470
|
+
|
471
|
+
# Update properties of this object
|
472
|
+
def update!(**args)
|
473
|
+
@html_content = args[:html_content] if args.key?(:html_content)
|
474
|
+
@name = args[:name] if args.key?(:name)
|
475
|
+
@privacy_policy_uri = args[:privacy_policy_uri] if args.key?(:privacy_policy_uri)
|
476
|
+
@score = args[:score] if args.key?(:score)
|
477
|
+
@website_uri = args[:website_uri] if args.key?(:website_uri)
|
478
|
+
end
|
479
|
+
end
|
480
|
+
|
383
481
|
# The `Status` type defines a logical error model that is suitable for different
|
384
482
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
385
483
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -418,6 +516,27 @@ module Google
|
|
418
516
|
@message = args[:message] if args.key?(:message)
|
419
517
|
end
|
420
518
|
end
|
519
|
+
|
520
|
+
# The request message for Operations.WaitOperation.
|
521
|
+
class WaitOperationRequest
|
522
|
+
include Google::Apis::Core::Hashable
|
523
|
+
|
524
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
525
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
526
|
+
# context deadline is also specified, the shorter one will be used.
|
527
|
+
# Corresponds to the JSON property `timeout`
|
528
|
+
# @return [String]
|
529
|
+
attr_accessor :timeout
|
530
|
+
|
531
|
+
def initialize(**args)
|
532
|
+
update!(**args)
|
533
|
+
end
|
534
|
+
|
535
|
+
# Update properties of this object
|
536
|
+
def update!(**args)
|
537
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
538
|
+
end
|
539
|
+
end
|
421
540
|
end
|
422
541
|
end
|
423
542
|
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.2.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 = "20230720"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,18 +34,36 @@ 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
|
+
|
43
55
|
class LastUpdatedDate
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
57
|
|
46
58
|
include Google::Apis::Core::JsonObjectSupport
|
47
59
|
end
|
48
60
|
|
61
|
+
class ListOperationsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
49
67
|
class Operation
|
50
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
69
|
|
@@ -70,12 +88,24 @@ module Google
|
|
70
88
|
include Google::Apis::Core::JsonObjectSupport
|
71
89
|
end
|
72
90
|
|
91
|
+
class PrivacyPolicy
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
73
97
|
class Status
|
74
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
99
|
|
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,12 @@ 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
|
+
|
111
153
|
class LastUpdatedDate
|
112
154
|
# @private
|
113
155
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -119,6 +161,15 @@ module Google
|
|
119
161
|
end
|
120
162
|
end
|
121
163
|
|
164
|
+
class ListOperationsResponse
|
165
|
+
# @private
|
166
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
167
|
+
property :next_page_token, as: 'nextPageToken'
|
168
|
+
collection :operations, as: 'operations', class: Google::Apis::ChecksV1alpha::Operation, decorator: Google::Apis::ChecksV1alpha::Operation::Representation
|
169
|
+
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
122
173
|
class Operation
|
123
174
|
# @private
|
124
175
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -164,6 +215,17 @@ module Google
|
|
164
215
|
end
|
165
216
|
end
|
166
217
|
|
218
|
+
class PrivacyPolicy
|
219
|
+
# @private
|
220
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
221
|
+
property :html_content, as: 'htmlContent'
|
222
|
+
property :name, as: 'name'
|
223
|
+
property :privacy_policy_uri, as: 'privacyPolicyUri'
|
224
|
+
property :score, as: 'score'
|
225
|
+
property :website_uri, as: 'websiteUri'
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
167
229
|
class Status
|
168
230
|
# @private
|
169
231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -172,6 +234,13 @@ module Google
|
|
172
234
|
property :message, as: 'message'
|
173
235
|
end
|
174
236
|
end
|
237
|
+
|
238
|
+
class WaitOperationRequest
|
239
|
+
# @private
|
240
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
241
|
+
property :timeout, as: 'timeout'
|
242
|
+
end
|
243
|
+
end
|
175
244
|
end
|
176
245
|
end
|
177
246
|
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,249 @@ 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
|
+
# Deletes a privacy policy.
|
268
|
+
# @param [String] name
|
269
|
+
# Required. Resource name of the privacy policy.
|
270
|
+
# @param [String] fields
|
271
|
+
# Selector specifying which fields to include in a partial response.
|
272
|
+
# @param [String] quota_user
|
273
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
274
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
275
|
+
# @param [Google::Apis::RequestOptions] options
|
276
|
+
# Request-specific options
|
277
|
+
#
|
278
|
+
# @yield [result, err] Result & error if block supplied
|
279
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Empty] parsed result object
|
280
|
+
# @yieldparam err [StandardError] error object if request failed
|
281
|
+
#
|
282
|
+
# @return [Google::Apis::ChecksV1alpha::Empty]
|
283
|
+
#
|
284
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
285
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
286
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
287
|
+
def delete_project_privacy_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
288
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
289
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Empty::Representation
|
290
|
+
command.response_class = Google::Apis::ChecksV1alpha::Empty
|
291
|
+
command.params['name'] = name unless name.nil?
|
292
|
+
command.query['fields'] = fields unless fields.nil?
|
293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
294
|
+
execute_or_queue_command(command, &block)
|
295
|
+
end
|
296
|
+
|
297
|
+
# Gets a privacy policy.
|
298
|
+
# @param [String] name
|
299
|
+
# Required. Resource name of the privacy policy.
|
300
|
+
# @param [String] fields
|
301
|
+
# Selector specifying which fields to include in a partial response.
|
302
|
+
# @param [String] quota_user
|
303
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
304
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
305
|
+
# @param [Google::Apis::RequestOptions] options
|
306
|
+
# Request-specific options
|
307
|
+
#
|
308
|
+
# @yield [result, err] Result & error if block supplied
|
309
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::PrivacyPolicy] parsed result object
|
310
|
+
# @yieldparam err [StandardError] error object if request failed
|
311
|
+
#
|
312
|
+
# @return [Google::Apis::ChecksV1alpha::PrivacyPolicy]
|
313
|
+
#
|
314
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
315
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
316
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
317
|
+
def get_project_privacy_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
318
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
319
|
+
command.response_representation = Google::Apis::ChecksV1alpha::PrivacyPolicy::Representation
|
320
|
+
command.response_class = Google::Apis::ChecksV1alpha::PrivacyPolicy
|
321
|
+
command.params['name'] = name unless name.nil?
|
322
|
+
command.query['fields'] = fields unless fields.nil?
|
323
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
324
|
+
execute_or_queue_command(command, &block)
|
325
|
+
end
|
326
|
+
|
327
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
328
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
329
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
330
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
331
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
332
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
333
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
334
|
+
# corresponding to `Code.CANCELLED`.
|
335
|
+
# @param [String] name
|
336
|
+
# The name of the operation resource to be cancelled.
|
337
|
+
# @param [String] fields
|
338
|
+
# Selector specifying which fields to include in a partial response.
|
339
|
+
# @param [String] quota_user
|
340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
342
|
+
# @param [Google::Apis::RequestOptions] options
|
343
|
+
# Request-specific options
|
344
|
+
#
|
345
|
+
# @yield [result, err] Result & error if block supplied
|
346
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Empty] parsed result object
|
347
|
+
# @yieldparam err [StandardError] error object if request failed
|
348
|
+
#
|
349
|
+
# @return [Google::Apis::ChecksV1alpha::Empty]
|
350
|
+
#
|
351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
354
|
+
def cancel_project_privacypolicy_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
355
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
|
356
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Empty::Representation
|
357
|
+
command.response_class = Google::Apis::ChecksV1alpha::Empty
|
358
|
+
command.params['name'] = name unless name.nil?
|
359
|
+
command.query['fields'] = fields unless fields.nil?
|
360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
361
|
+
execute_or_queue_command(command, &block)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
365
|
+
# longer interested in the operation result. It does not cancel the operation.
|
366
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
367
|
+
# UNIMPLEMENTED`.
|
368
|
+
# @param [String] name
|
369
|
+
# The name of the operation resource to be deleted.
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
372
|
+
# @param [String] quota_user
|
373
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
374
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
375
|
+
# @param [Google::Apis::RequestOptions] options
|
376
|
+
# Request-specific options
|
377
|
+
#
|
378
|
+
# @yield [result, err] Result & error if block supplied
|
379
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Empty] parsed result object
|
380
|
+
# @yieldparam err [StandardError] error object if request failed
|
381
|
+
#
|
382
|
+
# @return [Google::Apis::ChecksV1alpha::Empty]
|
383
|
+
#
|
384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
387
|
+
def delete_project_privacypolicy_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
388
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
389
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Empty::Representation
|
390
|
+
command.response_class = Google::Apis::ChecksV1alpha::Empty
|
391
|
+
command.params['name'] = name unless name.nil?
|
392
|
+
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
execute_or_queue_command(command, &block)
|
395
|
+
end
|
396
|
+
|
397
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
398
|
+
# to poll the operation result at intervals as recommended by the API service.
|
399
|
+
# @param [String] name
|
400
|
+
# The name of the operation resource.
|
401
|
+
# @param [String] fields
|
402
|
+
# Selector specifying which fields to include in a partial response.
|
403
|
+
# @param [String] quota_user
|
404
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
405
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
406
|
+
# @param [Google::Apis::RequestOptions] options
|
407
|
+
# Request-specific options
|
408
|
+
#
|
409
|
+
# @yield [result, err] Result & error if block supplied
|
410
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Operation] parsed result object
|
411
|
+
# @yieldparam err [StandardError] error object if request failed
|
412
|
+
#
|
413
|
+
# @return [Google::Apis::ChecksV1alpha::Operation]
|
414
|
+
#
|
415
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
416
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
417
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
418
|
+
def get_project_privacypolicy_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
419
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
420
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Operation::Representation
|
421
|
+
command.response_class = Google::Apis::ChecksV1alpha::Operation
|
422
|
+
command.params['name'] = name unless name.nil?
|
423
|
+
command.query['fields'] = fields unless fields.nil?
|
424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
425
|
+
execute_or_queue_command(command, &block)
|
426
|
+
end
|
427
|
+
|
428
|
+
# Lists operations that match the specified filter in the request. If the server
|
429
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
430
|
+
# @param [String] name
|
431
|
+
# The name of the operation's parent resource.
|
432
|
+
# @param [String] filter
|
433
|
+
# The standard list filter.
|
434
|
+
# @param [Fixnum] page_size
|
435
|
+
# The standard list page size.
|
436
|
+
# @param [String] page_token
|
437
|
+
# The standard list page token.
|
438
|
+
# @param [String] fields
|
439
|
+
# Selector specifying which fields to include in a partial response.
|
440
|
+
# @param [String] quota_user
|
441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
443
|
+
# @param [Google::Apis::RequestOptions] options
|
444
|
+
# Request-specific options
|
445
|
+
#
|
446
|
+
# @yield [result, err] Result & error if block supplied
|
447
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::ListOperationsResponse] parsed result object
|
448
|
+
# @yieldparam err [StandardError] error object if request failed
|
449
|
+
#
|
450
|
+
# @return [Google::Apis::ChecksV1alpha::ListOperationsResponse]
|
451
|
+
#
|
452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
455
|
+
def list_project_privacypolicy_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
456
|
+
command = make_simple_command(:get, 'v1alpha/{+name}/privacypolicy/operations', options)
|
457
|
+
command.response_representation = Google::Apis::ChecksV1alpha::ListOperationsResponse::Representation
|
458
|
+
command.response_class = Google::Apis::ChecksV1alpha::ListOperationsResponse
|
459
|
+
command.params['name'] = name unless name.nil?
|
460
|
+
command.query['filter'] = filter unless filter.nil?
|
461
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
462
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
463
|
+
command.query['fields'] = fields unless fields.nil?
|
464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
465
|
+
execute_or_queue_command(command, &block)
|
466
|
+
end
|
467
|
+
|
468
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
469
|
+
# specified timeout, returning the latest state. If the operation is already
|
470
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
471
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
472
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
473
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
474
|
+
# the latest state before the specified timeout (including immediately), meaning
|
475
|
+
# even an immediate response is no guarantee that the operation is done.
|
476
|
+
# @param [String] name
|
477
|
+
# The name of the operation resource to wait on.
|
478
|
+
# @param [String] timeout
|
479
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
480
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
481
|
+
# context deadline is also specified, the shorter one will be used.
|
482
|
+
# @param [String] fields
|
483
|
+
# Selector specifying which fields to include in a partial response.
|
484
|
+
# @param [String] quota_user
|
485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
487
|
+
# @param [Google::Apis::RequestOptions] options
|
488
|
+
# Request-specific options
|
489
|
+
#
|
490
|
+
# @yield [result, err] Result & error if block supplied
|
491
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Operation] parsed result object
|
492
|
+
# @yieldparam err [StandardError] error object if request failed
|
493
|
+
#
|
494
|
+
# @return [Google::Apis::ChecksV1alpha::Operation]
|
495
|
+
#
|
496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
499
|
+
def wait_project_privacypolicy_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
500
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:wait', options)
|
501
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Operation::Representation
|
502
|
+
command.response_class = Google::Apis::ChecksV1alpha::Operation
|
503
|
+
command.params['name'] = name unless name.nil?
|
504
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
505
|
+
command.query['fields'] = fields unless fields.nil?
|
506
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
507
|
+
execute_or_queue_command(command, &block)
|
508
|
+
end
|
113
509
|
|
114
510
|
protected
|
115
511
|
|
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.2.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-07-23 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.2.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: []
|