google-apis-integrations_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4429 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module IntegrationsV1
23
+ # Application Integration API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/integrations_v1'
29
+ #
30
+ # Integrations = Google::Apis::IntegrationsV1 # Alias the module
31
+ # service = Integrations::IntegrationsService.new
32
+ #
33
+ # @see https://cloud.google.com/application-integration
34
+ class IntegrationsService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://integrations.googleapis.com/', '',
47
+ client_name: 'google-apis-integrations_v1',
48
+ client_version: Google::Apis::IntegrationsV1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Receives the auth code and auth config id to combine that with the client id
53
+ # and secret to retrieve access tokens from the token endpoint. Returns either a
54
+ # success or error message when it's done.
55
+ # @param [String] code
56
+ # The auth code for the given request
57
+ # @param [String] gcp_project_id
58
+ # The gcp project id of the request
59
+ # @param [String] product
60
+ # Which product sends the request
61
+ # @param [String] redirect_uri
62
+ # Redirect uri of the auth code request
63
+ # @param [String] state
64
+ # The auth config id for the given request
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
67
+ # @param [String] quota_user
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateTokenResponse] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateTokenResponse]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def generate_callback_token(code: nil, gcp_project_id: nil, product: nil, redirect_uri: nil, state: nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ command = make_simple_command(:get, 'v1/callback:generateToken', options)
84
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateTokenResponse::Representation
85
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateTokenResponse
86
+ command.query['code'] = code unless code.nil?
87
+ command.query['gcpProjectId'] = gcp_project_id unless gcp_project_id.nil?
88
+ command.query['product'] = product unless product.nil?
89
+ command.query['redirectUri'] = redirect_uri unless redirect_uri.nil?
90
+ command.query['state'] = state unless state.nil?
91
+ command.query['fields'] = fields unless fields.nil?
92
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
93
+ execute_or_queue_command(command, &block)
94
+ end
95
+
96
+ # Enumerates the regions for which Connector Platform is provisioned.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
+ # @param [String] quota_user
100
+ # Available to use for quota purposes for server-side applications. Can be any
101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def enumerate_connector_platform_region(fields: nil, quota_user: nil, options: nil, &block)
115
+ command = make_simple_command(:get, 'v1/connectorPlatformRegions:enumerate', options)
116
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse::Representation
117
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse
118
+ command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
123
+ # Gets the metadata info for the requested client
124
+ # @param [String] parent
125
+ # Required. Required: The ID of the GCP Project to be provisioned.
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
128
+ # @param [String] quota_user
129
+ # Available to use for quota purposes for server-side applications. Can be any
130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
131
+ # @param [Google::Apis::RequestOptions] options
132
+ # Request-specific options
133
+ #
134
+ # @yield [result, err] Result & error if block supplied
135
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientMetadataResponse] parsed result object
136
+ # @yieldparam err [StandardError] error object if request failed
137
+ #
138
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientMetadataResponse]
139
+ #
140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
143
+ def get_project_clientmetadata(parent, fields: nil, quota_user: nil, options: nil, &block)
144
+ command = make_simple_command(:get, 'v1/{+parent}/clientmetadata', options)
145
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientMetadataResponse::Representation
146
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientMetadataResponse
147
+ command.params['parent'] = parent unless parent.nil?
148
+ command.query['fields'] = fields unless fields.nil?
149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
150
+ execute_or_queue_command(command, &block)
151
+ end
152
+
153
+ # Gets the client configuration for the given project and location resource name
154
+ # @param [String] parent
155
+ # Required. Required: The ID of the GCP Project to be provisioned.
156
+ # @param [String] fields
157
+ # Selector specifying which fields to include in a partial response.
158
+ # @param [String] quota_user
159
+ # Available to use for quota purposes for server-side applications. Can be any
160
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
161
+ # @param [Google::Apis::RequestOptions] options
162
+ # Request-specific options
163
+ #
164
+ # @yield [result, err] Result & error if block supplied
165
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientResponse] parsed result object
166
+ # @yieldparam err [StandardError] error object if request failed
167
+ #
168
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientResponse]
169
+ #
170
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
171
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
172
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
173
+ def get_project_location_clients(parent, fields: nil, quota_user: nil, options: nil, &block)
174
+ command = make_simple_command(:get, 'v1/{+parent}/clients', options)
175
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientResponse::Representation
176
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetClientResponse
177
+ command.params['parent'] = parent unless parent.nil?
178
+ command.query['fields'] = fields unless fields.nil?
179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
180
+ execute_or_queue_command(command, &block)
181
+ end
182
+
183
+ # This is a UI only method and will be moved away. Returns a list of common
184
+ # tasks.
185
+ # @param [String] parent
186
+ # Required. The location resource of the request. This is not going to be used
187
+ # but preserve the field for future.
188
+ # @param [String] fields
189
+ # Selector specifying which fields to include in a partial response.
190
+ # @param [String] quota_user
191
+ # Available to use for quota purposes for server-side applications. Can be any
192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def list_project_location_task_entities(parent, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:get, 'v1/{+parent}:listTaskEntities', options)
207
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse::Representation
208
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse
209
+ command.params['parent'] = parent unless parent.nil?
210
+ command.query['fields'] = fields unless fields.nil?
211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
212
+ execute_or_queue_command(command, &block)
213
+ end
214
+
215
+ # Creates an Apps Script project.
216
+ # @param [String] parent
217
+ # Required. The project that the executed integration belongs to.
218
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest] google_cloud_integrations_v1alpha_create_apps_script_project_request_object
219
+ # @param [String] fields
220
+ # Selector specifying which fields to include in a partial response.
221
+ # @param [String] quota_user
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
224
+ # @param [Google::Apis::RequestOptions] options
225
+ # Request-specific options
226
+ #
227
+ # @yield [result, err] Result & error if block supplied
228
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse] parsed result object
229
+ # @yieldparam err [StandardError] error object if request failed
230
+ #
231
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse]
232
+ #
233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
236
+ def create_project_location_apps_script_project(parent, google_cloud_integrations_v1alpha_create_apps_script_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
237
+ command = make_simple_command(:post, 'v1/{+parent}/appsScriptProjects', options)
238
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest::Representation
239
+ command.request_object = google_cloud_integrations_v1alpha_create_apps_script_project_request_object
240
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse::Representation
241
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse
242
+ command.params['parent'] = parent unless parent.nil?
243
+ command.query['fields'] = fields unless fields.nil?
244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
245
+ execute_or_queue_command(command, &block)
246
+ end
247
+
248
+ # Links a existing Apps Script project.
249
+ # @param [String] parent
250
+ # Required. The project that the executed integration belongs to.
251
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest] google_cloud_integrations_v1alpha_link_apps_script_project_request_object
252
+ # @param [String] fields
253
+ # Selector specifying which fields to include in a partial response.
254
+ # @param [String] quota_user
255
+ # Available to use for quota purposes for server-side applications. Can be any
256
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
257
+ # @param [Google::Apis::RequestOptions] options
258
+ # Request-specific options
259
+ #
260
+ # @yield [result, err] Result & error if block supplied
261
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse] parsed result object
262
+ # @yieldparam err [StandardError] error object if request failed
263
+ #
264
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse]
265
+ #
266
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
267
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
268
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
269
+ def link_project_location_apps_script_project(parent, google_cloud_integrations_v1alpha_link_apps_script_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
270
+ command = make_simple_command(:post, 'v1/{+parent}/appsScriptProjects:link', options)
271
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest::Representation
272
+ command.request_object = google_cloud_integrations_v1alpha_link_apps_script_project_request_object
273
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse::Representation
274
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse
275
+ command.params['parent'] = parent unless parent.nil?
276
+ command.query['fields'] = fields unless fields.nil?
277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
278
+ execute_or_queue_command(command, &block)
279
+ end
280
+
281
+ # Creates an auth config record. Fetch corresponding credentials for specific
282
+ # auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
283
+ # auth config with Cloud KMS and store the encrypted credentials in Spanner.
284
+ # Returns the encrypted auth config.
285
+ # @param [String] parent
286
+ # Required. "projects/`project`/locations/`location`" format.
287
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
288
+ # @param [String] client_certificate_encrypted_private_key
289
+ # The ssl certificate encoded in PEM format. This string must include the begin
290
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
291
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
292
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
293
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
294
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
295
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
296
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
297
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
298
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
299
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
300
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
301
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
302
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
303
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
304
+ # @param [String] client_certificate_passphrase
305
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
306
+ # passphrase' is not the password for web server, but an extra layer of security
307
+ # to protected private key.
308
+ # @param [String] client_certificate_ssl_certificate
309
+ # The ssl certificate encoded in PEM format. This string must include the begin
310
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
311
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
312
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
313
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
314
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
315
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
316
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
317
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
318
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
319
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
320
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
321
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
322
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
323
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
324
+ # @param [String] fields
325
+ # Selector specifying which fields to include in a partial response.
326
+ # @param [String] quota_user
327
+ # Available to use for quota purposes for server-side applications. Can be any
328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
329
+ # @param [Google::Apis::RequestOptions] options
330
+ # Request-specific options
331
+ #
332
+ # @yield [result, err] Result & error if block supplied
333
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
334
+ # @yieldparam err [StandardError] error object if request failed
335
+ #
336
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
337
+ #
338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
341
+ def create_project_location_auth_config(parent, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, fields: nil, quota_user: nil, options: nil, &block)
342
+ command = make_simple_command(:post, 'v1/{+parent}/authConfigs', options)
343
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
344
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
345
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
346
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
347
+ command.params['parent'] = parent unless parent.nil?
348
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
349
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
350
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
351
+ command.query['fields'] = fields unless fields.nil?
352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
356
+ # Deletes an auth config.
357
+ # @param [String] name
358
+ # Required. The name that is associated with the AuthConfig.
359
+ # @param [String] fields
360
+ # Selector specifying which fields to include in a partial response.
361
+ # @param [String] quota_user
362
+ # Available to use for quota purposes for server-side applications. Can be any
363
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
364
+ # @param [Google::Apis::RequestOptions] options
365
+ # Request-specific options
366
+ #
367
+ # @yield [result, err] Result & error if block supplied
368
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
369
+ # @yieldparam err [StandardError] error object if request failed
370
+ #
371
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
372
+ #
373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
376
+ def delete_project_location_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
377
+ command = make_simple_command(:delete, 'v1/{+name}', options)
378
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
379
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
380
+ command.params['name'] = name unless name.nil?
381
+ command.query['fields'] = fields unless fields.nil?
382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
383
+ execute_or_queue_command(command, &block)
384
+ end
385
+
386
+ # Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
387
+ # exception will be thrown. Returns the decrypted auth config.
388
+ # @param [String] name
389
+ # Required. The name that is associated with the AuthConfig.
390
+ # @param [String] fields
391
+ # Selector specifying which fields to include in a partial response.
392
+ # @param [String] quota_user
393
+ # Available to use for quota purposes for server-side applications. Can be any
394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
395
+ # @param [Google::Apis::RequestOptions] options
396
+ # Request-specific options
397
+ #
398
+ # @yield [result, err] Result & error if block supplied
399
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
400
+ # @yieldparam err [StandardError] error object if request failed
401
+ #
402
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
403
+ #
404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
407
+ def get_project_location_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
408
+ command = make_simple_command(:get, 'v1/{+name}', options)
409
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
410
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
411
+ command.params['name'] = name unless name.nil?
412
+ command.query['fields'] = fields unless fields.nil?
413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
414
+ execute_or_queue_command(command, &block)
415
+ end
416
+
417
+ # Lists all auth configs that match the filter. Restrict to auth configs belong
418
+ # to the current client only.
419
+ # @param [String] parent
420
+ # Required. The client, which owns this collection of AuthConfigs.
421
+ # @param [String] filter
422
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
423
+ # guides/v2/list-filters.
424
+ # @param [Fixnum] page_size
425
+ # The size of entries in the response. If unspecified, defaults to 100.
426
+ # @param [String] page_token
427
+ # The token returned in the previous response.
428
+ # @param [String] read_mask
429
+ # The mask which specifies fields that need to be returned in the AuthConfig's
430
+ # response.
431
+ # @param [String] fields
432
+ # Selector specifying which fields to include in a partial response.
433
+ # @param [String] quota_user
434
+ # Available to use for quota purposes for server-side applications. Can be any
435
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
436
+ # @param [Google::Apis::RequestOptions] options
437
+ # Request-specific options
438
+ #
439
+ # @yield [result, err] Result & error if block supplied
440
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse] parsed result object
441
+ # @yieldparam err [StandardError] error object if request failed
442
+ #
443
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse]
444
+ #
445
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
446
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
447
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
448
+ def list_project_location_auth_configs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
449
+ command = make_simple_command(:get, 'v1/{+parent}/authConfigs', options)
450
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::Representation
451
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
452
+ command.params['parent'] = parent unless parent.nil?
453
+ command.query['filter'] = filter unless filter.nil?
454
+ command.query['pageSize'] = page_size unless page_size.nil?
455
+ command.query['pageToken'] = page_token unless page_token.nil?
456
+ command.query['readMask'] = read_mask unless read_mask.nil?
457
+ command.query['fields'] = fields unless fields.nil?
458
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
459
+ execute_or_queue_command(command, &block)
460
+ end
461
+
462
+ # Updates an auth config. If credential is updated, fetch the encrypted auth
463
+ # config from Spanner, decrypt with Cloud KMS key, update the credential fields,
464
+ # re-encrypt with Cloud KMS key and update the Spanner record. For other fields,
465
+ # directly update the Spanner record. Returns the encrypted auth config.
466
+ # @param [String] name
467
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
468
+ # authConfigs/`authConfig`.
469
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
470
+ # @param [String] client_certificate_encrypted_private_key
471
+ # The ssl certificate encoded in PEM format. This string must include the begin
472
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
473
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
474
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
475
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
476
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
477
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
478
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
479
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
480
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
481
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
482
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
483
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
484
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
485
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
486
+ # @param [String] client_certificate_passphrase
487
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
488
+ # passphrase' is not the password for web server, but an extra layer of security
489
+ # to protected private key.
490
+ # @param [String] client_certificate_ssl_certificate
491
+ # The ssl certificate encoded in PEM format. This string must include the begin
492
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
493
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
494
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
495
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
496
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
497
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
498
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
499
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
500
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
501
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
502
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
503
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
504
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
505
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
506
+ # @param [String] update_mask
507
+ # Field mask specifying the fields in the above AuthConfig that have been
508
+ # modified and need to be updated.
509
+ # @param [String] fields
510
+ # Selector specifying which fields to include in a partial response.
511
+ # @param [String] quota_user
512
+ # Available to use for quota purposes for server-side applications. Can be any
513
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
514
+ # @param [Google::Apis::RequestOptions] options
515
+ # Request-specific options
516
+ #
517
+ # @yield [result, err] Result & error if block supplied
518
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
519
+ # @yieldparam err [StandardError] error object if request failed
520
+ #
521
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
522
+ #
523
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
524
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
525
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
526
+ def patch_project_location_auth_config(name, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
527
+ command = make_simple_command(:patch, 'v1/{+name}', options)
528
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
529
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
530
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
531
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
532
+ command.params['name'] = name unless name.nil?
533
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
534
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
535
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
536
+ command.query['updateMask'] = update_mask unless update_mask.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ execute_or_queue_command(command, &block)
540
+ end
541
+
542
+ # Creates a new certificate. The certificate will be registered to the trawler
543
+ # service and will be encrypted using cloud KMS and stored in Spanner Returns
544
+ # the certificate.
545
+ # @param [String] parent
546
+ # Required. "projects/`project`/locations/`location`" format.
547
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
548
+ # @param [String] fields
549
+ # Selector specifying which fields to include in a partial response.
550
+ # @param [String] quota_user
551
+ # Available to use for quota purposes for server-side applications. Can be any
552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
553
+ # @param [Google::Apis::RequestOptions] options
554
+ # Request-specific options
555
+ #
556
+ # @yield [result, err] Result & error if block supplied
557
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
558
+ # @yieldparam err [StandardError] error object if request failed
559
+ #
560
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
561
+ #
562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
565
+ def create_project_location_certificate(parent, google_cloud_integrations_v1alpha_certificate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
566
+ command = make_simple_command(:post, 'v1/{+parent}/certificates', options)
567
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
568
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
569
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
570
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
571
+ command.params['parent'] = parent unless parent.nil?
572
+ command.query['fields'] = fields unless fields.nil?
573
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
574
+ execute_or_queue_command(command, &block)
575
+ end
576
+
577
+ # Delete a certificate
578
+ # @param [String] name
579
+ # Required. The name that is associated with the Certificate.
580
+ # @param [String] fields
581
+ # Selector specifying which fields to include in a partial response.
582
+ # @param [String] quota_user
583
+ # Available to use for quota purposes for server-side applications. Can be any
584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
585
+ # @param [Google::Apis::RequestOptions] options
586
+ # Request-specific options
587
+ #
588
+ # @yield [result, err] Result & error if block supplied
589
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
590
+ # @yieldparam err [StandardError] error object if request failed
591
+ #
592
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
593
+ #
594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
597
+ def delete_project_location_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
598
+ command = make_simple_command(:delete, 'v1/{+name}', options)
599
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
600
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
601
+ command.params['name'] = name unless name.nil?
602
+ command.query['fields'] = fields unless fields.nil?
603
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
604
+ execute_or_queue_command(command, &block)
605
+ end
606
+
607
+ # Get a certificates in the specified project.
608
+ # @param [String] name
609
+ # Required. The certificate to retrieve. Format: projects/`project`/locations/`
610
+ # location`/certificates/`certificate`
611
+ # @param [String] fields
612
+ # Selector specifying which fields to include in a partial response.
613
+ # @param [String] quota_user
614
+ # Available to use for quota purposes for server-side applications. Can be any
615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
616
+ # @param [Google::Apis::RequestOptions] options
617
+ # Request-specific options
618
+ #
619
+ # @yield [result, err] Result & error if block supplied
620
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
621
+ # @yieldparam err [StandardError] error object if request failed
622
+ #
623
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
624
+ #
625
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
628
+ def get_project_location_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
629
+ command = make_simple_command(:get, 'v1/{+name}', options)
630
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
631
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
632
+ command.params['name'] = name unless name.nil?
633
+ command.query['fields'] = fields unless fields.nil?
634
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
635
+ execute_or_queue_command(command, &block)
636
+ end
637
+
638
+ # List all the certificates that match the filter. Restrict to certificate of
639
+ # current client only.
640
+ # @param [String] parent
641
+ # Required. The client, which owns this collection of Certificates.
642
+ # @param [String] filter
643
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
644
+ # guides/v2/list-filters.
645
+ # @param [Fixnum] page_size
646
+ # The size of entries in the response. If unspecified, defaults to 100.
647
+ # @param [String] page_token
648
+ # The token returned in the previous response.
649
+ # @param [String] read_mask
650
+ # The mask which specifies fields that need to be returned in the Certificate's
651
+ # response.
652
+ # @param [String] fields
653
+ # Selector specifying which fields to include in a partial response.
654
+ # @param [String] quota_user
655
+ # Available to use for quota purposes for server-side applications. Can be any
656
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
657
+ # @param [Google::Apis::RequestOptions] options
658
+ # Request-specific options
659
+ #
660
+ # @yield [result, err] Result & error if block supplied
661
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse] parsed result object
662
+ # @yieldparam err [StandardError] error object if request failed
663
+ #
664
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse]
665
+ #
666
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
667
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
668
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
669
+ def list_project_location_certificates(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
670
+ command = make_simple_command(:get, 'v1/{+parent}/certificates', options)
671
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse::Representation
672
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse
673
+ command.params['parent'] = parent unless parent.nil?
674
+ command.query['filter'] = filter unless filter.nil?
675
+ command.query['pageSize'] = page_size unless page_size.nil?
676
+ command.query['pageToken'] = page_token unless page_token.nil?
677
+ command.query['readMask'] = read_mask unless read_mask.nil?
678
+ command.query['fields'] = fields unless fields.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ execute_or_queue_command(command, &block)
681
+ end
682
+
683
+ # Updates the certificate by id. If new certificate file is updated, it will
684
+ # register with the trawler service, re-encrypt with cloud KMS and update the
685
+ # Spanner record. Other fields will directly update the Spanner record. Returns
686
+ # the Certificate.
687
+ # @param [String] name
688
+ # Output only. Auto generated primary key
689
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
690
+ # @param [String] update_mask
691
+ # Field mask specifying the fields in the above Certificate that have been
692
+ # modified and need to be updated.
693
+ # @param [String] fields
694
+ # Selector specifying which fields to include in a partial response.
695
+ # @param [String] quota_user
696
+ # Available to use for quota purposes for server-side applications. Can be any
697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
698
+ # @param [Google::Apis::RequestOptions] options
699
+ # Request-specific options
700
+ #
701
+ # @yield [result, err] Result & error if block supplied
702
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
703
+ # @yieldparam err [StandardError] error object if request failed
704
+ #
705
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
706
+ #
707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
710
+ def patch_project_location_certificate(name, google_cloud_integrations_v1alpha_certificate_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
711
+ command = make_simple_command(:patch, 'v1/{+name}', options)
712
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
713
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
714
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
715
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
716
+ command.params['name'] = name unless name.nil?
717
+ command.query['updateMask'] = update_mask unless update_mask.nil?
718
+ command.query['fields'] = fields unless fields.nil?
719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
720
+ execute_or_queue_command(command, &block)
721
+ end
722
+
723
+ # Perform the deprovisioning steps to disable a user GCP project to use IP and
724
+ # purge all related data in a wipeout-compliant way.
725
+ # @param [String] parent
726
+ # Required. Required: The ID of the GCP Project to be deprovisioned.
727
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeprovisionClientRequest] google_cloud_integrations_v1alpha_deprovision_client_request_object
728
+ # @param [String] fields
729
+ # Selector specifying which fields to include in a partial response.
730
+ # @param [String] quota_user
731
+ # Available to use for quota purposes for server-side applications. Can be any
732
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
733
+ # @param [Google::Apis::RequestOptions] options
734
+ # Request-specific options
735
+ #
736
+ # @yield [result, err] Result & error if block supplied
737
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
738
+ # @yieldparam err [StandardError] error object if request failed
739
+ #
740
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
741
+ #
742
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
743
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
744
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
745
+ def deprovision_project_location_client(parent, google_cloud_integrations_v1alpha_deprovision_client_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
746
+ command = make_simple_command(:post, 'v1/{+parent}/clients:deprovision', options)
747
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeprovisionClientRequest::Representation
748
+ command.request_object = google_cloud_integrations_v1alpha_deprovision_client_request_object
749
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
750
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
751
+ command.params['parent'] = parent unless parent.nil?
752
+ command.query['fields'] = fields unless fields.nil?
753
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
754
+ execute_or_queue_command(command, &block)
755
+ end
756
+
757
+ # Perform the provisioning steps to enable a user GCP project to use IP. If GCP
758
+ # project already registered on IP end via Apigee Integration, provisioning will
759
+ # fail.
760
+ # @param [String] parent
761
+ # Required. Required: The ID of the GCP Project to be provisioned.
762
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaProvisionClientRequest] google_cloud_integrations_v1alpha_provision_client_request_object
763
+ # @param [String] fields
764
+ # Selector specifying which fields to include in a partial response.
765
+ # @param [String] quota_user
766
+ # Available to use for quota purposes for server-side applications. Can be any
767
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
768
+ # @param [Google::Apis::RequestOptions] options
769
+ # Request-specific options
770
+ #
771
+ # @yield [result, err] Result & error if block supplied
772
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
773
+ # @yieldparam err [StandardError] error object if request failed
774
+ #
775
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
776
+ #
777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
780
+ def provision_project_location_client(parent, google_cloud_integrations_v1alpha_provision_client_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
781
+ command = make_simple_command(:post, 'v1/{+parent}/clients:provision', options)
782
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaProvisionClientRequest::Representation
783
+ command.request_object = google_cloud_integrations_v1alpha_provision_client_request_object
784
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
785
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
786
+ command.params['parent'] = parent unless parent.nil?
787
+ command.query['fields'] = fields unless fields.nil?
788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
789
+ execute_or_queue_command(command, &block)
790
+ end
791
+
792
+ # Creates an cloud function project.
793
+ # @param [String] parent
794
+ # Required. The project that the executed integration belongs to.
795
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest] google_cloud_integrations_v1alpha_create_cloud_function_request_object
796
+ # @param [String] fields
797
+ # Selector specifying which fields to include in a partial response.
798
+ # @param [String] quota_user
799
+ # Available to use for quota purposes for server-side applications. Can be any
800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
801
+ # @param [Google::Apis::RequestOptions] options
802
+ # Request-specific options
803
+ #
804
+ # @yield [result, err] Result & error if block supplied
805
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse] parsed result object
806
+ # @yieldparam err [StandardError] error object if request failed
807
+ #
808
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse]
809
+ #
810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
813
+ def create_project_location_cloud_function(parent, google_cloud_integrations_v1alpha_create_cloud_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:post, 'v1/{+parent}/cloudFunctions', options)
815
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest::Representation
816
+ command.request_object = google_cloud_integrations_v1alpha_create_cloud_function_request_object
817
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse::Representation
818
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse
819
+ command.params['parent'] = parent unless parent.nil?
820
+ command.query['fields'] = fields unless fields.nil?
821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
822
+ execute_or_queue_command(command, &block)
823
+ end
824
+
825
+ # Lists the available entities and actions associated with a Connection.
826
+ # @param [String] name
827
+ # Required. ConnectionSchemaMetadata name. Format: projects/`project`/locations/`
828
+ # location`/connections/`connection`/connectionSchemaMetadata
829
+ # @param [String] fields
830
+ # Selector specifying which fields to include in a partial response.
831
+ # @param [String] quota_user
832
+ # Available to use for quota purposes for server-side applications. Can be any
833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
834
+ # @param [Google::Apis::RequestOptions] options
835
+ # Request-specific options
836
+ #
837
+ # @yield [result, err] Result & error if block supplied
838
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata] parsed result object
839
+ # @yieldparam err [StandardError] error object if request failed
840
+ #
841
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata]
842
+ #
843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
846
+ def get_project_location_connection_connection_schema_metadata(name, fields: nil, quota_user: nil, options: nil, &block)
847
+ command = make_simple_command(:get, 'v1/{+name}', options)
848
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata::Representation
849
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata
850
+ command.params['name'] = name unless name.nil?
851
+ command.query['fields'] = fields unless fields.nil?
852
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
853
+ execute_or_queue_command(command, &block)
854
+ end
855
+
856
+ # Lists Connections in a given project and location.
857
+ # @param [String] parent
858
+ # Required. Parent resource of the Connection, of the form: `projects/*/
859
+ # locations/*`
860
+ # @param [String] filter
861
+ # Filter.
862
+ # @param [String] order_by
863
+ # Order by parameters.
864
+ # @param [Fixnum] page_size
865
+ # Page size.
866
+ # @param [String] page_token
867
+ # Page token.
868
+ # @param [String] fields
869
+ # Selector specifying which fields to include in a partial response.
870
+ # @param [String] quota_user
871
+ # Available to use for quota purposes for server-side applications. Can be any
872
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
873
+ # @param [Google::Apis::RequestOptions] options
874
+ # Request-specific options
875
+ #
876
+ # @yield [result, err] Result & error if block supplied
877
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListConnectionsResponse] parsed result object
878
+ # @yieldparam err [StandardError] error object if request failed
879
+ #
880
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListConnectionsResponse]
881
+ #
882
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
883
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
884
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
885
+ def list_project_location_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
886
+ command = make_simple_command(:get, 'v1/{+parent}/connections', options)
887
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListConnectionsResponse::Representation
888
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListConnectionsResponse
889
+ command.params['parent'] = parent unless parent.nil?
890
+ command.query['filter'] = filter unless filter.nil?
891
+ command.query['orderBy'] = order_by unless order_by.nil?
892
+ command.query['pageSize'] = page_size unless page_size.nil?
893
+ command.query['pageToken'] = page_token unless page_token.nil?
894
+ command.query['fields'] = fields unless fields.nil?
895
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
896
+ execute_or_queue_command(command, &block)
897
+ end
898
+
899
+ # Lists the JSON schemas for the inputs and outputs of actions, filtered by
900
+ # action name.
901
+ # @param [String] parent
902
+ # Required. Parent resource of RuntimeActionSchema. Format: projects/`project`/
903
+ # locations/`location`/connections/`connection`
904
+ # @param [String] filter
905
+ # Filter. Only the action field with literal equality operator is supported.
906
+ # @param [Fixnum] page_size
907
+ # Page size.
908
+ # @param [String] page_token
909
+ # Page token.
910
+ # @param [String] fields
911
+ # Selector specifying which fields to include in a partial response.
912
+ # @param [String] quota_user
913
+ # Available to use for quota purposes for server-side applications. Can be any
914
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
915
+ # @param [Google::Apis::RequestOptions] options
916
+ # Request-specific options
917
+ #
918
+ # @yield [result, err] Result & error if block supplied
919
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse] parsed result object
920
+ # @yieldparam err [StandardError] error object if request failed
921
+ #
922
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse]
923
+ #
924
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
925
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
926
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
927
+ def list_project_location_connection_runtime_action_schemas(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
928
+ command = make_simple_command(:get, 'v1/{+parent}/runtimeActionSchemas', options)
929
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse::Representation
930
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse
931
+ command.params['parent'] = parent unless parent.nil?
932
+ command.query['filter'] = filter unless filter.nil?
933
+ command.query['pageSize'] = page_size unless page_size.nil?
934
+ command.query['pageToken'] = page_token unless page_token.nil?
935
+ command.query['fields'] = fields unless fields.nil?
936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
+ execute_or_queue_command(command, &block)
938
+ end
939
+
940
+ # Lists the JSON schemas for the properties of runtime entities, filtered by
941
+ # entity name.
942
+ # @param [String] parent
943
+ # Required. Parent resource of RuntimeEntitySchema. Format: projects/`project`/
944
+ # locations/`location`/connections/`connection`
945
+ # @param [String] filter
946
+ # Filter. Only the entity field with literal equality operator is supported.
947
+ # @param [Fixnum] page_size
948
+ # Page size.
949
+ # @param [String] page_token
950
+ # Page token.
951
+ # @param [String] fields
952
+ # Selector specifying which fields to include in a partial response.
953
+ # @param [String] quota_user
954
+ # Available to use for quota purposes for server-side applications. Can be any
955
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
956
+ # @param [Google::Apis::RequestOptions] options
957
+ # Request-specific options
958
+ #
959
+ # @yield [result, err] Result & error if block supplied
960
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse] parsed result object
961
+ # @yieldparam err [StandardError] error object if request failed
962
+ #
963
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse]
964
+ #
965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
968
+ def list_project_location_connection_runtime_entity_schemas(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
969
+ command = make_simple_command(:get, 'v1/{+parent}/runtimeEntitySchemas', options)
970
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse::Representation
971
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse
972
+ command.params['parent'] = parent unless parent.nil?
973
+ command.query['filter'] = filter unless filter.nil?
974
+ command.query['pageSize'] = page_size unless page_size.nil?
975
+ command.query['pageToken'] = page_token unless page_token.nil?
976
+ command.query['fields'] = fields unless fields.nil?
977
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
978
+ execute_or_queue_command(command, &block)
979
+ end
980
+
981
+ # Delete the selected integration and all versions inside
982
+ # @param [String] name
983
+ # Required. The location resource of the request.
984
+ # @param [String] fields
985
+ # Selector specifying which fields to include in a partial response.
986
+ # @param [String] quota_user
987
+ # Available to use for quota purposes for server-side applications. Can be any
988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
989
+ # @param [Google::Apis::RequestOptions] options
990
+ # Request-specific options
991
+ #
992
+ # @yield [result, err] Result & error if block supplied
993
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
994
+ # @yieldparam err [StandardError] error object if request failed
995
+ #
996
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
997
+ #
998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
+ def delete_project_location_integration(name, fields: nil, quota_user: nil, options: nil, &block)
1002
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1003
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
1004
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
1005
+ command.params['name'] = name unless name.nil?
1006
+ command.query['fields'] = fields unless fields.nil?
1007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1008
+ execute_or_queue_command(command, &block)
1009
+ end
1010
+
1011
+ # Executes integrations synchronously by passing the trigger id in the request
1012
+ # body. The request is not returned until the requested executions are either
1013
+ # fulfilled or experienced an error. If the integration name is not specified (
1014
+ # passing `-`), all of the associated integration under the given trigger_id
1015
+ # will be executed. Otherwise only the specified integration for the given `
1016
+ # trigger_id` is executed. This is helpful for execution the integration from UI.
1017
+ # @param [String] name
1018
+ # Required. The integration resource name.
1019
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest] google_cloud_integrations_v1alpha_execute_integrations_request_object
1020
+ # @param [String] fields
1021
+ # Selector specifying which fields to include in a partial response.
1022
+ # @param [String] quota_user
1023
+ # Available to use for quota purposes for server-side applications. Can be any
1024
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1025
+ # @param [Google::Apis::RequestOptions] options
1026
+ # Request-specific options
1027
+ #
1028
+ # @yield [result, err] Result & error if block supplied
1029
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse] parsed result object
1030
+ # @yieldparam err [StandardError] error object if request failed
1031
+ #
1032
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse]
1033
+ #
1034
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1035
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1036
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1037
+ def execute_project_location_integration(name, google_cloud_integrations_v1alpha_execute_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1038
+ command = make_simple_command(:post, 'v1/{+name}:execute', options)
1039
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest::Representation
1040
+ command.request_object = google_cloud_integrations_v1alpha_execute_integrations_request_object
1041
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::Representation
1042
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
1043
+ command.params['name'] = name unless name.nil?
1044
+ command.query['fields'] = fields unless fields.nil?
1045
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1046
+ execute_or_queue_command(command, &block)
1047
+ end
1048
+
1049
+ # Returns the list of all integrations in the specified project.
1050
+ # @param [String] parent
1051
+ # Required. Project and location from which the integrations should be listed.
1052
+ # Format: projects/`project`
1053
+ # @param [String] filter
1054
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
1055
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
1056
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
1057
+ # inequality) operators. Negation, conjunction, and disjunction are written
1058
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
1059
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
1060
+ # fields like `task_config`.
1061
+ # @param [String] order_by
1062
+ # The results would be returned in order you specified here. Supported sort keys
1063
+ # are: Descending sort order by "last_modified_time", "created_time", "
1064
+ # snapshot_number". Ascending sort order by the integration name.
1065
+ # @param [Fixnum] page_size
1066
+ # The page size for the resquest.
1067
+ # @param [String] page_token
1068
+ # The page token for the resquest.
1069
+ # @param [String] fields
1070
+ # Selector specifying which fields to include in a partial response.
1071
+ # @param [String] quota_user
1072
+ # Available to use for quota purposes for server-side applications. Can be any
1073
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1074
+ # @param [Google::Apis::RequestOptions] options
1075
+ # Request-specific options
1076
+ #
1077
+ # @yield [result, err] Result & error if block supplied
1078
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse] parsed result object
1079
+ # @yieldparam err [StandardError] error object if request failed
1080
+ #
1081
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse]
1082
+ #
1083
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1084
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1085
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1086
+ def list_project_location_integrations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1087
+ command = make_simple_command(:get, 'v1/{+parent}/integrations', options)
1088
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse::Representation
1089
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse
1090
+ command.params['parent'] = parent unless parent.nil?
1091
+ command.query['filter'] = filter unless filter.nil?
1092
+ command.query['orderBy'] = order_by unless order_by.nil?
1093
+ command.query['pageSize'] = page_size unless page_size.nil?
1094
+ command.query['pageToken'] = page_token unless page_token.nil?
1095
+ command.query['fields'] = fields unless fields.nil?
1096
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1097
+ execute_or_queue_command(command, &block)
1098
+ end
1099
+
1100
+ # Get execution stats
1101
+ # @param [String] parent
1102
+ # Required. The parent resource name: `parent=projects/*/locations/*`.
1103
+ # @param [String] fields
1104
+ # Selector specifying which fields to include in a partial response.
1105
+ # @param [String] quota_user
1106
+ # Available to use for quota purposes for server-side applications. Can be any
1107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1108
+ # @param [Google::Apis::RequestOptions] options
1109
+ # Request-specific options
1110
+ #
1111
+ # @yield [result, err] Result & error if block supplied
1112
+ # @yieldparam result [NilClass] No result returned for this method
1113
+ # @yieldparam err [StandardError] error object if request failed
1114
+ #
1115
+ # @return [void]
1116
+ #
1117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1120
+ def monitorexecutionstats_project_location_integration(parent, fields: nil, quota_user: nil, options: nil, &block)
1121
+ command = make_simple_command(:post, 'v1/{+parent}:monitorexecutionstats', options)
1122
+ command.params['parent'] = parent unless parent.nil?
1123
+ command.query['fields'] = fields unless fields.nil?
1124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1125
+ execute_or_queue_command(command, &block)
1126
+ end
1127
+
1128
+ # Schedules an integration for execution by passing the trigger id and the
1129
+ # scheduled time in the request body.
1130
+ # @param [String] name
1131
+ # The integration resource name.
1132
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest] google_cloud_integrations_v1alpha_schedule_integrations_request_object
1133
+ # @param [String] fields
1134
+ # Selector specifying which fields to include in a partial response.
1135
+ # @param [String] quota_user
1136
+ # Available to use for quota purposes for server-side applications. Can be any
1137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
+ # @param [Google::Apis::RequestOptions] options
1139
+ # Request-specific options
1140
+ #
1141
+ # @yield [result, err] Result & error if block supplied
1142
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse] parsed result object
1143
+ # @yieldparam err [StandardError] error object if request failed
1144
+ #
1145
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse]
1146
+ #
1147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1150
+ def schedule_project_location_integration(name, google_cloud_integrations_v1alpha_schedule_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1151
+ command = make_simple_command(:post, 'v1/{+name}:schedule', options)
1152
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest::Representation
1153
+ command.request_object = google_cloud_integrations_v1alpha_schedule_integrations_request_object
1154
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::Representation
1155
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
1156
+ command.params['name'] = name unless name.nil?
1157
+ command.query['fields'] = fields unless fields.nil?
1158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1159
+ execute_or_queue_command(command, &block)
1160
+ end
1161
+
1162
+ # Execute the integration in draft state
1163
+ # @param [String] name
1164
+ # Output only. Auto-generated primary key.
1165
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest] google_cloud_integrations_v1alpha_test_integrations_request_object
1166
+ # @param [String] fields
1167
+ # Selector specifying which fields to include in a partial response.
1168
+ # @param [String] quota_user
1169
+ # Available to use for quota purposes for server-side applications. Can be any
1170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1171
+ # @param [Google::Apis::RequestOptions] options
1172
+ # Request-specific options
1173
+ #
1174
+ # @yield [result, err] Result & error if block supplied
1175
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse] parsed result object
1176
+ # @yieldparam err [StandardError] error object if request failed
1177
+ #
1178
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse]
1179
+ #
1180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1183
+ def test_project_location_integration(name, google_cloud_integrations_v1alpha_test_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1184
+ command = make_simple_command(:post, 'v1/{+name}:test', options)
1185
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest::Representation
1186
+ command.request_object = google_cloud_integrations_v1alpha_test_integrations_request_object
1187
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse::Representation
1188
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse
1189
+ command.params['name'] = name unless name.nil?
1190
+ command.query['fields'] = fields unless fields.nil?
1191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1192
+ execute_or_queue_command(command, &block)
1193
+ end
1194
+
1195
+ # Download the execution.
1196
+ # @param [String] name
1197
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
1198
+ # locations/`location`/products/`product`/integrations/`integration_id`/
1199
+ # executions/`execution_id`
1200
+ # @param [String] fields
1201
+ # Selector specifying which fields to include in a partial response.
1202
+ # @param [String] quota_user
1203
+ # Available to use for quota purposes for server-side applications. Can be any
1204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1205
+ # @param [Google::Apis::RequestOptions] options
1206
+ # Request-specific options
1207
+ #
1208
+ # @yield [result, err] Result & error if block supplied
1209
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse] parsed result object
1210
+ # @yieldparam err [StandardError] error object if request failed
1211
+ #
1212
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse]
1213
+ #
1214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1217
+ def download_project_location_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
1218
+ command = make_simple_command(:get, 'v1/{+name}:download', options)
1219
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse::Representation
1220
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse
1221
+ command.params['name'] = name unless name.nil?
1222
+ command.query['fields'] = fields unless fields.nil?
1223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1224
+ execute_or_queue_command(command, &block)
1225
+ end
1226
+
1227
+ # Get an execution in the specified project.
1228
+ # @param [String] name
1229
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
1230
+ # locations/`location`/products/`product`/integrations/`integration_id`/
1231
+ # executions/`execution_id`
1232
+ # @param [String] fields
1233
+ # Selector specifying which fields to include in a partial response.
1234
+ # @param [String] quota_user
1235
+ # Available to use for quota purposes for server-side applications. Can be any
1236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1237
+ # @param [Google::Apis::RequestOptions] options
1238
+ # Request-specific options
1239
+ #
1240
+ # @yield [result, err] Result & error if block supplied
1241
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution] parsed result object
1242
+ # @yieldparam err [StandardError] error object if request failed
1243
+ #
1244
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution]
1245
+ #
1246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1249
+ def get_project_location_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
1250
+ command = make_simple_command(:get, 'v1/{+name}', options)
1251
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution::Representation
1252
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution
1253
+ command.params['name'] = name unless name.nil?
1254
+ command.query['fields'] = fields unless fields.nil?
1255
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1256
+ execute_or_queue_command(command, &block)
1257
+ end
1258
+
1259
+ # Lists the results of all the integration executions. The response includes the
1260
+ # same information as the [execution log](https://cloud.google.com/application-
1261
+ # integration/docs/viewing-logs) in the Integration UI.
1262
+ # @param [String] parent
1263
+ # Required. The parent resource name of the integration execution.
1264
+ # @param [String] filter
1265
+ # Optional. Standard filter field, we support filtering on all fields in
1266
+ # EventExecutionParamIndexes table. All fields support for EQUALS, in additional:
1267
+ # CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey,
1268
+ # ParameterValue, ParameterType support for HAS For example: "parameter_value"
1269
+ # HAS \"parameter1\" Also supports operators like AND, OR, NOT For example,
1270
+ # trigger_id=\"id1\" AND event_execution_state=\"FAILED\"
1271
+ # @param [String] filter_params_custom_filter
1272
+ # Optional user-provided custom filter.
1273
+ # @param [Fixnum] filter_params_end_time
1274
+ # End timestamp.
1275
+ # @param [Array<String>, String] filter_params_event_statuses
1276
+ # List of possible event statuses.
1277
+ # @param [String] filter_params_execution_id
1278
+ # Execution id.
1279
+ # @param [String] filter_params_parameter_key
1280
+ # Param key. DEPRECATED. User parameter_pair_key instead.
1281
+ # @param [String] filter_params_parameter_pair_key
1282
+ # Param key in the key value pair filter.
1283
+ # @param [String] filter_params_parameter_pair_value
1284
+ # Param value in the key value pair filter.
1285
+ # @param [String] filter_params_parameter_type
1286
+ # Param type.
1287
+ # @param [String] filter_params_parameter_value
1288
+ # Param value. DEPRECATED. User parameter_pair_value instead.
1289
+ # @param [Fixnum] filter_params_start_time
1290
+ # Start timestamp.
1291
+ # @param [Array<String>, String] filter_params_task_statuses
1292
+ # List of possible task statuses.
1293
+ # @param [String] filter_params_workflow_name
1294
+ # Workflow name.
1295
+ # @param [String] order_by
1296
+ # Optional. The results would be returned in order you specified here. Currently
1297
+ # supporting "last_modified_time" and "create_time".
1298
+ # @param [Fixnum] page_size
1299
+ # Optional. The size of entries in the response.
1300
+ # @param [String] page_token
1301
+ # Optional. The token returned in the previous response.
1302
+ # @param [String] read_mask
1303
+ # Optional. View mask for the response data. If set, only the field specified
1304
+ # will be returned as part of the result. If not set, all fields in event
1305
+ # execution info will be filled and returned.
1306
+ # @param [Boolean] refresh_acl
1307
+ # Optional. If true, the service will use the most recent acl information to
1308
+ # list event execution infos and renew the acl cache. Note that fetching the
1309
+ # most recent acl is synchronous, so it will increase RPC call latency.
1310
+ # @param [Boolean] truncate_params
1311
+ # Optional. If true, the service will truncate the params to only keep the first
1312
+ # 1000 characters of string params and empty the executions in order to make
1313
+ # response smaller. Only works for UI and when the params fields are not
1314
+ # filtered out.
1315
+ # @param [String] fields
1316
+ # Selector specifying which fields to include in a partial response.
1317
+ # @param [String] quota_user
1318
+ # Available to use for quota purposes for server-side applications. Can be any
1319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1320
+ # @param [Google::Apis::RequestOptions] options
1321
+ # Request-specific options
1322
+ #
1323
+ # @yield [result, err] Result & error if block supplied
1324
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse] parsed result object
1325
+ # @yieldparam err [StandardError] error object if request failed
1326
+ #
1327
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse]
1328
+ #
1329
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1330
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1331
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1332
+ def list_project_location_integration_executions(parent, filter: nil, filter_params_custom_filter: nil, filter_params_end_time: nil, filter_params_event_statuses: nil, filter_params_execution_id: nil, filter_params_parameter_key: nil, filter_params_parameter_pair_key: nil, filter_params_parameter_pair_value: nil, filter_params_parameter_type: nil, filter_params_parameter_value: nil, filter_params_start_time: nil, filter_params_task_statuses: nil, filter_params_workflow_name: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, refresh_acl: nil, truncate_params: nil, fields: nil, quota_user: nil, options: nil, &block)
1333
+ command = make_simple_command(:get, 'v1/{+parent}/executions', options)
1334
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse::Representation
1335
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse
1336
+ command.params['parent'] = parent unless parent.nil?
1337
+ command.query['filter'] = filter unless filter.nil?
1338
+ command.query['filterParams.customFilter'] = filter_params_custom_filter unless filter_params_custom_filter.nil?
1339
+ command.query['filterParams.endTime'] = filter_params_end_time unless filter_params_end_time.nil?
1340
+ command.query['filterParams.eventStatuses'] = filter_params_event_statuses unless filter_params_event_statuses.nil?
1341
+ command.query['filterParams.executionId'] = filter_params_execution_id unless filter_params_execution_id.nil?
1342
+ command.query['filterParams.parameterKey'] = filter_params_parameter_key unless filter_params_parameter_key.nil?
1343
+ command.query['filterParams.parameterPairKey'] = filter_params_parameter_pair_key unless filter_params_parameter_pair_key.nil?
1344
+ command.query['filterParams.parameterPairValue'] = filter_params_parameter_pair_value unless filter_params_parameter_pair_value.nil?
1345
+ command.query['filterParams.parameterType'] = filter_params_parameter_type unless filter_params_parameter_type.nil?
1346
+ command.query['filterParams.parameterValue'] = filter_params_parameter_value unless filter_params_parameter_value.nil?
1347
+ command.query['filterParams.startTime'] = filter_params_start_time unless filter_params_start_time.nil?
1348
+ command.query['filterParams.taskStatuses'] = filter_params_task_statuses unless filter_params_task_statuses.nil?
1349
+ command.query['filterParams.workflowName'] = filter_params_workflow_name unless filter_params_workflow_name.nil?
1350
+ command.query['orderBy'] = order_by unless order_by.nil?
1351
+ command.query['pageSize'] = page_size unless page_size.nil?
1352
+ command.query['pageToken'] = page_token unless page_token.nil?
1353
+ command.query['readMask'] = read_mask unless read_mask.nil?
1354
+ command.query['refreshAcl'] = refresh_acl unless refresh_acl.nil?
1355
+ command.query['truncateParams'] = truncate_params unless truncate_params.nil?
1356
+ command.query['fields'] = fields unless fields.nil?
1357
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1358
+ execute_or_queue_command(command, &block)
1359
+ end
1360
+
1361
+ # * Lifts suspension for advanced suspension task. Fetch corresponding
1362
+ # suspension with provided suspension Id, resolve suspension, and set up
1363
+ # suspension result for the Suspension Task.
1364
+ # @param [String] name
1365
+ # Required. The resource that the suspension belongs to. "projects/`project`/
1366
+ # locations/`location`/products/`product`/integrations/`integration`/executions/`
1367
+ # execution`/suspensions/`suspenion`" format.
1368
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest] google_cloud_integrations_v1alpha_lift_suspension_request_object
1369
+ # @param [String] fields
1370
+ # Selector specifying which fields to include in a partial response.
1371
+ # @param [String] quota_user
1372
+ # Available to use for quota purposes for server-side applications. Can be any
1373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1374
+ # @param [Google::Apis::RequestOptions] options
1375
+ # Request-specific options
1376
+ #
1377
+ # @yield [result, err] Result & error if block supplied
1378
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse] parsed result object
1379
+ # @yieldparam err [StandardError] error object if request failed
1380
+ #
1381
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse]
1382
+ #
1383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1386
+ def lift_project_location_integration_execution_suspension(name, google_cloud_integrations_v1alpha_lift_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1387
+ command = make_simple_command(:post, 'v1/{+name}:lift', options)
1388
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest::Representation
1389
+ command.request_object = google_cloud_integrations_v1alpha_lift_suspension_request_object
1390
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::Representation
1391
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
1392
+ command.params['name'] = name unless name.nil?
1393
+ command.query['fields'] = fields unless fields.nil?
1394
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1395
+ execute_or_queue_command(command, &block)
1396
+ end
1397
+
1398
+ # * Lists suspensions associated with a specific execution. Only those with
1399
+ # permissions to resolve the relevant suspensions will be able to view them.
1400
+ # @param [String] parent
1401
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
1402
+ # integrations/`integration_name`/executions/`execution_name`
1403
+ # @param [String] filter
1404
+ # Standard filter field.
1405
+ # @param [String] order_by
1406
+ # Field name to order by.
1407
+ # @param [Fixnum] page_size
1408
+ # Maximum number of entries in the response.
1409
+ # @param [String] page_token
1410
+ # Token to retrieve a specific page.
1411
+ # @param [String] fields
1412
+ # Selector specifying which fields to include in a partial response.
1413
+ # @param [String] quota_user
1414
+ # Available to use for quota purposes for server-side applications. Can be any
1415
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1416
+ # @param [Google::Apis::RequestOptions] options
1417
+ # Request-specific options
1418
+ #
1419
+ # @yield [result, err] Result & error if block supplied
1420
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse] parsed result object
1421
+ # @yieldparam err [StandardError] error object if request failed
1422
+ #
1423
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse]
1424
+ #
1425
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1426
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1427
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1428
+ def list_project_location_integration_execution_suspensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1429
+ command = make_simple_command(:get, 'v1/{+parent}/suspensions', options)
1430
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse::Representation
1431
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse
1432
+ command.params['parent'] = parent unless parent.nil?
1433
+ command.query['filter'] = filter unless filter.nil?
1434
+ command.query['orderBy'] = order_by unless order_by.nil?
1435
+ command.query['pageSize'] = page_size unless page_size.nil?
1436
+ command.query['pageToken'] = page_token unless page_token.nil?
1437
+ command.query['fields'] = fields unless fields.nil?
1438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1439
+ execute_or_queue_command(command, &block)
1440
+ end
1441
+
1442
+ # * Resolves (lifts/rejects) any number of suspensions. If the integration is
1443
+ # already running, only the status of the suspension is updated. Otherwise, the
1444
+ # suspended integration will begin execution again.
1445
+ # @param [String] name
1446
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
1447
+ # integrations/`integration_name`/executions/`execution_name`/suspensions/`
1448
+ # suspension_id`
1449
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest] google_cloud_integrations_v1alpha_resolve_suspension_request_object
1450
+ # @param [String] fields
1451
+ # Selector specifying which fields to include in a partial response.
1452
+ # @param [String] quota_user
1453
+ # Available to use for quota purposes for server-side applications. Can be any
1454
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1455
+ # @param [Google::Apis::RequestOptions] options
1456
+ # Request-specific options
1457
+ #
1458
+ # @yield [result, err] Result & error if block supplied
1459
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse] parsed result object
1460
+ # @yieldparam err [StandardError] error object if request failed
1461
+ #
1462
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse]
1463
+ #
1464
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1465
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1466
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1467
+ def resolve_project_location_integration_execution_suspension(name, google_cloud_integrations_v1alpha_resolve_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1468
+ command = make_simple_command(:post, 'v1/{+name}:resolve', options)
1469
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest::Representation
1470
+ command.request_object = google_cloud_integrations_v1alpha_resolve_suspension_request_object
1471
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::Representation
1472
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
1473
+ command.params['name'] = name unless name.nil?
1474
+ command.query['fields'] = fields unless fields.nil?
1475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1476
+ execute_or_queue_command(command, &block)
1477
+ end
1478
+
1479
+ # Lists the snapshots of a given integration executions. This RPC is not being
1480
+ # used.
1481
+ # @param [String] parent
1482
+ # Required. The parent resource name of the integration execution.
1483
+ # @param [String] filter
1484
+ # Currently supports filter by `execution_info_id` or `execution_snapshot_id`.
1485
+ # @param [Fixnum] page_size
1486
+ # Number of entries to be returned in a page.
1487
+ # @param [String] page_token
1488
+ # The token used to retrieve the next page results.
1489
+ # @param [String] read_mask
1490
+ # View mask for the response data. If set, only the field specified will be
1491
+ # returned as part of the result. If not set, all fields in event execution
1492
+ # snapshot will be filled and returned.
1493
+ # @param [String] fields
1494
+ # Selector specifying which fields to include in a partial response.
1495
+ # @param [String] quota_user
1496
+ # Available to use for quota purposes for server-side applications. Can be any
1497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1498
+ # @param [Google::Apis::RequestOptions] options
1499
+ # Request-specific options
1500
+ #
1501
+ # @yield [result, err] Result & error if block supplied
1502
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse] parsed result object
1503
+ # @yieldparam err [StandardError] error object if request failed
1504
+ #
1505
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse]
1506
+ #
1507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1510
+ def list_project_location_integration_executionsnapshots(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1511
+ command = make_simple_command(:get, 'v1/{+parent}/executionsnapshots', options)
1512
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse::Representation
1513
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse
1514
+ command.params['parent'] = parent unless parent.nil?
1515
+ command.query['filter'] = filter unless filter.nil?
1516
+ command.query['pageSize'] = page_size unless page_size.nil?
1517
+ command.query['pageToken'] = page_token unless page_token.nil?
1518
+ command.query['readMask'] = read_mask unless read_mask.nil?
1519
+ command.query['fields'] = fields unless fields.nil?
1520
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1521
+ execute_or_queue_command(command, &block)
1522
+ end
1523
+
1524
+ # Soft-deletes the integration. Changes the status of the integration to
1525
+ # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
1526
+ # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
1527
+ # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
1528
+ # exception if the version being archived is DRAFT, and if the `locked_by` user
1529
+ # is not the same as the user performing the Archive. Audit fields updated
1530
+ # include last_modified_timestamp, last_modified_by. Any existing lock is
1531
+ # released when Archiving a integration. Currently, there is no unarchive
1532
+ # mechanism.
1533
+ # @param [String] name
1534
+ # Required. The version to archive. Format: projects/`project`/locations/`
1535
+ # location`/integrations/`integration`/versions/`version`
1536
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest] google_cloud_integrations_v1alpha_archive_integration_version_request_object
1537
+ # @param [String] fields
1538
+ # Selector specifying which fields to include in a partial response.
1539
+ # @param [String] quota_user
1540
+ # Available to use for quota purposes for server-side applications. Can be any
1541
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1542
+ # @param [Google::Apis::RequestOptions] options
1543
+ # Request-specific options
1544
+ #
1545
+ # @yield [result, err] Result & error if block supplied
1546
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse] parsed result object
1547
+ # @yieldparam err [StandardError] error object if request failed
1548
+ #
1549
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse]
1550
+ #
1551
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1552
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1553
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1554
+ def archive_project_location_integration_version(name, google_cloud_integrations_v1alpha_archive_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1555
+ command = make_simple_command(:post, 'v1/{+name}:archive', options)
1556
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest::Representation
1557
+ command.request_object = google_cloud_integrations_v1alpha_archive_integration_version_request_object
1558
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse::Representation
1559
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse
1560
+ command.params['name'] = name unless name.nil?
1561
+ command.query['fields'] = fields unless fields.nil?
1562
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1563
+ execute_or_queue_command(command, &block)
1564
+ end
1565
+
1566
+ # Create a integration with a draft version in the specified project.
1567
+ # @param [String] parent
1568
+ # Required. The parent resource where this version will be created. Format:
1569
+ # projects/`project`/locations/`location`/integrations/`integration`
1570
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
1571
+ # @param [Boolean] new_integration
1572
+ # Set this flag to true, if draft version is to be created for a brand new
1573
+ # integration. False, if the request is for an existing integration. For
1574
+ # backward compatibility reasons, even if this flag is set to `false` and no
1575
+ # existing integration is found, a new draft integration will still be created.
1576
+ # @param [String] fields
1577
+ # Selector specifying which fields to include in a partial response.
1578
+ # @param [String] quota_user
1579
+ # Available to use for quota purposes for server-side applications. Can be any
1580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1581
+ # @param [Google::Apis::RequestOptions] options
1582
+ # Request-specific options
1583
+ #
1584
+ # @yield [result, err] Result & error if block supplied
1585
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
1586
+ # @yieldparam err [StandardError] error object if request failed
1587
+ #
1588
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
1589
+ #
1590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1593
+ def create_project_location_integration_version(parent, google_cloud_integrations_v1alpha_integration_version_object = nil, new_integration: nil, fields: nil, quota_user: nil, options: nil, &block)
1594
+ command = make_simple_command(:post, 'v1/{+parent}/versions', options)
1595
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1596
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
1597
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1598
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
1599
+ command.params['parent'] = parent unless parent.nil?
1600
+ command.query['newIntegration'] = new_integration unless new_integration.nil?
1601
+ command.query['fields'] = fields unless fields.nil?
1602
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1603
+ execute_or_queue_command(command, &block)
1604
+ end
1605
+
1606
+ # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
1607
+ # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
1608
+ # tags do not change. This RPC throws an exception if the version being snapshot
1609
+ # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
1610
+ # @param [String] name
1611
+ # Required. The version to deactivate. Format: projects/`project`/locations/`
1612
+ # location`/integrations/`integration`/versions/`version`
1613
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest] google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
1614
+ # @param [String] fields
1615
+ # Selector specifying which fields to include in a partial response.
1616
+ # @param [String] quota_user
1617
+ # Available to use for quota purposes for server-side applications. Can be any
1618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1619
+ # @param [Google::Apis::RequestOptions] options
1620
+ # Request-specific options
1621
+ #
1622
+ # @yield [result, err] Result & error if block supplied
1623
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse] parsed result object
1624
+ # @yieldparam err [StandardError] error object if request failed
1625
+ #
1626
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse]
1627
+ #
1628
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1629
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1630
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1631
+ def deactivate_project_location_integration_version(name, google_cloud_integrations_v1alpha_deactivate_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1632
+ command = make_simple_command(:post, 'v1/{+name}:deactivate', options)
1633
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest::Representation
1634
+ command.request_object = google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
1635
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse::Representation
1636
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse
1637
+ command.params['name'] = name unless name.nil?
1638
+ command.query['fields'] = fields unless fields.nil?
1639
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1640
+ execute_or_queue_command(command, &block)
1641
+ end
1642
+
1643
+ # Soft-deletes the integration. Changes the status of the integration to
1644
+ # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
1645
+ # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
1646
+ # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
1647
+ # exception if the version being deleted is DRAFT, and if the `locked_by` user
1648
+ # is not the same as the user performing the Delete. Audit fields updated
1649
+ # include last_modified_timestamp, last_modified_by. Any existing lock is
1650
+ # released when Deleting a integration. Currently, there is no undelete
1651
+ # mechanism.
1652
+ # @param [String] name
1653
+ # Required. The version to delete. Format: projects/`project`/locations/`
1654
+ # location`/integrations/`integration`/versions/`version`
1655
+ # @param [String] fields
1656
+ # Selector specifying which fields to include in a partial response.
1657
+ # @param [String] quota_user
1658
+ # Available to use for quota purposes for server-side applications. Can be any
1659
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1660
+ # @param [Google::Apis::RequestOptions] options
1661
+ # Request-specific options
1662
+ #
1663
+ # @yield [result, err] Result & error if block supplied
1664
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
1665
+ # @yieldparam err [StandardError] error object if request failed
1666
+ #
1667
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
1668
+ #
1669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1672
+ def delete_project_location_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
1673
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1674
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
1675
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
1676
+ command.params['name'] = name unless name.nil?
1677
+ command.query['fields'] = fields unless fields.nil?
1678
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1679
+ execute_or_queue_command(command, &block)
1680
+ end
1681
+
1682
+ # Downloads an integration. Retrieves the `IntegrationVersion` for a given `
1683
+ # integration_id` and returns the response as a string.
1684
+ # @param [String] name
1685
+ # Required. The version to download. Format: projects/`project`/locations/`
1686
+ # location`/integrations/`integration`/versions/`version`
1687
+ # @param [String] file_format
1688
+ # File format for download request.
1689
+ # @param [String] fields
1690
+ # Selector specifying which fields to include in a partial response.
1691
+ # @param [String] quota_user
1692
+ # Available to use for quota purposes for server-side applications. Can be any
1693
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1694
+ # @param [Google::Apis::RequestOptions] options
1695
+ # Request-specific options
1696
+ #
1697
+ # @yield [result, err] Result & error if block supplied
1698
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse] parsed result object
1699
+ # @yieldparam err [StandardError] error object if request failed
1700
+ #
1701
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse]
1702
+ #
1703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1706
+ def download_project_location_integration_version(name, file_format: nil, fields: nil, quota_user: nil, options: nil, &block)
1707
+ command = make_simple_command(:get, 'v1/{+name}:download', options)
1708
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse::Representation
1709
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse
1710
+ command.params['name'] = name unless name.nil?
1711
+ command.query['fileFormat'] = file_format unless file_format.nil?
1712
+ command.query['fields'] = fields unless fields.nil?
1713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1714
+ execute_or_queue_command(command, &block)
1715
+ end
1716
+
1717
+ # Get a integration in the specified project.
1718
+ # @param [String] name
1719
+ # Required. The version to retrieve. Format: projects/`project`/locations/`
1720
+ # location`/integrations/`integration`/versions/`version`
1721
+ # @param [String] fields
1722
+ # Selector specifying which fields to include in a partial response.
1723
+ # @param [String] quota_user
1724
+ # Available to use for quota purposes for server-side applications. Can be any
1725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1726
+ # @param [Google::Apis::RequestOptions] options
1727
+ # Request-specific options
1728
+ #
1729
+ # @yield [result, err] Result & error if block supplied
1730
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
1731
+ # @yieldparam err [StandardError] error object if request failed
1732
+ #
1733
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
1734
+ #
1735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1738
+ def get_project_location_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
1739
+ command = make_simple_command(:get, 'v1/{+name}', options)
1740
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1741
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
1742
+ command.params['name'] = name unless name.nil?
1743
+ command.query['fields'] = fields unless fields.nil?
1744
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1745
+ execute_or_queue_command(command, &block)
1746
+ end
1747
+
1748
+ # Returns the list of all integration versions in the specified project.
1749
+ # @param [String] parent
1750
+ # Required. The parent resource where this version will be created. Format:
1751
+ # projects/`project`/locations/`location`/integrations/`integration`
1752
+ # Specifically, when parent equals: 1. projects//locations//integrations/,
1753
+ # Meaning: "List versions (with filter) for a particular integration". 2.
1754
+ # projects//locations//integrations/- Meaning: "List versions (with filter) for
1755
+ # a client within a particular region". 3. projects//locations/-/integrations/-
1756
+ # Meaning: "List versions (with filter) for a client".
1757
+ # @param [String] field_mask
1758
+ # The field mask which specifies the particular data to be returned.
1759
+ # @param [String] filter
1760
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
1761
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
1762
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
1763
+ # inequality) operators. Negation, conjunction, and disjunction are written
1764
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
1765
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
1766
+ # fields like `task_config`.
1767
+ # @param [String] order_by
1768
+ # The results would be returned in order you specified here. Currently supported
1769
+ # sort keys are: Descending sort order for "last_modified_time", "created_time",
1770
+ # "snapshot_number" Ascending sort order for "name".
1771
+ # @param [Fixnum] page_size
1772
+ # The maximum number of versions to return. The service may return fewer than
1773
+ # this value. If unspecified, at most 50 versions will be returned. The maximum
1774
+ # value is 1000; values above 1000 will be coerced to 1000.
1775
+ # @param [String] page_token
1776
+ # A page token, received from a previous `ListIntegrationVersions` call. Provide
1777
+ # this to retrieve the subsequent page. When paginating, all other parameters
1778
+ # provided to `ListIntegrationVersions` must match the call that provided the
1779
+ # page token.
1780
+ # @param [String] fields
1781
+ # Selector specifying which fields to include in a partial response.
1782
+ # @param [String] quota_user
1783
+ # Available to use for quota purposes for server-side applications. Can be any
1784
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1785
+ # @param [Google::Apis::RequestOptions] options
1786
+ # Request-specific options
1787
+ #
1788
+ # @yield [result, err] Result & error if block supplied
1789
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse] parsed result object
1790
+ # @yieldparam err [StandardError] error object if request failed
1791
+ #
1792
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse]
1793
+ #
1794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1797
+ def list_project_location_integration_versions(parent, field_mask: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1798
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
1799
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::Representation
1800
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
1801
+ command.params['parent'] = parent unless parent.nil?
1802
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
1803
+ command.query['filter'] = filter unless filter.nil?
1804
+ command.query['orderBy'] = order_by unless order_by.nil?
1805
+ command.query['pageSize'] = page_size unless page_size.nil?
1806
+ command.query['pageToken'] = page_token unless page_token.nil?
1807
+ command.query['fields'] = fields unless fields.nil?
1808
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1809
+ execute_or_queue_command(command, &block)
1810
+ end
1811
+
1812
+ # Update a integration with a draft version in the specified project.
1813
+ # @param [String] name
1814
+ # Output only. Auto-generated primary key.
1815
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
1816
+ # @param [String] update_mask
1817
+ # Field mask specifying the fields in the above integration that have been
1818
+ # modified and need to be updated.
1819
+ # @param [String] fields
1820
+ # Selector specifying which fields to include in a partial response.
1821
+ # @param [String] quota_user
1822
+ # Available to use for quota purposes for server-side applications. Can be any
1823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1824
+ # @param [Google::Apis::RequestOptions] options
1825
+ # Request-specific options
1826
+ #
1827
+ # @yield [result, err] Result & error if block supplied
1828
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
1829
+ # @yieldparam err [StandardError] error object if request failed
1830
+ #
1831
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
1832
+ #
1833
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1834
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1835
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1836
+ def patch_project_location_integration_version(name, google_cloud_integrations_v1alpha_integration_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1837
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1838
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1839
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
1840
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1841
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
1842
+ command.params['name'] = name unless name.nil?
1843
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1844
+ command.query['fields'] = fields unless fields.nil?
1845
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1846
+ execute_or_queue_command(command, &block)
1847
+ end
1848
+
1849
+ # This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state.
1850
+ # This RPC throws an exception if the version being published is DRAFT, and if
1851
+ # the `locked_by` user is not the same as the user performing the Publish. Audit
1852
+ # fields updated include last_published_timestamp, last_published_by,
1853
+ # last_modified_timestamp, last_modified_by. Any existing lock is on this
1854
+ # integration is released.
1855
+ # @param [String] name
1856
+ # Required. The version to publish. Format: projects/`project`/locations/`
1857
+ # location`/integrations/`integration`/versions/`version`
1858
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_publish_integration_version_request_object
1859
+ # @param [String] fields
1860
+ # Selector specifying which fields to include in a partial response.
1861
+ # @param [String] quota_user
1862
+ # Available to use for quota purposes for server-side applications. Can be any
1863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1864
+ # @param [Google::Apis::RequestOptions] options
1865
+ # Request-specific options
1866
+ #
1867
+ # @yield [result, err] Result & error if block supplied
1868
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse] parsed result object
1869
+ # @yieldparam err [StandardError] error object if request failed
1870
+ #
1871
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse]
1872
+ #
1873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1876
+ def publish_project_location_integration_version(name, google_cloud_integrations_v1alpha_publish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1877
+ command = make_simple_command(:post, 'v1/{+name}:publish', options)
1878
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest::Representation
1879
+ command.request_object = google_cloud_integrations_v1alpha_publish_integration_version_request_object
1880
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::Representation
1881
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
1882
+ command.params['name'] = name unless name.nil?
1883
+ command.query['fields'] = fields unless fields.nil?
1884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1885
+ execute_or_queue_command(command, &block)
1886
+ end
1887
+
1888
+ # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
1889
+ # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
1890
+ # tags do not change. This RPC throws an exception if the version being snapshot
1891
+ # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
1892
+ # @param [String] name
1893
+ # Required. The version to deactivate. Format: projects/`project`/locations/`
1894
+ # location`/integrations/`integration`/versions/`version`
1895
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
1896
+ # @param [String] fields
1897
+ # Selector specifying which fields to include in a partial response.
1898
+ # @param [String] quota_user
1899
+ # Available to use for quota purposes for server-side applications. Can be any
1900
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1901
+ # @param [Google::Apis::RequestOptions] options
1902
+ # Request-specific options
1903
+ #
1904
+ # @yield [result, err] Result & error if block supplied
1905
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
1906
+ # @yieldparam err [StandardError] error object if request failed
1907
+ #
1908
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
1909
+ #
1910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1913
+ def unpublish_project_location_integration_version(name, google_cloud_integrations_v1alpha_unpublish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1914
+ command = make_simple_command(:post, 'v1/{+name}:unpublish', options)
1915
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest::Representation
1916
+ command.request_object = google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
1917
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
1918
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
1919
+ command.params['name'] = name unless name.nil?
1920
+ command.query['fields'] = fields unless fields.nil?
1921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1922
+ execute_or_queue_command(command, &block)
1923
+ end
1924
+
1925
+ # Uploads an integration. The content can be a previously downloaded integration.
1926
+ # Performs the same function as CreateDraftIntegrationVersion, but accepts
1927
+ # input in a string format, which holds the complete representation of the
1928
+ # IntegrationVersion content.
1929
+ # @param [String] parent
1930
+ # Required. The version to upload. Format: projects/`project`/locations/`
1931
+ # location`/integrations/`integration`
1932
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest] google_cloud_integrations_v1alpha_upload_integration_version_request_object
1933
+ # @param [String] fields
1934
+ # Selector specifying which fields to include in a partial response.
1935
+ # @param [String] quota_user
1936
+ # Available to use for quota purposes for server-side applications. Can be any
1937
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1938
+ # @param [Google::Apis::RequestOptions] options
1939
+ # Request-specific options
1940
+ #
1941
+ # @yield [result, err] Result & error if block supplied
1942
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse] parsed result object
1943
+ # @yieldparam err [StandardError] error object if request failed
1944
+ #
1945
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse]
1946
+ #
1947
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1948
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1949
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1950
+ def upload_project_location_integration_version(parent, google_cloud_integrations_v1alpha_upload_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1951
+ command = make_simple_command(:post, 'v1/{+parent}/versions:upload', options)
1952
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest::Representation
1953
+ command.request_object = google_cloud_integrations_v1alpha_upload_integration_version_request_object
1954
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse::Representation
1955
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse
1956
+ command.params['parent'] = parent unless parent.nil?
1957
+ command.query['fields'] = fields unless fields.nil?
1958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1959
+ execute_or_queue_command(command, &block)
1960
+ end
1961
+
1962
+ # Validates the given integration. If the id doesn't exist, a NotFoundException
1963
+ # is thrown. If validation fails a CanonicalCodeException is thrown. If there
1964
+ # was no failure an empty response is returned.
1965
+ # @param [String] name
1966
+ # Required. The version to validate. Format: projects/`project`/locations/`
1967
+ # location`/integrations/`integration`/versions/`version`
1968
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest] google_cloud_integrations_v1alpha_validate_integration_version_request_object
1969
+ # @param [String] fields
1970
+ # Selector specifying which fields to include in a partial response.
1971
+ # @param [String] quota_user
1972
+ # Available to use for quota purposes for server-side applications. Can be any
1973
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1974
+ # @param [Google::Apis::RequestOptions] options
1975
+ # Request-specific options
1976
+ #
1977
+ # @yield [result, err] Result & error if block supplied
1978
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse] parsed result object
1979
+ # @yieldparam err [StandardError] error object if request failed
1980
+ #
1981
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse]
1982
+ #
1983
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1984
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1985
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1986
+ def validate_project_location_integration_version(name, google_cloud_integrations_v1alpha_validate_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1987
+ command = make_simple_command(:post, 'v1/{+name}:validate', options)
1988
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest::Representation
1989
+ command.request_object = google_cloud_integrations_v1alpha_validate_integration_version_request_object
1990
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse::Representation
1991
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse
1992
+ command.params['name'] = name unless name.nil?
1993
+ command.query['fields'] = fields unless fields.nil?
1994
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1995
+ execute_or_queue_command(command, &block)
1996
+ end
1997
+
1998
+ # PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE
1999
+ # SERVICE. Create a bundle.
2000
+ # @param [String] parent
2001
+ # Required. The location resource of the request.
2002
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateBundleRequest] google_cloud_integrations_v1alpha_create_bundle_request_object
2003
+ # @param [String] fields
2004
+ # Selector specifying which fields to include in a partial response.
2005
+ # @param [String] quota_user
2006
+ # Available to use for quota purposes for server-side applications. Can be any
2007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2008
+ # @param [Google::Apis::RequestOptions] options
2009
+ # Request-specific options
2010
+ #
2011
+ # @yield [result, err] Result & error if block supplied
2012
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateBundleResponse] parsed result object
2013
+ # @yieldparam err [StandardError] error object if request failed
2014
+ #
2015
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateBundleResponse]
2016
+ #
2017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2020
+ def create_project_location_product_bundle(parent, google_cloud_integrations_v1alpha_create_bundle_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2021
+ command = make_simple_command(:post, 'v1/{+parent}:createBundle', options)
2022
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateBundleRequest::Representation
2023
+ command.request_object = google_cloud_integrations_v1alpha_create_bundle_request_object
2024
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateBundleResponse::Representation
2025
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateBundleResponse
2026
+ command.params['parent'] = parent unless parent.nil?
2027
+ command.query['fields'] = fields unless fields.nil?
2028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2029
+ execute_or_queue_command(command, &block)
2030
+ end
2031
+
2032
+ # This is a UI only method and will be moved away. Returns a list of common
2033
+ # tasks.
2034
+ # @param [String] parent
2035
+ # Required. The location resource of the request. This is not going to be used
2036
+ # but preserve the field for future.
2037
+ # @param [String] fields
2038
+ # Selector specifying which fields to include in a partial response.
2039
+ # @param [String] quota_user
2040
+ # Available to use for quota purposes for server-side applications. Can be any
2041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2042
+ # @param [Google::Apis::RequestOptions] options
2043
+ # Request-specific options
2044
+ #
2045
+ # @yield [result, err] Result & error if block supplied
2046
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse] parsed result object
2047
+ # @yieldparam err [StandardError] error object if request failed
2048
+ #
2049
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse]
2050
+ #
2051
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2052
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2053
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2054
+ def list_project_location_product_task_entities(parent, fields: nil, quota_user: nil, options: nil, &block)
2055
+ command = make_simple_command(:get, 'v1/{+parent}:listTaskEntities', options)
2056
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse::Representation
2057
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse
2058
+ command.params['parent'] = parent unless parent.nil?
2059
+ command.query['fields'] = fields unless fields.nil?
2060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2061
+ execute_or_queue_command(command, &block)
2062
+ end
2063
+
2064
+ # Creates an auth config record. Fetch corresponding credentials for specific
2065
+ # auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
2066
+ # auth config with Cloud KMS and store the encrypted credentials in Spanner.
2067
+ # Returns the encrypted auth config.
2068
+ # @param [String] parent
2069
+ # Required. "projects/`project`/locations/`location`" format.
2070
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
2071
+ # @param [String] client_certificate_encrypted_private_key
2072
+ # The ssl certificate encoded in PEM format. This string must include the begin
2073
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2074
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2075
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2076
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2077
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2078
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2079
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2080
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2081
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2082
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2083
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2084
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2085
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2086
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2087
+ # @param [String] client_certificate_passphrase
2088
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
2089
+ # passphrase' is not the password for web server, but an extra layer of security
2090
+ # to protected private key.
2091
+ # @param [String] client_certificate_ssl_certificate
2092
+ # The ssl certificate encoded in PEM format. This string must include the begin
2093
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2094
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2095
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2096
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2097
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2098
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2099
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2100
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2101
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2102
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2103
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2104
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2105
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2106
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2107
+ # @param [String] fields
2108
+ # Selector specifying which fields to include in a partial response.
2109
+ # @param [String] quota_user
2110
+ # Available to use for quota purposes for server-side applications. Can be any
2111
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2112
+ # @param [Google::Apis::RequestOptions] options
2113
+ # Request-specific options
2114
+ #
2115
+ # @yield [result, err] Result & error if block supplied
2116
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2117
+ # @yieldparam err [StandardError] error object if request failed
2118
+ #
2119
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2120
+ #
2121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2124
+ def create_project_location_product_auth_config(parent, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, fields: nil, quota_user: nil, options: nil, &block)
2125
+ command = make_simple_command(:post, 'v1/{+parent}/authConfigs', options)
2126
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2127
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
2128
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2129
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2130
+ command.params['parent'] = parent unless parent.nil?
2131
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
2132
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
2133
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
2134
+ command.query['fields'] = fields unless fields.nil?
2135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2136
+ execute_or_queue_command(command, &block)
2137
+ end
2138
+
2139
+ # Deletes an auth config.
2140
+ # @param [String] name
2141
+ # Required. The name that is associated with the AuthConfig.
2142
+ # @param [String] fields
2143
+ # Selector specifying which fields to include in a partial response.
2144
+ # @param [String] quota_user
2145
+ # Available to use for quota purposes for server-side applications. Can be any
2146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2147
+ # @param [Google::Apis::RequestOptions] options
2148
+ # Request-specific options
2149
+ #
2150
+ # @yield [result, err] Result & error if block supplied
2151
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
2152
+ # @yieldparam err [StandardError] error object if request failed
2153
+ #
2154
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
2155
+ #
2156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2159
+ def delete_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
2160
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2161
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
2162
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
2163
+ command.params['name'] = name unless name.nil?
2164
+ command.query['fields'] = fields unless fields.nil?
2165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2166
+ execute_or_queue_command(command, &block)
2167
+ end
2168
+
2169
+ # Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
2170
+ # exception will be thrown. Returns the decrypted auth config.
2171
+ # @param [String] name
2172
+ # Required. The name that is associated with the AuthConfig.
2173
+ # @param [String] fields
2174
+ # Selector specifying which fields to include in a partial response.
2175
+ # @param [String] quota_user
2176
+ # Available to use for quota purposes for server-side applications. Can be any
2177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2178
+ # @param [Google::Apis::RequestOptions] options
2179
+ # Request-specific options
2180
+ #
2181
+ # @yield [result, err] Result & error if block supplied
2182
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2183
+ # @yieldparam err [StandardError] error object if request failed
2184
+ #
2185
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2186
+ #
2187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2190
+ def get_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
2191
+ command = make_simple_command(:get, 'v1/{+name}', options)
2192
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2193
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2194
+ command.params['name'] = name unless name.nil?
2195
+ command.query['fields'] = fields unless fields.nil?
2196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2197
+ execute_or_queue_command(command, &block)
2198
+ end
2199
+
2200
+ # Lists all auth configs that match the filter. Restrict to auth configs belong
2201
+ # to the current client only.
2202
+ # @param [String] parent
2203
+ # Required. The client, which owns this collection of AuthConfigs.
2204
+ # @param [String] filter
2205
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
2206
+ # guides/v2/list-filters.
2207
+ # @param [Fixnum] page_size
2208
+ # The size of entries in the response. If unspecified, defaults to 100.
2209
+ # @param [String] page_token
2210
+ # The token returned in the previous response.
2211
+ # @param [String] read_mask
2212
+ # The mask which specifies fields that need to be returned in the AuthConfig's
2213
+ # response.
2214
+ # @param [String] fields
2215
+ # Selector specifying which fields to include in a partial response.
2216
+ # @param [String] quota_user
2217
+ # Available to use for quota purposes for server-side applications. Can be any
2218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2219
+ # @param [Google::Apis::RequestOptions] options
2220
+ # Request-specific options
2221
+ #
2222
+ # @yield [result, err] Result & error if block supplied
2223
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse] parsed result object
2224
+ # @yieldparam err [StandardError] error object if request failed
2225
+ #
2226
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse]
2227
+ #
2228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2231
+ def list_project_location_product_auth_configs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2232
+ command = make_simple_command(:get, 'v1/{+parent}/authConfigs', options)
2233
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::Representation
2234
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
2235
+ command.params['parent'] = parent unless parent.nil?
2236
+ command.query['filter'] = filter unless filter.nil?
2237
+ command.query['pageSize'] = page_size unless page_size.nil?
2238
+ command.query['pageToken'] = page_token unless page_token.nil?
2239
+ command.query['readMask'] = read_mask unless read_mask.nil?
2240
+ command.query['fields'] = fields unless fields.nil?
2241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2242
+ execute_or_queue_command(command, &block)
2243
+ end
2244
+
2245
+ # Updates an auth config. If credential is updated, fetch the encrypted auth
2246
+ # config from Spanner, decrypt with Cloud KMS key, update the credential fields,
2247
+ # re-encrypt with Cloud KMS key and update the Spanner record. For other fields,
2248
+ # directly update the Spanner record. Returns the encrypted auth config.
2249
+ # @param [String] name
2250
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
2251
+ # authConfigs/`authConfig`.
2252
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
2253
+ # @param [String] client_certificate_encrypted_private_key
2254
+ # The ssl certificate encoded in PEM format. This string must include the begin
2255
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2256
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2257
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2258
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2259
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2260
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2261
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2262
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2263
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2264
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2265
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2266
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2267
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2268
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2269
+ # @param [String] client_certificate_passphrase
2270
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
2271
+ # passphrase' is not the password for web server, but an extra layer of security
2272
+ # to protected private key.
2273
+ # @param [String] client_certificate_ssl_certificate
2274
+ # The ssl certificate encoded in PEM format. This string must include the begin
2275
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2276
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2277
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2278
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2279
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2280
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2281
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2282
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2283
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2284
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2285
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2286
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2287
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2288
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2289
+ # @param [String] update_mask
2290
+ # Field mask specifying the fields in the above AuthConfig that have been
2291
+ # modified and need to be updated.
2292
+ # @param [String] fields
2293
+ # Selector specifying which fields to include in a partial response.
2294
+ # @param [String] quota_user
2295
+ # Available to use for quota purposes for server-side applications. Can be any
2296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2297
+ # @param [Google::Apis::RequestOptions] options
2298
+ # Request-specific options
2299
+ #
2300
+ # @yield [result, err] Result & error if block supplied
2301
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2302
+ # @yieldparam err [StandardError] error object if request failed
2303
+ #
2304
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2305
+ #
2306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2309
+ def patch_project_location_product_auth_config(name, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2310
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2311
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2312
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
2313
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2314
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2315
+ command.params['name'] = name unless name.nil?
2316
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
2317
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
2318
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
2319
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2320
+ command.query['fields'] = fields unless fields.nil?
2321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2322
+ execute_or_queue_command(command, &block)
2323
+ end
2324
+
2325
+ # Creates a new certificate. The certificate will be registered to the trawler
2326
+ # service and will be encrypted using cloud KMS and stored in Spanner Returns
2327
+ # the certificate.
2328
+ # @param [String] parent
2329
+ # Required. "projects/`project`/locations/`location`" format.
2330
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
2331
+ # @param [String] fields
2332
+ # Selector specifying which fields to include in a partial response.
2333
+ # @param [String] quota_user
2334
+ # Available to use for quota purposes for server-side applications. Can be any
2335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2336
+ # @param [Google::Apis::RequestOptions] options
2337
+ # Request-specific options
2338
+ #
2339
+ # @yield [result, err] Result & error if block supplied
2340
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2341
+ # @yieldparam err [StandardError] error object if request failed
2342
+ #
2343
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2344
+ #
2345
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2346
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2347
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2348
+ def create_project_location_product_certificate(parent, google_cloud_integrations_v1alpha_certificate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2349
+ command = make_simple_command(:post, 'v1/{+parent}/certificates', options)
2350
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2351
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
2352
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2353
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2354
+ command.params['parent'] = parent unless parent.nil?
2355
+ command.query['fields'] = fields unless fields.nil?
2356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2357
+ execute_or_queue_command(command, &block)
2358
+ end
2359
+
2360
+ # Delete a certificate
2361
+ # @param [String] name
2362
+ # Required. The name that is associated with the Certificate.
2363
+ # @param [String] fields
2364
+ # Selector specifying which fields to include in a partial response.
2365
+ # @param [String] quota_user
2366
+ # Available to use for quota purposes for server-side applications. Can be any
2367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2368
+ # @param [Google::Apis::RequestOptions] options
2369
+ # Request-specific options
2370
+ #
2371
+ # @yield [result, err] Result & error if block supplied
2372
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
2373
+ # @yieldparam err [StandardError] error object if request failed
2374
+ #
2375
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
2376
+ #
2377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2380
+ def delete_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
2381
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2382
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
2383
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
2384
+ command.params['name'] = name unless name.nil?
2385
+ command.query['fields'] = fields unless fields.nil?
2386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2387
+ execute_or_queue_command(command, &block)
2388
+ end
2389
+
2390
+ # Get a certificates in the specified project.
2391
+ # @param [String] name
2392
+ # Required. The certificate to retrieve. Format: projects/`project`/locations/`
2393
+ # location`/certificates/`certificate`
2394
+ # @param [String] fields
2395
+ # Selector specifying which fields to include in a partial response.
2396
+ # @param [String] quota_user
2397
+ # Available to use for quota purposes for server-side applications. Can be any
2398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2399
+ # @param [Google::Apis::RequestOptions] options
2400
+ # Request-specific options
2401
+ #
2402
+ # @yield [result, err] Result & error if block supplied
2403
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2404
+ # @yieldparam err [StandardError] error object if request failed
2405
+ #
2406
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2407
+ #
2408
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2409
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2410
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2411
+ def get_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
2412
+ command = make_simple_command(:get, 'v1/{+name}', options)
2413
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2414
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2415
+ command.params['name'] = name unless name.nil?
2416
+ command.query['fields'] = fields unless fields.nil?
2417
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2418
+ execute_or_queue_command(command, &block)
2419
+ end
2420
+
2421
+ # List all the certificates that match the filter. Restrict to certificate of
2422
+ # current client only.
2423
+ # @param [String] parent
2424
+ # Required. The client, which owns this collection of Certificates.
2425
+ # @param [String] filter
2426
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
2427
+ # guides/v2/list-filters.
2428
+ # @param [Fixnum] page_size
2429
+ # The size of entries in the response. If unspecified, defaults to 100.
2430
+ # @param [String] page_token
2431
+ # The token returned in the previous response.
2432
+ # @param [String] read_mask
2433
+ # The mask which specifies fields that need to be returned in the Certificate's
2434
+ # response.
2435
+ # @param [String] fields
2436
+ # Selector specifying which fields to include in a partial response.
2437
+ # @param [String] quota_user
2438
+ # Available to use for quota purposes for server-side applications. Can be any
2439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2440
+ # @param [Google::Apis::RequestOptions] options
2441
+ # Request-specific options
2442
+ #
2443
+ # @yield [result, err] Result & error if block supplied
2444
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse] parsed result object
2445
+ # @yieldparam err [StandardError] error object if request failed
2446
+ #
2447
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse]
2448
+ #
2449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2452
+ def list_project_location_product_certificates(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2453
+ command = make_simple_command(:get, 'v1/{+parent}/certificates', options)
2454
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse::Representation
2455
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse
2456
+ command.params['parent'] = parent unless parent.nil?
2457
+ command.query['filter'] = filter unless filter.nil?
2458
+ command.query['pageSize'] = page_size unless page_size.nil?
2459
+ command.query['pageToken'] = page_token unless page_token.nil?
2460
+ command.query['readMask'] = read_mask unless read_mask.nil?
2461
+ command.query['fields'] = fields unless fields.nil?
2462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2463
+ execute_or_queue_command(command, &block)
2464
+ end
2465
+
2466
+ # Updates the certificate by id. If new certificate file is updated, it will
2467
+ # register with the trawler service, re-encrypt with cloud KMS and update the
2468
+ # Spanner record. Other fields will directly update the Spanner record. Returns
2469
+ # the Certificate.
2470
+ # @param [String] name
2471
+ # Output only. Auto generated primary key
2472
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
2473
+ # @param [String] update_mask
2474
+ # Field mask specifying the fields in the above Certificate that have been
2475
+ # modified and need to be updated.
2476
+ # @param [String] fields
2477
+ # Selector specifying which fields to include in a partial response.
2478
+ # @param [String] quota_user
2479
+ # Available to use for quota purposes for server-side applications. Can be any
2480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2481
+ # @param [Google::Apis::RequestOptions] options
2482
+ # Request-specific options
2483
+ #
2484
+ # @yield [result, err] Result & error if block supplied
2485
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2486
+ # @yieldparam err [StandardError] error object if request failed
2487
+ #
2488
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2489
+ #
2490
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2491
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2492
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2493
+ def patch_project_location_product_certificate(name, google_cloud_integrations_v1alpha_certificate_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2494
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2495
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2496
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
2497
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2498
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2499
+ command.params['name'] = name unless name.nil?
2500
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2501
+ command.query['fields'] = fields unless fields.nil?
2502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2503
+ execute_or_queue_command(command, &block)
2504
+ end
2505
+
2506
+ # Creates an cloud function project.
2507
+ # @param [String] parent
2508
+ # Required. The project that the executed integration belongs to.
2509
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest] google_cloud_integrations_v1alpha_create_cloud_function_request_object
2510
+ # @param [String] fields
2511
+ # Selector specifying which fields to include in a partial response.
2512
+ # @param [String] quota_user
2513
+ # Available to use for quota purposes for server-side applications. Can be any
2514
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2515
+ # @param [Google::Apis::RequestOptions] options
2516
+ # Request-specific options
2517
+ #
2518
+ # @yield [result, err] Result & error if block supplied
2519
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse] parsed result object
2520
+ # @yieldparam err [StandardError] error object if request failed
2521
+ #
2522
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse]
2523
+ #
2524
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2525
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2526
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2527
+ def create_project_location_product_cloud_function(parent, google_cloud_integrations_v1alpha_create_cloud_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2528
+ command = make_simple_command(:post, 'v1/{+parent}/cloudFunctions', options)
2529
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest::Representation
2530
+ command.request_object = google_cloud_integrations_v1alpha_create_cloud_function_request_object
2531
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse::Representation
2532
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse
2533
+ command.params['parent'] = parent unless parent.nil?
2534
+ command.query['fields'] = fields unless fields.nil?
2535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2536
+ execute_or_queue_command(command, &block)
2537
+ end
2538
+
2539
+ # PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE
2540
+ # SERVICE. Soft-deletes the bundle.
2541
+ # @param [String] name
2542
+ # Required. The bundle to archive. Format: projects/`project`/locations/`
2543
+ # location`/integrations/`integration`
2544
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveBundleRequest] google_cloud_integrations_v1alpha_archive_bundle_request_object
2545
+ # @param [String] fields
2546
+ # Selector specifying which fields to include in a partial response.
2547
+ # @param [String] quota_user
2548
+ # Available to use for quota purposes for server-side applications. Can be any
2549
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2550
+ # @param [Google::Apis::RequestOptions] options
2551
+ # Request-specific options
2552
+ #
2553
+ # @yield [result, err] Result & error if block supplied
2554
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveBundleResponse] parsed result object
2555
+ # @yieldparam err [StandardError] error object if request failed
2556
+ #
2557
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveBundleResponse]
2558
+ #
2559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2562
+ def archive_project_location_product_integration_bundle(name, google_cloud_integrations_v1alpha_archive_bundle_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2563
+ command = make_simple_command(:post, 'v1/{+name}:archiveBundle', options)
2564
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveBundleRequest::Representation
2565
+ command.request_object = google_cloud_integrations_v1alpha_archive_bundle_request_object
2566
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveBundleResponse::Representation
2567
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveBundleResponse
2568
+ command.params['name'] = name unless name.nil?
2569
+ command.query['fields'] = fields unless fields.nil?
2570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2571
+ execute_or_queue_command(command, &block)
2572
+ end
2573
+
2574
+ # Executes integrations synchronously by passing the trigger id in the request
2575
+ # body. The request is not returned until the requested executions are either
2576
+ # fulfilled or experienced an error. If the integration name is not specified (
2577
+ # passing `-`), all of the associated integration under the given trigger_id
2578
+ # will be executed. Otherwise only the specified integration for the given `
2579
+ # trigger_id` is executed. This is helpful for execution the integration from UI.
2580
+ # @param [String] name
2581
+ # Required. The integration resource name.
2582
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest] google_cloud_integrations_v1alpha_execute_integrations_request_object
2583
+ # @param [String] fields
2584
+ # Selector specifying which fields to include in a partial response.
2585
+ # @param [String] quota_user
2586
+ # Available to use for quota purposes for server-side applications. Can be any
2587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2588
+ # @param [Google::Apis::RequestOptions] options
2589
+ # Request-specific options
2590
+ #
2591
+ # @yield [result, err] Result & error if block supplied
2592
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse] parsed result object
2593
+ # @yieldparam err [StandardError] error object if request failed
2594
+ #
2595
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse]
2596
+ #
2597
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2598
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2599
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2600
+ def execute_project_location_product_integration(name, google_cloud_integrations_v1alpha_execute_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2601
+ command = make_simple_command(:post, 'v1/{+name}:execute', options)
2602
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest::Representation
2603
+ command.request_object = google_cloud_integrations_v1alpha_execute_integrations_request_object
2604
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::Representation
2605
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
2606
+ command.params['name'] = name unless name.nil?
2607
+ command.query['fields'] = fields unless fields.nil?
2608
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2609
+ execute_or_queue_command(command, &block)
2610
+ end
2611
+
2612
+ # Returns the list of all integrations in the specified project.
2613
+ # @param [String] parent
2614
+ # Required. Project and location from which the integrations should be listed.
2615
+ # Format: projects/`project`
2616
+ # @param [String] filter
2617
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
2618
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
2619
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
2620
+ # inequality) operators. Negation, conjunction, and disjunction are written
2621
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
2622
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
2623
+ # fields like `task_config`.
2624
+ # @param [String] order_by
2625
+ # The results would be returned in order you specified here. Supported sort keys
2626
+ # are: Descending sort order by "last_modified_time", "created_time", "
2627
+ # snapshot_number". Ascending sort order by the integration name.
2628
+ # @param [Fixnum] page_size
2629
+ # The page size for the resquest.
2630
+ # @param [String] page_token
2631
+ # The page token for the resquest.
2632
+ # @param [String] fields
2633
+ # Selector specifying which fields to include in a partial response.
2634
+ # @param [String] quota_user
2635
+ # Available to use for quota purposes for server-side applications. Can be any
2636
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2637
+ # @param [Google::Apis::RequestOptions] options
2638
+ # Request-specific options
2639
+ #
2640
+ # @yield [result, err] Result & error if block supplied
2641
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse] parsed result object
2642
+ # @yieldparam err [StandardError] error object if request failed
2643
+ #
2644
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse]
2645
+ #
2646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2649
+ def list_project_location_product_integrations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2650
+ command = make_simple_command(:get, 'v1/{+parent}/integrations', options)
2651
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse::Representation
2652
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse
2653
+ command.params['parent'] = parent unless parent.nil?
2654
+ command.query['filter'] = filter unless filter.nil?
2655
+ command.query['orderBy'] = order_by unless order_by.nil?
2656
+ command.query['pageSize'] = page_size unless page_size.nil?
2657
+ command.query['pageToken'] = page_token unless page_token.nil?
2658
+ command.query['fields'] = fields unless fields.nil?
2659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2660
+ execute_or_queue_command(command, &block)
2661
+ end
2662
+
2663
+ # Get execution stats
2664
+ # @param [String] parent
2665
+ # Required. The parent resource name: `parent=projects/*/locations/*`.
2666
+ # @param [String] fields
2667
+ # Selector specifying which fields to include in a partial response.
2668
+ # @param [String] quota_user
2669
+ # Available to use for quota purposes for server-side applications. Can be any
2670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2671
+ # @param [Google::Apis::RequestOptions] options
2672
+ # Request-specific options
2673
+ #
2674
+ # @yield [result, err] Result & error if block supplied
2675
+ # @yieldparam result [NilClass] No result returned for this method
2676
+ # @yieldparam err [StandardError] error object if request failed
2677
+ #
2678
+ # @return [void]
2679
+ #
2680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2683
+ def monitorexecutionstats_project_location_product_integration(parent, fields: nil, quota_user: nil, options: nil, &block)
2684
+ command = make_simple_command(:post, 'v1/{+parent}:monitorexecutionstats', options)
2685
+ command.params['parent'] = parent unless parent.nil?
2686
+ command.query['fields'] = fields unless fields.nil?
2687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2688
+ execute_or_queue_command(command, &block)
2689
+ end
2690
+
2691
+ # Schedules an integration for execution by passing the trigger id and the
2692
+ # scheduled time in the request body.
2693
+ # @param [String] name
2694
+ # The integration resource name.
2695
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest] google_cloud_integrations_v1alpha_schedule_integrations_request_object
2696
+ # @param [String] fields
2697
+ # Selector specifying which fields to include in a partial response.
2698
+ # @param [String] quota_user
2699
+ # Available to use for quota purposes for server-side applications. Can be any
2700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2701
+ # @param [Google::Apis::RequestOptions] options
2702
+ # Request-specific options
2703
+ #
2704
+ # @yield [result, err] Result & error if block supplied
2705
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse] parsed result object
2706
+ # @yieldparam err [StandardError] error object if request failed
2707
+ #
2708
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse]
2709
+ #
2710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2713
+ def schedule_project_location_product_integration(name, google_cloud_integrations_v1alpha_schedule_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2714
+ command = make_simple_command(:post, 'v1/{+name}:schedule', options)
2715
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest::Representation
2716
+ command.request_object = google_cloud_integrations_v1alpha_schedule_integrations_request_object
2717
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::Representation
2718
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
2719
+ command.params['name'] = name unless name.nil?
2720
+ command.query['fields'] = fields unless fields.nil?
2721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2722
+ execute_or_queue_command(command, &block)
2723
+ end
2724
+
2725
+ # Execute the integration in draft state
2726
+ # @param [String] name
2727
+ # Output only. Auto-generated primary key.
2728
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest] google_cloud_integrations_v1alpha_test_integrations_request_object
2729
+ # @param [String] fields
2730
+ # Selector specifying which fields to include in a partial response.
2731
+ # @param [String] quota_user
2732
+ # Available to use for quota purposes for server-side applications. Can be any
2733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2734
+ # @param [Google::Apis::RequestOptions] options
2735
+ # Request-specific options
2736
+ #
2737
+ # @yield [result, err] Result & error if block supplied
2738
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse] parsed result object
2739
+ # @yieldparam err [StandardError] error object if request failed
2740
+ #
2741
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse]
2742
+ #
2743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2746
+ def test_project_location_product_integration(name, google_cloud_integrations_v1alpha_test_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2747
+ command = make_simple_command(:post, 'v1/{+name}:test', options)
2748
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest::Representation
2749
+ command.request_object = google_cloud_integrations_v1alpha_test_integrations_request_object
2750
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse::Representation
2751
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse
2752
+ command.params['name'] = name unless name.nil?
2753
+ command.query['fields'] = fields unless fields.nil?
2754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2755
+ execute_or_queue_command(command, &block)
2756
+ end
2757
+
2758
+ # Cancellation of an execution
2759
+ # @param [String] name
2760
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
2761
+ # locations/`location`/products/`product`/integrations/`integration_id`/
2762
+ # executions/`execution_id`
2763
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionRequest] google_cloud_integrations_v1alpha_cancel_execution_request_object
2764
+ # @param [String] fields
2765
+ # Selector specifying which fields to include in a partial response.
2766
+ # @param [String] quota_user
2767
+ # Available to use for quota purposes for server-side applications. Can be any
2768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2769
+ # @param [Google::Apis::RequestOptions] options
2770
+ # Request-specific options
2771
+ #
2772
+ # @yield [result, err] Result & error if block supplied
2773
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse] parsed result object
2774
+ # @yieldparam err [StandardError] error object if request failed
2775
+ #
2776
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse]
2777
+ #
2778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2781
+ def cancel_project_location_product_integration_execution(name, google_cloud_integrations_v1alpha_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2782
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
2783
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionRequest::Representation
2784
+ command.request_object = google_cloud_integrations_v1alpha_cancel_execution_request_object
2785
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse::Representation
2786
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse
2787
+ command.params['name'] = name unless name.nil?
2788
+ command.query['fields'] = fields unless fields.nil?
2789
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2790
+ execute_or_queue_command(command, &block)
2791
+ end
2792
+
2793
+ # Download the execution.
2794
+ # @param [String] name
2795
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
2796
+ # locations/`location`/products/`product`/integrations/`integration_id`/
2797
+ # executions/`execution_id`
2798
+ # @param [String] fields
2799
+ # Selector specifying which fields to include in a partial response.
2800
+ # @param [String] quota_user
2801
+ # Available to use for quota purposes for server-side applications. Can be any
2802
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2803
+ # @param [Google::Apis::RequestOptions] options
2804
+ # Request-specific options
2805
+ #
2806
+ # @yield [result, err] Result & error if block supplied
2807
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse] parsed result object
2808
+ # @yieldparam err [StandardError] error object if request failed
2809
+ #
2810
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse]
2811
+ #
2812
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2813
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2814
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2815
+ def download_project_location_product_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
2816
+ command = make_simple_command(:get, 'v1/{+name}:download', options)
2817
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse::Representation
2818
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse
2819
+ command.params['name'] = name unless name.nil?
2820
+ command.query['fields'] = fields unless fields.nil?
2821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2822
+ execute_or_queue_command(command, &block)
2823
+ end
2824
+
2825
+ # Get an execution in the specified project.
2826
+ # @param [String] name
2827
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
2828
+ # locations/`location`/products/`product`/integrations/`integration_id`/
2829
+ # executions/`execution_id`
2830
+ # @param [String] fields
2831
+ # Selector specifying which fields to include in a partial response.
2832
+ # @param [String] quota_user
2833
+ # Available to use for quota purposes for server-side applications. Can be any
2834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2835
+ # @param [Google::Apis::RequestOptions] options
2836
+ # Request-specific options
2837
+ #
2838
+ # @yield [result, err] Result & error if block supplied
2839
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution] parsed result object
2840
+ # @yieldparam err [StandardError] error object if request failed
2841
+ #
2842
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution]
2843
+ #
2844
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2845
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2846
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2847
+ def get_project_location_product_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
2848
+ command = make_simple_command(:get, 'v1/{+name}', options)
2849
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution::Representation
2850
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution
2851
+ command.params['name'] = name unless name.nil?
2852
+ command.query['fields'] = fields unless fields.nil?
2853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2854
+ execute_or_queue_command(command, &block)
2855
+ end
2856
+
2857
+ # Lists the results of all the integration executions. The response includes the
2858
+ # same information as the [execution log](https://cloud.google.com/application-
2859
+ # integration/docs/viewing-logs) in the Integration UI.
2860
+ # @param [String] parent
2861
+ # Required. The parent resource name of the integration execution.
2862
+ # @param [String] filter
2863
+ # Optional. Standard filter field, we support filtering on all fields in
2864
+ # EventExecutionParamIndexes table. All fields support for EQUALS, in additional:
2865
+ # CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey,
2866
+ # ParameterValue, ParameterType support for HAS For example: "parameter_value"
2867
+ # HAS \"parameter1\" Also supports operators like AND, OR, NOT For example,
2868
+ # trigger_id=\"id1\" AND event_execution_state=\"FAILED\"
2869
+ # @param [String] filter_params_custom_filter
2870
+ # Optional user-provided custom filter.
2871
+ # @param [Fixnum] filter_params_end_time
2872
+ # End timestamp.
2873
+ # @param [Array<String>, String] filter_params_event_statuses
2874
+ # List of possible event statuses.
2875
+ # @param [String] filter_params_execution_id
2876
+ # Execution id.
2877
+ # @param [String] filter_params_parameter_key
2878
+ # Param key. DEPRECATED. User parameter_pair_key instead.
2879
+ # @param [String] filter_params_parameter_pair_key
2880
+ # Param key in the key value pair filter.
2881
+ # @param [String] filter_params_parameter_pair_value
2882
+ # Param value in the key value pair filter.
2883
+ # @param [String] filter_params_parameter_type
2884
+ # Param type.
2885
+ # @param [String] filter_params_parameter_value
2886
+ # Param value. DEPRECATED. User parameter_pair_value instead.
2887
+ # @param [Fixnum] filter_params_start_time
2888
+ # Start timestamp.
2889
+ # @param [Array<String>, String] filter_params_task_statuses
2890
+ # List of possible task statuses.
2891
+ # @param [String] filter_params_workflow_name
2892
+ # Workflow name.
2893
+ # @param [String] order_by
2894
+ # Optional. The results would be returned in order you specified here. Currently
2895
+ # supporting "last_modified_time" and "create_time".
2896
+ # @param [Fixnum] page_size
2897
+ # Optional. The size of entries in the response.
2898
+ # @param [String] page_token
2899
+ # Optional. The token returned in the previous response.
2900
+ # @param [String] read_mask
2901
+ # Optional. View mask for the response data. If set, only the field specified
2902
+ # will be returned as part of the result. If not set, all fields in event
2903
+ # execution info will be filled and returned.
2904
+ # @param [Boolean] refresh_acl
2905
+ # Optional. If true, the service will use the most recent acl information to
2906
+ # list event execution infos and renew the acl cache. Note that fetching the
2907
+ # most recent acl is synchronous, so it will increase RPC call latency.
2908
+ # @param [Boolean] truncate_params
2909
+ # Optional. If true, the service will truncate the params to only keep the first
2910
+ # 1000 characters of string params and empty the executions in order to make
2911
+ # response smaller. Only works for UI and when the params fields are not
2912
+ # filtered out.
2913
+ # @param [String] fields
2914
+ # Selector specifying which fields to include in a partial response.
2915
+ # @param [String] quota_user
2916
+ # Available to use for quota purposes for server-side applications. Can be any
2917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2918
+ # @param [Google::Apis::RequestOptions] options
2919
+ # Request-specific options
2920
+ #
2921
+ # @yield [result, err] Result & error if block supplied
2922
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse] parsed result object
2923
+ # @yieldparam err [StandardError] error object if request failed
2924
+ #
2925
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse]
2926
+ #
2927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2930
+ def list_project_location_product_integration_executions(parent, filter: nil, filter_params_custom_filter: nil, filter_params_end_time: nil, filter_params_event_statuses: nil, filter_params_execution_id: nil, filter_params_parameter_key: nil, filter_params_parameter_pair_key: nil, filter_params_parameter_pair_value: nil, filter_params_parameter_type: nil, filter_params_parameter_value: nil, filter_params_start_time: nil, filter_params_task_statuses: nil, filter_params_workflow_name: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, refresh_acl: nil, truncate_params: nil, fields: nil, quota_user: nil, options: nil, &block)
2931
+ command = make_simple_command(:get, 'v1/{+parent}/executions', options)
2932
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse::Representation
2933
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse
2934
+ command.params['parent'] = parent unless parent.nil?
2935
+ command.query['filter'] = filter unless filter.nil?
2936
+ command.query['filterParams.customFilter'] = filter_params_custom_filter unless filter_params_custom_filter.nil?
2937
+ command.query['filterParams.endTime'] = filter_params_end_time unless filter_params_end_time.nil?
2938
+ command.query['filterParams.eventStatuses'] = filter_params_event_statuses unless filter_params_event_statuses.nil?
2939
+ command.query['filterParams.executionId'] = filter_params_execution_id unless filter_params_execution_id.nil?
2940
+ command.query['filterParams.parameterKey'] = filter_params_parameter_key unless filter_params_parameter_key.nil?
2941
+ command.query['filterParams.parameterPairKey'] = filter_params_parameter_pair_key unless filter_params_parameter_pair_key.nil?
2942
+ command.query['filterParams.parameterPairValue'] = filter_params_parameter_pair_value unless filter_params_parameter_pair_value.nil?
2943
+ command.query['filterParams.parameterType'] = filter_params_parameter_type unless filter_params_parameter_type.nil?
2944
+ command.query['filterParams.parameterValue'] = filter_params_parameter_value unless filter_params_parameter_value.nil?
2945
+ command.query['filterParams.startTime'] = filter_params_start_time unless filter_params_start_time.nil?
2946
+ command.query['filterParams.taskStatuses'] = filter_params_task_statuses unless filter_params_task_statuses.nil?
2947
+ command.query['filterParams.workflowName'] = filter_params_workflow_name unless filter_params_workflow_name.nil?
2948
+ command.query['orderBy'] = order_by unless order_by.nil?
2949
+ command.query['pageSize'] = page_size unless page_size.nil?
2950
+ command.query['pageToken'] = page_token unless page_token.nil?
2951
+ command.query['readMask'] = read_mask unless read_mask.nil?
2952
+ command.query['refreshAcl'] = refresh_acl unless refresh_acl.nil?
2953
+ command.query['truncateParams'] = truncate_params unless truncate_params.nil?
2954
+ command.query['fields'] = fields unless fields.nil?
2955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2956
+ execute_or_queue_command(command, &block)
2957
+ end
2958
+
2959
+ # * Lifts suspension for advanced suspension task. Fetch corresponding
2960
+ # suspension with provided suspension Id, resolve suspension, and set up
2961
+ # suspension result for the Suspension Task.
2962
+ # @param [String] name
2963
+ # Required. The resource that the suspension belongs to. "projects/`project`/
2964
+ # locations/`location`/products/`product`/integrations/`integration`/executions/`
2965
+ # execution`/suspensions/`suspenion`" format.
2966
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest] google_cloud_integrations_v1alpha_lift_suspension_request_object
2967
+ # @param [String] fields
2968
+ # Selector specifying which fields to include in a partial response.
2969
+ # @param [String] quota_user
2970
+ # Available to use for quota purposes for server-side applications. Can be any
2971
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2972
+ # @param [Google::Apis::RequestOptions] options
2973
+ # Request-specific options
2974
+ #
2975
+ # @yield [result, err] Result & error if block supplied
2976
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse] parsed result object
2977
+ # @yieldparam err [StandardError] error object if request failed
2978
+ #
2979
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse]
2980
+ #
2981
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2982
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2983
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2984
+ def lift_project_location_product_integration_execution_suspension(name, google_cloud_integrations_v1alpha_lift_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2985
+ command = make_simple_command(:post, 'v1/{+name}:lift', options)
2986
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest::Representation
2987
+ command.request_object = google_cloud_integrations_v1alpha_lift_suspension_request_object
2988
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::Representation
2989
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
2990
+ command.params['name'] = name unless name.nil?
2991
+ command.query['fields'] = fields unless fields.nil?
2992
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2993
+ execute_or_queue_command(command, &block)
2994
+ end
2995
+
2996
+ # * Lists suspensions associated with a specific execution. Only those with
2997
+ # permissions to resolve the relevant suspensions will be able to view them.
2998
+ # @param [String] parent
2999
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
3000
+ # integrations/`integration_name`/executions/`execution_name`
3001
+ # @param [String] filter
3002
+ # Standard filter field.
3003
+ # @param [String] order_by
3004
+ # Field name to order by.
3005
+ # @param [Fixnum] page_size
3006
+ # Maximum number of entries in the response.
3007
+ # @param [String] page_token
3008
+ # Token to retrieve a specific page.
3009
+ # @param [String] fields
3010
+ # Selector specifying which fields to include in a partial response.
3011
+ # @param [String] quota_user
3012
+ # Available to use for quota purposes for server-side applications. Can be any
3013
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3014
+ # @param [Google::Apis::RequestOptions] options
3015
+ # Request-specific options
3016
+ #
3017
+ # @yield [result, err] Result & error if block supplied
3018
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse] parsed result object
3019
+ # @yieldparam err [StandardError] error object if request failed
3020
+ #
3021
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse]
3022
+ #
3023
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3024
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3025
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3026
+ def list_project_location_product_integration_execution_suspensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3027
+ command = make_simple_command(:get, 'v1/{+parent}/suspensions', options)
3028
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse::Representation
3029
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse
3030
+ command.params['parent'] = parent unless parent.nil?
3031
+ command.query['filter'] = filter unless filter.nil?
3032
+ command.query['orderBy'] = order_by unless order_by.nil?
3033
+ command.query['pageSize'] = page_size unless page_size.nil?
3034
+ command.query['pageToken'] = page_token unless page_token.nil?
3035
+ command.query['fields'] = fields unless fields.nil?
3036
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3037
+ execute_or_queue_command(command, &block)
3038
+ end
3039
+
3040
+ # * Resolves (lifts/rejects) any number of suspensions. If the integration is
3041
+ # already running, only the status of the suspension is updated. Otherwise, the
3042
+ # suspended integration will begin execution again.
3043
+ # @param [String] name
3044
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
3045
+ # integrations/`integration_name`/executions/`execution_name`/suspensions/`
3046
+ # suspension_id`
3047
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest] google_cloud_integrations_v1alpha_resolve_suspension_request_object
3048
+ # @param [String] fields
3049
+ # Selector specifying which fields to include in a partial response.
3050
+ # @param [String] quota_user
3051
+ # Available to use for quota purposes for server-side applications. Can be any
3052
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3053
+ # @param [Google::Apis::RequestOptions] options
3054
+ # Request-specific options
3055
+ #
3056
+ # @yield [result, err] Result & error if block supplied
3057
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse] parsed result object
3058
+ # @yieldparam err [StandardError] error object if request failed
3059
+ #
3060
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse]
3061
+ #
3062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3065
+ def resolve_project_location_product_integration_execution_suspension(name, google_cloud_integrations_v1alpha_resolve_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3066
+ command = make_simple_command(:post, 'v1/{+name}:resolve', options)
3067
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest::Representation
3068
+ command.request_object = google_cloud_integrations_v1alpha_resolve_suspension_request_object
3069
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::Representation
3070
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
3071
+ command.params['name'] = name unless name.nil?
3072
+ command.query['fields'] = fields unless fields.nil?
3073
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3074
+ execute_or_queue_command(command, &block)
3075
+ end
3076
+
3077
+ # Lists the snapshots of a given integration executions. This RPC is not being
3078
+ # used.
3079
+ # @param [String] parent
3080
+ # Required. The parent resource name of the integration execution.
3081
+ # @param [String] filter
3082
+ # Currently supports filter by `execution_info_id` or `execution_snapshot_id`.
3083
+ # @param [Fixnum] page_size
3084
+ # Number of entries to be returned in a page.
3085
+ # @param [String] page_token
3086
+ # The token used to retrieve the next page results.
3087
+ # @param [String] read_mask
3088
+ # View mask for the response data. If set, only the field specified will be
3089
+ # returned as part of the result. If not set, all fields in event execution
3090
+ # snapshot will be filled and returned.
3091
+ # @param [String] fields
3092
+ # Selector specifying which fields to include in a partial response.
3093
+ # @param [String] quota_user
3094
+ # Available to use for quota purposes for server-side applications. Can be any
3095
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3096
+ # @param [Google::Apis::RequestOptions] options
3097
+ # Request-specific options
3098
+ #
3099
+ # @yield [result, err] Result & error if block supplied
3100
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse] parsed result object
3101
+ # @yieldparam err [StandardError] error object if request failed
3102
+ #
3103
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse]
3104
+ #
3105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3108
+ def list_project_location_product_integration_executionsnapshots(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3109
+ command = make_simple_command(:get, 'v1/{+parent}/executionsnapshots', options)
3110
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse::Representation
3111
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse
3112
+ command.params['parent'] = parent unless parent.nil?
3113
+ command.query['filter'] = filter unless filter.nil?
3114
+ command.query['pageSize'] = page_size unless page_size.nil?
3115
+ command.query['pageToken'] = page_token unless page_token.nil?
3116
+ command.query['readMask'] = read_mask unless read_mask.nil?
3117
+ command.query['fields'] = fields unless fields.nil?
3118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3119
+ execute_or_queue_command(command, &block)
3120
+ end
3121
+
3122
+ # Soft-deletes the integration. Changes the status of the integration to
3123
+ # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
3124
+ # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
3125
+ # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
3126
+ # exception if the version being archived is DRAFT, and if the `locked_by` user
3127
+ # is not the same as the user performing the Archive. Audit fields updated
3128
+ # include last_modified_timestamp, last_modified_by. Any existing lock is
3129
+ # released when Archiving a integration. Currently, there is no unarchive
3130
+ # mechanism.
3131
+ # @param [String] name
3132
+ # Required. The version to archive. Format: projects/`project`/locations/`
3133
+ # location`/integrations/`integration`/versions/`version`
3134
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest] google_cloud_integrations_v1alpha_archive_integration_version_request_object
3135
+ # @param [String] fields
3136
+ # Selector specifying which fields to include in a partial response.
3137
+ # @param [String] quota_user
3138
+ # Available to use for quota purposes for server-side applications. Can be any
3139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3140
+ # @param [Google::Apis::RequestOptions] options
3141
+ # Request-specific options
3142
+ #
3143
+ # @yield [result, err] Result & error if block supplied
3144
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse] parsed result object
3145
+ # @yieldparam err [StandardError] error object if request failed
3146
+ #
3147
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse]
3148
+ #
3149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3152
+ def archive_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_archive_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3153
+ command = make_simple_command(:post, 'v1/{+name}:archive', options)
3154
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest::Representation
3155
+ command.request_object = google_cloud_integrations_v1alpha_archive_integration_version_request_object
3156
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse::Representation
3157
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse
3158
+ command.params['name'] = name unless name.nil?
3159
+ command.query['fields'] = fields unless fields.nil?
3160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3161
+ execute_or_queue_command(command, &block)
3162
+ end
3163
+
3164
+ # Create a integration with a draft version in the specified project.
3165
+ # @param [String] parent
3166
+ # Required. The parent resource where this version will be created. Format:
3167
+ # projects/`project`/locations/`location`/integrations/`integration`
3168
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
3169
+ # @param [Boolean] new_integration
3170
+ # Set this flag to true, if draft version is to be created for a brand new
3171
+ # integration. False, if the request is for an existing integration. For
3172
+ # backward compatibility reasons, even if this flag is set to `false` and no
3173
+ # existing integration is found, a new draft integration will still be created.
3174
+ # @param [String] fields
3175
+ # Selector specifying which fields to include in a partial response.
3176
+ # @param [String] quota_user
3177
+ # Available to use for quota purposes for server-side applications. Can be any
3178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3179
+ # @param [Google::Apis::RequestOptions] options
3180
+ # Request-specific options
3181
+ #
3182
+ # @yield [result, err] Result & error if block supplied
3183
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
3184
+ # @yieldparam err [StandardError] error object if request failed
3185
+ #
3186
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
3187
+ #
3188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3191
+ def create_project_location_product_integration_version(parent, google_cloud_integrations_v1alpha_integration_version_object = nil, new_integration: nil, fields: nil, quota_user: nil, options: nil, &block)
3192
+ command = make_simple_command(:post, 'v1/{+parent}/versions', options)
3193
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3194
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
3195
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3196
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
3197
+ command.params['parent'] = parent unless parent.nil?
3198
+ command.query['newIntegration'] = new_integration unless new_integration.nil?
3199
+ command.query['fields'] = fields unless fields.nil?
3200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3201
+ execute_or_queue_command(command, &block)
3202
+ end
3203
+
3204
+ # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
3205
+ # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
3206
+ # tags do not change. This RPC throws an exception if the version being snapshot
3207
+ # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
3208
+ # @param [String] name
3209
+ # Required. The version to deactivate. Format: projects/`project`/locations/`
3210
+ # location`/integrations/`integration`/versions/`version`
3211
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest] google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
3212
+ # @param [String] fields
3213
+ # Selector specifying which fields to include in a partial response.
3214
+ # @param [String] quota_user
3215
+ # Available to use for quota purposes for server-side applications. Can be any
3216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3217
+ # @param [Google::Apis::RequestOptions] options
3218
+ # Request-specific options
3219
+ #
3220
+ # @yield [result, err] Result & error if block supplied
3221
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse] parsed result object
3222
+ # @yieldparam err [StandardError] error object if request failed
3223
+ #
3224
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse]
3225
+ #
3226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3229
+ def deactivate_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_deactivate_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3230
+ command = make_simple_command(:post, 'v1/{+name}:deactivate', options)
3231
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest::Representation
3232
+ command.request_object = google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
3233
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse::Representation
3234
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse
3235
+ command.params['name'] = name unless name.nil?
3236
+ command.query['fields'] = fields unless fields.nil?
3237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3238
+ execute_or_queue_command(command, &block)
3239
+ end
3240
+
3241
+ # Soft-deletes the integration. Changes the status of the integration to
3242
+ # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
3243
+ # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
3244
+ # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
3245
+ # exception if the version being deleted is DRAFT, and if the `locked_by` user
3246
+ # is not the same as the user performing the Delete. Audit fields updated
3247
+ # include last_modified_timestamp, last_modified_by. Any existing lock is
3248
+ # released when Deleting a integration. Currently, there is no undelete
3249
+ # mechanism.
3250
+ # @param [String] name
3251
+ # Required. The version to delete. Format: projects/`project`/locations/`
3252
+ # location`/integrations/`integration`/versions/`version`
3253
+ # @param [String] fields
3254
+ # Selector specifying which fields to include in a partial response.
3255
+ # @param [String] quota_user
3256
+ # Available to use for quota purposes for server-side applications. Can be any
3257
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3258
+ # @param [Google::Apis::RequestOptions] options
3259
+ # Request-specific options
3260
+ #
3261
+ # @yield [result, err] Result & error if block supplied
3262
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3263
+ # @yieldparam err [StandardError] error object if request failed
3264
+ #
3265
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3266
+ #
3267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3270
+ def delete_project_location_product_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
3271
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3272
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3273
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3274
+ command.params['name'] = name unless name.nil?
3275
+ command.query['fields'] = fields unless fields.nil?
3276
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3277
+ execute_or_queue_command(command, &block)
3278
+ end
3279
+
3280
+ # Downloads an integration. Retrieves the `IntegrationVersion` for a given `
3281
+ # integration_id` and returns the response as a string.
3282
+ # @param [String] name
3283
+ # Required. The version to download. Format: projects/`project`/locations/`
3284
+ # location`/integrations/`integration`/versions/`version`
3285
+ # @param [String] file_format
3286
+ # File format for download request.
3287
+ # @param [String] fields
3288
+ # Selector specifying which fields to include in a partial response.
3289
+ # @param [String] quota_user
3290
+ # Available to use for quota purposes for server-side applications. Can be any
3291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3292
+ # @param [Google::Apis::RequestOptions] options
3293
+ # Request-specific options
3294
+ #
3295
+ # @yield [result, err] Result & error if block supplied
3296
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse] parsed result object
3297
+ # @yieldparam err [StandardError] error object if request failed
3298
+ #
3299
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse]
3300
+ #
3301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3304
+ def download_project_location_product_integration_version(name, file_format: nil, fields: nil, quota_user: nil, options: nil, &block)
3305
+ command = make_simple_command(:get, 'v1/{+name}:download', options)
3306
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse::Representation
3307
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse
3308
+ command.params['name'] = name unless name.nil?
3309
+ command.query['fileFormat'] = file_format unless file_format.nil?
3310
+ command.query['fields'] = fields unless fields.nil?
3311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3312
+ execute_or_queue_command(command, &block)
3313
+ end
3314
+
3315
+ # Get a integration in the specified project.
3316
+ # @param [String] name
3317
+ # Required. The version to retrieve. Format: projects/`project`/locations/`
3318
+ # location`/integrations/`integration`/versions/`version`
3319
+ # @param [String] fields
3320
+ # Selector specifying which fields to include in a partial response.
3321
+ # @param [String] quota_user
3322
+ # Available to use for quota purposes for server-side applications. Can be any
3323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3324
+ # @param [Google::Apis::RequestOptions] options
3325
+ # Request-specific options
3326
+ #
3327
+ # @yield [result, err] Result & error if block supplied
3328
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
3329
+ # @yieldparam err [StandardError] error object if request failed
3330
+ #
3331
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
3332
+ #
3333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3336
+ def get_project_location_product_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
3337
+ command = make_simple_command(:get, 'v1/{+name}', options)
3338
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3339
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
3340
+ command.params['name'] = name unless name.nil?
3341
+ command.query['fields'] = fields unless fields.nil?
3342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3343
+ execute_or_queue_command(command, &block)
3344
+ end
3345
+
3346
+ # PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE
3347
+ # SERVICE. RPC to get details of the Bundle
3348
+ # @param [String] name
3349
+ # Required. The bundle name.
3350
+ # @param [String] fields
3351
+ # Selector specifying which fields to include in a partial response.
3352
+ # @param [String] quota_user
3353
+ # Available to use for quota purposes for server-side applications. Can be any
3354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3355
+ # @param [Google::Apis::RequestOptions] options
3356
+ # Request-specific options
3357
+ #
3358
+ # @yield [result, err] Result & error if block supplied
3359
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetBundleResponse] parsed result object
3360
+ # @yieldparam err [StandardError] error object if request failed
3361
+ #
3362
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetBundleResponse]
3363
+ #
3364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3367
+ def get_project_location_product_integration_version_bundle(name, fields: nil, quota_user: nil, options: nil, &block)
3368
+ command = make_simple_command(:get, 'v1/{+name}:getBundle', options)
3369
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetBundleResponse::Representation
3370
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGetBundleResponse
3371
+ command.params['name'] = name unless name.nil?
3372
+ command.query['fields'] = fields unless fields.nil?
3373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3374
+ execute_or_queue_command(command, &block)
3375
+ end
3376
+
3377
+ # Returns the list of all integration versions in the specified project.
3378
+ # @param [String] parent
3379
+ # Required. The parent resource where this version will be created. Format:
3380
+ # projects/`project`/locations/`location`/integrations/`integration`
3381
+ # Specifically, when parent equals: 1. projects//locations//integrations/,
3382
+ # Meaning: "List versions (with filter) for a particular integration". 2.
3383
+ # projects//locations//integrations/- Meaning: "List versions (with filter) for
3384
+ # a client within a particular region". 3. projects//locations/-/integrations/-
3385
+ # Meaning: "List versions (with filter) for a client".
3386
+ # @param [String] field_mask
3387
+ # The field mask which specifies the particular data to be returned.
3388
+ # @param [String] filter
3389
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
3390
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
3391
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
3392
+ # inequality) operators. Negation, conjunction, and disjunction are written
3393
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
3394
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
3395
+ # fields like `task_config`.
3396
+ # @param [String] order_by
3397
+ # The results would be returned in order you specified here. Currently supported
3398
+ # sort keys are: Descending sort order for "last_modified_time", "created_time",
3399
+ # "snapshot_number" Ascending sort order for "name".
3400
+ # @param [Fixnum] page_size
3401
+ # The maximum number of versions to return. The service may return fewer than
3402
+ # this value. If unspecified, at most 50 versions will be returned. The maximum
3403
+ # value is 1000; values above 1000 will be coerced to 1000.
3404
+ # @param [String] page_token
3405
+ # A page token, received from a previous `ListIntegrationVersions` call. Provide
3406
+ # this to retrieve the subsequent page. When paginating, all other parameters
3407
+ # provided to `ListIntegrationVersions` must match the call that provided the
3408
+ # page token.
3409
+ # @param [String] fields
3410
+ # Selector specifying which fields to include in a partial response.
3411
+ # @param [String] quota_user
3412
+ # Available to use for quota purposes for server-side applications. Can be any
3413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3414
+ # @param [Google::Apis::RequestOptions] options
3415
+ # Request-specific options
3416
+ #
3417
+ # @yield [result, err] Result & error if block supplied
3418
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse] parsed result object
3419
+ # @yieldparam err [StandardError] error object if request failed
3420
+ #
3421
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse]
3422
+ #
3423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3426
+ def list_project_location_product_integration_versions(parent, field_mask: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3427
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
3428
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::Representation
3429
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
3430
+ command.params['parent'] = parent unless parent.nil?
3431
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
3432
+ command.query['filter'] = filter unless filter.nil?
3433
+ command.query['orderBy'] = order_by unless order_by.nil?
3434
+ command.query['pageSize'] = page_size unless page_size.nil?
3435
+ command.query['pageToken'] = page_token unless page_token.nil?
3436
+ command.query['fields'] = fields unless fields.nil?
3437
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3438
+ execute_or_queue_command(command, &block)
3439
+ end
3440
+
3441
+ # Update a integration with a draft version in the specified project.
3442
+ # @param [String] name
3443
+ # Output only. Auto-generated primary key.
3444
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
3445
+ # @param [String] update_mask
3446
+ # Field mask specifying the fields in the above integration that have been
3447
+ # modified and need to be updated.
3448
+ # @param [String] fields
3449
+ # Selector specifying which fields to include in a partial response.
3450
+ # @param [String] quota_user
3451
+ # Available to use for quota purposes for server-side applications. Can be any
3452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3453
+ # @param [Google::Apis::RequestOptions] options
3454
+ # Request-specific options
3455
+ #
3456
+ # @yield [result, err] Result & error if block supplied
3457
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
3458
+ # @yieldparam err [StandardError] error object if request failed
3459
+ #
3460
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
3461
+ #
3462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3465
+ def patch_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_integration_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3466
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3467
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3468
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
3469
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3470
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
3471
+ command.params['name'] = name unless name.nil?
3472
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3473
+ command.query['fields'] = fields unless fields.nil?
3474
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3475
+ execute_or_queue_command(command, &block)
3476
+ end
3477
+
3478
+ # This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state.
3479
+ # This RPC throws an exception if the version being published is DRAFT, and if
3480
+ # the `locked_by` user is not the same as the user performing the Publish. Audit
3481
+ # fields updated include last_published_timestamp, last_published_by,
3482
+ # last_modified_timestamp, last_modified_by. Any existing lock is on this
3483
+ # integration is released.
3484
+ # @param [String] name
3485
+ # Required. The version to publish. Format: projects/`project`/locations/`
3486
+ # location`/integrations/`integration`/versions/`version`
3487
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_publish_integration_version_request_object
3488
+ # @param [String] fields
3489
+ # Selector specifying which fields to include in a partial response.
3490
+ # @param [String] quota_user
3491
+ # Available to use for quota purposes for server-side applications. Can be any
3492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3493
+ # @param [Google::Apis::RequestOptions] options
3494
+ # Request-specific options
3495
+ #
3496
+ # @yield [result, err] Result & error if block supplied
3497
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse] parsed result object
3498
+ # @yieldparam err [StandardError] error object if request failed
3499
+ #
3500
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse]
3501
+ #
3502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3505
+ def publish_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_publish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3506
+ command = make_simple_command(:post, 'v1/{+name}:publish', options)
3507
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest::Representation
3508
+ command.request_object = google_cloud_integrations_v1alpha_publish_integration_version_request_object
3509
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::Representation
3510
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
3511
+ command.params['name'] = name unless name.nil?
3512
+ command.query['fields'] = fields unless fields.nil?
3513
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3514
+ execute_or_queue_command(command, &block)
3515
+ end
3516
+
3517
+ # Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this
3518
+ # integration. It then performs the same action as the
3519
+ # CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the
3520
+ # integration as a SNAPSHOT and then creates a new DRAFT version with the `
3521
+ # locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to
3522
+ # the current timestamp). Both the `locked_by` and `user_taking_over` are
3523
+ # notified via email about the takeover. This RPC throws an exception if the
3524
+ # integration is not in DRAFT status or if the `locked_by` and `
3525
+ # locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the
3526
+ # same as an edit of the integration, and hence shares ACLs with edit. Audit
3527
+ # fields updated include last_modified_timestamp, last_modified_by.
3528
+ # @param [String] integration_version
3529
+ # Required. The version to take over edit lock. Format: projects/`project`/
3530
+ # locations/`location`/integrations/`integration`/versions/`version`
3531
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest] google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
3532
+ # @param [String] fields
3533
+ # Selector specifying which fields to include in a partial response.
3534
+ # @param [String] quota_user
3535
+ # Available to use for quota purposes for server-side applications. Can be any
3536
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3537
+ # @param [Google::Apis::RequestOptions] options
3538
+ # Request-specific options
3539
+ #
3540
+ # @yield [result, err] Result & error if block supplied
3541
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse] parsed result object
3542
+ # @yieldparam err [StandardError] error object if request failed
3543
+ #
3544
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse]
3545
+ #
3546
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3547
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3548
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3549
+ def takeover_project_location_product_integration_version_edit_lock(integration_version, google_cloud_integrations_v1alpha_takeover_edit_lock_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3550
+ command = make_simple_command(:post, 'v1/{+integrationVersion}:takeoverEditLock', options)
3551
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest::Representation
3552
+ command.request_object = google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
3553
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse::Representation
3554
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse
3555
+ command.params['integrationVersion'] = integration_version unless integration_version.nil?
3556
+ command.query['fields'] = fields unless fields.nil?
3557
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3558
+ execute_or_queue_command(command, &block)
3559
+ end
3560
+
3561
+ # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
3562
+ # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
3563
+ # tags do not change. This RPC throws an exception if the version being snapshot
3564
+ # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
3565
+ # @param [String] name
3566
+ # Required. The version to deactivate. Format: projects/`project`/locations/`
3567
+ # location`/integrations/`integration`/versions/`version`
3568
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
3569
+ # @param [String] fields
3570
+ # Selector specifying which fields to include in a partial response.
3571
+ # @param [String] quota_user
3572
+ # Available to use for quota purposes for server-side applications. Can be any
3573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3574
+ # @param [Google::Apis::RequestOptions] options
3575
+ # Request-specific options
3576
+ #
3577
+ # @yield [result, err] Result & error if block supplied
3578
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3579
+ # @yieldparam err [StandardError] error object if request failed
3580
+ #
3581
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3582
+ #
3583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3586
+ def unpublish_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_unpublish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3587
+ command = make_simple_command(:post, 'v1/{+name}:unpublish', options)
3588
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest::Representation
3589
+ command.request_object = google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
3590
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3591
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3592
+ command.params['name'] = name unless name.nil?
3593
+ command.query['fields'] = fields unless fields.nil?
3594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3595
+ execute_or_queue_command(command, &block)
3596
+ end
3597
+
3598
+ # THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle
3599
+ # @param [String] name
3600
+ # Required. Bundle name
3601
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUpdateBundleRequest] google_cloud_integrations_v1alpha_update_bundle_request_object
3602
+ # @param [String] fields
3603
+ # Selector specifying which fields to include in a partial response.
3604
+ # @param [String] quota_user
3605
+ # Available to use for quota purposes for server-side applications. Can be any
3606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3607
+ # @param [Google::Apis::RequestOptions] options
3608
+ # Request-specific options
3609
+ #
3610
+ # @yield [result, err] Result & error if block supplied
3611
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUpdateBundleResponse] parsed result object
3612
+ # @yieldparam err [StandardError] error object if request failed
3613
+ #
3614
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUpdateBundleResponse]
3615
+ #
3616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3619
+ def update_project_location_product_integration_version_bundle(name, google_cloud_integrations_v1alpha_update_bundle_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3620
+ command = make_simple_command(:patch, 'v1/{+name}:updateBundle', options)
3621
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUpdateBundleRequest::Representation
3622
+ command.request_object = google_cloud_integrations_v1alpha_update_bundle_request_object
3623
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUpdateBundleResponse::Representation
3624
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUpdateBundleResponse
3625
+ command.params['name'] = name unless name.nil?
3626
+ command.query['fields'] = fields unless fields.nil?
3627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3628
+ execute_or_queue_command(command, &block)
3629
+ end
3630
+
3631
+ # Uploads an integration. The content can be a previously downloaded integration.
3632
+ # Performs the same function as CreateDraftIntegrationVersion, but accepts
3633
+ # input in a string format, which holds the complete representation of the
3634
+ # IntegrationVersion content.
3635
+ # @param [String] parent
3636
+ # Required. The version to upload. Format: projects/`project`/locations/`
3637
+ # location`/integrations/`integration`
3638
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest] google_cloud_integrations_v1alpha_upload_integration_version_request_object
3639
+ # @param [String] fields
3640
+ # Selector specifying which fields to include in a partial response.
3641
+ # @param [String] quota_user
3642
+ # Available to use for quota purposes for server-side applications. Can be any
3643
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3644
+ # @param [Google::Apis::RequestOptions] options
3645
+ # Request-specific options
3646
+ #
3647
+ # @yield [result, err] Result & error if block supplied
3648
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse] parsed result object
3649
+ # @yieldparam err [StandardError] error object if request failed
3650
+ #
3651
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse]
3652
+ #
3653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3656
+ def upload_project_location_product_integration_version(parent, google_cloud_integrations_v1alpha_upload_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3657
+ command = make_simple_command(:post, 'v1/{+parent}/versions:upload', options)
3658
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest::Representation
3659
+ command.request_object = google_cloud_integrations_v1alpha_upload_integration_version_request_object
3660
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse::Representation
3661
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse
3662
+ command.params['parent'] = parent unless parent.nil?
3663
+ command.query['fields'] = fields unless fields.nil?
3664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3665
+ execute_or_queue_command(command, &block)
3666
+ end
3667
+
3668
+ # Validates the given integration. If the id doesn't exist, a NotFoundException
3669
+ # is thrown. If validation fails a CanonicalCodeException is thrown. If there
3670
+ # was no failure an empty response is returned.
3671
+ # @param [String] name
3672
+ # Required. The version to validate. Format: projects/`project`/locations/`
3673
+ # location`/integrations/`integration`/versions/`version`
3674
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest] google_cloud_integrations_v1alpha_validate_integration_version_request_object
3675
+ # @param [String] fields
3676
+ # Selector specifying which fields to include in a partial response.
3677
+ # @param [String] quota_user
3678
+ # Available to use for quota purposes for server-side applications. Can be any
3679
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3680
+ # @param [Google::Apis::RequestOptions] options
3681
+ # Request-specific options
3682
+ #
3683
+ # @yield [result, err] Result & error if block supplied
3684
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse] parsed result object
3685
+ # @yieldparam err [StandardError] error object if request failed
3686
+ #
3687
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse]
3688
+ #
3689
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3690
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3691
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3692
+ def validate_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_validate_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3693
+ command = make_simple_command(:post, 'v1/{+name}:validate', options)
3694
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest::Representation
3695
+ command.request_object = google_cloud_integrations_v1alpha_validate_integration_version_request_object
3696
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse::Representation
3697
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse
3698
+ command.params['name'] = name unless name.nil?
3699
+ command.query['fields'] = fields unless fields.nil?
3700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3701
+ execute_or_queue_command(command, &block)
3702
+ end
3703
+
3704
+ # Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
3705
+ # the sfdc instance.
3706
+ # @param [String] parent
3707
+ # Required. "projects/`project`/locations/`location`" format.
3708
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
3709
+ # @param [String] fields
3710
+ # Selector specifying which fields to include in a partial response.
3711
+ # @param [String] quota_user
3712
+ # Available to use for quota purposes for server-side applications. Can be any
3713
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3714
+ # @param [Google::Apis::RequestOptions] options
3715
+ # Request-specific options
3716
+ #
3717
+ # @yield [result, err] Result & error if block supplied
3718
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3719
+ # @yieldparam err [StandardError] error object if request failed
3720
+ #
3721
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
3722
+ #
3723
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3724
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3725
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3726
+ def create_project_location_product_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3727
+ command = make_simple_command(:post, 'v1/{+parent}/sfdcInstances', options)
3728
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3729
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3730
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3731
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
3732
+ command.params['parent'] = parent unless parent.nil?
3733
+ command.query['fields'] = fields unless fields.nil?
3734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3735
+ execute_or_queue_command(command, &block)
3736
+ end
3737
+
3738
+ # Deletes an sfdc instance.
3739
+ # @param [String] name
3740
+ # Required. The name that is associated with the SfdcInstance.
3741
+ # @param [String] fields
3742
+ # Selector specifying which fields to include in a partial response.
3743
+ # @param [String] quota_user
3744
+ # Available to use for quota purposes for server-side applications. Can be any
3745
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3746
+ # @param [Google::Apis::RequestOptions] options
3747
+ # Request-specific options
3748
+ #
3749
+ # @yield [result, err] Result & error if block supplied
3750
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3751
+ # @yieldparam err [StandardError] error object if request failed
3752
+ #
3753
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3754
+ #
3755
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3756
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3757
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3758
+ def delete_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3759
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3760
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3761
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3762
+ command.params['name'] = name unless name.nil?
3763
+ command.query['fields'] = fields unless fields.nil?
3764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3765
+ execute_or_queue_command(command, &block)
3766
+ end
3767
+
3768
+ # Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception
3769
+ # will be thrown.
3770
+ # @param [String] name
3771
+ # Required. The name that is associated with the SfdcInstance.
3772
+ # @param [String] fields
3773
+ # Selector specifying which fields to include in a partial response.
3774
+ # @param [String] quota_user
3775
+ # Available to use for quota purposes for server-side applications. Can be any
3776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3777
+ # @param [Google::Apis::RequestOptions] options
3778
+ # Request-specific options
3779
+ #
3780
+ # @yield [result, err] Result & error if block supplied
3781
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3782
+ # @yieldparam err [StandardError] error object if request failed
3783
+ #
3784
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
3785
+ #
3786
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3787
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3788
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3789
+ def get_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3790
+ command = make_simple_command(:get, 'v1/{+name}', options)
3791
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3792
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
3793
+ command.params['name'] = name unless name.nil?
3794
+ command.query['fields'] = fields unless fields.nil?
3795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3796
+ execute_or_queue_command(command, &block)
3797
+ end
3798
+
3799
+ # Lists all sfdc instances that match the filter. Restrict to sfdc instances
3800
+ # belonging to the current client only.
3801
+ # @param [String] parent
3802
+ # Required. The client, which owns this collection of SfdcInstances.
3803
+ # @param [String] filter
3804
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3805
+ # guides/v2/list-filters.
3806
+ # @param [Fixnum] page_size
3807
+ # The size of entries in the response. If unspecified, defaults to 100.
3808
+ # @param [String] page_token
3809
+ # The token returned in the previous response.
3810
+ # @param [String] read_mask
3811
+ # The mask which specifies fields that need to be returned in the SfdcInstance's
3812
+ # response.
3813
+ # @param [String] fields
3814
+ # Selector specifying which fields to include in a partial response.
3815
+ # @param [String] quota_user
3816
+ # Available to use for quota purposes for server-side applications. Can be any
3817
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3818
+ # @param [Google::Apis::RequestOptions] options
3819
+ # Request-specific options
3820
+ #
3821
+ # @yield [result, err] Result & error if block supplied
3822
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse] parsed result object
3823
+ # @yieldparam err [StandardError] error object if request failed
3824
+ #
3825
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse]
3826
+ #
3827
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3828
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3829
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3830
+ def list_project_location_product_sfdc_instances(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3831
+ command = make_simple_command(:get, 'v1/{+parent}/sfdcInstances', options)
3832
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::Representation
3833
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
3834
+ command.params['parent'] = parent unless parent.nil?
3835
+ command.query['filter'] = filter unless filter.nil?
3836
+ command.query['pageSize'] = page_size unless page_size.nil?
3837
+ command.query['pageToken'] = page_token unless page_token.nil?
3838
+ command.query['readMask'] = read_mask unless read_mask.nil?
3839
+ command.query['fields'] = fields unless fields.nil?
3840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3841
+ execute_or_queue_command(command, &block)
3842
+ end
3843
+
3844
+ # Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
3845
+ # sfdc instance.
3846
+ # @param [String] name
3847
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
3848
+ # sfdcInstances/`sfdcInstance`.
3849
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
3850
+ # @param [String] update_mask
3851
+ # Field mask specifying the fields in the above SfdcInstance that have been
3852
+ # modified and need to be updated.
3853
+ # @param [String] fields
3854
+ # Selector specifying which fields to include in a partial response.
3855
+ # @param [String] quota_user
3856
+ # Available to use for quota purposes for server-side applications. Can be any
3857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3858
+ # @param [Google::Apis::RequestOptions] options
3859
+ # Request-specific options
3860
+ #
3861
+ # @yield [result, err] Result & error if block supplied
3862
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3863
+ # @yieldparam err [StandardError] error object if request failed
3864
+ #
3865
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
3866
+ #
3867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3870
+ def patch_project_location_product_sfdc_instance(name, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3871
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3872
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3873
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3874
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3875
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
3876
+ command.params['name'] = name unless name.nil?
3877
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3878
+ command.query['fields'] = fields unless fields.nil?
3879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3880
+ execute_or_queue_command(command, &block)
3881
+ end
3882
+
3883
+ # Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the
3884
+ # sfdc channel.
3885
+ # @param [String] parent
3886
+ # Required. "projects/`project`/locations/`location`" format.
3887
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
3888
+ # @param [String] fields
3889
+ # Selector specifying which fields to include in a partial response.
3890
+ # @param [String] quota_user
3891
+ # Available to use for quota purposes for server-side applications. Can be any
3892
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3893
+ # @param [Google::Apis::RequestOptions] options
3894
+ # Request-specific options
3895
+ #
3896
+ # @yield [result, err] Result & error if block supplied
3897
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3898
+ # @yieldparam err [StandardError] error object if request failed
3899
+ #
3900
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
3901
+ #
3902
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3903
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3904
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3905
+ def create_project_location_product_sfdc_instance_sfdc_channel(parent, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3906
+ command = make_simple_command(:post, 'v1/{+parent}/sfdcChannels', options)
3907
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3908
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
3909
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3910
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
3911
+ command.params['parent'] = parent unless parent.nil?
3912
+ command.query['fields'] = fields unless fields.nil?
3913
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3914
+ execute_or_queue_command(command, &block)
3915
+ end
3916
+
3917
+ # Deletes an sfdc channel.
3918
+ # @param [String] name
3919
+ # Required. The name that is associated with the SfdcChannel.
3920
+ # @param [String] fields
3921
+ # Selector specifying which fields to include in a partial response.
3922
+ # @param [String] quota_user
3923
+ # Available to use for quota purposes for server-side applications. Can be any
3924
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3925
+ # @param [Google::Apis::RequestOptions] options
3926
+ # Request-specific options
3927
+ #
3928
+ # @yield [result, err] Result & error if block supplied
3929
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3930
+ # @yieldparam err [StandardError] error object if request failed
3931
+ #
3932
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3933
+ #
3934
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3935
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3936
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3937
+ def delete_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3938
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3939
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3940
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3941
+ command.params['name'] = name unless name.nil?
3942
+ command.query['fields'] = fields unless fields.nil?
3943
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3944
+ execute_or_queue_command(command, &block)
3945
+ end
3946
+
3947
+ # Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
3948
+ # will be thrown.
3949
+ # @param [String] name
3950
+ # Required. The name that is associated with the SfdcChannel.
3951
+ # @param [String] fields
3952
+ # Selector specifying which fields to include in a partial response.
3953
+ # @param [String] quota_user
3954
+ # Available to use for quota purposes for server-side applications. Can be any
3955
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3956
+ # @param [Google::Apis::RequestOptions] options
3957
+ # Request-specific options
3958
+ #
3959
+ # @yield [result, err] Result & error if block supplied
3960
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3961
+ # @yieldparam err [StandardError] error object if request failed
3962
+ #
3963
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
3964
+ #
3965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3968
+ def get_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3969
+ command = make_simple_command(:get, 'v1/{+name}', options)
3970
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3971
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
3972
+ command.params['name'] = name unless name.nil?
3973
+ command.query['fields'] = fields unless fields.nil?
3974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3975
+ execute_or_queue_command(command, &block)
3976
+ end
3977
+
3978
+ # Lists all sfdc channels that match the filter. Restrict to sfdc channels
3979
+ # belonging to the current client only.
3980
+ # @param [String] parent
3981
+ # Required. The client, which owns this collection of SfdcChannels.
3982
+ # @param [String] filter
3983
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3984
+ # guides/v2/list-filters.
3985
+ # @param [Fixnum] page_size
3986
+ # The size of entries in the response. If unspecified, defaults to 100.
3987
+ # @param [String] page_token
3988
+ # The token returned in the previous response.
3989
+ # @param [String] read_mask
3990
+ # The mask which specifies fields that need to be returned in the SfdcChannel's
3991
+ # response.
3992
+ # @param [String] fields
3993
+ # Selector specifying which fields to include in a partial response.
3994
+ # @param [String] quota_user
3995
+ # Available to use for quota purposes for server-side applications. Can be any
3996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3997
+ # @param [Google::Apis::RequestOptions] options
3998
+ # Request-specific options
3999
+ #
4000
+ # @yield [result, err] Result & error if block supplied
4001
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse] parsed result object
4002
+ # @yieldparam err [StandardError] error object if request failed
4003
+ #
4004
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse]
4005
+ #
4006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4009
+ def list_project_location_product_sfdc_instance_sfdc_channels(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4010
+ command = make_simple_command(:get, 'v1/{+parent}/sfdcChannels', options)
4011
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::Representation
4012
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
4013
+ command.params['parent'] = parent unless parent.nil?
4014
+ command.query['filter'] = filter unless filter.nil?
4015
+ command.query['pageSize'] = page_size unless page_size.nil?
4016
+ command.query['pageToken'] = page_token unless page_token.nil?
4017
+ command.query['readMask'] = read_mask unless read_mask.nil?
4018
+ command.query['fields'] = fields unless fields.nil?
4019
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4020
+ execute_or_queue_command(command, &block)
4021
+ end
4022
+
4023
+ # Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc
4024
+ # channel.
4025
+ # @param [String] name
4026
+ # Resource name of the SFDC channel projects/`project`/locations/`location`/
4027
+ # sfdcInstances/`sfdc_instance`/sfdcChannels/`sfdc_channel`.
4028
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
4029
+ # @param [String] update_mask
4030
+ # Field mask specifying the fields in the above SfdcChannel that have been
4031
+ # modified and need to be updated.
4032
+ # @param [String] fields
4033
+ # Selector specifying which fields to include in a partial response.
4034
+ # @param [String] quota_user
4035
+ # Available to use for quota purposes for server-side applications. Can be any
4036
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4037
+ # @param [Google::Apis::RequestOptions] options
4038
+ # Request-specific options
4039
+ #
4040
+ # @yield [result, err] Result & error if block supplied
4041
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
4042
+ # @yieldparam err [StandardError] error object if request failed
4043
+ #
4044
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4045
+ #
4046
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4047
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4048
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4049
+ def patch_project_location_product_sfdc_instance_sfdc_channel(name, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4050
+ command = make_simple_command(:patch, 'v1/{+name}', options)
4051
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4052
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
4053
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4054
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4055
+ command.params['name'] = name unless name.nil?
4056
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4057
+ command.query['fields'] = fields unless fields.nil?
4058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4059
+ execute_or_queue_command(command, &block)
4060
+ end
4061
+
4062
+ # Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
4063
+ # the sfdc instance.
4064
+ # @param [String] parent
4065
+ # Required. "projects/`project`/locations/`location`" format.
4066
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
4067
+ # @param [String] fields
4068
+ # Selector specifying which fields to include in a partial response.
4069
+ # @param [String] quota_user
4070
+ # Available to use for quota purposes for server-side applications. Can be any
4071
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4072
+ # @param [Google::Apis::RequestOptions] options
4073
+ # Request-specific options
4074
+ #
4075
+ # @yield [result, err] Result & error if block supplied
4076
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
4077
+ # @yieldparam err [StandardError] error object if request failed
4078
+ #
4079
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
4080
+ #
4081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4084
+ def create_project_location_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4085
+ command = make_simple_command(:post, 'v1/{+parent}/sfdcInstances', options)
4086
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
4087
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
4088
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
4089
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
4090
+ command.params['parent'] = parent unless parent.nil?
4091
+ command.query['fields'] = fields unless fields.nil?
4092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4093
+ execute_or_queue_command(command, &block)
4094
+ end
4095
+
4096
+ # Deletes an sfdc instance.
4097
+ # @param [String] name
4098
+ # Required. The name that is associated with the SfdcInstance.
4099
+ # @param [String] fields
4100
+ # Selector specifying which fields to include in a partial response.
4101
+ # @param [String] quota_user
4102
+ # Available to use for quota purposes for server-side applications. Can be any
4103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4104
+ # @param [Google::Apis::RequestOptions] options
4105
+ # Request-specific options
4106
+ #
4107
+ # @yield [result, err] Result & error if block supplied
4108
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
4109
+ # @yieldparam err [StandardError] error object if request failed
4110
+ #
4111
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
4112
+ #
4113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4116
+ def delete_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
4117
+ command = make_simple_command(:delete, 'v1/{+name}', options)
4118
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
4119
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
4120
+ command.params['name'] = name unless name.nil?
4121
+ command.query['fields'] = fields unless fields.nil?
4122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4123
+ execute_or_queue_command(command, &block)
4124
+ end
4125
+
4126
+ # Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception
4127
+ # will be thrown.
4128
+ # @param [String] name
4129
+ # Required. The name that is associated with the SfdcInstance.
4130
+ # @param [String] fields
4131
+ # Selector specifying which fields to include in a partial response.
4132
+ # @param [String] quota_user
4133
+ # Available to use for quota purposes for server-side applications. Can be any
4134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4135
+ # @param [Google::Apis::RequestOptions] options
4136
+ # Request-specific options
4137
+ #
4138
+ # @yield [result, err] Result & error if block supplied
4139
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
4140
+ # @yieldparam err [StandardError] error object if request failed
4141
+ #
4142
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
4143
+ #
4144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4147
+ def get_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
4148
+ command = make_simple_command(:get, 'v1/{+name}', options)
4149
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
4150
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
4151
+ command.params['name'] = name unless name.nil?
4152
+ command.query['fields'] = fields unless fields.nil?
4153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4154
+ execute_or_queue_command(command, &block)
4155
+ end
4156
+
4157
+ # Lists all sfdc instances that match the filter. Restrict to sfdc instances
4158
+ # belonging to the current client only.
4159
+ # @param [String] parent
4160
+ # Required. The client, which owns this collection of SfdcInstances.
4161
+ # @param [String] filter
4162
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
4163
+ # guides/v2/list-filters.
4164
+ # @param [Fixnum] page_size
4165
+ # The size of entries in the response. If unspecified, defaults to 100.
4166
+ # @param [String] page_token
4167
+ # The token returned in the previous response.
4168
+ # @param [String] read_mask
4169
+ # The mask which specifies fields that need to be returned in the SfdcInstance's
4170
+ # response.
4171
+ # @param [String] fields
4172
+ # Selector specifying which fields to include in a partial response.
4173
+ # @param [String] quota_user
4174
+ # Available to use for quota purposes for server-side applications. Can be any
4175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4176
+ # @param [Google::Apis::RequestOptions] options
4177
+ # Request-specific options
4178
+ #
4179
+ # @yield [result, err] Result & error if block supplied
4180
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse] parsed result object
4181
+ # @yieldparam err [StandardError] error object if request failed
4182
+ #
4183
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse]
4184
+ #
4185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4188
+ def list_project_location_sfdc_instances(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4189
+ command = make_simple_command(:get, 'v1/{+parent}/sfdcInstances', options)
4190
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::Representation
4191
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
4192
+ command.params['parent'] = parent unless parent.nil?
4193
+ command.query['filter'] = filter unless filter.nil?
4194
+ command.query['pageSize'] = page_size unless page_size.nil?
4195
+ command.query['pageToken'] = page_token unless page_token.nil?
4196
+ command.query['readMask'] = read_mask unless read_mask.nil?
4197
+ command.query['fields'] = fields unless fields.nil?
4198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4199
+ execute_or_queue_command(command, &block)
4200
+ end
4201
+
4202
+ # Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
4203
+ # sfdc instance.
4204
+ # @param [String] name
4205
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
4206
+ # sfdcInstances/`sfdcInstance`.
4207
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
4208
+ # @param [String] update_mask
4209
+ # Field mask specifying the fields in the above SfdcInstance that have been
4210
+ # modified and need to be updated.
4211
+ # @param [String] fields
4212
+ # Selector specifying which fields to include in a partial response.
4213
+ # @param [String] quota_user
4214
+ # Available to use for quota purposes for server-side applications. Can be any
4215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4216
+ # @param [Google::Apis::RequestOptions] options
4217
+ # Request-specific options
4218
+ #
4219
+ # @yield [result, err] Result & error if block supplied
4220
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
4221
+ # @yieldparam err [StandardError] error object if request failed
4222
+ #
4223
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
4224
+ #
4225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4228
+ def patch_project_location_sfdc_instance(name, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4229
+ command = make_simple_command(:patch, 'v1/{+name}', options)
4230
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
4231
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
4232
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
4233
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
4234
+ command.params['name'] = name unless name.nil?
4235
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4236
+ command.query['fields'] = fields unless fields.nil?
4237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4238
+ execute_or_queue_command(command, &block)
4239
+ end
4240
+
4241
+ # Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the
4242
+ # sfdc channel.
4243
+ # @param [String] parent
4244
+ # Required. "projects/`project`/locations/`location`" format.
4245
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
4246
+ # @param [String] fields
4247
+ # Selector specifying which fields to include in a partial response.
4248
+ # @param [String] quota_user
4249
+ # Available to use for quota purposes for server-side applications. Can be any
4250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4251
+ # @param [Google::Apis::RequestOptions] options
4252
+ # Request-specific options
4253
+ #
4254
+ # @yield [result, err] Result & error if block supplied
4255
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
4256
+ # @yieldparam err [StandardError] error object if request failed
4257
+ #
4258
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4259
+ #
4260
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4261
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4262
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4263
+ def create_project_location_sfdc_instance_sfdc_channel(parent, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4264
+ command = make_simple_command(:post, 'v1/{+parent}/sfdcChannels', options)
4265
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4266
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
4267
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4268
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4269
+ command.params['parent'] = parent unless parent.nil?
4270
+ command.query['fields'] = fields unless fields.nil?
4271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4272
+ execute_or_queue_command(command, &block)
4273
+ end
4274
+
4275
+ # Deletes an sfdc channel.
4276
+ # @param [String] name
4277
+ # Required. The name that is associated with the SfdcChannel.
4278
+ # @param [String] fields
4279
+ # Selector specifying which fields to include in a partial response.
4280
+ # @param [String] quota_user
4281
+ # Available to use for quota purposes for server-side applications. Can be any
4282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4283
+ # @param [Google::Apis::RequestOptions] options
4284
+ # Request-specific options
4285
+ #
4286
+ # @yield [result, err] Result & error if block supplied
4287
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
4288
+ # @yieldparam err [StandardError] error object if request failed
4289
+ #
4290
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
4291
+ #
4292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4295
+ def delete_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
4296
+ command = make_simple_command(:delete, 'v1/{+name}', options)
4297
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
4298
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
4299
+ command.params['name'] = name unless name.nil?
4300
+ command.query['fields'] = fields unless fields.nil?
4301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4302
+ execute_or_queue_command(command, &block)
4303
+ end
4304
+
4305
+ # Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
4306
+ # will be thrown.
4307
+ # @param [String] name
4308
+ # Required. The name that is associated with the SfdcChannel.
4309
+ # @param [String] fields
4310
+ # Selector specifying which fields to include in a partial response.
4311
+ # @param [String] quota_user
4312
+ # Available to use for quota purposes for server-side applications. Can be any
4313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4314
+ # @param [Google::Apis::RequestOptions] options
4315
+ # Request-specific options
4316
+ #
4317
+ # @yield [result, err] Result & error if block supplied
4318
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
4319
+ # @yieldparam err [StandardError] error object if request failed
4320
+ #
4321
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4322
+ #
4323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4326
+ def get_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
4327
+ command = make_simple_command(:get, 'v1/{+name}', options)
4328
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4329
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4330
+ command.params['name'] = name unless name.nil?
4331
+ command.query['fields'] = fields unless fields.nil?
4332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4333
+ execute_or_queue_command(command, &block)
4334
+ end
4335
+
4336
+ # Lists all sfdc channels that match the filter. Restrict to sfdc channels
4337
+ # belonging to the current client only.
4338
+ # @param [String] parent
4339
+ # Required. The client, which owns this collection of SfdcChannels.
4340
+ # @param [String] filter
4341
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
4342
+ # guides/v2/list-filters.
4343
+ # @param [Fixnum] page_size
4344
+ # The size of entries in the response. If unspecified, defaults to 100.
4345
+ # @param [String] page_token
4346
+ # The token returned in the previous response.
4347
+ # @param [String] read_mask
4348
+ # The mask which specifies fields that need to be returned in the SfdcChannel's
4349
+ # response.
4350
+ # @param [String] fields
4351
+ # Selector specifying which fields to include in a partial response.
4352
+ # @param [String] quota_user
4353
+ # Available to use for quota purposes for server-side applications. Can be any
4354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4355
+ # @param [Google::Apis::RequestOptions] options
4356
+ # Request-specific options
4357
+ #
4358
+ # @yield [result, err] Result & error if block supplied
4359
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse] parsed result object
4360
+ # @yieldparam err [StandardError] error object if request failed
4361
+ #
4362
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse]
4363
+ #
4364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4367
+ def list_project_location_sfdc_instance_sfdc_channels(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4368
+ command = make_simple_command(:get, 'v1/{+parent}/sfdcChannels', options)
4369
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::Representation
4370
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
4371
+ command.params['parent'] = parent unless parent.nil?
4372
+ command.query['filter'] = filter unless filter.nil?
4373
+ command.query['pageSize'] = page_size unless page_size.nil?
4374
+ command.query['pageToken'] = page_token unless page_token.nil?
4375
+ command.query['readMask'] = read_mask unless read_mask.nil?
4376
+ command.query['fields'] = fields unless fields.nil?
4377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4378
+ execute_or_queue_command(command, &block)
4379
+ end
4380
+
4381
+ # Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc
4382
+ # channel.
4383
+ # @param [String] name
4384
+ # Resource name of the SFDC channel projects/`project`/locations/`location`/
4385
+ # sfdcInstances/`sfdc_instance`/sfdcChannels/`sfdc_channel`.
4386
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
4387
+ # @param [String] update_mask
4388
+ # Field mask specifying the fields in the above SfdcChannel that have been
4389
+ # modified and need to be updated.
4390
+ # @param [String] fields
4391
+ # Selector specifying which fields to include in a partial response.
4392
+ # @param [String] quota_user
4393
+ # Available to use for quota purposes for server-side applications. Can be any
4394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4395
+ # @param [Google::Apis::RequestOptions] options
4396
+ # Request-specific options
4397
+ #
4398
+ # @yield [result, err] Result & error if block supplied
4399
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
4400
+ # @yieldparam err [StandardError] error object if request failed
4401
+ #
4402
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4403
+ #
4404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4407
+ def patch_project_location_sfdc_instance_sfdc_channel(name, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4408
+ command = make_simple_command(:patch, 'v1/{+name}', options)
4409
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4410
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
4411
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4412
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4413
+ command.params['name'] = name unless name.nil?
4414
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4415
+ command.query['fields'] = fields unless fields.nil?
4416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4417
+ execute_or_queue_command(command, &block)
4418
+ end
4419
+
4420
+ protected
4421
+
4422
+ def apply_command_defaults(command)
4423
+ command.query['key'] = key unless key.nil?
4424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4425
+ end
4426
+ end
4427
+ end
4428
+ end
4429
+ end