google-apis-firebasedataconnect_v1beta 0.20.0 → 0.21.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 +4 -0
- data/lib/google/apis/firebasedataconnect_v1beta/classes.rb +197 -2
- data/lib/google/apis/firebasedataconnect_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/firebasedataconnect_v1beta/representations.rb +117 -0
- data/lib/google/apis/firebasedataconnect_v1beta/service.rb +73 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4115ac8cf0c3c9695f082f08398f6de97bdfb7bee19465176f9b32338c822a28
|
|
4
|
+
data.tar.gz: 8e12b708bd37c4cefe26a75197c457f8439145ad44dcfe6b9736de9d22ec01c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7075462efc788ea57cbf37886e363d32286b0919021e2dbf940b7daca5b21085f631cd67ae6871d21c9cdb5bbfba51e3cdb9a5a3df7009adc72c974f39ec0fb5
|
|
7
|
+
data.tar.gz: 6b89a6f2e8c2df2e0d435a4b6719e82baf44a7637e01f45595339aeaaef944e74fa8dadd8b64c47ce2b54a8187a257a0e6e3ce0cc8e4b9b44857fa7dd6e96470
|
data/CHANGELOG.md
CHANGED
|
@@ -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.21.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260502"
|
|
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
|
|
@@ -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/`
|
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.21.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -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.21.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:
|