google-apis-integrations_v2 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.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/integrations_v2/classes.rb +3648 -0
- data/lib/google/apis/integrations_v2/gem_version.rb +28 -0
- data/lib/google/apis/integrations_v2/representations.rb +1727 -0
- data/lib/google/apis/integrations_v2/service.rb +437 -0
- data/lib/google/apis/integrations_v2.rb +36 -0
- data/lib/google-apis-integrations_v2.rb +15 -0
- metadata +79 -0
|
@@ -0,0 +1,437 @@
|
|
|
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 IntegrationsV2
|
|
23
|
+
# Application Integration API
|
|
24
|
+
#
|
|
25
|
+
#
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/integrations_v2'
|
|
29
|
+
#
|
|
30
|
+
# Integrations = Google::Apis::IntegrationsV2 # Alias the module
|
|
31
|
+
# service = Integrations::IntegrationsService.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://cloud.google.com/application-integration
|
|
34
|
+
class IntegrationsService < Google::Apis::Core::BaseService
|
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://integrations.$UNIVERSE_DOMAIN$/"
|
|
36
|
+
|
|
37
|
+
# @return [String]
|
|
38
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
39
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
40
|
+
attr_accessor :key
|
|
41
|
+
|
|
42
|
+
# @return [String]
|
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
45
|
+
attr_accessor :quota_user
|
|
46
|
+
|
|
47
|
+
def initialize
|
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
|
49
|
+
client_name: 'google-apis-integrations_v2',
|
|
50
|
+
client_version: Google::Apis::IntegrationsV2::GEM_VERSION)
|
|
51
|
+
@batch_path = 'batch'
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Generates an integration skeleton based on a natural language prompt.
|
|
55
|
+
# @param [String] parent
|
|
56
|
+
# Required. The location in which the integration will be generated. Format: `
|
|
57
|
+
# projects/`project`/locations/`location``
|
|
58
|
+
# @param [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationRequest] google_cloud_integrations_v2_duet_generate_integration_request_object
|
|
59
|
+
# @param [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
61
|
+
# @param [String] quota_user
|
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
|
65
|
+
# Request-specific options
|
|
66
|
+
#
|
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
|
68
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse] parsed result object
|
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
+
#
|
|
71
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
+
def generate_project_location_integration(parent, google_cloud_integrations_v2_duet_generate_integration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
77
|
+
command = make_simple_command(:post, 'v2/{+parent}:generateIntegration', options)
|
|
78
|
+
command.request_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationRequest::Representation
|
|
79
|
+
command.request_object = google_cloud_integrations_v2_duet_generate_integration_request_object
|
|
80
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse::Representation
|
|
81
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse
|
|
82
|
+
command.params['parent'] = parent unless parent.nil?
|
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
85
|
+
execute_or_queue_command(command, &block)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Executes integrations synchronously. The response is not returned until the
|
|
89
|
+
# requested execution is either fulfilled or experienced an error. Only one
|
|
90
|
+
# integration can be executed. Request format URL: https://integrations.
|
|
91
|
+
# googleapis.com/v2/projects/$PROJECT/locations/$LOCATION/integrations/$
|
|
92
|
+
# INTEGRATION_NAME:execute Request payload: (the entire payload is optional
|
|
93
|
+
# unless input variables need to be set.) `"variable1": "hello world", "
|
|
94
|
+
# variable2": 1, "variable3": `"my_json_key": "my json string value" `
|
|
95
|
+
# @param [String] parent
|
|
96
|
+
# Required. The integration resource name.
|
|
97
|
+
# @param [String] request_id
|
|
98
|
+
# Optional. This is used to de-dup incoming request: if the duplicate request
|
|
99
|
+
# was detected, the response from the previous execution is returned.
|
|
100
|
+
# @param [String] trigger_id
|
|
101
|
+
# Required. The API trigger id associated with the integration. An integration
|
|
102
|
+
# can have multiple trigger_id. This field is required to disambiguate which
|
|
103
|
+
# trigger should be invoked.
|
|
104
|
+
# @param [String] fields
|
|
105
|
+
# Selector specifying which fields to include in a partial response.
|
|
106
|
+
# @param [String] quota_user
|
|
107
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
108
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
109
|
+
# @param [Google::Apis::RequestOptions] options
|
|
110
|
+
# Request-specific options
|
|
111
|
+
#
|
|
112
|
+
# @yield [result, err] Result & error if block supplied
|
|
113
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleApiHttpBody] parsed result object
|
|
114
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
115
|
+
#
|
|
116
|
+
# @return [Google::Apis::IntegrationsV2::GoogleApiHttpBody]
|
|
117
|
+
#
|
|
118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
121
|
+
def execute_project_location_integration(parent, request_id: nil, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
122
|
+
command = make_simple_command(:post, 'v2/{+parent}:execute', options)
|
|
123
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleApiHttpBody::Representation
|
|
124
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleApiHttpBody
|
|
125
|
+
command.params['parent'] = parent unless parent.nil?
|
|
126
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
127
|
+
command.query['triggerId'] = trigger_id unless trigger_id.nil?
|
|
128
|
+
command.query['fields'] = fields unless fields.nil?
|
|
129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
130
|
+
execute_or_queue_command(command, &block)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Generates an integration branch.
|
|
134
|
+
# @param [String] parent
|
|
135
|
+
# Required. Format: `projects/`project`/locations/`location`/integrations/`
|
|
136
|
+
# integration``
|
|
137
|
+
# @param [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchRequest] google_cloud_integrations_v2_duet_generate_integration_branch_request_object
|
|
138
|
+
# @param [String] fields
|
|
139
|
+
# Selector specifying which fields to include in a partial response.
|
|
140
|
+
# @param [String] quota_user
|
|
141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
143
|
+
# @param [Google::Apis::RequestOptions] options
|
|
144
|
+
# Request-specific options
|
|
145
|
+
#
|
|
146
|
+
# @yield [result, err] Result & error if block supplied
|
|
147
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse] parsed result object
|
|
148
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
149
|
+
#
|
|
150
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse]
|
|
151
|
+
#
|
|
152
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
153
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
154
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
155
|
+
def generate_project_location_integration_integration_branch(parent, google_cloud_integrations_v2_duet_generate_integration_branch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
156
|
+
command = make_simple_command(:post, 'v2/{+parent}:generateIntegrationBranch', options)
|
|
157
|
+
command.request_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchRequest::Representation
|
|
158
|
+
command.request_object = google_cloud_integrations_v2_duet_generate_integration_branch_request_object
|
|
159
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse::Representation
|
|
160
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse
|
|
161
|
+
command.params['parent'] = parent unless parent.nil?
|
|
162
|
+
command.query['fields'] = fields unless fields.nil?
|
|
163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
164
|
+
execute_or_queue_command(command, &block)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Generates documentation for an integration version.
|
|
168
|
+
# @param [String] parent
|
|
169
|
+
# Required. Format: `projects/`project`/locations/`location`/integrations/`
|
|
170
|
+
# integration``
|
|
171
|
+
# @param [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentRequest] google_cloud_integrations_v2_duet_generate_integration_document_request_object
|
|
172
|
+
# @param [String] fields
|
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
|
174
|
+
# @param [String] quota_user
|
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
|
178
|
+
# Request-specific options
|
|
179
|
+
#
|
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
|
181
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse] parsed result object
|
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
183
|
+
#
|
|
184
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse]
|
|
185
|
+
#
|
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
189
|
+
def generate_project_location_integration_integration_document(parent, google_cloud_integrations_v2_duet_generate_integration_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
190
|
+
command = make_simple_command(:post, 'v2/{+parent}:generateIntegrationDocument', options)
|
|
191
|
+
command.request_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentRequest::Representation
|
|
192
|
+
command.request_object = google_cloud_integrations_v2_duet_generate_integration_document_request_object
|
|
193
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse::Representation
|
|
194
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse
|
|
195
|
+
command.params['parent'] = parent unless parent.nil?
|
|
196
|
+
command.query['fields'] = fields unless fields.nil?
|
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
198
|
+
execute_or_queue_command(command, &block)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Generates Javascript code for data mapping.
|
|
202
|
+
# @param [String] parent
|
|
203
|
+
# Required. Format: `projects/`project`/locations/`location`/integrations/`
|
|
204
|
+
# integration``
|
|
205
|
+
# @param [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateJavascriptRequest] google_cloud_integrations_v2_duet_generate_javascript_request_object
|
|
206
|
+
# @param [String] fields
|
|
207
|
+
# Selector specifying which fields to include in a partial response.
|
|
208
|
+
# @param [String] quota_user
|
|
209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
211
|
+
# @param [Google::Apis::RequestOptions] options
|
|
212
|
+
# Request-specific options
|
|
213
|
+
#
|
|
214
|
+
# @yield [result, err] Result & error if block supplied
|
|
215
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse] parsed result object
|
|
216
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
217
|
+
#
|
|
218
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse]
|
|
219
|
+
#
|
|
220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
223
|
+
def generate_project_location_integration_javascript(parent, google_cloud_integrations_v2_duet_generate_javascript_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
224
|
+
command = make_simple_command(:post, 'v2/{+parent}:generateJavascript', options)
|
|
225
|
+
command.request_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateJavascriptRequest::Representation
|
|
226
|
+
command.request_object = google_cloud_integrations_v2_duet_generate_javascript_request_object
|
|
227
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse::Representation
|
|
228
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse
|
|
229
|
+
command.params['parent'] = parent unless parent.nil?
|
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
232
|
+
execute_or_queue_command(command, &block)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Recommends tasks to replace a selected task.
|
|
236
|
+
# @param [String] parent
|
|
237
|
+
# Required. Format: `projects/`project`/locations/`location`/integrations/`
|
|
238
|
+
# integration``
|
|
239
|
+
# @param [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetRecommendTasksRequest] google_cloud_integrations_v2_duet_recommend_tasks_request_object
|
|
240
|
+
# @param [String] fields
|
|
241
|
+
# Selector specifying which fields to include in a partial response.
|
|
242
|
+
# @param [String] quota_user
|
|
243
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
244
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
245
|
+
# @param [Google::Apis::RequestOptions] options
|
|
246
|
+
# Request-specific options
|
|
247
|
+
#
|
|
248
|
+
# @yield [result, err] Result & error if block supplied
|
|
249
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetRecommendTasksResponse] parsed result object
|
|
250
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
251
|
+
#
|
|
252
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetRecommendTasksResponse]
|
|
253
|
+
#
|
|
254
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
255
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
256
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
257
|
+
def recommend_project_location_integration_tasks(parent, google_cloud_integrations_v2_duet_recommend_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
258
|
+
command = make_simple_command(:post, 'v2/{+parent}:recommendTasks', options)
|
|
259
|
+
command.request_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetRecommendTasksRequest::Representation
|
|
260
|
+
command.request_object = google_cloud_integrations_v2_duet_recommend_tasks_request_object
|
|
261
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetRecommendTasksResponse::Representation
|
|
262
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetRecommendTasksResponse
|
|
263
|
+
command.params['parent'] = parent unless parent.nil?
|
|
264
|
+
command.query['fields'] = fields unless fields.nil?
|
|
265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
266
|
+
execute_or_queue_command(command, &block)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Schedules an integration for execution.
|
|
270
|
+
# @param [String] parent
|
|
271
|
+
# Required. The integration resource name.
|
|
272
|
+
# @param [String] request_id
|
|
273
|
+
# Optional. This is used to de-dup incoming request: if the duplicate request
|
|
274
|
+
# was detected, the response from the previous execution is returned.
|
|
275
|
+
# @param [String] schedule_time
|
|
276
|
+
# Optional. The time that the integration should be executed. If the time is
|
|
277
|
+
# less or equal to the current time, the integration is executed immediately.
|
|
278
|
+
# @param [String] trigger_id
|
|
279
|
+
# Required. The API trigger id associated with the integration. An integration
|
|
280
|
+
# can have multiple trigger_id. This field is required to disambiguate which
|
|
281
|
+
# trigger should be invoked
|
|
282
|
+
# @param [String] fields
|
|
283
|
+
# Selector specifying which fields to include in a partial response.
|
|
284
|
+
# @param [String] quota_user
|
|
285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
287
|
+
# @param [Google::Apis::RequestOptions] options
|
|
288
|
+
# Request-specific options
|
|
289
|
+
#
|
|
290
|
+
# @yield [result, err] Result & error if block supplied
|
|
291
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleApiHttpBody] parsed result object
|
|
292
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
293
|
+
#
|
|
294
|
+
# @return [Google::Apis::IntegrationsV2::GoogleApiHttpBody]
|
|
295
|
+
#
|
|
296
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
297
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
298
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
299
|
+
def schedule_project_location_integration(parent, request_id: nil, schedule_time: nil, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
300
|
+
command = make_simple_command(:post, 'v2/{+parent}:schedule', options)
|
|
301
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleApiHttpBody::Representation
|
|
302
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleApiHttpBody
|
|
303
|
+
command.params['parent'] = parent unless parent.nil?
|
|
304
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
305
|
+
command.query['scheduleTime'] = schedule_time unless schedule_time.nil?
|
|
306
|
+
command.query['triggerId'] = trigger_id unless trigger_id.nil?
|
|
307
|
+
command.query['fields'] = fields unless fields.nil?
|
|
308
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
309
|
+
execute_or_queue_command(command, &block)
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Lists the results of all the integration executions. The response includes the
|
|
313
|
+
# same information as the [execution log](https://cloud.google.com/application-
|
|
314
|
+
# integration/docs/viewing-logs) in the Integration UI.
|
|
315
|
+
# @param [String] parent
|
|
316
|
+
# Required. parent resource name of integration execution.
|
|
317
|
+
# @param [String] filter
|
|
318
|
+
# Optional. Standard filter field, we support filtering on following fields:
|
|
319
|
+
# integration_name: the name of the integration. create_time: the execution
|
|
320
|
+
# created time. update_time: the execution last update time. state: the state of
|
|
321
|
+
# the executions. execution_id: the id of the execution. trigger_id: the id of
|
|
322
|
+
# the trigger. All fields support for EQUALS, in additional: create_time and
|
|
323
|
+
# update_time support for LESS_THAN, GREATER_THAN Also supports operators like
|
|
324
|
+
# AND, OR, NOT For example: trigger_id=\"id1\" AND integration_name=\"
|
|
325
|
+
# testIntegration\"
|
|
326
|
+
# @param [Fixnum] page_size
|
|
327
|
+
# Optional. The size of entries in the response.
|
|
328
|
+
# @param [String] page_token
|
|
329
|
+
# Optional. The token returned in the previous response.
|
|
330
|
+
# @param [String] read_mask
|
|
331
|
+
# Optional. View mask for the response data. If set, only the field specified
|
|
332
|
+
# will be returned as part of the result. If not set, all fields in execution
|
|
333
|
+
# info will be filled and returned.
|
|
334
|
+
# @param [String] fields
|
|
335
|
+
# Selector specifying which fields to include in a partial response.
|
|
336
|
+
# @param [String] quota_user
|
|
337
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
338
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
339
|
+
# @param [Google::Apis::RequestOptions] options
|
|
340
|
+
# Request-specific options
|
|
341
|
+
#
|
|
342
|
+
# @yield [result, err] Result & error if block supplied
|
|
343
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2ListExecutionsResponse] parsed result object
|
|
344
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
345
|
+
#
|
|
346
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2ListExecutionsResponse]
|
|
347
|
+
#
|
|
348
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
349
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
350
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
351
|
+
def list_project_location_integration_executions(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
352
|
+
command = make_simple_command(:get, 'v2/{+parent}/executions', options)
|
|
353
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2ListExecutionsResponse::Representation
|
|
354
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2ListExecutionsResponse
|
|
355
|
+
command.params['parent'] = parent unless parent.nil?
|
|
356
|
+
command.query['filter'] = filter unless filter.nil?
|
|
357
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
358
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
359
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
|
360
|
+
command.query['fields'] = fields unless fields.nil?
|
|
361
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
362
|
+
execute_or_queue_command(command, &block)
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# View detailed explanation of why an integration execution failed, using LLM
|
|
366
|
+
# @param [String] name
|
|
367
|
+
# Required. Execution resource name. Format: `projects/`project`/locations/`
|
|
368
|
+
# location`/integrations/`integration`/executions/`execution_id``
|
|
369
|
+
# @param [String] fields
|
|
370
|
+
# Selector specifying which fields to include in a partial response.
|
|
371
|
+
# @param [String] quota_user
|
|
372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
374
|
+
# @param [Google::Apis::RequestOptions] options
|
|
375
|
+
# Request-specific options
|
|
376
|
+
#
|
|
377
|
+
# @yield [result, err] Result & error if block supplied
|
|
378
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse] parsed result object
|
|
379
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
380
|
+
#
|
|
381
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse]
|
|
382
|
+
#
|
|
383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
386
|
+
def troubleshoot_project_location_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
387
|
+
command = make_simple_command(:get, 'v2/{+name}:troubleshoot', options)
|
|
388
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse::Representation
|
|
389
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse
|
|
390
|
+
command.params['name'] = name unless name.nil?
|
|
391
|
+
command.query['fields'] = fields unless fields.nil?
|
|
392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
393
|
+
execute_or_queue_command(command, &block)
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
# Get a TaskExecution in the specified project.
|
|
397
|
+
# @param [String] name
|
|
398
|
+
# Required. The TaskExecution to retrieve. Format: projects/`project`/locations/`
|
|
399
|
+
# location`/integrations/`integration`/executions/`execution`/taskExecutions/`
|
|
400
|
+
# task_execution`
|
|
401
|
+
# @param [String] fields
|
|
402
|
+
# Selector specifying which fields to include in a partial response.
|
|
403
|
+
# @param [String] quota_user
|
|
404
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
405
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
406
|
+
# @param [Google::Apis::RequestOptions] options
|
|
407
|
+
# Request-specific options
|
|
408
|
+
#
|
|
409
|
+
# @yield [result, err] Result & error if block supplied
|
|
410
|
+
# @yieldparam result [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2TaskExecution] parsed result object
|
|
411
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
412
|
+
#
|
|
413
|
+
# @return [Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2TaskExecution]
|
|
414
|
+
#
|
|
415
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
416
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
417
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
418
|
+
def get_project_location_integration_execution_task_execution(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
419
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
420
|
+
command.response_representation = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2TaskExecution::Representation
|
|
421
|
+
command.response_class = Google::Apis::IntegrationsV2::GoogleCloudIntegrationsV2TaskExecution
|
|
422
|
+
command.params['name'] = name unless name.nil?
|
|
423
|
+
command.query['fields'] = fields unless fields.nil?
|
|
424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
425
|
+
execute_or_queue_command(command, &block)
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
protected
|
|
429
|
+
|
|
430
|
+
def apply_command_defaults(command)
|
|
431
|
+
command.query['key'] = key unless key.nil?
|
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
end
|
|
436
|
+
end
|
|
437
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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/integrations_v2/service.rb'
|
|
16
|
+
require 'google/apis/integrations_v2/classes.rb'
|
|
17
|
+
require 'google/apis/integrations_v2/representations.rb'
|
|
18
|
+
require 'google/apis/integrations_v2/gem_version.rb'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
# Application Integration API
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
#
|
|
26
|
+
# @see https://cloud.google.com/application-integration
|
|
27
|
+
module IntegrationsV2
|
|
28
|
+
# Version of the Application Integration API this client connects to.
|
|
29
|
+
# This is NOT the gem version.
|
|
30
|
+
VERSION = 'V2'
|
|
31
|
+
|
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
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/integrations_v2"
|
metadata
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: google-apis-integrations_v2
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Google LLC
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: google-apis-core
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: 0.15.0
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 2.a
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 0.15.0
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 2.a
|
|
32
|
+
description: This is the simple REST client for Application Integration API V2. Simple
|
|
33
|
+
REST clients are Ruby client libraries that provide access to Google services via
|
|
34
|
+
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
|
35
|
+
based on the discovery documents published by the service, and they handle most
|
|
36
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
|
37
|
+
use this client to access the Application Integration API, but note that some services
|
|
38
|
+
may provide a separate modern client that is easier to use.
|
|
39
|
+
email: googleapis-packages@google.com
|
|
40
|
+
executables: []
|
|
41
|
+
extensions: []
|
|
42
|
+
extra_rdoc_files: []
|
|
43
|
+
files:
|
|
44
|
+
- ".yardopts"
|
|
45
|
+
- CHANGELOG.md
|
|
46
|
+
- LICENSE.md
|
|
47
|
+
- OVERVIEW.md
|
|
48
|
+
- lib/google-apis-integrations_v2.rb
|
|
49
|
+
- lib/google/apis/integrations_v2.rb
|
|
50
|
+
- lib/google/apis/integrations_v2/classes.rb
|
|
51
|
+
- lib/google/apis/integrations_v2/gem_version.rb
|
|
52
|
+
- lib/google/apis/integrations_v2/representations.rb
|
|
53
|
+
- lib/google/apis/integrations_v2/service.rb
|
|
54
|
+
homepage: https://github.com/google/google-api-ruby-client
|
|
55
|
+
licenses:
|
|
56
|
+
- Apache-2.0
|
|
57
|
+
metadata:
|
|
58
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-integrations_v2/CHANGELOG.md
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-integrations_v2/v0.1.0
|
|
61
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-integrations_v2
|
|
62
|
+
rdoc_options: []
|
|
63
|
+
require_paths:
|
|
64
|
+
- lib
|
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '3.2'
|
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
requirements: []
|
|
76
|
+
rubygems_version: 3.6.9
|
|
77
|
+
specification_version: 4
|
|
78
|
+
summary: Simple REST client for Application Integration API V2
|
|
79
|
+
test_files: []
|