google-apis-connectors_v2 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93b3869b3a65f1939c0187cf9bf8297f5598e600b6289f1f8c99536c043479ec
4
- data.tar.gz: 791feab7c806d4583986f52f1ef3bcabfcdedf6b942ba9efd9d6124729b1312e
3
+ metadata.gz: 13ce1f89267433b8aa064fdb230a416d7259c13c65e8a18183f043c430e6424f
4
+ data.tar.gz: 06642cb760c8b44903e0ad41806674833a545549ad3acc7b00eee40a4767785c
5
5
  SHA512:
6
- metadata.gz: 53b71da94d85daf462d4e2489a58430cf7c25be007d7d631a47b8932494adca16c8524257c9099a46ebc026734b86f6b17c34c55a523fd5a35e4aaf15737d015
7
- data.tar.gz: '09cecd17fdb9130d6bfd18b46ad91f46e5b7d7d2fb97c7ce0fcbb4e54fe6359477bc3f0156791af7b3869da454bbfaee6e3f2db7e0bf3421666bc3e3828d18a6'
6
+ metadata.gz: 179c45414f93bf42c78339910e346b9fd784ec9d14ff0024b824deb06f7b09fe2e29032a8393625325ee66082f3bce3586c9e777fab01be08e7dde3d26bc9b92
7
+ data.tar.gz: 44a5865bbfbf7eec05a1840664ac36f787db8823994e3a1ba70ea8fac44e6a2ad8656a301542914e904383aed0ed5863cc1bd05619ae83a61090a3d2cc2c09e9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-connectors_v2
2
2
 
3
+ ### v0.6.0 (2023-09-17)
4
+
5
+ * Regenerated from discovery document revision 20230906
6
+
3
7
  ### v0.5.0 (2023-08-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20230812
@@ -27,6 +27,11 @@ module Google
27
27
  class Action
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
+ # JsonSchema representation of schema metadata
31
+ # Corresponds to the JSON property `inputJsonSchema`
32
+ # @return [Google::Apis::ConnectorsV2::JsonSchema]
33
+ attr_accessor :input_json_schema
34
+
30
35
  # List containing input parameter metadata.
31
36
  # Corresponds to the JSON property `inputParameters`
32
37
  # @return [Array<Google::Apis::ConnectorsV2::InputParameter>]
@@ -37,6 +42,11 @@ module Google
37
42
  # @return [String]
38
43
  attr_accessor :name
39
44
 
45
+ # JsonSchema representation of schema metadata
46
+ # Corresponds to the JSON property `resultJsonSchema`
47
+ # @return [Google::Apis::ConnectorsV2::JsonSchema]
48
+ attr_accessor :result_json_schema
49
+
40
50
  # List containing the metadata of result fields.
41
51
  # Corresponds to the JSON property `resultMetadata`
42
52
  # @return [Array<Google::Apis::ConnectorsV2::ResultMetadata>]
@@ -48,8 +58,10 @@ module Google
48
58
 
49
59
  # Update properties of this object
50
60
  def update!(**args)
61
+ @input_json_schema = args[:input_json_schema] if args.key?(:input_json_schema)
51
62
  @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
52
63
  @name = args[:name] if args.key?(:name)
64
+ @result_json_schema = args[:result_json_schema] if args.key?(:result_json_schema)
53
65
  @result_metadata = args[:result_metadata] if args.key?(:result_metadata)
54
66
  end
55
67
  end
@@ -107,6 +119,11 @@ module Google
107
119
  # @return [Array<Google::Apis::ConnectorsV2::Field>]
108
120
  attr_accessor :fields
109
121
 
122
+ # JsonSchema representation of schema metadata
123
+ # Corresponds to the JSON property `jsonSchema`
124
+ # @return [Google::Apis::ConnectorsV2::JsonSchema]
125
+ attr_accessor :json_schema
126
+
110
127
  # The name of the entity type.
111
128
  # Corresponds to the JSON property `name`
112
129
  # @return [String]
@@ -119,6 +136,7 @@ module Google
119
136
  # Update properties of this object
120
137
  def update!(**args)
121
138
  @fields = args[:fields] if args.key?(:fields)
139
+ @json_schema = args[:json_schema] if args.key?(:json_schema)
122
140
  @name = args[:name] if args.key?(:name)
123
141
  end
124
142
  end
@@ -237,6 +255,11 @@ module Google
237
255
  # @return [String]
238
256
  attr_accessor :description
239
257
 
258
+ # JsonSchema representation of schema metadata
259
+ # Corresponds to the JSON property `jsonSchema`
260
+ # @return [Google::Apis::ConnectorsV2::JsonSchema]
261
+ attr_accessor :json_schema
262
+
240
263
  # The following boolean field specifies if the current Field acts as a primary
