google-apis-connectors_v2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/connectors_v2/classes.rb +514 -0
- data/lib/google/apis/connectors_v2/gem_version.rb +28 -0
- data/lib/google/apis/connectors_v2/representations.rb +277 -0
- data/lib/google/apis/connectors_v2/service.rb +490 -0
- data/lib/google/apis/connectors_v2.rb +37 -0
- data/lib/google-apis-connectors_v2.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,277 @@
|
|
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 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ConnectorsV2
|
24
|
+
|
25
|
+
class Action
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Empty
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Entity
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class EntityType
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class ExecuteActionRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ExecuteActionResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ExecuteSqlQueryRequest
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class ExecuteSqlQueryResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Field
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class InputParameter
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListActionsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class ListEntitiesResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ListEntityTypesResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class Query
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Reference
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class ResultMetadata
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class UpdateEntitiesWithConditionsResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class Action
|
128
|
+
# @private
|
129
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
+
collection :input_parameters, as: 'inputParameters', class: Google::Apis::ConnectorsV2::InputParameter, decorator: Google::Apis::ConnectorsV2::InputParameter::Representation
|
131
|
+
|
132
|
+
property :name, as: 'name'
|
133
|
+
collection :result_metadata, as: 'resultMetadata', class: Google::Apis::ConnectorsV2::ResultMetadata, decorator: Google::Apis::ConnectorsV2::ResultMetadata::Representation
|
134
|
+
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
class Empty
|
139
|
+
# @private
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class Entity
|
145
|
+
# @private
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
147
|
+
hash :fields, as: 'fields'
|
148
|
+
property :name, as: 'name'
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
class EntityType
|
153
|
+
# @private
|
154
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
155
|
+
collection :fields, as: 'fields', class: Google::Apis::ConnectorsV2::Field, decorator: Google::Apis::ConnectorsV2::Field::Representation
|
156
|
+
|
157
|
+
property :name, as: 'name'
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
class ExecuteActionRequest
|
162
|
+
# @private
|
163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
164
|
+
hash :parameters, as: 'parameters'
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class ExecuteActionResponse
|
169
|
+
# @private
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
171
|
+
collection :results, as: 'results'
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
class ExecuteSqlQueryRequest
|
176
|
+
# @private
|
177
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
+
property :query, as: 'query', class: Google::Apis::ConnectorsV2::Query, decorator: Google::Apis::ConnectorsV2::Query::Representation
|
179
|
+
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
class ExecuteSqlQueryResponse
|
184
|
+
# @private
|
185
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
186
|
+
collection :results, as: 'results'
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class Field
|
191
|
+
# @private
|
192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
+
hash :additional_details, as: 'additionalDetails'
|
194
|
+
property :data_type, as: 'dataType'
|
195
|
+
property :default_value, as: 'defaultValue'
|
196
|
+
property :description, as: 'description'
|
197
|
+
property :key, as: 'key'
|
198
|
+
property :name, as: 'name'
|
199
|
+
property :nullable, as: 'nullable'
|
200
|
+
property :reference, as: 'reference', class: Google::Apis::ConnectorsV2::Reference, decorator: Google::Apis::ConnectorsV2::Reference::Representation
|
201
|
+
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
class InputParameter
|
206
|
+
# @private
|
207
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
+
property :data_type, as: 'dataType'
|
209
|
+
property :default_value, as: 'defaultValue'
|
210
|
+
property :description, as: 'description'
|
211
|
+
property :name, as: 'name'
|
212
|
+
property :nullable, as: 'nullable'
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
class ListActionsResponse
|
217
|
+
# @private
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
+
collection :actions, as: 'actions', class: Google::Apis::ConnectorsV2::Action, decorator: Google::Apis::ConnectorsV2::Action::Representation
|
220
|
+
|
221
|
+
property :next_page_token, as: 'nextPageToken'
|
222
|
+
collection :unsupported_action_names, as: 'unsupportedActionNames'
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
class ListEntitiesResponse
|
227
|
+
# @private
|
228
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
229
|
+
collection :entities, as: 'entities', class: Google::Apis::ConnectorsV2::Entity, decorator: Google::Apis::ConnectorsV2::Entity::Representation
|
230
|
+
|
231
|
+
property :next_page_token, as: 'nextPageToken'
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
class ListEntityTypesResponse
|
236
|
+
# @private
|
237
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
238
|
+
property :next_page_token, as: 'nextPageToken'
|
239
|
+
collection :types, as: 'types', class: Google::Apis::ConnectorsV2::EntityType, decorator: Google::Apis::ConnectorsV2::EntityType::Representation
|
240
|
+
|
241
|
+
collection :unsupported_type_names, as: 'unsupportedTypeNames'
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
class Query
|
246
|
+
# @private
|
247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
248
|
+
property :query, as: 'query'
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class Reference
|
253
|
+
# @private
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
255
|
+
property :name, as: 'name'
|
256
|
+
property :type, as: 'type'
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
class ResultMetadata
|
261
|
+
# @private
|
262
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
263
|
+
property :data_type, as: 'dataType'
|
264
|
+
property :description, as: 'description'
|
265
|
+
property :name, as: 'name'
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
class UpdateEntitiesWithConditionsResponse
|
270
|
+
# @private
|
271
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
272
|
+
hash :response, as: 'response'
|
273
|
+
end
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|