google-apis-firebasedataconnect_v1beta 0.20.0 → 0.22.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/OVERVIEW.md +4 -4
- data/lib/google/apis/firebasedataconnect_v1beta/classes.rb +197 -2
- data/lib/google/apis/firebasedataconnect_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/firebasedataconnect_v1beta/representations.rb +117 -0
- data/lib/google/apis/firebasedataconnect_v1beta/service.rb +74 -1
- data/lib/google/apis/firebasedataconnect_v1beta.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d81edcc32021d464f393ca1546153820bc5643a961a8966019335ade90a966a
|
|
4
|
+
data.tar.gz: 1f48ae0a720ed5c676769e23dabbc97b719b929f0faf408e8b4f80c714159fe8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00dde4882be02ccc631ece5f6477f2ef11ced25d3b9eb8805a99fed24c1e888ae78a535d294e6cbc99c2156a06302c3c276eba197e634e6852287e9442e1ef2d
|
|
7
|
+
data.tar.gz: dd7547e0e63f0c02b0d3936ba297b2b98fd8dc9931f0ab55a89a0699e046e10a046c0243d2f63729aa03bf34d9119a1140bbfeb8eec04a80e67144e9d30b9432
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-firebasedataconnect_v1beta
|
|
2
2
|
|
|
3
|
+
### v0.22.0 (2026-06-14)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260531
|
|
6
|
+
* Regenerated using generator version 0.19.0
|
|
7
|
+
|
|
8
|
+
### v0.21.0 (2026-05-17)
|
|
9
|
+
|
|
10
|
+
* Regenerated from discovery document revision 20260502
|
|
11
|
+
|
|
3
12
|
### v0.20.0 (2026-05-03)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20260426
|
data/OVERVIEW.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Simple REST client for version V1beta of the Firebase
|
|
1
|
+
# Simple REST client for version V1beta of the Firebase SQL Connect API
|
|
2
2
|
|
|
3
|
-
This is a simple client library for version V1beta of the Firebase
|
|
3
|
+
This is a simple client library for version V1beta of the Firebase SQL Connect API. It provides:
|
|
4
4
|
|
|
5
5
|
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
|
6
6
|
* Ruby objects for data structures related to the service.
|
|
@@ -65,7 +65,7 @@ More detailed descriptions of the Google simple REST clients are available in tw
|
|
|
65
65
|
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Firebasedataconnect service in particular.)
|
|
67
67
|
|
|
68
|
-
For reference information on specific calls in the Firebase
|
|
68
|
+
For reference information on specific calls in the Firebase SQL Connect API, see the {Google::Apis::FirebasedataconnectV1beta::FirebaseDataConnectService class reference docs}.
|
|
69
69
|
|
|
70
70
|
## Which client should I use?
|
|
71
71
|
|
|
@@ -83,7 +83,7 @@ The [product documentation](https://firebase.google.com/docs/data-connect) may p
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby 3.
|
|
86
|
+
This library is supported on Ruby 3.2+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -93,6 +93,32 @@ module Google
|
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
+
# A chunk of code.
|
|
97
|
+
class CodeChunk
|
|
98
|
+
include Google::Apis::Core::Hashable
|
|
99
|
+
|
|
100
|
+
# Required. The code content string.
|
|
101
|
+
# Corresponds to the JSON property `code`
|
|
102
|
+
# @return [String]
|
|
103
|
+
attr_accessor :code
|
|
104
|
+
|
|
105
|
+
# Optional. Specifies the language if we expand support beyond GraphQL (e.g.,
|
|
106
|
+
# SQL or JSON) The standard is BCP-47 language code.
|
|
107
|
+
# Corresponds to the JSON property `languageCode`
|
|
108
|
+
# @return [String]
|
|
109
|
+
attr_accessor :language_code
|
|
110
|
+
|
|
111
|
+
def initialize(**args)
|
|
112
|
+
update!(**args)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Update properties of this object
|
|
116
|
+
def update!(**args)
|
|
117
|
+
@code = args[:code] if args.key?(:code)
|
|
118
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
96
122
|
# Connector consists of a set of operations, i.e. queries and mutations.
|
|
97
123
|
class Connector
|
|
98
124
|
include Google::Apis::Core::Hashable
|
|
@@ -405,6 +431,129 @@ module Google
|
|
|
405
431
|
end
|
|
406
432
|
end
|
|
407
433
|
|
|
434
|
+
# Request message for GenerateQuery.
|
|
435
|
+
class GenerateQueryRequest
|
|
436
|
+
include Google::Apis::Core::Hashable
|
|
437
|
+
|
|
438
|
+
# Required. The natural language description of the desired query. Example: "
|
|
439
|
+
# Find all users who signed up in the last 7 days."
|
|
440
|
+
# Corresponds to the JSON property `prompt`
|
|
441
|
+
# @return [String]
|
|
442
|
+
attr_accessor :prompt
|
|
443
|
+
|
|
444
|
+
# Optional. The user's locally defined FDC Schema(s). If not defined, the
|
|
445
|
+
# backend will fetch the user's deployed schema.
|
|
446
|
+
# Corresponds to the JSON property `schemas`
|
|
447
|
+
# @return [Array<Google::Apis::FirebasedataconnectV1beta::Schema>]
|
|
448
|
+
attr_accessor :schemas
|
|
449
|
+
|
|
450
|
+
def initialize(**args)
|
|
451
|
+
update!(**args)
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
# Update properties of this object
|
|
455
|
+
def update!(**args)
|
|
456
|
+
@prompt = args[:prompt] if args.key?(:prompt)
|
|
457
|
+
@schemas = args[:schemas] if args.key?(:schemas)
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Output for streaming generate query requests
|
|
462
|
+
class GenerateQueryResponse
|
|
463
|
+
include Google::Apis::Core::Hashable
|
|
464
|
+
|
|
465
|
+
# Represents a chunk of content.
|
|
466
|
+
# Corresponds to the JSON property `part`
|
|
467
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::Part]
|
|
468
|
+
attr_accessor :part
|
|
469
|
+
|
|
470
|
+
# Represents the progress of the server side generation request.
|
|
471
|
+
# Corresponds to the JSON property `status`
|
|
472
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::GenerationStatus]
|
|
473
|
+
attr_accessor :status
|
|
474
|
+
|
|
475
|
+
def initialize(**args)
|
|
476
|
+
update!(**args)
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
# Update properties of this object
|
|
480
|
+
def update!(**args)
|
|
481
|
+
@part = args[:part] if args.key?(:part)
|
|
482
|
+
@status = args[:status] if args.key?(:status)
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# Request message for GenerateSchema.
|
|
487
|
+
class GenerateSchemaRequest
|
|
488
|
+
include Google::Apis::Core::Hashable
|
|
489
|
+
|
|
490
|
+
# Required. The natural language description of the data model to generate.
|
|
491
|
+
# Example: "A blog system with Users, Posts, and Comments. Users can have
|
|
492
|
+
# multiple posts."
|
|
493
|
+
# Corresponds to the JSON property `prompt`
|
|
494
|
+
# @return [String]
|
|
495
|
+
attr_accessor :prompt
|
|
496
|
+
|
|
497
|
+
def initialize(**args)
|
|
498
|
+
update!(**args)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Update properties of this object
|
|
502
|
+
def update!(**args)
|
|
503
|
+
@prompt = args[:prompt] if args.key?(:prompt)
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Output for streaming generate schema requests
|
|
508
|
+
class GenerateSchemaResponse
|
|
509
|
+
include Google::Apis::Core::Hashable
|
|
510
|
+
|
|
511
|
+
# Represents a chunk of content.
|
|
512
|
+
# Corresponds to the JSON property `part`
|
|
513
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::Part]
|
|
514
|
+
attr_accessor :part
|
|
515
|
+
|
|
516
|
+
# Represents the progress of the server side generation request.
|
|
517
|
+
# Corresponds to the JSON property `status`
|
|
518
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::GenerationStatus]
|
|
519
|
+
attr_accessor :status
|
|
520
|
+
|
|
521
|
+
def initialize(**args)
|
|
522
|
+
update!(**args)
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# Update properties of this object
|
|
526
|
+
def update!(**args)
|
|
527
|
+
@part = args[:part] if args.key?(:part)
|
|
528
|
+
@status = args[:status] if args.key?(:status)
|
|
529
|
+
end
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
# Represents the progress of the server side generation request.
|
|
533
|
+
class GenerationStatus
|
|
534
|
+
include Google::Apis::Core::Hashable
|
|
535
|
+
|
|
536
|
+
# Output only. A message providing more details about the state.
|
|
537
|
+
# Corresponds to the JSON property `message`
|
|
538
|
+
# @return [String]
|
|
539
|
+
attr_accessor :message
|
|
540
|
+
|
|
541
|
+
# Output only. The state of generation.
|
|
542
|
+
# Corresponds to the JSON property `state`
|
|
543
|
+
# @return [String]
|
|
544
|
+
attr_accessor :state
|
|
545
|
+
|
|
546
|
+
def initialize(**args)
|
|
547
|
+
update!(**args)
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Update properties of this object
|
|
551
|
+
def update!(**args)
|
|
552
|
+
@message = args[:message] if args.key?(:message)
|
|
553
|
+
@state = args[:state] if args.key?(:state)
|
|
554
|
+
end
|
|
555
|
+
end
|
|
556
|
+
|
|
408
557
|
# GraphqlError conforms to the GraphQL error spec. https://spec.graphql.org/
|
|
409
558
|
# draft/#sec-Errors Firebase SQL Connect API surfaces `GraphqlError` in various
|
|
410
559
|
# APIs: - Upon compile error, `UpdateSchema` and `UpdateConnector` return Code.
|
|
@@ -1064,6 +1213,31 @@ module Google
|
|
|
1064
1213
|
end
|
|
1065
1214
|
end
|
|
1066
1215
|
|
|
1216
|
+
# Represents a chunk of content.
|
|
1217
|
+
class Part
|
|
1218
|
+
include Google::Apis::Core::Hashable
|
|
1219
|
+
|
|
1220
|
+
# A chunk of code.
|
|
1221
|
+
# Corresponds to the JSON property `codeChunk`
|
|
1222
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::CodeChunk]
|
|
1223
|
+
attr_accessor :code_chunk
|
|
1224
|
+
|
|
1225
|
+
# A chunk of conversational text.
|
|
1226
|
+
# Corresponds to the JSON property `textChunk`
|
|
1227
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::TextChunk]
|
|
1228
|
+
attr_accessor :text_chunk
|
|
1229
|
+
|
|
1230
|
+
def initialize(**args)
|
|
1231
|
+
update!(**args)
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
# Update properties of this object
|
|
1235
|
+
def update!(**args)
|
|
1236
|
+
@code_chunk = args[:code_chunk] if args.key?(:code_chunk)
|
|
1237
|
+
@text_chunk = args[:text_chunk] if args.key?(:text_chunk)
|
|
1238
|
+
end
|
|
1239
|
+
end
|
|
1240
|
+
|
|
1067
1241
|
# Settings for PostgreSQL data source.
|
|
1068
1242
|
class PostgreSql
|
|
1069
1243
|
include Google::Apis::Core::Hashable
|
|
@@ -1099,12 +1273,14 @@ module Google
|
|
|
1099
1273
|
# @return [String]
|
|
1100
1274
|
attr_accessor :schema
|
|
1101
1275
|
|
|
1102
|
-
# Optional. Configure how to perform
|
|
1276
|
+
# Optional. Configure how to perform automatic PostgreSQL schema migration
|
|
1277
|
+
# before deploying the FDC schema. This is an additive-only operation.
|
|
1103
1278
|
# Corresponds to the JSON property `schemaMigration`
|
|
1104
1279
|
# @return [String]
|
|
1105
1280
|
attr_accessor :schema_migration
|
|
1106
1281
|
|
|
1107
|
-
# Optional. Configure how much
|
|
1282
|
+
# Optional. Configure how much PostgreSQL schema validation to perform against
|
|
1283
|
+
# the live database before deploying the FDC schema.
|
|
1108
1284
|
# Corresponds to the JSON property `schemaValidation`
|
|
1109
1285
|
# @return [String]
|
|
1110
1286
|
attr_accessor :schema_validation
|
|
@@ -1377,6 +1553,25 @@ module Google
|
|
|
1377
1553
|
end
|
|
1378
1554
|
end
|
|
1379
1555
|
|
|
1556
|
+
# A chunk of conversational text.
|
|
1557
|
+
class TextChunk
|
|
1558
|
+
include Google::Apis::Core::Hashable
|
|
1559
|
+
|
|
1560
|
+
# Required. The text content string.
|
|
1561
|
+
# Corresponds to the JSON property `text`
|
|
1562
|
+
# @return [String]
|
|
1563
|
+
attr_accessor :text
|
|
1564
|
+
|
|
1565
|
+
def initialize(**args)
|
|
1566
|
+
update!(**args)
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
# Update properties of this object
|
|
1570
|
+
def update!(**args)
|
|
1571
|
+
@text = args[:text] if args.key?(:text)
|
|
1572
|
+
end
|
|
1573
|
+
end
|
|
1574
|
+
|
|
1380
1575
|
# Workaround provides suggestions to address errors and warnings.
|
|
1381
1576
|
class Workaround
|
|
1382
1577
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module FirebasedataconnectV1beta
|
|
18
18
|
# Version of the google-apis-firebasedataconnect_v1beta gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.22.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260531"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -40,6 +40,12 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class CodeChunk
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
43
49
|
class Connector
|
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
51
|
|
|
@@ -94,6 +100,36 @@ module Google
|
|
|
94
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
101
|
end
|
|
96
102
|
|
|
103
|
+
class GenerateQueryRequest
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class GenerateQueryResponse
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class GenerateSchemaRequest
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
class GenerateSchemaResponse
|
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
|
+
|
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
class GenerationStatus
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
97
133
|
class GraphqlError
|
|
98
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
135
|
|
|
@@ -196,6 +232,12 @@ module Google
|
|
|
196
232
|
include Google::Apis::Core::JsonObjectSupport
|
|
197
233
|
end
|
|
198
234
|
|
|
235
|
+
class Part
|
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
237
|
+
|
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
239
|
+
end
|
|
240
|
+
|
|
199
241
|
class PostgreSql
|
|
200
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
243
|
|
|
@@ -232,6 +274,12 @@ module Google
|
|
|
232
274
|
include Google::Apis::Core::JsonObjectSupport
|
|
233
275
|
end
|
|
234
276
|
|
|
277
|
+
class TextChunk
|
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
279
|
+
|
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
281
|
+
end
|
|
282
|
+
|
|
235
283
|
class Workaround
|
|
236
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
237
285
|
|
|
@@ -259,6 +307,14 @@ module Google
|
|
|
259
307
|
end
|
|
260
308
|
end
|
|
261
309
|
|
|
310
|
+
class CodeChunk
|
|
311
|
+
# @private
|
|
312
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
313
|
+
property :code, as: 'code'
|
|
314
|
+
property :language_code, as: 'languageCode'
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
|
|
262
318
|
class Connector
|
|
263
319
|
# @private
|
|
264
320
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -350,6 +406,50 @@ module Google
|
|
|
350
406
|
end
|
|
351
407
|
end
|
|
352
408
|
|
|
409
|
+
class GenerateQueryRequest
|
|
410
|
+
# @private
|
|
411
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
412
|
+
property :prompt, as: 'prompt'
|
|
413
|
+
collection :schemas, as: 'schemas', class: Google::Apis::FirebasedataconnectV1beta::Schema, decorator: Google::Apis::FirebasedataconnectV1beta::Schema::Representation
|
|
414
|
+
|
|
415
|
+
end
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
class GenerateQueryResponse
|
|
419
|
+
# @private
|
|
420
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
421
|
+
property :part, as: 'part', class: Google::Apis::FirebasedataconnectV1beta::Part, decorator: Google::Apis::FirebasedataconnectV1beta::Part::Representation
|
|
422
|
+
|
|
423
|
+
property :status, as: 'status', class: Google::Apis::FirebasedataconnectV1beta::GenerationStatus, decorator: Google::Apis::FirebasedataconnectV1beta::GenerationStatus::Representation
|
|
424
|
+
|
|
425
|
+
end
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
class GenerateSchemaRequest
|
|
429
|
+
# @private
|
|
430
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
431
|
+
property :prompt, as: 'prompt'
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
class GenerateSchemaResponse
|
|
436
|
+
# @private
|
|
437
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
438
|
+
property :part, as: 'part', class: Google::Apis::FirebasedataconnectV1beta::Part, decorator: Google::Apis::FirebasedataconnectV1beta::Part::Representation
|
|
439
|
+
|
|
440
|
+
property :status, as: 'status', class: Google::Apis::FirebasedataconnectV1beta::GenerationStatus, decorator: Google::Apis::FirebasedataconnectV1beta::GenerationStatus::Representation
|
|
441
|
+
|
|
442
|
+
end
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
class GenerationStatus
|
|
446
|
+
# @private
|
|
447
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
448
|
+
property :message, as: 'message'
|
|
449
|
+
property :state, as: 'state'
|
|
450
|
+
end
|
|
451
|
+
end
|
|
452
|
+
|
|
353
453
|
class GraphqlError
|
|
354
454
|
# @private
|
|
355
455
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -524,6 +624,16 @@ module Google
|
|
|
524
624
|
end
|
|
525
625
|
end
|
|
526
626
|
|
|
627
|
+
class Part
|
|
628
|
+
# @private
|
|
629
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
630
|
+
property :code_chunk, as: 'codeChunk', class: Google::Apis::FirebasedataconnectV1beta::CodeChunk, decorator: Google::Apis::FirebasedataconnectV1beta::CodeChunk::Representation
|
|
631
|
+
|
|
632
|
+
property :text_chunk, as: 'textChunk', class: Google::Apis::FirebasedataconnectV1beta::TextChunk, decorator: Google::Apis::FirebasedataconnectV1beta::TextChunk::Representation
|
|
633
|
+
|
|
634
|
+
end
|
|
635
|
+
end
|
|
636
|
+
|
|
527
637
|
class PostgreSql
|
|
528
638
|
# @private
|
|
529
639
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -597,6 +707,13 @@ module Google
|
|
|
597
707
|
end
|
|
598
708
|
end
|
|
599
709
|
|
|
710
|
+
class TextChunk
|
|
711
|
+
# @private
|
|
712
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
713
|
+
property :text, as: 'text'
|
|
714
|
+
end
|
|
715
|
+
end
|
|
716
|
+
|
|
600
717
|
class Workaround
|
|
601
718
|
# @private
|
|
602
719
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
22
|
module FirebasedataconnectV1beta
|
|
23
|
-
# Firebase
|
|
23
|
+
# Firebase SQL Connect API
|
|
24
24
|
#
|
|
25
25
|
# Firebase SQL Connect is a relational database service for mobile and web apps
|
|
26
26
|
# that lets you build and scale using a fully-managed PostgreSQL database
|
|
@@ -479,6 +479,79 @@ module Google
|
|
|
479
479
|
execute_or_queue_command(command, &block)
|
|
480
480
|
end
|
|
481
481
|
|
|
482
|
+
# Generates a GraphQL query based on a natural language prompt and the provided
|
|
483
|
+
# schema context. This is a stateless method; the schema is provided per request
|
|
484
|
+
# to support local development states. Streams results with real-time status and
|
|
485
|
+
# output chunks.
|
|
486
|
+
# @param [String] name
|
|
487
|
+
# Required. The resource name of the service in which to generate the query.
|
|
488
|
+
# Format: projects/`project`/locations/`location`/services/`service`
|
|
489
|
+
# @param [Google::Apis::FirebasedataconnectV1beta::GenerateQueryRequest] generate_query_request_object
|
|
490
|
+
# @param [String] fields
|
|
491
|
+
# Selector specifying which fields to include in a partial response.
|
|
492
|
+
# @param [String] quota_user
|
|
493
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
494
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
495
|
+
# @param [Google::Apis::RequestOptions] options
|
|
496
|
+
# Request-specific options
|
|
497
|
+
#
|
|
498
|
+
# @yield [result, err] Result & error if block supplied
|
|
499
|
+
# @yieldparam result [Google::Apis::FirebasedataconnectV1beta::GenerateQueryResponse] parsed result object
|
|
500
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
501
|
+
#
|
|
502
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::GenerateQueryResponse]
|
|
503
|
+
#
|
|
504
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
505
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
506
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
507
|
+
def generate_service_query(name, generate_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
508
|
+
command = make_simple_command(:post, 'v1beta/{+name}:generateQuery', options)
|
|
509
|
+
command.request_representation = Google::Apis::FirebasedataconnectV1beta::GenerateQueryRequest::Representation
|
|
510
|
+
command.request_object = generate_query_request_object
|
|
511
|
+
command.response_representation = Google::Apis::FirebasedataconnectV1beta::GenerateQueryResponse::Representation
|
|
512
|
+
command.response_class = Google::Apis::FirebasedataconnectV1beta::GenerateQueryResponse
|
|
513
|
+
command.params['name'] = name unless name.nil?
|
|
514
|
+
command.query['fields'] = fields unless fields.nil?
|
|
515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
516
|
+
execute_or_queue_command(command, &block)
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Generates GraphQL schema based on a natural language prompt or data
|
|
520
|
+
# description. This allows users to scaffold new types and tables quickly.
|
|
521
|
+
# Streams results with real-time status and output chunks.
|
|
522
|
+
# @param [String] name
|
|
523
|
+
# Required. The resource name of the service in which to generate the schema.
|
|
524
|
+
# Format: projects/`project`/locations/`location`/services/`service`
|
|
525
|
+
# @param [Google::Apis::FirebasedataconnectV1beta::GenerateSchemaRequest] generate_schema_request_object
|
|
526
|
+
# @param [String] fields
|
|
527
|
+
# Selector specifying which fields to include in a partial response.
|
|
528
|
+
# @param [String] quota_user
|
|
529
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
530
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
531
|
+
# @param [Google::Apis::RequestOptions] options
|
|
532
|
+
# Request-specific options
|
|
533
|
+
#
|
|
534
|
+
# @yield [result, err] Result & error if block supplied
|
|
535
|
+
# @yieldparam result [Google::Apis::FirebasedataconnectV1beta::GenerateSchemaResponse] parsed result object
|
|
536
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
537
|
+
#
|
|
538
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::GenerateSchemaResponse]
|
|
539
|
+
#
|
|
540
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
541
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
542
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
543
|
+
def generate_service_schema(name, generate_schema_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
544
|
+
command = make_simple_command(:post, 'v1beta/{+name}:generateSchema', options)
|
|
545
|
+
command.request_representation = Google::Apis::FirebasedataconnectV1beta::GenerateSchemaRequest::Representation
|
|
546
|
+
command.request_object = generate_schema_request_object
|
|
547
|
+
command.response_representation = Google::Apis::FirebasedataconnectV1beta::GenerateSchemaResponse::Representation
|
|
548
|
+
command.response_class = Google::Apis::FirebasedataconnectV1beta::GenerateSchemaResponse
|
|
549
|
+
command.params['name'] = name unless name.nil?
|
|
550
|
+
command.query['fields'] = fields unless fields.nil?
|
|
551
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
552
|
+
execute_or_queue_command(command, &block)
|
|
553
|
+
end
|
|
554
|
+
|
|
482
555
|
# Gets details of a single Service.
|
|
483
556
|
# @param [String] name
|
|
484
557
|
# Required. The name of the service to retrieve, in the format: ``` projects/`
|
|
@@ -19,7 +19,7 @@ require 'google/apis/firebasedataconnect_v1beta/gem_version.rb'
|
|
|
19
19
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
|
-
# Firebase
|
|
22
|
+
# Firebase SQL Connect API
|
|
23
23
|
#
|
|
24
24
|
# Firebase SQL Connect is a relational database service for mobile and web apps
|
|
25
25
|
# that lets you build and scale using a fully-managed PostgreSQL database
|
|
@@ -28,7 +28,7 @@ module Google
|
|
|
28
28
|
#
|
|
29
29
|
# @see https://firebase.google.com/docs/data-connect
|
|
30
30
|
module FirebasedataconnectV1beta
|
|
31
|
-
# Version of the Firebase
|
|
31
|
+
# Version of the Firebase SQL Connect API this client connects to.
|
|
32
32
|
# This is NOT the gem version.
|
|
33
33
|
VERSION = 'V1beta'
|
|
34
34
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-firebasedataconnect_v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -29,12 +29,12 @@ dependencies:
|
|
|
29
29
|
- - "<"
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
31
|
version: 2.a
|
|
32
|
-
description: This is the simple REST client for Firebase
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
description: This is the simple REST client for Firebase SQL Connect API V1beta. 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
35
|
based on the discovery documents published by the service, and they handle most
|
|
36
36
|
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
|
37
|
-
use this client to access the Firebase
|
|
37
|
+
use this client to access the Firebase SQL Connect API, but note that some services
|
|
38
38
|
may provide a separate modern client that is easier to use.
|
|
39
39
|
email: googleapis-packages@google.com
|
|
40
40
|
executables: []
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebasedataconnect_v1beta/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firebasedataconnect_v1beta/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebasedataconnect_v1beta/v0.22.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebasedataconnect_v1beta
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.2'
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|
|
@@ -75,5 +75,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
requirements: []
|
|
76
76
|
rubygems_version: 3.6.9
|
|
77
77
|
specification_version: 4
|
|
78
|
-
summary: Simple REST client for Firebase
|
|
78
|
+
summary: Simple REST client for Firebase SQL Connect API V1beta
|
|
79
79
|
test_files: []
|