241
264
  # key or id if the parent is of type entity.
242
265
  # Corresponds to the JSON property `key`
@@ -271,6 +294,7 @@ module Google
271
294
  @data_type = args[:data_type] if args.key?(:data_type)
272
295
  @default_value = args[:default_value] if args.key?(:default_value)
273
296
  @description = args[:description] if args.key?(:description)
297
+ @json_schema = args[:json_schema] if args.key?(:json_schema)
274
298
  @key = args[:key] if args.key?(:key)
275
299
  @name = args[:name] if args.key?(:name)
276
300
  @nullable = args[:nullable] if args.key?(:nullable)
@@ -299,6 +323,11 @@ module Google
299
323
  # @return [String]
300
324
  attr_accessor :description
301
325
 
326
+ # JsonSchema representation of schema metadata
327
+ # Corresponds to the JSON property `jsonSchema`
328
+ # @return [Google::Apis::ConnectorsV2::JsonSchema]
329
+ attr_accessor :json_schema
330
+
302
331
  # Name of the Parameter.
303
332
  # Corresponds to the JSON property `name`
304
333
  # @return [String]
@@ -319,11 +348,90 @@ module Google
319
348
  @data_type = args[:data_type] if args.key?(:data_type)
320
349
  @default_value = args[:default_value] if args.key?(:default_value)
321
350
  @description = args[:description] if args.key?(:description)
351
+ @json_schema = args[:json_schema] if args.key?(:json_schema)
322
352
  @name = args[:name] if args.key?(:name)
323
353
  @nullable = args[:nullable] if args.key?(:nullable)
324
354
  end
325
355
  end
326
356
 
357
+ # JsonSchema representation of schema metadata
358
+ class JsonSchema
359
+ include Google::Apis::Core::Hashable
360
+
361
+ # Additional details apart from standard json schema fields, this gives
362
+ # flexibility to store metadata about the schema
363
+ # Corresponds to the JSON property `additionalDetails`
364
+ # @return [Hash<String,Object>]
365
+ attr_accessor :additional_details
366
+
367
+ # The default value of the field or object described by this schema.
368
+ # Corresponds to the JSON property `default`
369
+ # @return [Object]
370
+ attr_accessor :default
371
+
372
+ # A description of this schema.
373
+ # Corresponds to the JSON property `description`
374
+ # @return [String]
375
+ attr_accessor :description
376
+
377
+ # Possible values for an enumeration. This works in conjunction with `type` to
378
+ # represent types with a fixed set of legal values
379
+ # Corresponds to the JSON property `enum`
380
+ # @return [Array<Object>]
381
+ attr_accessor :enum
382
+
383
+ # Format of the value as per https://json-schema.org/understanding-json-schema/
384
+ # reference/string.html#format
385
+ # Corresponds to the JSON property `format`
386
+ # @return [String]
387
+ attr_accessor :format
388
+
389
+ # JsonSchema representation of schema metadata
390
+ # Corresponds to the JSON property `items`
391
+ # @return [Google::Apis::ConnectorsV2::JsonSchema]
392
+ attr_accessor :items
393
+
394
+ # JDBC datatype of the field.
395
+ # Corresponds to the JSON property `jdbcType`
396
+ # @return [String]
397
+ attr_accessor :jdbc_type
398
+
399
+ # The child schemas, applicable only if this is of type `object`. The key is the
400
+ # name of the property and the value is the json schema that describes that
401
+ # property
402
+ # Corresponds to the JSON property `properties`
403
+ # @return [Hash<String,Google::Apis::ConnectorsV2::JsonSchema>]
404
+ attr_accessor :properties
405
+
406
+ # Whether this property is required.
407
+ # Corresponds to the JSON property `required`
408
+ # @return [Array<String>]
409
+ attr_accessor :required
410
+
411
+ # JSON Schema Validation: A Vocabulary for Structural Validation of JSON
412
+ # Corresponds to the JSON property `type`
413
+ # @return [Array<String>]
414
+ attr_accessor :type
415
+
416
+ def initialize(**args)
417
+ update!(**args)
418
+ end
419
+
420
+ # Update properties of this object
421
+ def update!(**args)
422
+ @additional_details = args[:additional_details] if args.key?(:additional_details)
423
+ @default = args[:default] if args.key?(:default)
424
+ @description = args[:description] if args.key?(:description)
425
+ @enum = args[:enum] if args.key?(:enum)
426
+ @format = args[:format] if args.key?(:format)
427
+ @items = args[:items] if args.key?(:items)
428
+ @jdbc_type = args[:jdbc_type] if args.key?(:jdbc_type)
429
+ @properties = args[:properties] if args.key?(:properties)
430
+ @required = args[:required] if args.key?(:required)
431
+ @type = args[:type] if args.key?(:type)
432
+ end
433
+ end
434
+
327
435
  # Response message for ActionService.ListActions
