google-apis-integrations_v1alpha 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3673 @@
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 IntegrationsV1alpha
23
+ # Application Integration API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/integrations_v1alpha'
29
+ #
30
+ # Integrations = Google::Apis::IntegrationsV1alpha # Alias the module
31
+ # service = Integrations::IntegrationsService.new
32
+ #
33
+ # @see http://www.google.com
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_v1alpha',
48
+ client_version: Google::Apis::IntegrationsV1alpha::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::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaGenerateTokenResponse] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::IntegrationsV1alpha::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, 'v1alpha/callback:generateToken', options)
84
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaGenerateTokenResponse::Representation
85
+ command.response_class = Google::Apis::IntegrationsV1alpha::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::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::IntegrationsV1alpha::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, 'v1alpha/connectorPlatformRegions:enumerate', options)
116
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse::Representation
117
+ command.response_class = Google::Apis::IntegrationsV1alpha::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
+ # This is a UI only method and will be moved away. Returns a list of common
124
+ # tasks.
125
+ # @param [String] parent
126
+ # Required. The location resource of the request. This is not going to be used
127
+ # but preserve the field for future.
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
130
+ # @param [String] quota_user
131
+ # Available to use for quota purposes for server-side applications. Can be any
132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def list_project_location_task_entities(parent, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:get, 'v1alpha/{+parent}:listTaskEntities', options)
147
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse::Representation
148
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse
149
+ command.params['parent'] = parent unless parent.nil?
150
+ command.query['fields'] = fields unless fields.nil?
151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
152
+ execute_or_queue_command(command, &block)
153
+ end
154
+
155
+ # Creates an Apps Script project.
156
+ # @param [String] parent
157
+ # Required. The project that the executed integration belongs to.
158
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest] google_cloud_integrations_v1alpha_create_apps_script_project_request_object
159
+ # @param [String] fields
160
+ # Selector specifying which fields to include in a partial response.
161
+ # @param [String] quota_user
162
+ # Available to use for quota purposes for server-side applications. Can be any
163
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
164
+ # @param [Google::Apis::RequestOptions] options
165
+ # Request-specific options
166
+ #
167
+ # @yield [result, err] Result & error if block supplied
168
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse] parsed result object
169
+ # @yieldparam err [StandardError] error object if request failed
170
+ #
171
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse]
172
+ #
173
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
174
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
175
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
176
+ 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)
177
+ command = make_simple_command(:post, 'v1alpha/{+parent}/appsScriptProjects', options)
178
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest::Representation
179
+ command.request_object = google_cloud_integrations_v1alpha_create_apps_script_project_request_object
180
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse::Representation
181
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse
182
+ command.params['parent'] = parent unless parent.nil?
183
+ command.query['fields'] = fields unless fields.nil?
184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
185
+ execute_or_queue_command(command, &block)
186
+ end
187
+
188
+ # Links a existing Apps Script project.
189
+ # @param [String] parent
190
+ # Required. The project that the executed integration belongs to.
191
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest] google_cloud_integrations_v1alpha_link_apps_script_project_request_object
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [String] quota_user
195
+ # Available to use for quota purposes for server-side applications. Can be any
196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
197
+ # @param [Google::Apis::RequestOptions] options
198
+ # Request-specific options
199
+ #
200
+ # @yield [result, err] Result & error if block supplied
201
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse] parsed result object
202
+ # @yieldparam err [StandardError] error object if request failed
203
+ #
204
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse]
205
+ #
206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
209
+ 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)
210
+ command = make_simple_command(:post, 'v1alpha/{+parent}/appsScriptProjects:link', options)
211
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest::Representation
212
+ command.request_object = google_cloud_integrations_v1alpha_link_apps_script_project_request_object
213
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse::Representation
214
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse
215
+ command.params['parent'] = parent unless parent.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
218
+ execute_or_queue_command(command, &block)
219
+ end
220
+
221
+ # Creates an auth config record. Fetch corresponding credentials for specific
222
+ # auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
223
+ # auth config with Cloud KMS and store the encrypted credentials in Spanner.
224
+ # Returns the encrypted auth config.
225
+ # @param [String] parent
226
+ # Required. "projects/`project`/locations/`location`" format.
227
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
228
+ # @param [String] client_certificate_encrypted_private_key
229
+ # The ssl certificate encoded in PEM format. This string must include the begin
230
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
231
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
232
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
233
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
234
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
235
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
236
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
237
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
238
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
239
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
240
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
241
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
242
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
243
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
244
+ # @param [String] client_certificate_passphrase
245
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
246
+ # passphrase' is not the password for web server, but an extra layer of security
247
+ # to protected private key.
248
+ # @param [String] client_certificate_ssl_certificate
249
+ # The ssl certificate encoded in PEM format. This string must include the begin
250
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
251
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
252
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
253
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
254
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
255
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
256
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
257
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
258
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
259
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
260
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
261
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
262
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
263
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
264
+ # @param [String] fields
265
+ # Selector specifying which fields to include in a partial response.
266
+ # @param [String] quota_user
267
+ # Available to use for quota purposes for server-side applications. Can be any
268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
269
+ # @param [Google::Apis::RequestOptions] options
270
+ # Request-specific options
271
+ #
272
+ # @yield [result, err] Result & error if block supplied
273
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
274
+ # @yieldparam err [StandardError] error object if request failed
275
+ #
276
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig]
277
+ #
278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
281
+ 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)
282
+ command = make_simple_command(:post, 'v1alpha/{+parent}/authConfigs', options)
283
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
284
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
285
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
286
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig
287
+ command.params['parent'] = parent unless parent.nil?
288
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
289
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
290
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
291
+ command.query['fields'] = fields unless fields.nil?
292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
293
+ execute_or_queue_command(command, &block)
294
+ end
295
+
296
+ # Deletes an auth config.
297
+ # @param [String] name
298
+ # Required. The name that is associated with the AuthConfig.
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
301
+ # @param [String] quota_user
302
+ # Available to use for quota purposes for server-side applications. Can be any
303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
304
+ # @param [Google::Apis::RequestOptions] options
305
+ # Request-specific options
306
+ #
307
+ # @yield [result, err] Result & error if block supplied
308
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty] parsed result object
309
+ # @yieldparam err [StandardError] error object if request failed
310
+ #
311
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty]
312
+ #
313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
316
+ def delete_project_location_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
317
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
318
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty::Representation
319
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty
320
+ command.params['name'] = name unless name.nil?
321
+ command.query['fields'] = fields unless fields.nil?
322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
323
+ execute_or_queue_command(command, &block)
324
+ end
325
+
326
+ # Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
327
+ # exception will be thrown. Returns the decrypted auth config.
328
+ # @param [String] name
329
+ # Required. The name that is associated with the AuthConfig.
330
+ # @param [String] fields
331
+ # Selector specifying which fields to include in a partial response.
332
+ # @param [String] quota_user
333
+ # Available to use for quota purposes for server-side applications. Can be any
334
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
335
+ # @param [Google::Apis::RequestOptions] options
336
+ # Request-specific options
337
+ #
338
+ # @yield [result, err] Result & error if block supplied
339
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
340
+ # @yieldparam err [StandardError] error object if request failed
341
+ #
342
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig]
343
+ #
344
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
345
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
346
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
347
+ def get_project_location_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
348
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
349
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
350
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig
351
+ command.params['name'] = name unless name.nil?
352
+ command.query['fields'] = fields unless fields.nil?
353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
354
+ execute_or_queue_command(command, &block)
355
+ end
356
+
357
+ # Lists all auth configs that match the filter. Restrict to auth configs belong
358
+ # to the current client only.
359
+ # @param [String] parent
360
+ # Required. The client, which owns this collection of AuthConfigs.
361
+ # @param [String] filter
362
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
363
+ # guides/v2/list-filters.
364
+ # @param [Fixnum] page_size
365
+ # The size of entries in the response. If unspecified, defaults to 100.
366
+ # @param [String] page_token
367
+ # The token returned in the previous response.
368
+ # @param [String] read_mask
369
+ # The mask which specifies fields that need to be returned in the AuthConfig's
370
+ # response.
371
+ # @param [String] fields
372
+ # Selector specifying which fields to include in a partial response.
373
+ # @param [String] quota_user
374
+ # Available to use for quota purposes for server-side applications. Can be any
375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
376
+ # @param [Google::Apis::RequestOptions] options
377
+ # Request-specific options
378
+ #
379
+ # @yield [result, err] Result & error if block supplied
380
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse] parsed result object
381
+ # @yieldparam err [StandardError] error object if request failed
382
+ #
383
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse]
384
+ #
385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
388
+ 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)
389
+ command = make_simple_command(:get, 'v1alpha/{+parent}/authConfigs', options)
390
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::Representation
391
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
392
+ command.params['parent'] = parent unless parent.nil?
393
+ command.query['filter'] = filter unless filter.nil?
394
+ command.query['pageSize'] = page_size unless page_size.nil?
395
+ command.query['pageToken'] = page_token unless page_token.nil?
396
+ command.query['readMask'] = read_mask unless read_mask.nil?
397
+ command.query['fields'] = fields unless fields.nil?
398
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
399
+ execute_or_queue_command(command, &block)
400
+ end
401
+
402
+ # Updates an auth config. If credential is updated, fetch the encrypted auth
403
+ # config from Spanner, decrypt with Cloud KMS key, update the credential fields,
404
+ # re-encrypt with Cloud KMS key and update the Spanner record. For other fields,
405
+ # directly update the Spanner record. Returns the encrypted auth config.
406
+ # @param [String] name
407
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
408
+ # authConfigs/`authConfig`.
409
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
410
+ # @param [String] client_certificate_encrypted_private_key
411
+ # The ssl certificate encoded in PEM format. This string must include the begin
412
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
413
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
414
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
415
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
416
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
417
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
418
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
419
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
420
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
421
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
422
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
423
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
424
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
425
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
426
+ # @param [String] client_certificate_passphrase
427
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
428
+ # passphrase' is not the password for web server, but an extra layer of security
429
+ # to protected private key.
430
+ # @param [String] client_certificate_ssl_certificate
431
+ # The ssl certificate encoded in PEM format. This string must include the begin
432
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
433
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
434
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
435
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
436
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
437
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
438
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
439
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
440
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
441
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
442
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
443
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
444
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
445
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
446
+ # @param [String] update_mask
447
+ # Field mask specifying the fields in the above AuthConfig that have been
448
+ # modified and need to be updated.
449
+ # @param [String] fields
450
+ # Selector specifying which fields to include in a partial response.
451
+ # @param [String] quota_user
452
+ # Available to use for quota purposes for server-side applications. Can be any
453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
454
+ # @param [Google::Apis::RequestOptions] options
455
+ # Request-specific options
456
+ #
457
+ # @yield [result, err] Result & error if block supplied
458
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
459
+ # @yieldparam err [StandardError] error object if request failed
460
+ #
461
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig]
462
+ #
463
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
464
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
465
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
466
+ 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)
467
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
468
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
469
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
470
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
471
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig
472
+ command.params['name'] = name unless name.nil?
473
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
474
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
475
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
476
+ command.query['updateMask'] = update_mask unless update_mask.nil?
477
+ command.query['fields'] = fields unless fields.nil?
478
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
479
+ execute_or_queue_command(command, &block)
480
+ end
481
+
482
+ # Get a certificates in the specified project.
483
+ # @param [String] name
484
+ # Required. The certificate to retrieve. Format: projects/`project`/locations/`
485
+ # location`/certificates/`certificate`
486
+ # @param [String] fields
487
+ # Selector specifying which fields to include in a partial response.
488
+ # @param [String] quota_user
489
+ # Available to use for quota purposes for server-side applications. Can be any
490
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def get_project_location_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
504
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
505
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate::Representation
506
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate
507
+ command.params['name'] = name unless name.nil?
508
+ command.query['fields'] = fields unless fields.nil?
509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
+ execute_or_queue_command(command, &block)
511
+ end
512
+
513
+ # Lists the available entities and actions associated with a Connection.
514
+ # @param [String] name
515
+ # Required. ConnectionSchemaMetadata name. Format: projects/`project`/locations/`
516
+ # location`/connections/`connection`/connectionSchemaMetadata
517
+ # @param [String] fields
518
+ # Selector specifying which fields to include in a partial response.
519
+ # @param [String] quota_user
520
+ # Available to use for quota purposes for server-side applications. Can be any
521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
522
+ # @param [Google::Apis::RequestOptions] options
523
+ # Request-specific options
524
+ #
525
+ # @yield [result, err] Result & error if block supplied
526
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata] parsed result object
527
+ # @yieldparam err [StandardError] error object if request failed
528
+ #
529
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata]
530
+ #
531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
534
+ def get_project_location_connection_connection_schema_metadata(name, fields: nil, quota_user: nil, options: nil, &block)
535
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
536
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata::Representation
537
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata
538
+ command.params['name'] = name unless name.nil?
539
+ command.query['fields'] = fields unless fields.nil?
540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
541
+ execute_or_queue_command(command, &block)
542
+ end
543
+
544
+ # Lists Connections in a given project and location.
545
+ # @param [String] parent
546
+ # Required. Parent resource of the Connection, of the form: `projects/*/
547
+ # locations/*`
548
+ # @param [String] filter
549
+ # Filter.
550
+ # @param [String] order_by
551
+ # Order by parameters.
552
+ # @param [Fixnum] page_size
553
+ # Page size.
554
+ # @param [String] page_token
555
+ # Page token.
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListConnectionsResponse] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListConnectionsResponse]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ 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)
574
+ command = make_simple_command(:get, 'v1alpha/{+parent}/connections', options)
575
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListConnectionsResponse::Representation
576
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListConnectionsResponse
577
+ command.params['parent'] = parent unless parent.nil?
578
+ command.query['filter'] = filter unless filter.nil?
579
+ command.query['orderBy'] = order_by unless order_by.nil?
580
+ command.query['pageSize'] = page_size unless page_size.nil?
581
+ command.query['pageToken'] = page_token unless page_token.nil?
582
+ command.query['fields'] = fields unless fields.nil?
583
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
584
+ execute_or_queue_command(command, &block)
585
+ end
586
+
587
+ # Lists the JSON schemas for the inputs and outputs of actions, filtered by
588
+ # action name.
589
+ # @param [String] parent
590
+ # Required. Parent resource of RuntimeActionSchema. Format: projects/`project`/
591
+ # locations/`location`/connections/`connection`
592
+ # @param [String] filter
593
+ # Filter. Only the action field with literal equality operator is supported.
594
+ # @param [Fixnum] page_size
595
+ # Page size.
596
+ # @param [String] page_token
597
+ # Page token.
598
+ # @param [String] fields
599
+ # Selector specifying which fields to include in a partial response.
600
+ # @param [String] quota_user
601
+ # Available to use for quota purposes for server-side applications. Can be any
602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
603
+ # @param [Google::Apis::RequestOptions] options
604
+ # Request-specific options
605
+ #
606
+ # @yield [result, err] Result & error if block supplied
607
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse] parsed result object
608
+ # @yieldparam err [StandardError] error object if request failed
609
+ #
610
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse]
611
+ #
612
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
613
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
614
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
615
+ 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)
616
+ command = make_simple_command(:get, 'v1alpha/{+parent}/runtimeActionSchemas', options)
617
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse::Representation
618
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse
619
+ command.params['parent'] = parent unless parent.nil?
620
+ command.query['filter'] = filter unless filter.nil?
621
+ command.query['pageSize'] = page_size unless page_size.nil?
622
+ command.query['pageToken'] = page_token unless page_token.nil?
623
+ command.query['fields'] = fields unless fields.nil?
624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
625
+ execute_or_queue_command(command, &block)
626
+ end
627
+
628
+ # Lists the JSON schemas for the properties of runtime entities, filtered by
629
+ # entity name.
630
+ # @param [String] parent
631
+ # Required. Parent resource of RuntimeEntitySchema. Format: projects/`project`/
632
+ # locations/`location`/connections/`connection`
633
+ # @param [String] filter
634
+ # Filter. Only the entity field with literal equality operator is supported.
635
+ # @param [Fixnum] page_size
636
+ # Page size.
637
+ # @param [String] page_token
638
+ # Page token.
639
+ # @param [String] fields
640
+ # Selector specifying which fields to include in a partial response.
641
+ # @param [String] quota_user
642
+ # Available to use for quota purposes for server-side applications. Can be any
643
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
644
+ # @param [Google::Apis::RequestOptions] options
645
+ # Request-specific options
646
+ #
647
+ # @yield [result, err] Result & error if block supplied
648
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse] parsed result object
649
+ # @yieldparam err [StandardError] error object if request failed
650
+ #
651
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse]
652
+ #
653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
656
+ 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)
657
+ command = make_simple_command(:get, 'v1alpha/{+parent}/runtimeEntitySchemas', options)
658
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse::Representation
659
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse
660
+ command.params['parent'] = parent unless parent.nil?
661
+ command.query['filter'] = filter unless filter.nil?
662
+ command.query['pageSize'] = page_size unless page_size.nil?
663
+ command.query['pageToken'] = page_token unless page_token.nil?
664
+ command.query['fields'] = fields unless fields.nil?
665
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
666
+ execute_or_queue_command(command, &block)
667
+ end
668
+
669
+ # Executes integrations synchronously by passing the trigger id in the request
670
+ # body. The request is not returned until the requested executions are either
671
+ # fulfilled or experienced an error. If the integration name is not specified (
672
+ # passing `-`), all of the associated integration under the given trigger_id
673
+ # will be executed. Otherwise only the specified integration for the given `
674
+ # trigger_id` is executed. This is helpful for execution the integration from UI.
675
+ # @param [String] name
676
+ # Required. The integration resource name.
677
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest] google_cloud_integrations_v1alpha_execute_integrations_request_object
678
+ # @param [String] fields
679
+ # Selector specifying which fields to include in a partial response.
680
+ # @param [String] quota_user
681
+ # Available to use for quota purposes for server-side applications. Can be any
682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
683
+ # @param [Google::Apis::RequestOptions] options
684
+ # Request-specific options
685
+ #
686
+ # @yield [result, err] Result & error if block supplied
687
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse] parsed result object
688
+ # @yieldparam err [StandardError] error object if request failed
689
+ #
690
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse]
691
+ #
692
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
693
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
695
+ def execute_project_location_integration(name, google_cloud_integrations_v1alpha_execute_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
696
+ command = make_simple_command(:post, 'v1alpha/{+name}:execute', options)
697
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest::Representation
698
+ command.request_object = google_cloud_integrations_v1alpha_execute_integrations_request_object
699
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::Representation
700
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
701
+ command.params['name'] = name unless name.nil?
702
+ command.query['fields'] = fields unless fields.nil?
703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
704
+ execute_or_queue_command(command, &block)
705
+ end
706
+
707
+ # Returns the list of all integrations in the specified project.
708
+ # @param [String] parent
709
+ # Required. Project and location from which the integrations should be listed.
710
+ # Format: projects/`project`
711
+ # @param [String] filter
712
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
713
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
714
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
715
+ # inequality) operators. Negation, conjunction, and disjunction are written
716
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
717
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
718
+ # fields like `task_config`.
719
+ # @param [String] order_by
720
+ # The results would be returned in order you specified here. Supported sort keys
721
+ # are: Descending sort order by "last_modified_time", "created_time", "
722
+ # snapshot_number". Ascending sort order by the integration name.
723
+ # @param [Fixnum] page_size
724
+ # The page size for the resquest.
725
+ # @param [String] page_token
726
+ # The page token for the resquest.
727
+ # @param [String] fields
728
+ # Selector specifying which fields to include in a partial response.
729
+ # @param [String] quota_user
730
+ # Available to use for quota purposes for server-side applications. Can be any
731
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
732
+ # @param [Google::Apis::RequestOptions] options
733
+ # Request-specific options
734
+ #
735
+ # @yield [result, err] Result & error if block supplied
736
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse] parsed result object
737
+ # @yieldparam err [StandardError] error object if request failed
738
+ #
739
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse]
740
+ #
741
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
742
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
743
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
744
+ 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)
745
+ command = make_simple_command(:get, 'v1alpha/{+parent}/integrations', options)
746
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse::Representation
747
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse
748
+ command.params['parent'] = parent unless parent.nil?
749
+ command.query['filter'] = filter unless filter.nil?
750
+ command.query['orderBy'] = order_by unless order_by.nil?
751
+ command.query['pageSize'] = page_size unless page_size.nil?
752
+ command.query['pageToken'] = page_token unless page_token.nil?
753
+ command.query['fields'] = fields unless fields.nil?
754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
755
+ execute_or_queue_command(command, &block)
756
+ end
757
+
758
+ # Get execution stats
759
+ # @param [String] parent
760
+ # Required. The parent resource name: `parent=projects/*/locations/*`.
761
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest] google_cloud_integrations_v1alpha_monitor_execution_stats_request_object
762
+ # @param [String] fields
763
+ # Selector specifying which fields to include in a partial response.
764
+ # @param [String] quota_user
765
+ # Available to use for quota purposes for server-side applications. Can be any
766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
767
+ # @param [Google::Apis::RequestOptions] options
768
+ # Request-specific options
769
+ #
770
+ # @yield [result, err] Result & error if block supplied
771
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse] parsed result object
772
+ # @yieldparam err [StandardError] error object if request failed
773
+ #
774
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse]
775
+ #
776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779
+ def monitorexecutionstats_project_location_integration(parent, google_cloud_integrations_v1alpha_monitor_execution_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
780
+ command = make_simple_command(:post, 'v1alpha/{+parent}:monitorexecutionstats', options)
781
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest::Representation
782
+ command.request_object = google_cloud_integrations_v1alpha_monitor_execution_stats_request_object
783
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse::Representation
784
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse
785
+ command.params['parent'] = parent unless parent.nil?
786
+ command.query['fields'] = fields unless fields.nil?
787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
788
+ execute_or_queue_command(command, &block)
789
+ end
790
+
791
+ # Schedules an integration for execution by passing the trigger id and the
792
+ # scheduled time in the request body.
793
+ # @param [String] name
794
+ # The integration resource name.
795
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest] google_cloud_integrations_v1alpha_schedule_integrations_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::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse] parsed result object
806
+ # @yieldparam err [StandardError] error object if request failed
807
+ #
808
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse]
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 schedule_project_location_integration(name, google_cloud_integrations_v1alpha_schedule_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:post, 'v1alpha/{+name}:schedule', options)
815
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest::Representation
816
+ command.request_object = google_cloud_integrations_v1alpha_schedule_integrations_request_object
817
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::Representation
818
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
819
+ command.params['name'] = name unless name.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 status of the integration executions.
826
+ # @param [String] parent
827
+ # Required. The parent resource name of the integration execution.
828
+ # @param [String] filter
829
+ # Optional. Standard filter field, we support filtering on all fields in
830
+ # EventExecutionParamIndexes table. All fields support for EQUALS, in additional:
831
+ # CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey,
832
+ # ParameterValue, ParameterType support for HAS For example: "parameter_value"
833
+ # HAS \"parameter1\" Also supports operators like AND, OR, NOT For example,
834
+ # trigger_id=\"id1\" AND event_execution_state=\"FAILED\"
835
+ # @param [String] filter_params_custom_filter
836
+ # Optional user-provided custom filter.
837
+ # @param [Fixnum] filter_params_end_time
838
+ # End timestamp.
839
+ # @param [Array<String>, String] filter_params_event_statuses
840
+ # List of possible event statuses.
841
+ # @param [String] filter_params_execution_id
842
+ # Execution id.
843
+ # @param [String] filter_params_parameter_key
844
+ # Param key. DEPRECATED. User parameter_pair_key instead.
845
+ # @param [String] filter_params_parameter_pair_key
846
+ # Param key in the key value pair filter.
847
+ # @param [String] filter_params_parameter_pair_value
848
+ # Param value in the key value pair filter.
849
+ # @param [String] filter_params_parameter_type
850
+ # Param type.
851
+ # @param [String] filter_params_parameter_value
852
+ # Param value. DEPRECATED. User parameter_pair_value instead.
853
+ # @param [Fixnum] filter_params_start_time
854
+ # Start timestamp.
855
+ # @param [Array<String>, String] filter_params_task_statuses
856
+ # List of possible task statuses.
857
+ # @param [String] filter_params_trigger_id
858
+ # Trigger id.
859
+ # @param [String] filter_params_workflow_name
860
+ # Workflow name.
861
+ # @param [String] order_by
862
+ # Optional. The results would be returned in order you specified here. Currently
863
+ # supporting "last_modified_time" and "create_time".
864
+ # @param [Fixnum] page_size
865
+ # Optional. The size of entries in the response.
866
+ # @param [String] page_token
867
+ # Optional. The token returned in the previous response.
868
+ # @param [String] read_mask
869
+ # Optional. View mask for the response data. If set, only the field specified
870
+ # will be returned as part of the result. If not set, all fields in event
871
+ # execution info will be filled and returned.
872
+ # @param [Boolean] refresh_acl
873
+ # Optional. If true, the service will use the most recent acl information to
874
+ # list event execution infos and renew the acl cache. Note that fetching the
875
+ # most recent acl is synchronous, so it will increase RPC call latency.
876
+ # @param [Boolean] truncate_params
877
+ # Optional. If true, the service will truncate the params to only keep the first
878
+ # 1000 characters of string params and empty the executions in order to make
879
+ # response smaller. Only works for UI and when the params fields are not
880
+ # filtered out.
881
+ # @param [String] fields
882
+ # Selector specifying which fields to include in a partial response.
883
+ # @param [String] quota_user
884
+ # Available to use for quota purposes for server-side applications. Can be any
885
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
886
+ # @param [Google::Apis::RequestOptions] options
887
+ # Request-specific options
888
+ #
889
+ # @yield [result, err] Result & error if block supplied
890
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse] parsed result object
891
+ # @yieldparam err [StandardError] error object if request failed
892
+ #
893
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse]
894
+ #
895
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
896
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
897
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
898
+ 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_trigger_id: 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)
899
+ command = make_simple_command(:get, 'v1alpha/{+parent}/executions', options)
900
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse::Representation
901
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse
902
+ command.params['parent'] = parent unless parent.nil?
903
+ command.query['filter'] = filter unless filter.nil?
904
+ command.query['filterParams.customFilter'] = filter_params_custom_filter unless filter_params_custom_filter.nil?
905
+ command.query['filterParams.endTime'] = filter_params_end_time unless filter_params_end_time.nil?
906
+ command.query['filterParams.eventStatuses'] = filter_params_event_statuses unless filter_params_event_statuses.nil?
907
+ command.query['filterParams.executionId'] = filter_params_execution_id unless filter_params_execution_id.nil?
908
+ command.query['filterParams.parameterKey'] = filter_params_parameter_key unless filter_params_parameter_key.nil?
909
+ command.query['filterParams.parameterPairKey'] = filter_params_parameter_pair_key unless filter_params_parameter_pair_key.nil?
910
+ command.query['filterParams.parameterPairValue'] = filter_params_parameter_pair_value unless filter_params_parameter_pair_value.nil?
911
+ command.query['filterParams.parameterType'] = filter_params_parameter_type unless filter_params_parameter_type.nil?
912
+ command.query['filterParams.parameterValue'] = filter_params_parameter_value unless filter_params_parameter_value.nil?
913
+ command.query['filterParams.startTime'] = filter_params_start_time unless filter_params_start_time.nil?
914
+ command.query['filterParams.taskStatuses'] = filter_params_task_statuses unless filter_params_task_statuses.nil?
915
+ command.query['filterParams.triggerId'] = filter_params_trigger_id unless filter_params_trigger_id.nil?
916
+ command.query['filterParams.workflowName'] = filter_params_workflow_name unless filter_params_workflow_name.nil?
917
+ command.query['orderBy'] = order_by unless order_by.nil?
918
+ command.query['pageSize'] = page_size unless page_size.nil?
919
+ command.query['pageToken'] = page_token unless page_token.nil?
920
+ command.query['readMask'] = read_mask unless read_mask.nil?
921
+ command.query['refreshAcl'] = refresh_acl unless refresh_acl.nil?
922
+ command.query['truncateParams'] = truncate_params unless truncate_params.nil?
923
+ command.query['fields'] = fields unless fields.nil?
924
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
925
+ execute_or_queue_command(command, &block)
926
+ end
927
+
928
+ # Soft-deletes the integration. Changes the status of the integration to
929
+ # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
930
+ # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
931
+ # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
932
+ # exception if the version being archived is DRAFT, and if the `locked_by` user
933
+ # is not the same as the user performing the Archive. Audit fields updated
934
+ # include last_modified_timestamp, last_modified_by. Any existing lock is
935
+ # released when Archiving a integration. Currently, there is no unarchive
936
+ # mechanism.
937
+ # @param [String] name
938
+ # Required. The version to archive. Format: projects/`project`/integrations/`
939
+ # integration`/versions/`version`
940
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest] google_cloud_integrations_v1alpha_archive_integration_version_request_object
941
+ # @param [String] fields
942
+ # Selector specifying which fields to include in a partial response.
943
+ # @param [String] quota_user
944
+ # Available to use for quota purposes for server-side applications. Can be any
945
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
946
+ # @param [Google::Apis::RequestOptions] options
947
+ # Request-specific options
948
+ #
949
+ # @yield [result, err] Result & error if block supplied
950
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse] parsed result object
951
+ # @yieldparam err [StandardError] error object if request failed
952
+ #
953
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse]
954
+ #
955
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
956
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
957
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
958
+ 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)
959
+ command = make_simple_command(:post, 'v1alpha/{+name}:archive', options)
960
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest::Representation
961
+ command.request_object = google_cloud_integrations_v1alpha_archive_integration_version_request_object
962
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse::Representation
963
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse
964
+ command.params['name'] = name unless name.nil?
965
+ command.query['fields'] = fields unless fields.nil?
966
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
967
+ execute_or_queue_command(command, &block)
968
+ end
969
+
970
+ # Create a integration with a draft version in the specified project.
971
+ # @param [String] parent
972
+ # Required. The parent resource where this version will be created. Format:
973
+ # projects/`project`/integrations/`integration`
974
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
975
+ # @param [Boolean] new_integration
976
+ # Set this flag to true, if draft version is to be created for a brand new
977
+ # integration. False, if the request is for an existing integration. For
978
+ # backward compatibility reasons, even if this flag is set to `false` and no
979
+ # existing integration is found, a new draft integration will still be created.
980
+ # @param [String] fields
981
+ # Selector specifying which fields to include in a partial response.
982
+ # @param [String] quota_user
983
+ # Available to use for quota purposes for server-side applications. Can be any
984
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
985
+ # @param [Google::Apis::RequestOptions] options
986
+ # Request-specific options
987
+ #
988
+ # @yield [result, err] Result & error if block supplied
989
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
990
+ # @yieldparam err [StandardError] error object if request failed
991
+ #
992
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion]
993
+ #
994
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
995
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
996
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
997
+ 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)
998
+ command = make_simple_command(:post, 'v1alpha/{+parent}/versions', options)
999
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1000
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
1001
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1002
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion
1003
+ command.params['parent'] = parent unless parent.nil?
1004
+ command.query['newIntegration'] = new_integration unless new_integration.nil?
1005
+ command.query['fields'] = fields unless fields.nil?
1006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1007
+ execute_or_queue_command(command, &block)
1008
+ end
1009
+
1010
+ # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
1011
+ # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
1012
+ # tags do not change. This RPC throws an exception if the version being snapshot
1013
+ # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
1014
+ # @param [String] name
1015
+ # Required. The version to deactivate. Format: projects/`project`/integrations/`
1016
+ # integration`/versions/`version`
1017
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest] google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
1018
+ # @param [String] fields
1019
+ # Selector specifying which fields to include in a partial response.
1020
+ # @param [String] quota_user
1021
+ # Available to use for quota purposes for server-side applications. Can be any
1022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1023
+ # @param [Google::Apis::RequestOptions] options
1024
+ # Request-specific options
1025
+ #
1026
+ # @yield [result, err] Result & error if block supplied
1027
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse] parsed result object
1028
+ # @yieldparam err [StandardError] error object if request failed
1029
+ #
1030
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse]
1031
+ #
1032
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1033
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1034
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1035
+ 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)
1036
+ command = make_simple_command(:post, 'v1alpha/{+name}:deactivate', options)
1037
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest::Representation
1038
+ command.request_object = google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
1039
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse::Representation
1040
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse
1041
+ command.params['name'] = name unless name.nil?
1042
+ command.query['fields'] = fields unless fields.nil?
1043
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1044
+ execute_or_queue_command(command, &block)
1045
+ end
1046
+
1047
+ # Get a integration in the specified project.
1048
+ # @param [String] name
1049
+ # Required. The version to retrieve. Format: projects/`project`/integrations/`
1050
+ # integration`/versions/`version`
1051
+ # @param [String] fields
1052
+ # Selector specifying which fields to include in a partial response.
1053
+ # @param [String] quota_user
1054
+ # Available to use for quota purposes for server-side applications. Can be any
1055
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1056
+ # @param [Google::Apis::RequestOptions] options
1057
+ # Request-specific options
1058
+ #
1059
+ # @yield [result, err] Result & error if block supplied
1060
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
1061
+ # @yieldparam err [StandardError] error object if request failed
1062
+ #
1063
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion]
1064
+ #
1065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1068
+ def get_project_location_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
1069
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1070
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1071
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion
1072
+ command.params['name'] = name unless name.nil?
1073
+ command.query['fields'] = fields unless fields.nil?
1074
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1075
+ execute_or_queue_command(command, &block)
1076
+ end
1077
+
1078
+ # Returns the list of all integration versions in the specified project.
1079
+ # @param [String] parent
1080
+ # Required. The parent resource where this version will be created. Format:
1081
+ # projects/`project`/integrations/`integration` Specifically, when parent equals:
1082
+ # 1. projects//locations//integrations/, Meaning: "List versions (with filter)
1083
+ # for a particular integration". 2. projects//locations//integrations/- Meaning:
1084
+ # "List versions (with filter) for a client within a particular region". 3.
1085
+ # projects//locations/-/integrations/- Meaning: "List versions (with filter) for
1086
+ # a client".
1087
+ # @param [String] field_mask
1088
+ # The field mask which specifies the particular data to be returned.
1089
+ # @param [String] filter
1090
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
1091
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
1092
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
1093
+ # inequality) operators. Negation, conjunction, and disjunction are written
1094
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
1095
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
1096
+ # fields like `task_config`.
1097
+ # @param [String] order_by
1098
+ # The results would be returned in order you specified here. Currently supported
1099
+ # sort keys are: Descending sort order for "last_modified_time", "created_time",
1100
+ # "snapshot_number" Ascending sort order for "name".
1101
+ # @param [Fixnum] page_size
1102
+ # The maximum number of versions to return. The service may return fewer than
1103
+ # this value. If unspecified, at most 50 versions will be returned. The maximum
1104
+ # value is 1000; values above 1000 will be coerced to 1000.
1105
+ # @param [String] page_token
1106
+ # A page token, received from a previous `ListIntegrationVersions` call. Provide
1107
+ # this to retrieve the subsequent page. When paginating, all other parameters
1108
+ # provided to `ListIntegrationVersions` must match the call that provided the
1109
+ # page token.
1110
+ # @param [String] fields
1111
+ # Selector specifying which fields to include in a partial response.
1112
+ # @param [String] quota_user
1113
+ # Available to use for quota purposes for server-side applications. Can be any
1114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1115
+ # @param [Google::Apis::RequestOptions] options
1116
+ # Request-specific options
1117
+ #
1118
+ # @yield [result, err] Result & error if block supplied
1119
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse] parsed result object
1120
+ # @yieldparam err [StandardError] error object if request failed
1121
+ #
1122
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse]
1123
+ #
1124
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1125
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1126
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1127
+ 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)
1128
+ command = make_simple_command(:get, 'v1alpha/{+parent}/versions', options)
1129
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::Representation
1130
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
1131
+ command.params['parent'] = parent unless parent.nil?
1132
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
1133
+ command.query['filter'] = filter unless filter.nil?
1134
+ command.query['orderBy'] = order_by unless order_by.nil?
1135
+ command.query['pageSize'] = page_size unless page_size.nil?
1136
+ command.query['pageToken'] = page_token unless page_token.nil?
1137
+ command.query['fields'] = fields unless fields.nil?
1138
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1139
+ execute_or_queue_command(command, &block)
1140
+ end
1141
+
1142
+ # Update a integration with a draft version in the specified project.
1143
+ # @param [String] name
1144
+ # Output only. Auto-generated primary key.
1145
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
1146
+ # @param [String] update_mask
1147
+ # Field mask specifying the fields in the above integration that have been
1148
+ # modified and need to be updated.
1149
+ # @param [String] fields
1150
+ # Selector specifying which fields to include in a partial response.
1151
+ # @param [String] quota_user
1152
+ # Available to use for quota purposes for server-side applications. Can be any
1153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1154
+ # @param [Google::Apis::RequestOptions] options
1155
+ # Request-specific options
1156
+ #
1157
+ # @yield [result, err] Result & error if block supplied
1158
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
1159
+ # @yieldparam err [StandardError] error object if request failed
1160
+ #
1161
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion]
1162
+ #
1163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1166
+ 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)
1167
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1168
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1169
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
1170
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
1171
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion
1172
+ command.params['name'] = name unless name.nil?
1173
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1174
+ command.query['fields'] = fields unless fields.nil?
1175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1176
+ execute_or_queue_command(command, &block)
1177
+ end
1178
+
1179
+ # This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state.
1180
+ # This RPC throws an exception if the version being published is DRAFT, and if
1181
+ # the `locked_by` user is not the same as the user performing the Publish. Audit
1182
+ # fields updated include last_published_timestamp, last_published_by,
1183
+ # last_modified_timestamp, last_modified_by. Any existing lock is on this
1184
+ # integration is released.
1185
+ # @param [String] name
1186
+ # Required. The version to publish. Format: projects/`project`/integrations/`
1187
+ # integration`/versions/`version`
1188
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_publish_integration_version_request_object
1189
+ # @param [String] fields
1190
+ # Selector specifying which fields to include in a partial response.
1191
+ # @param [String] quota_user
1192
+ # Available to use for quota purposes for server-side applications. Can be any
1193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1194
+ # @param [Google::Apis::RequestOptions] options
1195
+ # Request-specific options
1196
+ #
1197
+ # @yield [result, err] Result & error if block supplied
1198
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse] parsed result object
1199
+ # @yieldparam err [StandardError] error object if request failed
1200
+ #
1201
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse]
1202
+ #
1203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1206
+ 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)
1207
+ command = make_simple_command(:post, 'v1alpha/{+name}:publish', options)
1208
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest::Representation
1209
+ command.request_object = google_cloud_integrations_v1alpha_publish_integration_version_request_object
1210
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::Representation
1211
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
1212
+ command.params['name'] = name unless name.nil?
1213
+ command.query['fields'] = fields unless fields.nil?
1214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1215
+ execute_or_queue_command(command, &block)
1216
+ end
1217
+
1218
+ # Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this
1219
+ # integration. It then performs the same action as the
1220
+ # CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the
1221
+ # integration as a SNAPSHOT and then creates a new DRAFT version with the `
1222
+ # locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to
1223
+ # the current timestamp). Both the `locked_by` and `user_taking_over` are
1224
+ # notified via email about the takeover. This RPC throws an exception if the
1225
+ # integration is not in DRAFT status or if the `locked_by` and `
1226
+ # locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the
1227
+ # same as an edit of the integration, and hence shares ACLs with edit. Audit
1228
+ # fields updated include last_modified_timestamp, last_modified_by.
1229
+ # @param [String] integration_version
1230
+ # Required. The version to take over edit lock. Format: projects/`project`/
1231
+ # integrations/`integration`/versions/`version`
1232
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest] google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
1233
+ # @param [String] fields
1234
+ # Selector specifying which fields to include in a partial response.
1235
+ # @param [String] quota_user
1236
+ # Available to use for quota purposes for server-side applications. Can be any
1237
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1238
+ # @param [Google::Apis::RequestOptions] options
1239
+ # Request-specific options
1240
+ #
1241
+ # @yield [result, err] Result & error if block supplied
1242
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse] parsed result object
1243
+ # @yieldparam err [StandardError] error object if request failed
1244
+ #
1245
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse]
1246
+ #
1247
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1248
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1249
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1250
+ def takeover_project_location_integration_version_edit_lock(integration_version, google_cloud_integrations_v1alpha_takeover_edit_lock_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1251
+ command = make_simple_command(:post, 'v1alpha/{+integrationVersion}:takeoverEditLock', options)
1252
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest::Representation
1253
+ command.request_object = google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
1254
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse::Representation
1255
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse
1256
+ command.params['integrationVersion'] = integration_version unless integration_version.nil?
1257
+ command.query['fields'] = fields unless fields.nil?
1258
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1259
+ execute_or_queue_command(command, &block)
1260
+ end
1261
+
1262
+ # Validates the given integration. If the id doesn't exist, a NotFoundException
1263
+ # is thrown. If validation fails a CanonicalCodeException is thrown. If there
1264
+ # was no failure an empty response is returned.
1265
+ # @param [String] name
1266
+ # Required. The version to validate. Format: projects/`project`/integrations/`
1267
+ # integration`/versions/`version`
1268
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest] google_cloud_integrations_v1alpha_validate_integration_version_request_object
1269
+ # @param [String] fields
1270
+ # Selector specifying which fields to include in a partial response.
1271
+ # @param [String] quota_user
1272
+ # Available to use for quota purposes for server-side applications. Can be any
1273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1274
+ # @param [Google::Apis::RequestOptions] options
1275
+ # Request-specific options
1276
+ #
1277
+ # @yield [result, err] Result & error if block supplied
1278
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse] parsed result object
1279
+ # @yieldparam err [StandardError] error object if request failed
1280
+ #
1281
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse]
1282
+ #
1283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1286
+ 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)
1287
+ command = make_simple_command(:post, 'v1alpha/{+name}:validate', options)
1288
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest::Representation
1289
+ command.request_object = google_cloud_integrations_v1alpha_validate_integration_version_request_object
1290
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse::Representation
1291
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse
1292
+ command.params['name'] = name unless name.nil?
1293
+ command.query['fields'] = fields unless fields.nil?
1294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1295
+ execute_or_queue_command(command, &block)
1296
+ end
1297
+
1298
+ # PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE
1299
+ # SERVICE. Create a bundle.
1300
+ # @param [String] parent
1301
+ # Required. The location resource of the request.
1302
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateBundleRequest] google_cloud_integrations_v1alpha_create_bundle_request_object
1303
+ # @param [String] fields
1304
+ # Selector specifying which fields to include in a partial response.
1305
+ # @param [String] quota_user
1306
+ # Available to use for quota purposes for server-side applications. Can be any
1307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1308
+ # @param [Google::Apis::RequestOptions] options
1309
+ # Request-specific options
1310
+ #
1311
+ # @yield [result, err] Result & error if block supplied
1312
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateBundleResponse] parsed result object
1313
+ # @yieldparam err [StandardError] error object if request failed
1314
+ #
1315
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateBundleResponse]
1316
+ #
1317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1320
+ def create_project_location_product_bundle(parent, google_cloud_integrations_v1alpha_create_bundle_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1321
+ command = make_simple_command(:post, 'v1alpha/{+parent}:createBundle', options)
1322
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateBundleRequest::Representation
1323
+ command.request_object = google_cloud_integrations_v1alpha_create_bundle_request_object
1324
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateBundleResponse::Representation
1325
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCreateBundleResponse
1326
+ command.params['parent'] = parent unless parent.nil?
1327
+ command.query['fields'] = fields unless fields.nil?
1328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1329
+ execute_or_queue_command(command, &block)
1330
+ end
1331
+
1332
+ # This is a UI only method and will be moved away. Returns a list of common
1333
+ # tasks.
1334
+ # @param [String] parent
1335
+ # Required. The location resource of the request. This is not going to be used
1336
+ # but preserve the field for future.
1337
+ # @param [String] fields
1338
+ # Selector specifying which fields to include in a partial response.
1339
+ # @param [String] quota_user
1340
+ # Available to use for quota purposes for server-side applications. Can be any
1341
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1342
+ # @param [Google::Apis::RequestOptions] options
1343
+ # Request-specific options
1344
+ #
1345
+ # @yield [result, err] Result & error if block supplied
1346
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse] parsed result object
1347
+ # @yieldparam err [StandardError] error object if request failed
1348
+ #
1349
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse]
1350
+ #
1351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1354
+ def list_project_location_product_task_entities(parent, fields: nil, quota_user: nil, options: nil, &block)
1355
+ command = make_simple_command(:get, 'v1alpha/{+parent}:listTaskEntities', options)
1356
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse::Representation
1357
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse
1358
+ command.params['parent'] = parent unless parent.nil?
1359
+ command.query['fields'] = fields unless fields.nil?
1360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1361
+ execute_or_queue_command(command, &block)
1362
+ end
1363
+
1364
+ # Creates an auth config record. Fetch corresponding credentials for specific
1365
+ # auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
1366
+ # auth config with Cloud KMS and store the encrypted credentials in Spanner.
1367
+ # Returns the encrypted auth config.
1368
+ # @param [String] parent
1369
+ # Required. "projects/`project`/locations/`location`" format.
1370
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
1371
+ # @param [String] client_certificate_encrypted_private_key
1372
+ # The ssl certificate encoded in PEM format. This string must include the begin
1373
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
1374
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
1375
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
1376
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
1377
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
1378
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
1379
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
1380
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
1381
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
1382
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
1383
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
1384
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
1385
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
1386
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
1387
+ # @param [String] client_certificate_passphrase
1388
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
1389
+ # passphrase' is not the password for web server, but an extra layer of security
1390
+ # to protected private key.
1391
+ # @param [String] client_certificate_ssl_certificate
1392
+ # The ssl certificate encoded in PEM format. This string must include the begin
1393
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
1394
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
1395
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
1396
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
1397
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
1398
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
1399
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
1400
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
1401
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
1402
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
1403
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
1404
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
1405
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
1406
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
1407
+ # @param [String] fields
1408
+ # Selector specifying which fields to include in a partial response.
1409
+ # @param [String] quota_user
1410
+ # Available to use for quota purposes for server-side applications. Can be any
1411
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1412
+ # @param [Google::Apis::RequestOptions] options
1413
+ # Request-specific options
1414
+ #
1415
+ # @yield [result, err] Result & error if block supplied
1416
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
1417
+ # @yieldparam err [StandardError] error object if request failed
1418
+ #
1419
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig]
1420
+ #
1421
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1422
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
+ 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)
1425
+ command = make_simple_command(:post, 'v1alpha/{+parent}/authConfigs', options)
1426
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
1427
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
1428
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
1429
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig
1430
+ command.params['parent'] = parent unless parent.nil?
1431
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
1432
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
1433
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1439
+ # Deletes an auth config.
1440
+ # @param [String] name
1441
+ # Required. The name that is associated with the AuthConfig.
1442
+ # @param [String] fields
1443
+ # Selector specifying which fields to include in a partial response.
1444
+ # @param [String] quota_user
1445
+ # Available to use for quota purposes for server-side applications. Can be any
1446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1447
+ # @param [Google::Apis::RequestOptions] options
1448
+ # Request-specific options
1449
+ #
1450
+ # @yield [result, err] Result & error if block supplied
1451
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty] parsed result object
1452
+ # @yieldparam err [StandardError] error object if request failed
1453
+ #
1454
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty]
1455
+ #
1456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1459
+ def delete_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
1460
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1461
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty::Representation
1462
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty
1463
+ command.params['name'] = name unless name.nil?
1464
+ command.query['fields'] = fields unless fields.nil?
1465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1466
+ execute_or_queue_command(command, &block)
1467
+ end
1468
+
1469
+ # Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
1470
+ # exception will be thrown. Returns the decrypted auth config.
1471
+ # @param [String] name
1472
+ # Required. The name that is associated with the AuthConfig.
1473
+ # @param [String] fields
1474
+ # Selector specifying which fields to include in a partial response.
1475
+ # @param [String] quota_user
1476
+ # Available to use for quota purposes for server-side applications. Can be any
1477
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1478
+ # @param [Google::Apis::RequestOptions] options
1479
+ # Request-specific options
1480
+ #
1481
+ # @yield [result, err] Result & error if block supplied
1482
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
1483
+ # @yieldparam err [StandardError] error object if request failed
1484
+ #
1485
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig]
1486
+ #
1487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1490
+ def get_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
1491
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1492
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
1493
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig
1494
+ command.params['name'] = name unless name.nil?
1495
+ command.query['fields'] = fields unless fields.nil?
1496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1497
+ execute_or_queue_command(command, &block)
1498
+ end
1499
+
1500
+ # Lists all auth configs that match the filter. Restrict to auth configs belong
1501
+ # to the current client only.
1502
+ # @param [String] parent
1503
+ # Required. The client, which owns this collection of AuthConfigs.
1504
+ # @param [String] filter
1505
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
1506
+ # guides/v2/list-filters.
1507
+ # @param [Fixnum] page_size
1508
+ # The size of entries in the response. If unspecified, defaults to 100.
1509
+ # @param [String] page_token
1510
+ # The token returned in the previous response.
1511
+ # @param [String] read_mask
1512
+ # The mask which specifies fields that need to be returned in the AuthConfig's
1513
+ # response.
1514
+ # @param [String] fields
1515
+ # Selector specifying which fields to include in a partial response.
1516
+ # @param [String] quota_user
1517
+ # Available to use for quota purposes for server-side applications. Can be any
1518
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1519
+ # @param [Google::Apis::RequestOptions] options
1520
+ # Request-specific options
1521
+ #
1522
+ # @yield [result, err] Result & error if block supplied
1523
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse] parsed result object
1524
+ # @yieldparam err [StandardError] error object if request failed
1525
+ #
1526
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse]
1527
+ #
1528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1531
+ 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)
1532
+ command = make_simple_command(:get, 'v1alpha/{+parent}/authConfigs', options)
1533
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::Representation
1534
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
1535
+ command.params['parent'] = parent unless parent.nil?
1536
+ command.query['filter'] = filter unless filter.nil?
1537
+ command.query['pageSize'] = page_size unless page_size.nil?
1538
+ command.query['pageToken'] = page_token unless page_token.nil?
1539
+ command.query['readMask'] = read_mask unless read_mask.nil?
1540
+ command.query['fields'] = fields unless fields.nil?
1541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1542
+ execute_or_queue_command(command, &block)
1543
+ end
1544
+
1545
+ # Updates an auth config. If credential is updated, fetch the encrypted auth
1546
+ # config from Spanner, decrypt with Cloud KMS key, update the credential fields,
1547
+ # re-encrypt with Cloud KMS key and update the Spanner record. For other fields,
1548
+ # directly update the Spanner record. Returns the encrypted auth config.
1549
+ # @param [String] name
1550
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
1551
+ # authConfigs/`authConfig`.
1552
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
1553
+ # @param [String] client_certificate_encrypted_private_key
1554
+ # The ssl certificate encoded in PEM format. This string must include the begin
1555
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
1556
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
1557
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
1558
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
1559
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
1560
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
1561
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
1562
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
1563
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
1564
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
1565
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
1566
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
1567
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
1568
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
1569
+ # @param [String] client_certificate_passphrase
1570
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
1571
+ # passphrase' is not the password for web server, but an extra layer of security
1572
+ # to protected private key.
1573
+ # @param [String] client_certificate_ssl_certificate
1574
+ # The ssl certificate encoded in PEM format. This string must include the begin
1575
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
1576
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
1577
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
1578
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
1579
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
1580
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
1581
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
1582
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
1583
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
1584
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
1585
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
1586
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
1587
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
1588
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
1589
+ # @param [String] update_mask
1590
+ # Field mask specifying the fields in the above AuthConfig that have been
1591
+ # modified and need to be updated.
1592
+ # @param [String] fields
1593
+ # Selector specifying which fields to include in a partial response.
1594
+ # @param [String] quota_user
1595
+ # Available to use for quota purposes for server-side applications. Can be any
1596
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1597
+ # @param [Google::Apis::RequestOptions] options
1598
+ # Request-specific options
1599
+ #
1600
+ # @yield [result, err] Result & error if block supplied
1601
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
1602
+ # @yieldparam err [StandardError] error object if request failed
1603
+ #
1604
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig]
1605
+ #
1606
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1607
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1608
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1609
+ 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)
1610
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1611
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
1612
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
1613
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
1614
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAuthConfig
1615
+ command.params['name'] = name unless name.nil?
1616
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
1617
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
1618
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
1619
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1620
+ command.query['fields'] = fields unless fields.nil?
1621
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1622
+ execute_or_queue_command(command, &block)
1623
+ end
1624
+
1625
+ # Creates a new certificate. The certificate will be registered to the trawler
1626
+ # service and will be encrypted using cloud KMS and stored in Spanner Returns
1627
+ # the certificate.
1628
+ # @param [String] parent
1629
+ # Required. "projects/`project`/locations/`location`" format.
1630
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
1631
+ # @param [String] fields
1632
+ # Selector specifying which fields to include in a partial response.
1633
+ # @param [String] quota_user
1634
+ # Available to use for quota purposes for server-side applications. Can be any
1635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1636
+ # @param [Google::Apis::RequestOptions] options
1637
+ # Request-specific options
1638
+ #
1639
+ # @yield [result, err] Result & error if block supplied
1640
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
1641
+ # @yieldparam err [StandardError] error object if request failed
1642
+ #
1643
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate]
1644
+ #
1645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1648
+ def create_project_location_product_certificate(parent, google_cloud_integrations_v1alpha_certificate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1649
+ command = make_simple_command(:post, 'v1alpha/{+parent}/certificates', options)
1650
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate::Representation
1651
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
1652
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate::Representation
1653
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate
1654
+ command.params['parent'] = parent unless parent.nil?
1655
+ command.query['fields'] = fields unless fields.nil?
1656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1657
+ execute_or_queue_command(command, &block)
1658
+ end
1659
+
1660
+ # Delete a certificate
1661
+ # @param [String] name
1662
+ # Required. The name that is associated with the Certificate.
1663
+ # @param [String] fields
1664
+ # Selector specifying which fields to include in a partial response.
1665
+ # @param [String] quota_user
1666
+ # Available to use for quota purposes for server-side applications. Can be any
1667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1668
+ # @param [Google::Apis::RequestOptions] options
1669
+ # Request-specific options
1670
+ #
1671
+ # @yield [result, err] Result & error if block supplied
1672
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty] parsed result object
1673
+ # @yieldparam err [StandardError] error object if request failed
1674
+ #
1675
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty]
1676
+ #
1677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1680
+ def delete_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
1681
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1682
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty::Representation
1683
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty
1684
+ command.params['name'] = name unless name.nil?
1685
+ command.query['fields'] = fields unless fields.nil?
1686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1687
+ execute_or_queue_command(command, &block)
1688
+ end
1689
+
1690
+ # Get a certificates in the specified project.
1691
+ # @param [String] name
1692
+ # Required. The certificate to retrieve. Format: projects/`project`/locations/`
1693
+ # location`/certificates/`certificate`
1694
+ # @param [String] fields
1695
+ # Selector specifying which fields to include in a partial response.
1696
+ # @param [String] quota_user
1697
+ # Available to use for quota purposes for server-side applications. Can be any
1698
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1699
+ # @param [Google::Apis::RequestOptions] options
1700
+ # Request-specific options
1701
+ #
1702
+ # @yield [result, err] Result & error if block supplied
1703
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
1704
+ # @yieldparam err [StandardError] error object if request failed
1705
+ #
1706
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate]
1707
+ #
1708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1711
+ def get_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
1712
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1713
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate::Representation
1714
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate
1715
+ command.params['name'] = name unless name.nil?
1716
+ command.query['fields'] = fields unless fields.nil?
1717
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1718
+ execute_or_queue_command(command, &block)
1719
+ end
1720
+
1721
+ # List all the certificates that match the filter. Restrict to certificate of
1722
+ # current client only.
1723
+ # @param [String] parent
1724
+ # Required. The client, which owns this collection of Certificates.
1725
+ # @param [String] filter
1726
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
1727
+ # guides/v2/list-filters.
1728
+ # @param [Fixnum] page_size
1729
+ # The size of entries in the response. If unspecified, defaults to 100.
1730
+ # @param [String] page_token
1731
+ # The token returned in the previous response.
1732
+ # @param [String] read_mask
1733
+ # The mask which specifies fields that need to be returned in the Certificate's
1734
+ # response.
1735
+ # @param [String] fields
1736
+ # Selector specifying which fields to include in a partial response.
1737
+ # @param [String] quota_user
1738
+ # Available to use for quota purposes for server-side applications. Can be any
1739
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1740
+ # @param [Google::Apis::RequestOptions] options
1741
+ # Request-specific options
1742
+ #
1743
+ # @yield [result, err] Result & error if block supplied
1744
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListCertificatesResponse] parsed result object
1745
+ # @yieldparam err [StandardError] error object if request failed
1746
+ #
1747
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListCertificatesResponse]
1748
+ #
1749
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1750
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1751
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1752
+ 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)
1753
+ command = make_simple_command(:get, 'v1alpha/{+parent}/certificates', options)
1754
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListCertificatesResponse::Representation
1755
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListCertificatesResponse
1756
+ command.params['parent'] = parent unless parent.nil?
1757
+ command.query['filter'] = filter unless filter.nil?
1758
+ command.query['pageSize'] = page_size unless page_size.nil?
1759
+ command.query['pageToken'] = page_token unless page_token.nil?
1760
+ command.query['readMask'] = read_mask unless read_mask.nil?
1761
+ command.query['fields'] = fields unless fields.nil?
1762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1763
+ execute_or_queue_command(command, &block)
1764
+ end
1765
+
1766
+ # Updates the certificate by id. If new certificate file is updated, it will
1767
+ # register with the trawler service, re-encrypt with cloud KMS and update the
1768
+ # Spanner record. Other fields will directly update the Spanner record. Returns
1769
+ # the Certificate.
1770
+ # @param [String] name
1771
+ # Output only. Auto generated primary key
1772
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
1773
+ # @param [String] update_mask
1774
+ # Field mask specifying the fields in the above Certificate that have been
1775
+ # modified and need to be updated.
1776
+ # @param [String] fields
1777
+ # Selector specifying which fields to include in a partial response.
1778
+ # @param [String] quota_user
1779
+ # Available to use for quota purposes for server-side applications. Can be any
1780
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1781
+ # @param [Google::Apis::RequestOptions] options
1782
+ # Request-specific options
1783
+ #
1784
+ # @yield [result, err] Result & error if block supplied
1785
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
1786
+ # @yieldparam err [StandardError] error object if request failed
1787
+ #
1788
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate]
1789
+ #
1790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1793
+ 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)
1794
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1795
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate::Representation
1796
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
1797
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate::Representation
1798
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCertificate
1799
+ command.params['name'] = name unless name.nil?
1800
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1801
+ command.query['fields'] = fields unless fields.nil?
1802
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1803
+ execute_or_queue_command(command, &block)
1804
+ end
1805
+
1806
+ # PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE
1807
+ # SERVICE. Soft-deletes the bundle.
1808
+ # @param [String] name
1809
+ # Required. The bundle to archive. Format: projects/`project`/integrations/`
1810
+ # integration`
1811
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveBundleRequest] google_cloud_integrations_v1alpha_archive_bundle_request_object
1812
+ # @param [String] fields
1813
+ # Selector specifying which fields to include in a partial response.
1814
+ # @param [String] quota_user
1815
+ # Available to use for quota purposes for server-side applications. Can be any
1816
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1817
+ # @param [Google::Apis::RequestOptions] options
1818
+ # Request-specific options
1819
+ #
1820
+ # @yield [result, err] Result & error if block supplied
1821
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveBundleResponse] parsed result object
1822
+ # @yieldparam err [StandardError] error object if request failed
1823
+ #
1824
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveBundleResponse]
1825
+ #
1826
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1827
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1828
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1829
+ 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)
1830
+ command = make_simple_command(:post, 'v1alpha/{+name}:archiveBundle', options)
1831
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveBundleRequest::Representation
1832
+ command.request_object = google_cloud_integrations_v1alpha_archive_bundle_request_object
1833
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveBundleResponse::Representation
1834
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveBundleResponse
1835
+ command.params['name'] = name unless name.nil?
1836
+ command.query['fields'] = fields unless fields.nil?
1837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1838
+ execute_or_queue_command(command, &block)
1839
+ end
1840
+
1841
+ # Executes integrations synchronously by passing the trigger id in the request
1842
+ # body. The request is not returned until the requested executions are either
1843
+ # fulfilled or experienced an error. If the integration name is not specified (
1844
+ # passing `-`), all of the associated integration under the given trigger_id
1845
+ # will be executed. Otherwise only the specified integration for the given `
1846
+ # trigger_id` is executed. This is helpful for execution the integration from UI.
1847
+ # @param [String] name
1848
+ # Required. The integration resource name.
1849
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest] google_cloud_integrations_v1alpha_execute_integrations_request_object
1850
+ # @param [String] fields
1851
+ # Selector specifying which fields to include in a partial response.
1852
+ # @param [String] quota_user
1853
+ # Available to use for quota purposes for server-side applications. Can be any
1854
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1855
+ # @param [Google::Apis::RequestOptions] options
1856
+ # Request-specific options
1857
+ #
1858
+ # @yield [result, err] Result & error if block supplied
1859
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse] parsed result object
1860
+ # @yieldparam err [StandardError] error object if request failed
1861
+ #
1862
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse]
1863
+ #
1864
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1865
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1866
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1867
+ def execute_project_location_product_integration(name, google_cloud_integrations_v1alpha_execute_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1868
+ command = make_simple_command(:post, 'v1alpha/{+name}:execute', options)
1869
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest::Representation
1870
+ command.request_object = google_cloud_integrations_v1alpha_execute_integrations_request_object
1871
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::Representation
1872
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
1873
+ command.params['name'] = name unless name.nil?
1874
+ command.query['fields'] = fields unless fields.nil?
1875
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1876
+ execute_or_queue_command(command, &block)
1877
+ end
1878
+
1879
+ # Returns the list of all integrations in the specified project.
1880
+ # @param [String] parent
1881
+ # Required. Project and location from which the integrations should be listed.
1882
+ # Format: projects/`project`
1883
+ # @param [String] filter
1884
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
1885
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
1886
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
1887
+ # inequality) operators. Negation, conjunction, and disjunction are written
1888
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
1889
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
1890
+ # fields like `task_config`.
1891
+ # @param [String] order_by
1892
+ # The results would be returned in order you specified here. Supported sort keys
1893
+ # are: Descending sort order by "last_modified_time", "created_time", "
1894
+ # snapshot_number". Ascending sort order by the integration name.
1895
+ # @param [Fixnum] page_size
1896
+ # The page size for the resquest.
1897
+ # @param [String] page_token
1898
+ # The page token for the resquest.
1899
+ # @param [String] fields
1900
+ # Selector specifying which fields to include in a partial response.
1901
+ # @param [String] quota_user
1902
+ # Available to use for quota purposes for server-side applications. Can be any
1903
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1904
+ # @param [Google::Apis::RequestOptions] options
1905
+ # Request-specific options
1906
+ #
1907
+ # @yield [result, err] Result & error if block supplied
1908
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse] parsed result object
1909
+ # @yieldparam err [StandardError] error object if request failed
1910
+ #
1911
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse]
1912
+ #
1913
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1914
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1915
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1916
+ 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)
1917
+ command = make_simple_command(:get, 'v1alpha/{+parent}/integrations', options)
1918
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse::Representation
1919
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationsResponse
1920
+ command.params['parent'] = parent unless parent.nil?
1921
+ command.query['filter'] = filter unless filter.nil?
1922
+ command.query['orderBy'] = order_by unless order_by.nil?
1923
+ command.query['pageSize'] = page_size unless page_size.nil?
1924
+ command.query['pageToken'] = page_token unless page_token.nil?
1925
+ command.query['fields'] = fields unless fields.nil?
1926
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1927
+ execute_or_queue_command(command, &block)
1928
+ end
1929
+
1930
+ # Get execution stats
1931
+ # @param [String] parent
1932
+ # Required. The parent resource name: `parent=projects/*/locations/*`.
1933
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest] google_cloud_integrations_v1alpha_monitor_execution_stats_request_object
1934
+ # @param [String] fields
1935
+ # Selector specifying which fields to include in a partial response.
1936
+ # @param [String] quota_user
1937
+ # Available to use for quota purposes for server-side applications. Can be any
1938
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1939
+ # @param [Google::Apis::RequestOptions] options
1940
+ # Request-specific options
1941
+ #
1942
+ # @yield [result, err] Result & error if block supplied
1943
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse] parsed result object
1944
+ # @yieldparam err [StandardError] error object if request failed
1945
+ #
1946
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse]
1947
+ #
1948
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1949
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1950
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1951
+ def monitorexecutionstats_project_location_product_integration(parent, google_cloud_integrations_v1alpha_monitor_execution_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1952
+ command = make_simple_command(:post, 'v1alpha/{+parent}:monitorexecutionstats', options)
1953
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest::Representation
1954
+ command.request_object = google_cloud_integrations_v1alpha_monitor_execution_stats_request_object
1955
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse::Representation
1956
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse
1957
+ command.params['parent'] = parent unless parent.nil?
1958
+ command.query['fields'] = fields unless fields.nil?
1959
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1960
+ execute_or_queue_command(command, &block)
1961
+ end
1962
+
1963
+ # Schedules an integration for execution by passing the trigger id and the
1964
+ # scheduled time in the request body.
1965
+ # @param [String] name
1966
+ # The integration resource name.
1967
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest] google_cloud_integrations_v1alpha_schedule_integrations_request_object
1968
+ # @param [String] fields
1969
+ # Selector specifying which fields to include in a partial response.
1970
+ # @param [String] quota_user
1971
+ # Available to use for quota purposes for server-side applications. Can be any
1972
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1973
+ # @param [Google::Apis::RequestOptions] options
1974
+ # Request-specific options
1975
+ #
1976
+ # @yield [result, err] Result & error if block supplied
1977
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse] parsed result object
1978
+ # @yieldparam err [StandardError] error object if request failed
1979
+ #
1980
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse]
1981
+ #
1982
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1983
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1984
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1985
+ def schedule_project_location_product_integration(name, google_cloud_integrations_v1alpha_schedule_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1986
+ command = make_simple_command(:post, 'v1alpha/{+name}:schedule', options)
1987
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest::Representation
1988
+ command.request_object = google_cloud_integrations_v1alpha_schedule_integrations_request_object
1989
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::Representation
1990
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
1991
+ command.params['name'] = name unless name.nil?
1992
+ command.query['fields'] = fields unless fields.nil?
1993
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1994
+ execute_or_queue_command(command, &block)
1995
+ end
1996
+
1997
+ # Cancellation of an execution
1998
+ # @param [String] name
1999
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
2000
+ # locations/`location`/products/`product`/integrations/`integration_id`/
2001
+ # executions/`execution_id`
2002
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCancelExecutionRequest] google_cloud_integrations_v1alpha_cancel_execution_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::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCancelExecutionResponse] parsed result object
2013
+ # @yieldparam err [StandardError] error object if request failed
2014
+ #
2015
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCancelExecutionResponse]
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 cancel_project_location_product_integration_execution(name, google_cloud_integrations_v1alpha_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2021
+ command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
2022
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCancelExecutionRequest::Representation
2023
+ command.request_object = google_cloud_integrations_v1alpha_cancel_execution_request_object
2024
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCancelExecutionResponse::Representation
2025
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCancelExecutionResponse
2026
+ command.params['name'] = name unless name.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
+ # Get an execution in the specified project.
2033
+ # @param [String] name
2034
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
2035
+ # locations/`location`/products/`product`/integrations/`integration_id`/
2036
+ # executions/`execution_id`
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::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecution] parsed result object
2047
+ # @yieldparam err [StandardError] error object if request failed
2048
+ #
2049
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecution]
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 get_project_location_product_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
2055
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
2056
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecution::Representation
2057
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaExecution
2058
+ command.params['name'] = name unless name.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
+ # Lists the status of the integration executions.
2065
+ # @param [String] parent
2066
+ # Required. The parent resource name of the integration execution.
2067
+ # @param [String] filter
2068
+ # Optional. Standard filter field, we support filtering on all fields in
2069
+ # EventExecutionParamIndexes table. All fields support for EQUALS, in additional:
2070
+ # CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey,
2071
+ # ParameterValue, ParameterType support for HAS For example: "parameter_value"
2072
+ # HAS \"parameter1\" Also supports operators like AND, OR, NOT For example,
2073
+ # trigger_id=\"id1\" AND event_execution_state=\"FAILED\"
2074
+ # @param [String] filter_params_custom_filter
2075
+ # Optional user-provided custom filter.
2076
+ # @param [Fixnum] filter_params_end_time
2077
+ # End timestamp.
2078
+ # @param [Array<String>, String] filter_params_event_statuses
2079
+ # List of possible event statuses.
2080
+ # @param [String] filter_params_execution_id
2081
+ # Execution id.
2082
+ # @param [String] filter_params_parameter_key
2083
+ # Param key. DEPRECATED. User parameter_pair_key instead.
2084
+ # @param [String] filter_params_parameter_pair_key
2085
+ # Param key in the key value pair filter.
2086
+ # @param [String] filter_params_parameter_pair_value
2087
+ # Param value in the key value pair filter.
2088
+ # @param [String] filter_params_parameter_type
2089
+ # Param type.
2090
+ # @param [String] filter_params_parameter_value
2091
+ # Param value. DEPRECATED. User parameter_pair_value instead.
2092
+ # @param [Fixnum] filter_params_start_time
2093
+ # Start timestamp.
2094
+ # @param [Array<String>, String] filter_params_task_statuses
2095
+ # List of possible task statuses.
2096
+ # @param [String] filter_params_trigger_id
2097
+ # Trigger id.
2098
+ # @param [String] filter_params_workflow_name
2099
+ # Workflow name.
2100
+ # @param [String] order_by
2101
+ # Optional. The results would be returned in order you specified here. Currently
2102
+ # supporting "last_modified_time" and "create_time".
2103
+ # @param [Fixnum] page_size
2104
+ # Optional. The size of entries in the response.
2105
+ # @param [String] page_token
2106
+ # Optional. The token returned in the previous response.
2107
+ # @param [String] read_mask
2108
+ # Optional. View mask for the response data. If set, only the field specified
2109
+ # will be returned as part of the result. If not set, all fields in event
2110
+ # execution info will be filled and returned.
2111
+ # @param [Boolean] refresh_acl
2112
+ # Optional. If true, the service will use the most recent acl information to
2113
+ # list event execution infos and renew the acl cache. Note that fetching the
2114
+ # most recent acl is synchronous, so it will increase RPC call latency.
2115
+ # @param [Boolean] truncate_params
2116
+ # Optional. If true, the service will truncate the params to only keep the first
2117
+ # 1000 characters of string params and empty the executions in order to make
2118
+ # response smaller. Only works for UI and when the params fields are not
2119
+ # filtered out.
2120
+ # @param [String] fields
2121
+ # Selector specifying which fields to include in a partial response.
2122
+ # @param [String] quota_user
2123
+ # Available to use for quota purposes for server-side applications. Can be any
2124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2125
+ # @param [Google::Apis::RequestOptions] options
2126
+ # Request-specific options
2127
+ #
2128
+ # @yield [result, err] Result & error if block supplied
2129
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse] parsed result object
2130
+ # @yieldparam err [StandardError] error object if request failed
2131
+ #
2132
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse]
2133
+ #
2134
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2135
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2136
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2137
+ 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_trigger_id: 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)
2138
+ command = make_simple_command(:get, 'v1alpha/{+parent}/executions', options)
2139
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse::Representation
2140
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionsResponse
2141
+ command.params['parent'] = parent unless parent.nil?
2142
+ command.query['filter'] = filter unless filter.nil?
2143
+ command.query['filterParams.customFilter'] = filter_params_custom_filter unless filter_params_custom_filter.nil?
2144
+ command.query['filterParams.endTime'] = filter_params_end_time unless filter_params_end_time.nil?
2145
+ command.query['filterParams.eventStatuses'] = filter_params_event_statuses unless filter_params_event_statuses.nil?
2146
+ command.query['filterParams.executionId'] = filter_params_execution_id unless filter_params_execution_id.nil?
2147
+ command.query['filterParams.parameterKey'] = filter_params_parameter_key unless filter_params_parameter_key.nil?
2148
+ command.query['filterParams.parameterPairKey'] = filter_params_parameter_pair_key unless filter_params_parameter_pair_key.nil?
2149
+ command.query['filterParams.parameterPairValue'] = filter_params_parameter_pair_value unless filter_params_parameter_pair_value.nil?
2150
+ command.query['filterParams.parameterType'] = filter_params_parameter_type unless filter_params_parameter_type.nil?
2151
+ command.query['filterParams.parameterValue'] = filter_params_parameter_value unless filter_params_parameter_value.nil?
2152
+ command.query['filterParams.startTime'] = filter_params_start_time unless filter_params_start_time.nil?
2153
+ command.query['filterParams.taskStatuses'] = filter_params_task_statuses unless filter_params_task_statuses.nil?
2154
+ command.query['filterParams.triggerId'] = filter_params_trigger_id unless filter_params_trigger_id.nil?
2155
+ command.query['filterParams.workflowName'] = filter_params_workflow_name unless filter_params_workflow_name.nil?
2156
+ command.query['orderBy'] = order_by unless order_by.nil?
2157
+ command.query['pageSize'] = page_size unless page_size.nil?
2158
+ command.query['pageToken'] = page_token unless page_token.nil?
2159
+ command.query['readMask'] = read_mask unless read_mask.nil?
2160
+ command.query['refreshAcl'] = refresh_acl unless refresh_acl.nil?
2161
+ command.query['truncateParams'] = truncate_params unless truncate_params.nil?
2162
+ command.query['fields'] = fields unless fields.nil?
2163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2164
+ execute_or_queue_command(command, &block)
2165
+ end
2166
+
2167
+ # * Lifts suspension for advanced suspension task. Fetch corresponding
2168
+ # suspension with provided suspension Id, resolve suspension, and set up
2169
+ # suspension result for the Suspension Task.
2170
+ # @param [String] name
2171
+ # Required. The resource that the suspension belongs to. "projects/`project`/
2172
+ # locations/`location`/products/`product`/integrations/`integration`/executions/`
2173
+ # execution`/suspensions/`suspenion`" format.
2174
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest] google_cloud_integrations_v1alpha_lift_suspension_request_object
2175
+ # @param [String] fields
2176
+ # Selector specifying which fields to include in a partial response.
2177
+ # @param [String] quota_user
2178
+ # Available to use for quota purposes for server-side applications. Can be any
2179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2180
+ # @param [Google::Apis::RequestOptions] options
2181
+ # Request-specific options
2182
+ #
2183
+ # @yield [result, err] Result & error if block supplied
2184
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse] parsed result object
2185
+ # @yieldparam err [StandardError] error object if request failed
2186
+ #
2187
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse]
2188
+ #
2189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2192
+ 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)
2193
+ command = make_simple_command(:post, 'v1alpha/{+name}:lift', options)
2194
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest::Representation
2195
+ command.request_object = google_cloud_integrations_v1alpha_lift_suspension_request_object
2196
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::Representation
2197
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
2198
+ command.params['name'] = name unless name.nil?
2199
+ command.query['fields'] = fields unless fields.nil?
2200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2201
+ execute_or_queue_command(command, &block)
2202
+ end
2203
+
2204
+ # * Lists suspensions associated with a specific execution. Only those with
2205
+ # permissions to resolve the relevant suspensions will be able to view them.
2206
+ # @param [String] parent
2207
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
2208
+ # integrations/`integration_name`/executions/`execution_name`
2209
+ # @param [String] filter
2210
+ # Standard filter field.
2211
+ # @param [String] order_by
2212
+ # Field name to order by.
2213
+ # @param [Fixnum] page_size
2214
+ # Maximum number of entries in the response.
2215
+ # @param [String] page_token
2216
+ # Token to retrieve a specific page.
2217
+ # @param [String] fields
2218
+ # Selector specifying which fields to include in a partial response.
2219
+ # @param [String] quota_user
2220
+ # Available to use for quota purposes for server-side applications. Can be any
2221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2222
+ # @param [Google::Apis::RequestOptions] options
2223
+ # Request-specific options
2224
+ #
2225
+ # @yield [result, err] Result & error if block supplied
2226
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSuspensionsResponse] parsed result object
2227
+ # @yieldparam err [StandardError] error object if request failed
2228
+ #
2229
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSuspensionsResponse]
2230
+ #
2231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2234
+ 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)
2235
+ command = make_simple_command(:get, 'v1alpha/{+parent}/suspensions', options)
2236
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSuspensionsResponse::Representation
2237
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSuspensionsResponse
2238
+ command.params['parent'] = parent unless parent.nil?
2239
+ command.query['filter'] = filter unless filter.nil?
2240
+ command.query['orderBy'] = order_by unless order_by.nil?
2241
+ command.query['pageSize'] = page_size unless page_size.nil?
2242
+ command.query['pageToken'] = page_token unless page_token.nil?
2243
+ command.query['fields'] = fields unless fields.nil?
2244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2245
+ execute_or_queue_command(command, &block)
2246
+ end
2247
+
2248
+ # * Resolves (lifts/rejects) any number of suspensions. If the integration is
2249
+ # already running, only the status of the suspension is updated. Otherwise, the
2250
+ # suspended integration will begin execution again.
2251
+ # @param [String] name
2252
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
2253
+ # integrations/`integration_name`/executions/`execution_name`/suspensions/`
2254
+ # suspension_id`
2255
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest] google_cloud_integrations_v1alpha_resolve_suspension_request_object
2256
+ # @param [String] fields
2257
+ # Selector specifying which fields to include in a partial response.
2258
+ # @param [String] quota_user
2259
+ # Available to use for quota purposes for server-side applications. Can be any
2260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2261
+ # @param [Google::Apis::RequestOptions] options
2262
+ # Request-specific options
2263
+ #
2264
+ # @yield [result, err] Result & error if block supplied
2265
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse] parsed result object
2266
+ # @yieldparam err [StandardError] error object if request failed
2267
+ #
2268
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse]
2269
+ #
2270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2273
+ 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)
2274
+ command = make_simple_command(:post, 'v1alpha/{+name}:resolve', options)
2275
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest::Representation
2276
+ command.request_object = google_cloud_integrations_v1alpha_resolve_suspension_request_object
2277
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::Representation
2278
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
2279
+ command.params['name'] = name unless name.nil?
2280
+ command.query['fields'] = fields unless fields.nil?
2281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2282
+ execute_or_queue_command(command, &block)
2283
+ end
2284
+
2285
+ # Lists the snapshots of a given integration executions. This RPC is not being
2286
+ # used.
2287
+ # @param [String] parent
2288
+ # Required. The parent resource name of the integration execution.
2289
+ # @param [String] filter
2290
+ # Currently supports filter by `execution_info_id` or `execution_snapshot_id`.
2291
+ # @param [Fixnum] page_size
2292
+ # Number of entries to be returned in a page.
2293
+ # @param [String] page_token
2294
+ # The token used to retrieve the next page results.
2295
+ # @param [String] read_mask
2296
+ # View mask for the response data. If set, only the field specified will be
2297
+ # returned as part of the result. If not set, all fields in event execution
2298
+ # snapshot will be filled and returned.
2299
+ # @param [String] fields
2300
+ # Selector specifying which fields to include in a partial response.
2301
+ # @param [String] quota_user
2302
+ # Available to use for quota purposes for server-side applications. Can be any
2303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2304
+ # @param [Google::Apis::RequestOptions] options
2305
+ # Request-specific options
2306
+ #
2307
+ # @yield [result, err] Result & error if block supplied
2308
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse] parsed result object
2309
+ # @yieldparam err [StandardError] error object if request failed
2310
+ #
2311
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse]
2312
+ #
2313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2316
+ 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)
2317
+ command = make_simple_command(:get, 'v1alpha/{+parent}/executionsnapshots', options)
2318
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse::Representation
2319
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse
2320
+ command.params['parent'] = parent unless parent.nil?
2321
+ command.query['filter'] = filter unless filter.nil?
2322
+ command.query['pageSize'] = page_size unless page_size.nil?
2323
+ command.query['pageToken'] = page_token unless page_token.nil?
2324
+ command.query['readMask'] = read_mask unless read_mask.nil?
2325
+ command.query['fields'] = fields unless fields.nil?
2326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2327
+ execute_or_queue_command(command, &block)
2328
+ end
2329
+
2330
+ # Soft-deletes the integration. Changes the status of the integration to
2331
+ # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
2332
+ # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
2333
+ # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
2334
+ # exception if the version being archived is DRAFT, and if the `locked_by` user
2335
+ # is not the same as the user performing the Archive. Audit fields updated
2336
+ # include last_modified_timestamp, last_modified_by. Any existing lock is
2337
+ # released when Archiving a integration. Currently, there is no unarchive
2338
+ # mechanism.
2339
+ # @param [String] name
2340
+ # Required. The version to archive. Format: projects/`project`/integrations/`
2341
+ # integration`/versions/`version`
2342
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest] google_cloud_integrations_v1alpha_archive_integration_version_request_object
2343
+ # @param [String] fields
2344
+ # Selector specifying which fields to include in a partial response.
2345
+ # @param [String] quota_user
2346
+ # Available to use for quota purposes for server-side applications. Can be any
2347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2348
+ # @param [Google::Apis::RequestOptions] options
2349
+ # Request-specific options
2350
+ #
2351
+ # @yield [result, err] Result & error if block supplied
2352
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse] parsed result object
2353
+ # @yieldparam err [StandardError] error object if request failed
2354
+ #
2355
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse]
2356
+ #
2357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2360
+ 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)
2361
+ command = make_simple_command(:post, 'v1alpha/{+name}:archive', options)
2362
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest::Representation
2363
+ command.request_object = google_cloud_integrations_v1alpha_archive_integration_version_request_object
2364
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse::Representation
2365
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse
2366
+ command.params['name'] = name unless name.nil?
2367
+ command.query['fields'] = fields unless fields.nil?
2368
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2369
+ execute_or_queue_command(command, &block)
2370
+ end
2371
+
2372
+ # Create a integration with a draft version in the specified project.
2373
+ # @param [String] parent
2374
+ # Required. The parent resource where this version will be created. Format:
2375
+ # projects/`project`/integrations/`integration`
2376
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
2377
+ # @param [Boolean] new_integration
2378
+ # Set this flag to true, if draft version is to be created for a brand new
2379
+ # integration. False, if the request is for an existing integration. For
2380
+ # backward compatibility reasons, even if this flag is set to `false` and no
2381
+ # existing integration is found, a new draft integration will still be created.
2382
+ # @param [String] fields
2383
+ # Selector specifying which fields to include in a partial response.
2384
+ # @param [String] quota_user
2385
+ # Available to use for quota purposes for server-side applications. Can be any
2386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2387
+ # @param [Google::Apis::RequestOptions] options
2388
+ # Request-specific options
2389
+ #
2390
+ # @yield [result, err] Result & error if block supplied
2391
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
2392
+ # @yieldparam err [StandardError] error object if request failed
2393
+ #
2394
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion]
2395
+ #
2396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2399
+ 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)
2400
+ command = make_simple_command(:post, 'v1alpha/{+parent}/versions', options)
2401
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
2402
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
2403
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
2404
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion
2405
+ command.params['parent'] = parent unless parent.nil?
2406
+ command.query['newIntegration'] = new_integration unless new_integration.nil?
2407
+ command.query['fields'] = fields unless fields.nil?
2408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2409
+ execute_or_queue_command(command, &block)
2410
+ end
2411
+
2412
+ # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
2413
+ # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
2414
+ # tags do not change. This RPC throws an exception if the version being snapshot
2415
+ # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
2416
+ # @param [String] name
2417
+ # Required. The version to deactivate. Format: projects/`project`/integrations/`
2418
+ # integration`/versions/`version`
2419
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest] google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
2420
+ # @param [String] fields
2421
+ # Selector specifying which fields to include in a partial response.
2422
+ # @param [String] quota_user
2423
+ # Available to use for quota purposes for server-side applications. Can be any
2424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2425
+ # @param [Google::Apis::RequestOptions] options
2426
+ # Request-specific options
2427
+ #
2428
+ # @yield [result, err] Result & error if block supplied
2429
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse] parsed result object
2430
+ # @yieldparam err [StandardError] error object if request failed
2431
+ #
2432
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse]
2433
+ #
2434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2437
+ 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)
2438
+ command = make_simple_command(:post, 'v1alpha/{+name}:deactivate', options)
2439
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest::Representation
2440
+ command.request_object = google_cloud_integrations_v1alpha_deactivate_integration_version_request_object
2441
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse::Representation
2442
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse
2443
+ command.params['name'] = name unless name.nil?
2444
+ command.query['fields'] = fields unless fields.nil?
2445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2446
+ execute_or_queue_command(command, &block)
2447
+ end
2448
+
2449
+ # Downloads an integration. Retrieves the `IntegrationVersion` for a given `
2450
+ # integration_id` and returns the response as a string.
2451
+ # @param [String] name
2452
+ # Required. The version to download. Format: projects/`project`/integrations/`
2453
+ # integration`/versions/`version`
2454
+ # @param [String] file_format
2455
+ # File format for download request.
2456
+ # @param [String] fields
2457
+ # Selector specifying which fields to include in a partial response.
2458
+ # @param [String] quota_user
2459
+ # Available to use for quota purposes for server-side applications. Can be any
2460
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2461
+ # @param [Google::Apis::RequestOptions] options
2462
+ # Request-specific options
2463
+ #
2464
+ # @yield [result, err] Result & error if block supplied
2465
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse] parsed result object
2466
+ # @yieldparam err [StandardError] error object if request failed
2467
+ #
2468
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse]
2469
+ #
2470
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2471
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2472
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2473
+ def download_project_location_product_integration_version(name, file_format: nil, fields: nil, quota_user: nil, options: nil, &block)
2474
+ command = make_simple_command(:get, 'v1alpha/{+name}:download', options)
2475
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse::Representation
2476
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse
2477
+ command.params['name'] = name unless name.nil?
2478
+ command.query['fileFormat'] = file_format unless file_format.nil?
2479
+ command.query['fields'] = fields unless fields.nil?
2480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2481
+ execute_or_queue_command(command, &block)
2482
+ end
2483
+
2484
+ # Get a integration in the specified project.
2485
+ # @param [String] name
2486
+ # Required. The version to retrieve. Format: projects/`project`/integrations/`
2487
+ # integration`/versions/`version`
2488
+ # @param [String] fields
2489
+ # Selector specifying which fields to include in a partial response.
2490
+ # @param [String] quota_user
2491
+ # Available to use for quota purposes for server-side applications. Can be any
2492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2493
+ # @param [Google::Apis::RequestOptions] options
2494
+ # Request-specific options
2495
+ #
2496
+ # @yield [result, err] Result & error if block supplied
2497
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
2498
+ # @yieldparam err [StandardError] error object if request failed
2499
+ #
2500
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion]
2501
+ #
2502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2505
+ def get_project_location_product_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
2506
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
2507
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
2508
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion
2509
+ command.params['name'] = name unless name.nil?
2510
+ command.query['fields'] = fields unless fields.nil?
2511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2512
+ execute_or_queue_command(command, &block)
2513
+ end
2514
+
2515
+ # PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE
2516
+ # SERVICE. RPC to get details of the Bundle
2517
+ # @param [String] name
2518
+ # Required. The bundle name.
2519
+ # @param [String] fields
2520
+ # Selector specifying which fields to include in a partial response.
2521
+ # @param [String] quota_user
2522
+ # Available to use for quota purposes for server-side applications. Can be any
2523
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2524
+ # @param [Google::Apis::RequestOptions] options
2525
+ # Request-specific options
2526
+ #
2527
+ # @yield [result, err] Result & error if block supplied
2528
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaGetBundleResponse] parsed result object
2529
+ # @yieldparam err [StandardError] error object if request failed
2530
+ #
2531
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaGetBundleResponse]
2532
+ #
2533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2536
+ def get_project_location_product_integration_version_bundle(name, fields: nil, quota_user: nil, options: nil, &block)
2537
+ command = make_simple_command(:get, 'v1alpha/{+name}:getBundle', options)
2538
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaGetBundleResponse::Representation
2539
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaGetBundleResponse
2540
+ command.params['name'] = name unless name.nil?
2541
+ command.query['fields'] = fields unless fields.nil?
2542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2543
+ execute_or_queue_command(command, &block)
2544
+ end
2545
+
2546
+ # Returns the list of all integration versions in the specified project.
2547
+ # @param [String] parent
2548
+ # Required. The parent resource where this version will be created. Format:
2549
+ # projects/`project`/integrations/`integration` Specifically, when parent equals:
2550
+ # 1. projects//locations//integrations/, Meaning: "List versions (with filter)
2551
+ # for a particular integration". 2. projects//locations//integrations/- Meaning:
2552
+ # "List versions (with filter) for a client within a particular region". 3.
2553
+ # projects//locations/-/integrations/- Meaning: "List versions (with filter) for
2554
+ # a client".
2555
+ # @param [String] field_mask
2556
+ # The field mask which specifies the particular data to be returned.
2557
+ # @param [String] filter
2558
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
2559
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
2560
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
2561
+ # inequality) operators. Negation, conjunction, and disjunction are written
2562
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
2563
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
2564
+ # fields like `task_config`.
2565
+ # @param [String] order_by
2566
+ # The results would be returned in order you specified here. Currently supported
2567
+ # sort keys are: Descending sort order for "last_modified_time", "created_time",
2568
+ # "snapshot_number" Ascending sort order for "name".
2569
+ # @param [Fixnum] page_size
2570
+ # The maximum number of versions to return. The service may return fewer than
2571
+ # this value. If unspecified, at most 50 versions will be returned. The maximum
2572
+ # value is 1000; values above 1000 will be coerced to 1000.
2573
+ # @param [String] page_token
2574
+ # A page token, received from a previous `ListIntegrationVersions` call. Provide
2575
+ # this to retrieve the subsequent page. When paginating, all other parameters
2576
+ # provided to `ListIntegrationVersions` must match the call that provided the
2577
+ # page token.
2578
+ # @param [String] fields
2579
+ # Selector specifying which fields to include in a partial response.
2580
+ # @param [String] quota_user
2581
+ # Available to use for quota purposes for server-side applications. Can be any
2582
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2583
+ # @param [Google::Apis::RequestOptions] options
2584
+ # Request-specific options
2585
+ #
2586
+ # @yield [result, err] Result & error if block supplied
2587
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse] parsed result object
2588
+ # @yieldparam err [StandardError] error object if request failed
2589
+ #
2590
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse]
2591
+ #
2592
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2593
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2594
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2595
+ 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)
2596
+ command = make_simple_command(:get, 'v1alpha/{+parent}/versions', options)
2597
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::Representation
2598
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
2599
+ command.params['parent'] = parent unless parent.nil?
2600
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
2601
+ command.query['filter'] = filter unless filter.nil?
2602
+ command.query['orderBy'] = order_by unless order_by.nil?
2603
+ command.query['pageSize'] = page_size unless page_size.nil?
2604
+ command.query['pageToken'] = page_token unless page_token.nil?
2605
+ command.query['fields'] = fields unless fields.nil?
2606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2607
+ execute_or_queue_command(command, &block)
2608
+ end
2609
+
2610
+ # Update a integration with a draft version in the specified project.
2611
+ # @param [String] name
2612
+ # Output only. Auto-generated primary key.
2613
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
2614
+ # @param [String] update_mask
2615
+ # Field mask specifying the fields in the above integration that have been
2616
+ # modified and need to be updated.
2617
+ # @param [String] fields
2618
+ # Selector specifying which fields to include in a partial response.
2619
+ # @param [String] quota_user
2620
+ # Available to use for quota purposes for server-side applications. Can be any
2621
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2622
+ # @param [Google::Apis::RequestOptions] options
2623
+ # Request-specific options
2624
+ #
2625
+ # @yield [result, err] Result & error if block supplied
2626
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
2627
+ # @yieldparam err [StandardError] error object if request failed
2628
+ #
2629
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion]
2630
+ #
2631
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2632
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2633
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2634
+ 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)
2635
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2636
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
2637
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
2638
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
2639
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationVersion
2640
+ command.params['name'] = name unless name.nil?
2641
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2642
+ command.query['fields'] = fields unless fields.nil?
2643
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2644
+ execute_or_queue_command(command, &block)
2645
+ end
2646
+
2647
+ # This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state.
2648
+ # This RPC throws an exception if the version being published is DRAFT, and if
2649
+ # the `locked_by` user is not the same as the user performing the Publish. Audit
2650
+ # fields updated include last_published_timestamp, last_published_by,
2651
+ # last_modified_timestamp, last_modified_by. Any existing lock is on this
2652
+ # integration is released.
2653
+ # @param [String] name
2654
+ # Required. The version to publish. Format: projects/`project`/integrations/`
2655
+ # integration`/versions/`version`
2656
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_publish_integration_version_request_object
2657
+ # @param [String] fields
2658
+ # Selector specifying which fields to include in a partial response.
2659
+ # @param [String] quota_user
2660
+ # Available to use for quota purposes for server-side applications. Can be any
2661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2662
+ # @param [Google::Apis::RequestOptions] options
2663
+ # Request-specific options
2664
+ #
2665
+ # @yield [result, err] Result & error if block supplied
2666
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse] parsed result object
2667
+ # @yieldparam err [StandardError] error object if request failed
2668
+ #
2669
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse]
2670
+ #
2671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2674
+ 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)
2675
+ command = make_simple_command(:post, 'v1alpha/{+name}:publish', options)
2676
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest::Representation
2677
+ command.request_object = google_cloud_integrations_v1alpha_publish_integration_version_request_object
2678
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::Representation
2679
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
2680
+ command.params['name'] = name unless name.nil?
2681
+ command.query['fields'] = fields unless fields.nil?
2682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2683
+ execute_or_queue_command(command, &block)
2684
+ end
2685
+
2686
+ # Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this
2687
+ # integration. It then performs the same action as the
2688
+ # CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the
2689
+ # integration as a SNAPSHOT and then creates a new DRAFT version with the `
2690
+ # locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to
2691
+ # the current timestamp). Both the `locked_by` and `user_taking_over` are
2692
+ # notified via email about the takeover. This RPC throws an exception if the
2693
+ # integration is not in DRAFT status or if the `locked_by` and `
2694
+ # locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the
2695
+ # same as an edit of the integration, and hence shares ACLs with edit. Audit
2696
+ # fields updated include last_modified_timestamp, last_modified_by.
2697
+ # @param [String] integration_version
2698
+ # Required. The version to take over edit lock. Format: projects/`project`/
2699
+ # integrations/`integration`/versions/`version`
2700
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest] google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
2701
+ # @param [String] fields
2702
+ # Selector specifying which fields to include in a partial response.
2703
+ # @param [String] quota_user
2704
+ # Available to use for quota purposes for server-side applications. Can be any
2705
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2706
+ # @param [Google::Apis::RequestOptions] options
2707
+ # Request-specific options
2708
+ #
2709
+ # @yield [result, err] Result & error if block supplied
2710
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse] parsed result object
2711
+ # @yieldparam err [StandardError] error object if request failed
2712
+ #
2713
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse]
2714
+ #
2715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2718
+ 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)
2719
+ command = make_simple_command(:post, 'v1alpha/{+integrationVersion}:takeoverEditLock', options)
2720
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest::Representation
2721
+ command.request_object = google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
2722
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse::Representation
2723
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse
2724
+ command.params['integrationVersion'] = integration_version unless integration_version.nil?
2725
+ command.query['fields'] = fields unless fields.nil?
2726
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2727
+ execute_or_queue_command(command, &block)
2728
+ end
2729
+
2730
+ # THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle
2731
+ # @param [String] name
2732
+ # Required. Bundle name
2733
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUpdateBundleRequest] google_cloud_integrations_v1alpha_update_bundle_request_object
2734
+ # @param [String] fields
2735
+ # Selector specifying which fields to include in a partial response.
2736
+ # @param [String] quota_user
2737
+ # Available to use for quota purposes for server-side applications. Can be any
2738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2739
+ # @param [Google::Apis::RequestOptions] options
2740
+ # Request-specific options
2741
+ #
2742
+ # @yield [result, err] Result & error if block supplied
2743
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUpdateBundleResponse] parsed result object
2744
+ # @yieldparam err [StandardError] error object if request failed
2745
+ #
2746
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUpdateBundleResponse]
2747
+ #
2748
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2749
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2750
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2751
+ 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)
2752
+ command = make_simple_command(:patch, 'v1alpha/{+name}:updateBundle', options)
2753
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUpdateBundleRequest::Representation
2754
+ command.request_object = google_cloud_integrations_v1alpha_update_bundle_request_object
2755
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUpdateBundleResponse::Representation
2756
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUpdateBundleResponse
2757
+ command.params['name'] = name unless name.nil?
2758
+ command.query['fields'] = fields unless fields.nil?
2759
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2760
+ execute_or_queue_command(command, &block)
2761
+ end
2762
+
2763
+ # Uploads an integration. The content can be a previously downloaded integration.
2764
+ # Performs the same function as CreateDraftIntegrationVersion, but accepts
2765
+ # input in a string format, which holds the complete representation of the
2766
+ # IntegrationVersion content.
2767
+ # @param [String] parent
2768
+ # Required. The version to upload. Format: projects/`project`/integrations/`
2769
+ # integration`
2770
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest] google_cloud_integrations_v1alpha_upload_integration_version_request_object
2771
+ # @param [String] fields
2772
+ # Selector specifying which fields to include in a partial response.
2773
+ # @param [String] quota_user
2774
+ # Available to use for quota purposes for server-side applications. Can be any
2775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2776
+ # @param [Google::Apis::RequestOptions] options
2777
+ # Request-specific options
2778
+ #
2779
+ # @yield [result, err] Result & error if block supplied
2780
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse] parsed result object
2781
+ # @yieldparam err [StandardError] error object if request failed
2782
+ #
2783
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse]
2784
+ #
2785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2788
+ 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)
2789
+ command = make_simple_command(:post, 'v1alpha/{+parent}/versions:upload', options)
2790
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest::Representation
2791
+ command.request_object = google_cloud_integrations_v1alpha_upload_integration_version_request_object
2792
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse::Representation
2793
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse
2794
+ command.params['parent'] = parent unless parent.nil?
2795
+ command.query['fields'] = fields unless fields.nil?
2796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2797
+ execute_or_queue_command(command, &block)
2798
+ end
2799
+
2800
+ # Validates the given integration. If the id doesn't exist, a NotFoundException
2801
+ # is thrown. If validation fails a CanonicalCodeException is thrown. If there
2802
+ # was no failure an empty response is returned.
2803
+ # @param [String] name
2804
+ # Required. The version to validate. Format: projects/`project`/integrations/`
2805
+ # integration`/versions/`version`
2806
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest] google_cloud_integrations_v1alpha_validate_integration_version_request_object
2807
+ # @param [String] fields
2808
+ # Selector specifying which fields to include in a partial response.
2809
+ # @param [String] quota_user
2810
+ # Available to use for quota purposes for server-side applications. Can be any
2811
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2812
+ # @param [Google::Apis::RequestOptions] options
2813
+ # Request-specific options
2814
+ #
2815
+ # @yield [result, err] Result & error if block supplied
2816
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse] parsed result object
2817
+ # @yieldparam err [StandardError] error object if request failed
2818
+ #
2819
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse]
2820
+ #
2821
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2822
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2823
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2824
+ 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)
2825
+ command = make_simple_command(:post, 'v1alpha/{+name}:validate', options)
2826
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest::Representation
2827
+ command.request_object = google_cloud_integrations_v1alpha_validate_integration_version_request_object
2828
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse::Representation
2829
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse
2830
+ command.params['name'] = name unless name.nil?
2831
+ command.query['fields'] = fields unless fields.nil?
2832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2833
+ execute_or_queue_command(command, &block)
2834
+ end
2835
+
2836
+ # Creates an IntegrationTemplateVersion.
2837
+ # @param [String] parent
2838
+ # Required. The parent resource where this TemplateVersion will be created.
2839
+ # Format: projects/`project`/location/`location`/product/`product`/
2840
+ # integrationtemplates/`integrationtemplate`
2841
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion] google_cloud_integrations_v1alpha_integration_template_version_object
2842
+ # @param [String] fields
2843
+ # Selector specifying which fields to include in a partial response.
2844
+ # @param [String] quota_user
2845
+ # Available to use for quota purposes for server-side applications. Can be any
2846
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2847
+ # @param [Google::Apis::RequestOptions] options
2848
+ # Request-specific options
2849
+ #
2850
+ # @yield [result, err] Result & error if block supplied
2851
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion] parsed result object
2852
+ # @yieldparam err [StandardError] error object if request failed
2853
+ #
2854
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion]
2855
+ #
2856
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2857
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2858
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2859
+ def create_project_location_product_integrationtemplate_version(parent, google_cloud_integrations_v1alpha_integration_template_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2860
+ command = make_simple_command(:post, 'v1alpha/{+parent}/versions', options)
2861
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion::Representation
2862
+ command.request_object = google_cloud_integrations_v1alpha_integration_template_version_object
2863
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion::Representation
2864
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion
2865
+ command.params['parent'] = parent unless parent.nil?
2866
+ command.query['fields'] = fields unless fields.nil?
2867
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2868
+ execute_or_queue_command(command, &block)
2869
+ end
2870
+
2871
+ # Returns an IntegrationTemplateVersion in the specified project.
2872
+ # @param [String] name
2873
+ # Required. The TemplateVersion to retrieve. Format: projects/`project`/
2874
+ # locations/`location`/products/`product`/integrationtemplates/`
2875
+ # integrationtemplate`/versions/`version`
2876
+ # @param [String] fields
2877
+ # Selector specifying which fields to include in a partial response.
2878
+ # @param [String] quota_user
2879
+ # Available to use for quota purposes for server-side applications. Can be any
2880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2881
+ # @param [Google::Apis::RequestOptions] options
2882
+ # Request-specific options
2883
+ #
2884
+ # @yield [result, err] Result & error if block supplied
2885
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion] parsed result object
2886
+ # @yieldparam err [StandardError] error object if request failed
2887
+ #
2888
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion]
2889
+ #
2890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2893
+ def get_project_location_product_integrationtemplate_version(name, fields: nil, quota_user: nil, options: nil, &block)
2894
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
2895
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion::Representation
2896
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion
2897
+ command.params['name'] = name unless name.nil?
2898
+ command.query['fields'] = fields unless fields.nil?
2899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2900
+ execute_or_queue_command(command, &block)
2901
+ end
2902
+
2903
+ # Returns the list of all IntegrationTemplateVersions in the specified project.
2904
+ # @param [String] parent
2905
+ # Required. Format: projects/`project`/location/`location`/product/`product`/
2906
+ # integrationtemplates/`integrationtemplate`
2907
+ # @param [String] filter
2908
+ # Filter syntax: defined in the EBNF grammar.
2909
+ # @param [Fixnum] page_size
2910
+ # The maximum number of IntegrationTemplateVersions to return. The service may
2911
+ # return fewer than this value. If unspecified, at most 50 versions will be
2912
+ # returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
2913
+ # @param [String] page_token
2914
+ # A page token, received from a previous `ListIntegrationTemplateVersions` call.
2915
+ # Provide this to retrieve the subsequent page. When paginating, all other
2916
+ # parameters provided to `ListIntegrationTemplateVersions` must match the call
2917
+ # that provided the page token.
2918
+ # @param [String] fields
2919
+ # Selector specifying which fields to include in a partial response.
2920
+ # @param [String] quota_user
2921
+ # Available to use for quota purposes for server-side applications. Can be any
2922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2923
+ # @param [Google::Apis::RequestOptions] options
2924
+ # Request-specific options
2925
+ #
2926
+ # @yield [result, err] Result & error if block supplied
2927
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse] parsed result object
2928
+ # @yieldparam err [StandardError] error object if request failed
2929
+ #
2930
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse]
2931
+ #
2932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2935
+ def list_project_location_product_integrationtemplate_versions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2936
+ command = make_simple_command(:get, 'v1alpha/{+parent}/versions', options)
2937
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse::Representation
2938
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse
2939
+ command.params['parent'] = parent unless parent.nil?
2940
+ command.query['filter'] = filter unless filter.nil?
2941
+ command.query['pageSize'] = page_size unless page_size.nil?
2942
+ command.query['pageToken'] = page_token unless page_token.nil?
2943
+ command.query['fields'] = fields unless fields.nil?
2944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2945
+ execute_or_queue_command(command, &block)
2946
+ end
2947
+
2948
+ # Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
2949
+ # the sfdc instance.
2950
+ # @param [String] parent
2951
+ # Required. "projects/`project`/locations/`location`" format.
2952
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
2953
+ # @param [String] fields
2954
+ # Selector specifying which fields to include in a partial response.
2955
+ # @param [String] quota_user
2956
+ # Available to use for quota purposes for server-side applications. Can be any
2957
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2958
+ # @param [Google::Apis::RequestOptions] options
2959
+ # Request-specific options
2960
+ #
2961
+ # @yield [result, err] Result & error if block supplied
2962
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
2963
+ # @yieldparam err [StandardError] error object if request failed
2964
+ #
2965
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance]
2966
+ #
2967
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2968
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2969
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2970
+ def create_project_location_product_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2971
+ command = make_simple_command(:post, 'v1alpha/{+parent}/sfdcInstances', options)
2972
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
2973
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
2974
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
2975
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance
2976
+ command.params['parent'] = parent unless parent.nil?
2977
+ command.query['fields'] = fields unless fields.nil?
2978
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2979
+ execute_or_queue_command(command, &block)
2980
+ end
2981
+
2982
+ # Deletes an sfdc instance.
2983
+ # @param [String] name
2984
+ # Required. The name that is associated with the SfdcInstance.
2985
+ # @param [String] fields
2986
+ # Selector specifying which fields to include in a partial response.
2987
+ # @param [String] quota_user
2988
+ # Available to use for quota purposes for server-side applications. Can be any
2989
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2990
+ # @param [Google::Apis::RequestOptions] options
2991
+ # Request-specific options
2992
+ #
2993
+ # @yield [result, err] Result & error if block supplied
2994
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty] parsed result object
2995
+ # @yieldparam err [StandardError] error object if request failed
2996
+ #
2997
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty]
2998
+ #
2999
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3000
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3001
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3002
+ def delete_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3003
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
3004
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty::Representation
3005
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty
3006
+ command.params['name'] = name unless name.nil?
3007
+ command.query['fields'] = fields unless fields.nil?
3008
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3009
+ execute_or_queue_command(command, &block)
3010
+ end
3011
+
3012
+ # Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception
3013
+ # will be thrown.
3014
+ # @param [String] name
3015
+ # Required. The name that is associated with the SfdcInstance.
3016
+ # @param [String] fields
3017
+ # Selector specifying which fields to include in a partial response.
3018
+ # @param [String] quota_user
3019
+ # Available to use for quota purposes for server-side applications. Can be any
3020
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3021
+ # @param [Google::Apis::RequestOptions] options
3022
+ # Request-specific options
3023
+ #
3024
+ # @yield [result, err] Result & error if block supplied
3025
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3026
+ # @yieldparam err [StandardError] error object if request failed
3027
+ #
3028
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance]
3029
+ #
3030
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3031
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3032
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3033
+ def get_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3034
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
3035
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3036
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance
3037
+ command.params['name'] = name unless name.nil?
3038
+ command.query['fields'] = fields unless fields.nil?
3039
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3040
+ execute_or_queue_command(command, &block)
3041
+ end
3042
+
3043
+ # Lists all sfdc instances that match the filter. Restrict to sfdc instances
3044
+ # belonging to the current client only.
3045
+ # @param [String] parent
3046
+ # Required. The client, which owns this collection of SfdcInstances.
3047
+ # @param [String] filter
3048
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3049
+ # guides/v2/list-filters.
3050
+ # @param [Fixnum] page_size
3051
+ # The size of entries in the response. If unspecified, defaults to 100.
3052
+ # @param [String] page_token
3053
+ # The token returned in the previous response.
3054
+ # @param [String] read_mask
3055
+ # The mask which specifies fields that need to be returned in the SfdcInstance's
3056
+ # response.
3057
+ # @param [String] fields
3058
+ # Selector specifying which fields to include in a partial response.
3059
+ # @param [String] quota_user
3060
+ # Available to use for quota purposes for server-side applications. Can be any
3061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3062
+ # @param [Google::Apis::RequestOptions] options
3063
+ # Request-specific options
3064
+ #
3065
+ # @yield [result, err] Result & error if block supplied
3066
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse] parsed result object
3067
+ # @yieldparam err [StandardError] error object if request failed
3068
+ #
3069
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse]
3070
+ #
3071
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3072
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3073
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3074
+ 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)
3075
+ command = make_simple_command(:get, 'v1alpha/{+parent}/sfdcInstances', options)
3076
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::Representation
3077
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
3078
+ command.params['parent'] = parent unless parent.nil?
3079
+ command.query['filter'] = filter unless filter.nil?
3080
+ command.query['pageSize'] = page_size unless page_size.nil?
3081
+ command.query['pageToken'] = page_token unless page_token.nil?
3082
+ command.query['readMask'] = read_mask unless read_mask.nil?
3083
+ command.query['fields'] = fields unless fields.nil?
3084
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3085
+ execute_or_queue_command(command, &block)
3086
+ end
3087
+
3088
+ # Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
3089
+ # sfdc instance.
3090
+ # @param [String] name
3091
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
3092
+ # sfdcInstances/`sfdcInstance`.
3093
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
3094
+ # @param [String] update_mask
3095
+ # Field mask specifying the fields in the above SfdcInstance that have been
3096
+ # modified and need to be updated.
3097
+ # @param [String] fields
3098
+ # Selector specifying which fields to include in a partial response.
3099
+ # @param [String] quota_user
3100
+ # Available to use for quota purposes for server-side applications. Can be any
3101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3102
+ # @param [Google::Apis::RequestOptions] options
3103
+ # Request-specific options
3104
+ #
3105
+ # @yield [result, err] Result & error if block supplied
3106
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3107
+ # @yieldparam err [StandardError] error object if request failed
3108
+ #
3109
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance]
3110
+ #
3111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3114
+ 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)
3115
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
3116
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3117
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3118
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3119
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance
3120
+ command.params['name'] = name unless name.nil?
3121
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3122
+ command.query['fields'] = fields unless fields.nil?
3123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3124
+ execute_or_queue_command(command, &block)
3125
+ end
3126
+
3127
+ # Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the
3128
+ # sfdc channel.
3129
+ # @param [String] parent
3130
+ # Required. "projects/`project`/locations/`location`" format.
3131
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
3132
+ # @param [String] fields
3133
+ # Selector specifying which fields to include in a partial response.
3134
+ # @param [String] quota_user
3135
+ # Available to use for quota purposes for server-side applications. Can be any
3136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3137
+ # @param [Google::Apis::RequestOptions] options
3138
+ # Request-specific options
3139
+ #
3140
+ # @yield [result, err] Result & error if block supplied
3141
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3142
+ # @yieldparam err [StandardError] error object if request failed
3143
+ #
3144
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel]
3145
+ #
3146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3149
+ 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)
3150
+ command = make_simple_command(:post, 'v1alpha/{+parent}/sfdcChannels', options)
3151
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3152
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
3153
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3154
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel
3155
+ command.params['parent'] = parent unless parent.nil?
3156
+ command.query['fields'] = fields unless fields.nil?
3157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3158
+ execute_or_queue_command(command, &block)
3159
+ end
3160
+
3161
+ # Deletes an sfdc channel.
3162
+ # @param [String] name
3163
+ # Required. The name that is associated with the SfdcChannel.
3164
+ # @param [String] fields
3165
+ # Selector specifying which fields to include in a partial response.
3166
+ # @param [String] quota_user
3167
+ # Available to use for quota purposes for server-side applications. Can be any
3168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3169
+ # @param [Google::Apis::RequestOptions] options
3170
+ # Request-specific options
3171
+ #
3172
+ # @yield [result, err] Result & error if block supplied
3173
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty] parsed result object
3174
+ # @yieldparam err [StandardError] error object if request failed
3175
+ #
3176
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty]
3177
+ #
3178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3181
+ def delete_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3182
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
3183
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty::Representation
3184
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty
3185
+ command.params['name'] = name unless name.nil?
3186
+ command.query['fields'] = fields unless fields.nil?
3187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3188
+ execute_or_queue_command(command, &block)
3189
+ end
3190
+
3191
+ # Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
3192
+ # will be thrown.
3193
+ # @param [String] name
3194
+ # Required. The name that is associated with the SfdcChannel.
3195
+ # @param [String] fields
3196
+ # Selector specifying which fields to include in a partial response.
3197
+ # @param [String] quota_user
3198
+ # Available to use for quota purposes for server-side applications. Can be any
3199
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3200
+ # @param [Google::Apis::RequestOptions] options
3201
+ # Request-specific options
3202
+ #
3203
+ # @yield [result, err] Result & error if block supplied
3204
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3205
+ # @yieldparam err [StandardError] error object if request failed
3206
+ #
3207
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel]
3208
+ #
3209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3212
+ def get_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3213
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
3214
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3215
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel
3216
+ command.params['name'] = name unless name.nil?
3217
+ command.query['fields'] = fields unless fields.nil?
3218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3219
+ execute_or_queue_command(command, &block)
3220
+ end
3221
+
3222
+ # Lists all sfdc channels that match the filter. Restrict to sfdc channels
3223
+ # belonging to the current client only.
3224
+ # @param [String] parent
3225
+ # Required. The client, which owns this collection of SfdcChannels.
3226
+ # @param [String] filter
3227
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3228
+ # guides/v2/list-filters.
3229
+ # @param [Fixnum] page_size
3230
+ # The size of entries in the response. If unspecified, defaults to 100.
3231
+ # @param [String] page_token
3232
+ # The token returned in the previous response.
3233
+ # @param [String] read_mask
3234
+ # The mask which specifies fields that need to be returned in the SfdcChannel's
3235
+ # response.
3236
+ # @param [String] fields
3237
+ # Selector specifying which fields to include in a partial response.
3238
+ # @param [String] quota_user
3239
+ # Available to use for quota purposes for server-side applications. Can be any
3240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3241
+ # @param [Google::Apis::RequestOptions] options
3242
+ # Request-specific options
3243
+ #
3244
+ # @yield [result, err] Result & error if block supplied
3245
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse] parsed result object
3246
+ # @yieldparam err [StandardError] error object if request failed
3247
+ #
3248
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse]
3249
+ #
3250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3253
+ 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)
3254
+ command = make_simple_command(:get, 'v1alpha/{+parent}/sfdcChannels', options)
3255
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::Representation
3256
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
3257
+ command.params['parent'] = parent unless parent.nil?
3258
+ command.query['filter'] = filter unless filter.nil?
3259
+ command.query['pageSize'] = page_size unless page_size.nil?
3260
+ command.query['pageToken'] = page_token unless page_token.nil?
3261
+ command.query['readMask'] = read_mask unless read_mask.nil?
3262
+ command.query['fields'] = fields unless fields.nil?
3263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3264
+ execute_or_queue_command(command, &block)
3265
+ end
3266
+
3267
+ # Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc
3268
+ # channel.
3269
+ # @param [String] name
3270
+ # Resource name of the SFDC channel projects/`project`/locations/`location`/
3271
+ # sfdcInstances/`sfdc_instance`/sfdcChannels/`sfdc_channel`.
3272
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
3273
+ # @param [String] update_mask
3274
+ # Field mask specifying the fields in the above SfdcChannel that have been
3275
+ # modified and need to be updated.
3276
+ # @param [String] fields
3277
+ # Selector specifying which fields to include in a partial response.
3278
+ # @param [String] quota_user
3279
+ # Available to use for quota purposes for server-side applications. Can be any
3280
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3281
+ # @param [Google::Apis::RequestOptions] options
3282
+ # Request-specific options
3283
+ #
3284
+ # @yield [result, err] Result & error if block supplied
3285
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3286
+ # @yieldparam err [StandardError] error object if request failed
3287
+ #
3288
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel]
3289
+ #
3290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3293
+ 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)
3294
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
3295
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3296
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
3297
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3298
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel
3299
+ command.params['name'] = name unless name.nil?
3300
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3301
+ command.query['fields'] = fields unless fields.nil?
3302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3303
+ execute_or_queue_command(command, &block)
3304
+ end
3305
+
3306
+ # Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
3307
+ # the sfdc instance.
3308
+ # @param [String] parent
3309
+ # Required. "projects/`project`/locations/`location`" format.
3310
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
3311
+ # @param [String] fields
3312
+ # Selector specifying which fields to include in a partial response.
3313
+ # @param [String] quota_user
3314
+ # Available to use for quota purposes for server-side applications. Can be any
3315
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3316
+ # @param [Google::Apis::RequestOptions] options
3317
+ # Request-specific options
3318
+ #
3319
+ # @yield [result, err] Result & error if block supplied
3320
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3321
+ # @yieldparam err [StandardError] error object if request failed
3322
+ #
3323
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance]
3324
+ #
3325
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3326
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3327
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3328
+ def create_project_location_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3329
+ command = make_simple_command(:post, 'v1alpha/{+parent}/sfdcInstances', options)
3330
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3331
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3332
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3333
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance
3334
+ command.params['parent'] = parent unless parent.nil?
3335
+ command.query['fields'] = fields unless fields.nil?
3336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3337
+ execute_or_queue_command(command, &block)
3338
+ end
3339
+
3340
+ # Deletes an sfdc instance.
3341
+ # @param [String] name
3342
+ # Required. The name that is associated with the SfdcInstance.
3343
+ # @param [String] fields
3344
+ # Selector specifying which fields to include in a partial response.
3345
+ # @param [String] quota_user
3346
+ # Available to use for quota purposes for server-side applications. Can be any
3347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3348
+ # @param [Google::Apis::RequestOptions] options
3349
+ # Request-specific options
3350
+ #
3351
+ # @yield [result, err] Result & error if block supplied
3352
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty] parsed result object
3353
+ # @yieldparam err [StandardError] error object if request failed
3354
+ #
3355
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty]
3356
+ #
3357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3360
+ def delete_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3361
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
3362
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty::Representation
3363
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty
3364
+ command.params['name'] = name unless name.nil?
3365
+ command.query['fields'] = fields unless fields.nil?
3366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3367
+ execute_or_queue_command(command, &block)
3368
+ end
3369
+
3370
+ # Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception
3371
+ # will be thrown.
3372
+ # @param [String] name
3373
+ # Required. The name that is associated with the SfdcInstance.
3374
+ # @param [String] fields
3375
+ # Selector specifying which fields to include in a partial response.
3376
+ # @param [String] quota_user
3377
+ # Available to use for quota purposes for server-side applications. Can be any
3378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3379
+ # @param [Google::Apis::RequestOptions] options
3380
+ # Request-specific options
3381
+ #
3382
+ # @yield [result, err] Result & error if block supplied
3383
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3384
+ # @yieldparam err [StandardError] error object if request failed
3385
+ #
3386
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance]
3387
+ #
3388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3391
+ def get_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3392
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
3393
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3394
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance
3395
+ command.params['name'] = name unless name.nil?
3396
+ command.query['fields'] = fields unless fields.nil?
3397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3398
+ execute_or_queue_command(command, &block)
3399
+ end
3400
+
3401
+ # Lists all sfdc instances that match the filter. Restrict to sfdc instances
3402
+ # belonging to the current client only.
3403
+ # @param [String] parent
3404
+ # Required. The client, which owns this collection of SfdcInstances.
3405
+ # @param [String] filter
3406
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3407
+ # guides/v2/list-filters.
3408
+ # @param [Fixnum] page_size
3409
+ # The size of entries in the response. If unspecified, defaults to 100.
3410
+ # @param [String] page_token
3411
+ # The token returned in the previous response.
3412
+ # @param [String] read_mask
3413
+ # The mask which specifies fields that need to be returned in the SfdcInstance's
3414
+ # response.
3415
+ # @param [String] fields
3416
+ # Selector specifying which fields to include in a partial response.
3417
+ # @param [String] quota_user
3418
+ # Available to use for quota purposes for server-side applications. Can be any
3419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3420
+ # @param [Google::Apis::RequestOptions] options
3421
+ # Request-specific options
3422
+ #
3423
+ # @yield [result, err] Result & error if block supplied
3424
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse] parsed result object
3425
+ # @yieldparam err [StandardError] error object if request failed
3426
+ #
3427
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse]
3428
+ #
3429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3432
+ 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)
3433
+ command = make_simple_command(:get, 'v1alpha/{+parent}/sfdcInstances', options)
3434
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::Representation
3435
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
3436
+ command.params['parent'] = parent unless parent.nil?
3437
+ command.query['filter'] = filter unless filter.nil?
3438
+ command.query['pageSize'] = page_size unless page_size.nil?
3439
+ command.query['pageToken'] = page_token unless page_token.nil?
3440
+ command.query['readMask'] = read_mask unless read_mask.nil?
3441
+ command.query['fields'] = fields unless fields.nil?
3442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3443
+ execute_or_queue_command(command, &block)
3444
+ end
3445
+
3446
+ # Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
3447
+ # sfdc instance.
3448
+ # @param [String] name
3449
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
3450
+ # sfdcInstances/`sfdcInstance`.
3451
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
3452
+ # @param [String] update_mask
3453
+ # Field mask specifying the fields in the above SfdcInstance that have been
3454
+ # modified and need to be updated.
3455
+ # @param [String] fields
3456
+ # Selector specifying which fields to include in a partial response.
3457
+ # @param [String] quota_user
3458
+ # Available to use for quota purposes for server-side applications. Can be any
3459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3460
+ # @param [Google::Apis::RequestOptions] options
3461
+ # Request-specific options
3462
+ #
3463
+ # @yield [result, err] Result & error if block supplied
3464
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3465
+ # @yieldparam err [StandardError] error object if request failed
3466
+ #
3467
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance]
3468
+ #
3469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3472
+ 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)
3473
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
3474
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3475
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3476
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3477
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcInstance
3478
+ command.params['name'] = name unless name.nil?
3479
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3480
+ command.query['fields'] = fields unless fields.nil?
3481
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3482
+ execute_or_queue_command(command, &block)
3483
+ end
3484
+
3485
+ # Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the
3486
+ # sfdc channel.
3487
+ # @param [String] parent
3488
+ # Required. "projects/`project`/locations/`location`" format.
3489
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
3490
+ # @param [String] fields
3491
+ # Selector specifying which fields to include in a partial response.
3492
+ # @param [String] quota_user
3493
+ # Available to use for quota purposes for server-side applications. Can be any
3494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3495
+ # @param [Google::Apis::RequestOptions] options
3496
+ # Request-specific options
3497
+ #
3498
+ # @yield [result, err] Result & error if block supplied
3499
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3500
+ # @yieldparam err [StandardError] error object if request failed
3501
+ #
3502
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel]
3503
+ #
3504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3507
+ 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)
3508
+ command = make_simple_command(:post, 'v1alpha/{+parent}/sfdcChannels', options)
3509
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3510
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
3511
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3512
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel
3513
+ command.params['parent'] = parent unless parent.nil?
3514
+ command.query['fields'] = fields unless fields.nil?
3515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3516
+ execute_or_queue_command(command, &block)
3517
+ end
3518
+
3519
+ # Deletes an sfdc channel.
3520
+ # @param [String] name
3521
+ # Required. The name that is associated with the SfdcChannel.
3522
+ # @param [String] fields
3523
+ # Selector specifying which fields to include in a partial response.
3524
+ # @param [String] quota_user
3525
+ # Available to use for quota purposes for server-side applications. Can be any
3526
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3527
+ # @param [Google::Apis::RequestOptions] options
3528
+ # Request-specific options
3529
+ #
3530
+ # @yield [result, err] Result & error if block supplied
3531
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty] parsed result object
3532
+ # @yieldparam err [StandardError] error object if request failed
3533
+ #
3534
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty]
3535
+ #
3536
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3537
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3538
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3539
+ def delete_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3540
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
3541
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty::Representation
3542
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleProtobufEmpty
3543
+ command.params['name'] = name unless name.nil?
3544
+ command.query['fields'] = fields unless fields.nil?
3545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3546
+ execute_or_queue_command(command, &block)
3547
+ end
3548
+
3549
+ # Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
3550
+ # will be thrown.
3551
+ # @param [String] name
3552
+ # Required. The name that is associated with the SfdcChannel.
3553
+ # @param [String] fields
3554
+ # Selector specifying which fields to include in a partial response.
3555
+ # @param [String] quota_user
3556
+ # Available to use for quota purposes for server-side applications. Can be any
3557
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3558
+ # @param [Google::Apis::RequestOptions] options
3559
+ # Request-specific options
3560
+ #
3561
+ # @yield [result, err] Result & error if block supplied
3562
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3563
+ # @yieldparam err [StandardError] error object if request failed
3564
+ #
3565
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel]
3566
+ #
3567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3570
+ def get_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3571
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
3572
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3573
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel
3574
+ command.params['name'] = name unless name.nil?
3575
+ command.query['fields'] = fields unless fields.nil?
3576
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3577
+ execute_or_queue_command(command, &block)
3578
+ end
3579
+
3580
+ # Lists all sfdc channels that match the filter. Restrict to sfdc channels
3581
+ # belonging to the current client only.
3582
+ # @param [String] parent
3583
+ # Required. The client, which owns this collection of SfdcChannels.
3584
+ # @param [String] filter
3585
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3586
+ # guides/v2/list-filters.
3587
+ # @param [Fixnum] page_size
3588
+ # The size of entries in the response. If unspecified, defaults to 100.
3589
+ # @param [String] page_token
3590
+ # The token returned in the previous response.
3591
+ # @param [String] read_mask
3592
+ # The mask which specifies fields that need to be returned in the SfdcChannel's
3593
+ # response.
3594
+ # @param [String] fields
3595
+ # Selector specifying which fields to include in a partial response.
3596
+ # @param [String] quota_user
3597
+ # Available to use for quota purposes for server-side applications. Can be any
3598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3599
+ # @param [Google::Apis::RequestOptions] options
3600
+ # Request-specific options
3601
+ #
3602
+ # @yield [result, err] Result & error if block supplied
3603
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse] parsed result object
3604
+ # @yieldparam err [StandardError] error object if request failed
3605
+ #
3606
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse]
3607
+ #
3608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3611
+ 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)
3612
+ command = make_simple_command(:get, 'v1alpha/{+parent}/sfdcChannels', options)
3613
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::Representation
3614
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
3615
+ command.params['parent'] = parent unless parent.nil?
3616
+ command.query['filter'] = filter unless filter.nil?
3617
+ command.query['pageSize'] = page_size unless page_size.nil?
3618
+ command.query['pageToken'] = page_token unless page_token.nil?
3619
+ command.query['readMask'] = read_mask unless read_mask.nil?
3620
+ command.query['fields'] = fields unless fields.nil?
3621
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3622
+ execute_or_queue_command(command, &block)
3623
+ end
3624
+
3625
+ # Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc
3626
+ # channel.
3627
+ # @param [String] name
3628
+ # Resource name of the SFDC channel projects/`project`/locations/`location`/
3629
+ # sfdcInstances/`sfdc_instance`/sfdcChannels/`sfdc_channel`.
3630
+ # @param [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
3631
+ # @param [String] update_mask
3632
+ # Field mask specifying the fields in the above SfdcChannel that have been
3633
+ # modified and need to be updated.
3634
+ # @param [String] fields
3635
+ # Selector specifying which fields to include in a partial response.
3636
+ # @param [String] quota_user
3637
+ # Available to use for quota purposes for server-side applications. Can be any
3638
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3639
+ # @param [Google::Apis::RequestOptions] options
3640
+ # Request-specific options
3641
+ #
3642
+ # @yield [result, err] Result & error if block supplied
3643
+ # @yieldparam result [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3644
+ # @yieldparam err [StandardError] error object if request failed
3645
+ #
3646
+ # @return [Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel]
3647
+ #
3648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3651
+ 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)
3652
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
3653
+ command.request_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3654
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
3655
+ command.response_representation = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3656
+ command.response_class = Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSfdcChannel
3657
+ command.params['name'] = name unless name.nil?
3658
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3659
+ command.query['fields'] = fields unless fields.nil?
3660
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3661
+ execute_or_queue_command(command, &block)
3662
+ end
3663
+
3664
+ protected
3665
+
3666
+ def apply_command_defaults(command)
3667
+ command.query['key'] = key unless key.nil?
3668
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3669
+ end
3670
+ end
3671
+ end
3672
+ end
3673
+ end