328
436
  class ListActionsResponse
329
437
  include Google::Apis::Core::Hashable
@@ -519,6 +627,11 @@ module Google
519
627
  # @return [String]
520
628
  attr_accessor :description
521
629
 
630
+ # JsonSchema representation of schema metadata
631
+ # Corresponds to the JSON property `jsonSchema`
632
+ # @return [Google::Apis::ConnectorsV2::JsonSchema]
633
+ attr_accessor :json_schema
634
+
522
635
  # Name of the metadata field.
523
636
  # Corresponds to the JSON property `name`
524
637
  # @return [String]
@@ -532,6 +645,7 @@ module Google
532
645
  def update!(**args)
533
646
  @data_type = args[:data_type] if args.key?(:data_type)
534
647
  @description = args[:description] if args.key?(:description)
648
+ @json_schema = args[:json_schema] if args.key?(:json_schema)
535
649
  @name = args[:name] if args.key?(:name)
536
650
  end
537
651
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ConnectorsV2
18
18
  # Version of the google-apis-connectors_v2 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230812"
25
+ REVISION = "20230906"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class JsonSchema
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class ListActionsResponse
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -133,9 +139,13 @@ module Google
133
139
  class Action
134
140
  # @private
135
141
  class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :input_json_schema, as: 'inputJsonSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
143
+
136
144
  collection :input_parameters, as: 'inputParameters', class: Google::Apis::ConnectorsV2::InputParameter, decorator: Google::Apis::ConnectorsV2::InputParameter::Representation
137
145
 
138
146
  property :name, as: 'name'
147
+ property :result_json_schema, as: 'resultJsonSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
148
+
139
149
  collection :result_metadata, as: 'resultMetadata', class: Google::Apis::ConnectorsV2::ResultMetadata, decorator: Google::Apis::ConnectorsV2::ResultMetadata::Representation
140
150
 
141
151
  end
@@ -160,6 +170,8 @@ module Google
160
170
  class Representation < Google::Apis::Core::JsonRepresentation
161
171
  collection :fields, as: 'fields', class: Google::Apis::ConnectorsV2::Field, decorator: Google::Apis::ConnectorsV2::Field::Representation
162
172
 
173
+ property :json_schema, as: 'jsonSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
174
+
163
175
  property :name, as: 'name'
164
176
  end
165
177
  end
@@ -200,6 +212,8 @@ module Google
200
212
  property :data_type, as: 'dataType'
201
213
  property :default_value, as: 'defaultValue'
202
214
  property :description, as: 'description'
215
+ property :json_schema, as: 'jsonSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
216
+
203
217
  property :key, as: 'key'
204
218
  property :name, as: 'name'
205
219
  property :nullable, as: 'nullable'
@@ -214,11 +228,31 @@ module Google
214
228
  property :data_type, as: 'dataType'
215
229
  property :default_value, as: 'defaultValue'
216
230
  property :description, as: 'description'
231
+ property :json_schema, as: 'jsonSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
232
+
217
233
  property :name, as: 'name'
218
234
  property :nullable, as: 'nullable'
219
235
  end
220
236
  end
221
237
 
238
+ class JsonSchema
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ hash :additional_details, as: 'additionalDetails'
242
+ property :default, as: 'default'
243
+ property :description, as: 'description'
244
+ collection :enum, as: 'enum'
245
+ property :format, as: 'format'
246
+ property :items, as: 'items', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
247
+
248
+ property :jdbc_type, as: 'jdbcType'
249
+ hash :properties, as: 'properties', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
250
+
251
+ collection :required, as: 'required'
252
+ collection :type, as: 'type'
253
+ end
254
+ end
255
+
222
256
  class ListActionsResponse
223
257
  # @private
224
258
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -280,6 +314,8 @@ module Google
280
314
  class Representation < Google::Apis::Core::JsonRepresentation
281
315
  property :data_type, as: 'dataType'
282
316
  property :description, as: 'description'
317
+ property :json_schema, as: 'jsonSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
318
+
283
319
  property :name, as: 'name'
284
320
  end
285
321
  end
@@ -122,6 +122,37 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Gets the schema of the given action.
126
+ # @param [String] name
127
+ # Required. Resource name of the Action. Format: projects/`project`/locations/`
128
+ # location`/connections/`connection`/actions/`action`
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::ConnectorsV2::Action] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::ConnectorsV2::Action]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def get_project_location_connection_action(name, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:get, 'v2/{+name}', options)
148
+ command.response_representation = Google::Apis::ConnectorsV2::Action::Representation
149
+ command.response_class = Google::Apis::ConnectorsV2::Action
150
+ command.params['name'] = name unless name.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
153
+ execute_or_queue_command(command, &block)
154
+ end
155
+
125
156
  # Gets the schema of all the actions supported by the connector.
126
157
  # @param [String] parent
127
158
  # Required. Parent resource name of the Action. Format: projects/`project`/
@@ -132,6 +163,8 @@ module Google
132
163
  # Page token, return from a previous ListActions call, that can be used retrieve
133
164
  # the next page of content. If unspecified, the request returns the first page
134
165
  # of actions.
166
+ # @param [String] view
167
+ # Specifies which fields of the Action are returned in the response.
135
168
  # @param [String] fields
136
169
  # Selector specifying which fields to include in a partial response.
137
170
  # @param [String] quota_user
@@ -149,13 +182,45 @@ module Google
149
182
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
183
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
184
  # @raise [Google::Apis::AuthorizationError] Authorization is required
152
- def list_project_location_connection_actions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
185
+ def list_project_location_connection_actions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
153
186
  command = make_simple_command(:get, 'v2/{+parent}/actions', options)
154
187
  command.response_representation = Google::Apis::ConnectorsV2::ListActionsResponse::Representation
155
188
  command.response_class = Google::Apis::ConnectorsV2::ListActionsResponse
156
189
  command.params['parent'] = parent unless parent.nil?
157
190
  command.query['pageSize'] = page_size unless page_size.nil?
158
191
  command.query['pageToken'] = page_token unless page_token.nil?
192
+ command.query['view'] = view unless view.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ execute_or_queue_command(command, &block)
196
+ end
197
+
198
+ # Gets metadata of given entity type
199
+ # @param [String] name
200
+ # Required. Resource name of the Entity Type. Format: projects/`project`/
201
+ # locations/`location`/connections/`connection`/entityTypes/`entityType`
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
204
+ # @param [String] quota_user
205
+ # Available to use for quota purposes for server-side applications. Can be any
206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
207
+ # @param [Google::Apis::RequestOptions] options
208
+ # Request-specific options
209
+ #
210
+ # @yield [result, err] Result & error if block supplied
211
+ # @yieldparam result [Google::Apis::ConnectorsV2::EntityType] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::ConnectorsV2::EntityType]
215
+ #
216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
219
+ def get_project_location_connection_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
220
+ command = make_simple_command(:get, 'v2/{+name}', options)
221
+ command.response_representation = Google::Apis::ConnectorsV2::EntityType::Representation
222
+ command.response_class = Google::Apis::ConnectorsV2::EntityType
223
+ command.params['name'] = name unless name.nil?
159
224
  command.query['fields'] = fields unless fields.nil?
160
225
  command.query['quotaUser'] = quota_user unless quota_user.nil?
161
226
  execute_or_queue_command(command, &block)
@@ -171,6 +236,8 @@ module Google
171
236
  # Page token, return from a previous ListEntityTypes call, that can be used
172
237
  # retrieve the next page of content. If unspecified, the request returns the
173
238
  # first page of entity types.
239
+ # @param [String] view
240
+ # Specifies which fields of the Entity Type are returned in the response.
174
241
  # @param [String] fields
175
242
  # Selector specifying which fields to include in a partial response.
176
243
  # @param [String] quota_user
@@ -188,13 +255,14 @@ module Google
188
255
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
256
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
257
  # @raise [Google::Apis::AuthorizationError] Authorization is required
191
- def list_project_location_connection_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
258
+ def list_project_location_connection_entity_types(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
192
259
  command = make_simple_command(:get, 'v2/{+parent}/entityTypes', options)
193
260
  command.response_representation = Google::Apis::ConnectorsV2::ListEntityTypesResponse::Representation
194
261
  command.response_class = Google::Apis::ConnectorsV2::ListEntityTypesResponse
195
262
  command.params['parent'] = parent unless parent.nil?
196
263
  command.query['pageSize'] = page_size unless page_size.nil?
197
264
  command.query['pageToken'] = page_token unless page_token.nil?
265
+ command.query['view'] = view unless view.nil?
198
266
  command.query['fields'] = fields unless fields.nil?
199
267
  command.query['quotaUser'] = quota_user unless quota_user.nil?
200
268
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-connectors_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2023-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.6.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2
63
63
  post_install_message:
64
64
  rdoc_options: []