google-apis-firebasedataconnect_v1beta 0.19.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 +8 -0
- data/lib/google/apis/firebasedataconnect_v1beta/classes.rb +224 -29
- 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 +92 -20
- data/lib/google/apis/firebasedataconnect_v1beta.rb +1 -1
- 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
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-firebasedataconnect_v1beta
|
|
2
2
|
|
|
3
|
+
### v0.21.0 (2026-05-17)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260502
|
|
6
|
+
|
|
7
|
+
### v0.20.0 (2026-05-03)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260426
|
|
10
|
+
|
|
3
11
|
### v0.19.0 (2026-04-19)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260322
|
|
@@ -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
|
|
@@ -179,7 +205,7 @@ module Google
|
|
|
179
205
|
end
|
|
180
206
|
end
|
|
181
207
|
|
|
182
|
-
#
|
|
208
|
+
# SQL Connect specific properties for a path under response.data.
|
|
183
209
|
class DataConnectProperties
|
|
184
210
|
include Google::Apis::Core::Hashable
|
|
185
211
|
|
|
@@ -219,7 +245,7 @@ module Google
|
|
|
219
245
|
end
|
|
220
246
|
end
|
|
221
247
|
|
|
222
|
-
# A data source that backs Firebase
|
|
248
|
+
# A data source that backs Firebase SQL Connect services.
|
|
223
249
|
class Datasource
|
|
224
250
|
include Google::Apis::Core::Hashable
|
|
225
251
|
|
|
@@ -260,7 +286,7 @@ module Google
|
|
|
260
286
|
end
|
|
261
287
|
end
|
|
262
288
|
|
|
263
|
-
# The ExecuteMutation request to Firebase
|
|
289
|
+
# The ExecuteMutation request to Firebase SQL Connect.
|
|
264
290
|
class ExecuteMutationRequest
|
|
265
291
|
include Google::Apis::Core::Hashable
|
|
266
292
|
|
|
@@ -287,7 +313,7 @@ module Google
|
|
|
287
313
|
end
|
|
288
314
|
end
|
|
289
315
|
|
|
290
|
-
# The ExecuteMutation response from Firebase
|
|
316
|
+
# The ExecuteMutation response from Firebase SQL Connect.
|
|
291
317
|
class ExecuteMutationResponse
|
|
292
318
|
include Google::Apis::Core::Hashable
|
|
293
319
|
|
|
@@ -319,7 +345,7 @@ module Google
|
|
|
319
345
|
end
|
|
320
346
|
end
|
|
321
347
|
|
|
322
|
-
# The ExecuteQuery request to Firebase
|
|
348
|
+
# The ExecuteQuery request to Firebase SQL Connect.
|
|
323
349
|
class ExecuteQueryRequest
|
|
324
350
|
include Google::Apis::Core::Hashable
|
|
325
351
|
|
|
@@ -346,7 +372,7 @@ module Google
|
|
|
346
372
|
end
|
|
347
373
|
end
|
|
348
374
|
|
|
349
|
-
# The ExecuteQuery response from Firebase
|
|
375
|
+
# The ExecuteQuery response from Firebase SQL Connect.
|
|
350
376
|
class ExecuteQueryResponse
|
|
351
377
|
include Google::Apis::Core::Hashable
|
|
352
378
|
|
|
@@ -405,8 +431,131 @@ 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
|
-
# draft/#sec-Errors Firebase
|
|
558
|
+
# draft/#sec-Errors Firebase SQL Connect API surfaces `GraphqlError` in various
|
|
410
559
|
# APIs: - Upon compile error, `UpdateSchema` and `UpdateConnector` return Code.
|
|
411
560
|
# Invalid_Argument with a list of `GraphqlError` in error details. - Upon query
|
|
412
561
|
# compile error, `ExecuteGraphql`, `ExecuteGraphqlRead` and `IntrospectGraphql`
|
|
@@ -471,7 +620,7 @@ module Google
|
|
|
471
620
|
attr_accessor :code
|
|
472
621
|
|
|
473
622
|
# More detailed error message to assist debugging. It contains application
|
|
474
|
-
# business logic that are inappropriate to leak publicly. In the emulator,
|
|
623
|
+
# business logic that are inappropriate to leak publicly. In the emulator, SQL
|
|
475
624
|
# Connect API always includes it to assist local development and debugging. In
|
|
476
625
|
# the backend, ConnectorService always hides it. GraphqlService without
|
|
477
626
|
# impersonation always include it. GraphqlService with impersonation includes it
|
|
@@ -512,7 +661,7 @@ module Google
|
|
|
512
661
|
end
|
|
513
662
|
end
|
|
514
663
|
|
|
515
|
-
# The GraphQL request to Firebase
|
|
664
|
+
# The GraphQL request to Firebase SQL Connect. It strives to match the GraphQL
|
|
516
665
|
# over HTTP spec. https://github.com/graphql/graphql-over-http/blob/main/spec/
|
|
517
666
|
# GraphQLOverHTTP.md#post
|
|
518
667
|
class GraphqlRequest
|
|
@@ -572,8 +721,8 @@ module Google
|
|
|
572
721
|
end
|
|
573
722
|
end
|
|
574
723
|
|
|
575
|
-
# The GraphQL response from Firebase
|
|
576
|
-
# GraphQL over HTTP spec. Note: Firebase
|
|
724
|
+
# The GraphQL response from Firebase SQL Connect. It strives to match the
|
|
725
|
+
# GraphQL over HTTP spec. Note: Firebase SQL Connect always responds with `
|
|
577
726
|
# Content-Type: application/json`. https://github.com/graphql/graphql-over-http/
|
|
578
727
|
# blob/main/spec/GraphQLOverHTTP.md#body
|
|
579
728
|
class GraphqlResponse
|
|
@@ -619,7 +768,7 @@ module Google
|
|
|
619
768
|
class GraphqlResponseExtensions
|
|
620
769
|
include Google::Apis::Core::Hashable
|
|
621
770
|
|
|
622
|
-
#
|
|
771
|
+
# SQL Connect specific GraphQL extension, a list of paths and properties.
|
|
623
772
|
# Corresponds to the JSON property `dataConnect`
|
|
624
773
|
# @return [Array<Google::Apis::FirebasedataconnectV1beta::DataConnectProperties>]
|
|
625
774
|
attr_accessor :data_connect
|
|
@@ -659,7 +808,7 @@ module Google
|
|
|
659
808
|
end
|
|
660
809
|
end
|
|
661
810
|
|
|
662
|
-
# The Impersonate request to Firebase
|
|
811
|
+
# The Impersonate request to Firebase SQL Connect.
|
|
663
812
|
class ImpersonateRequest
|
|
664
813
|
include Google::Apis::Core::Hashable
|
|
665
814
|
|
|
@@ -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
|
|
@@ -1078,16 +1252,16 @@ module Google
|
|
|
1078
1252
|
# @return [String]
|
|
1079
1253
|
attr_accessor :database
|
|
1080
1254
|
|
|
1081
|
-
# Output only. Ephemeral is true if this
|
|
1255
|
+
# Output only. Ephemeral is true if this SQL Connect service is served from
|
|
1082
1256
|
# temporary in-memory emulation of Postgres. While Cloud SQL is being
|
|
1083
|
-
# provisioned, the
|
|
1084
|
-
# developers get started. Once the Cloud SQL is provisioned,
|
|
1085
|
-
#
|
|
1086
|
-
#
|
|
1087
|
-
#
|
|
1088
|
-
#
|
|
1089
|
-
#
|
|
1090
|
-
#
|
|
1257
|
+
# provisioned, the SQL Connect service provides the ephemeral service to help
|
|
1258
|
+
# developers get started. Once the Cloud SQL is provisioned, SQL Connect service
|
|
1259
|
+
# will transfer its data on a best-effort basis to the Cloud SQL instance.
|
|
1260
|
+
# WARNING: Ephemeral data sources will expire after 24 hour. The data will be
|
|
1261
|
+
# lost if they aren't transferred to the Cloud SQL instance. WARNING: When `
|
|
1262
|
+
# ephemeral=true`, mutations to the database are not guaranteed to be durably
|
|
1263
|
+
# persisted, even if an OK status code is returned. All or parts of the data may
|
|
1264
|
+
# be lost or reverted to earlier versions.
|
|
1091
1265
|
# Corresponds to the JSON property `ephemeral`
|
|
1092
1266
|
# @return [Boolean]
|
|
1093
1267
|
attr_accessor :ephemeral
|
|
@@ -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
|
|
@@ -1132,7 +1308,7 @@ module Google
|
|
|
1132
1308
|
end
|
|
1133
1309
|
end
|
|
1134
1310
|
|
|
1135
|
-
# The application schema of a Firebase
|
|
1311
|
+
# The application schema of a Firebase SQL Connect service.
|
|
1136
1312
|
class Schema
|
|
1137
1313
|
include Google::Apis::Core::Hashable
|
|
1138
1314
|
|
|
@@ -1218,7 +1394,7 @@ module Google
|
|
|
1218
1394
|
end
|
|
1219
1395
|
end
|
|
1220
1396
|
|
|
1221
|
-
# A Firebase
|
|
1397
|
+
# A Firebase SQL Connect service.
|
|
1222
1398
|
class Service
|
|
1223
1399
|
include Google::Apis::Core::Hashable
|
|
1224
1400
|
|
|
@@ -1250,9 +1426,9 @@ module Google
|
|
|
1250
1426
|
# @return [Hash<String,String>]
|
|
1251
1427
|
attr_accessor :labels
|
|
1252
1428
|
|
|
1253
|
-
# Identifier. The relative resource name of the Firebase
|
|
1254
|
-
#
|
|
1255
|
-
#
|
|
1429
|
+
# Identifier. The relative resource name of the Firebase SQL Connect service, in
|
|
1430
|
+
# the format: ``` projects/`project`/locations/`location`/services/`service` ```
|
|
1431
|
+
# Note that the service ID is specific to Firebase SQL Connect and does not
|
|
1256
1432
|
# correspond to any of the instance IDs of the underlying data source
|
|
1257
1433
|
# connections.
|
|
1258
1434
|
# Corresponds to the JSON property `name`
|
|
@@ -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
|
|
@@ -22,7 +22,7 @@ module Google
|
|
|
22
22
|
module FirebasedataconnectV1beta
|
|
23
23
|
# Firebase Data Connect API
|
|
24
24
|
#
|
|
25
|
-
# Firebase
|
|
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
|
|
27
27
|
# powered by Cloud SQL. The REST API lets developers manage the connections to
|
|
28
28
|
# their database, change the schema of their database, and query the database.
|
|
@@ -85,8 +85,8 @@ module Google
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
# Lists information about the supported locations for this service. This method
|
|
88
|
-
# lists locations based on the resource scope provided in the
|
|
89
|
-
# ListLocationsRequest.name
|
|
88
|
+
# lists locations based on the resource scope provided in the
|
|
89
|
+
# ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
|
|
90
90
|
# the method lists the public locations available to all projects. * **Project-
|
|
91
91
|
# specific locations**: If `name` follows the format `projects/`project``, the
|
|
92
92
|
# method lists locations visible to that specific project. This includes public,
|
|
@@ -97,8 +97,8 @@ module Google
|
|
|
97
97
|
# @param [String] name
|
|
98
98
|
# The resource that owns the locations collection, if applicable.
|
|
99
99
|
# @param [Array<String>, String] extra_location_types
|
|
100
|
-
# Optional. Do not use this field
|
|
101
|
-
#
|
|
100
|
+
# Optional. Do not use this field unless explicitly documented otherwise. This
|
|
101
|
+
# is primarily for internal usage.
|
|
102
102
|
# @param [String] filter
|
|
103
103
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
104
104
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
@@ -406,12 +406,12 @@ module Google
|
|
|
406
406
|
execute_or_queue_command(command, &block)
|
|
407
407
|
end
|
|
408
408
|
|
|
409
|
-
# Execute any GraphQL query
|
|
409
|
+
# Execute any GraphQL query or mutation against the Firebase SQL Connect's
|
|
410
410
|
# generated GraphQL schema. Grants full read and write access to the connected
|
|
411
411
|
# data sources. Note: Use introspection query to explore the generated GraphQL
|
|
412
412
|
# schema.
|
|
413
413
|
# @param [String] name
|
|
414
|
-
# Required. The relative resource name of Firebase
|
|
414
|
+
# Required. The relative resource name of Firebase SQL Connect service, in the
|
|
415
415
|
# format: ``` projects/`project`/locations/`location`/services/`service` ```
|
|
416
416
|
# @param [Google::Apis::FirebasedataconnectV1beta::GraphqlRequest] graphql_request_object
|
|
417
417
|
# @param [String] fields
|
|
@@ -443,12 +443,11 @@ module Google
|
|
|
443
443
|
execute_or_queue_command(command, &block)
|
|
444
444
|
end
|
|
445
445
|
|
|
446
|
-
# Execute any GraphQL query against the Firebase
|
|
447
|
-
#
|
|
448
|
-
#
|
|
449
|
-
# read-only query.
|
|
446
|
+
# Execute any GraphQL query against the Firebase SQL Connect's generated GraphQL
|
|
447
|
+
# schema. Grants full read to the connected data sources. `ExecuteGraphqlRead`
|
|
448
|
+
# is identical to `ExecuteGraphql` except it only accepts read-only query.
|
|
450
449
|
# @param [String] name
|
|
451
|
-
# Required. The relative resource name of Firebase
|
|
450
|
+
# Required. The relative resource name of Firebase SQL Connect service, in the
|
|
452
451
|
# format: ``` projects/`project`/locations/`location`/services/`service` ```
|
|
453
452
|
# @param [Google::Apis::FirebasedataconnectV1beta::GraphqlRequest] graphql_request_object
|
|
454
453
|
# @param [String] fields
|
|
@@ -480,6 +479,79 @@ module Google
|
|
|
480
479
|
execute_or_queue_command(command, &block)
|
|
481
480
|
end
|
|
482
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
|
+
|
|
483
555
|
# Gets details of a single Service.
|
|
484
556
|
# @param [String] name
|
|
485
557
|
# Required. The name of the service to retrieve, in the format: ``` projects/`
|
|
@@ -511,14 +583,14 @@ module Google
|
|
|
511
583
|
execute_or_queue_command(command, &block)
|
|
512
584
|
end
|
|
513
585
|
|
|
514
|
-
# Execute introspection query against the Firebase
|
|
586
|
+
# Execute introspection query against the Firebase SQL Connect's generated
|
|
515
587
|
# GraphQL schema. GraphQL introspection query provides metadata such as what
|
|
516
588
|
# tables the schema have, what queries and mutations can be performed on the
|
|
517
589
|
# schema, and so on. Read more at https://graphql.org/learn/introspection.
|
|
518
590
|
# IntrospectGraphql can read schema metadata but cannot read rows from Cloud SQL
|
|
519
591
|
# instance, which can be done via ExecuteGraphqlRead.
|
|
520
592
|
# @param [String] name
|
|
521
|
-
# Required. The relative resource name of Firebase
|
|
593
|
+
# Required. The relative resource name of Firebase SQL Connect service, in the
|
|
522
594
|
# format: ``` projects/`project`/locations/`location`/services/`service` ```
|
|
523
595
|
# @param [Google::Apis::FirebasedataconnectV1beta::GraphqlRequest] graphql_request_object
|
|
524
596
|
# @param [String] fields
|
|
@@ -597,9 +669,9 @@ module Google
|
|
|
597
669
|
|
|
598
670
|
# Updates the parameters of a single Service.
|
|
599
671
|
# @param [String] name
|
|
600
|
-
# Identifier. The relative resource name of the Firebase
|
|
601
|
-
#
|
|
602
|
-
#
|
|
672
|
+
# Identifier. The relative resource name of the Firebase SQL Connect service, in
|
|
673
|
+
# the format: ``` projects/`project`/locations/`location`/services/`service` ```
|
|
674
|
+
# Note that the service ID is specific to Firebase SQL Connect and does not
|
|
603
675
|
# correspond to any of the instance IDs of the underlying data source
|
|
604
676
|
# connections.
|
|
605
677
|
# @param [Google::Apis::FirebasedataconnectV1beta::Service] service_object
|
|
@@ -876,7 +948,7 @@ module Google
|
|
|
876
948
|
execute_or_queue_command(command, &block)
|
|
877
949
|
end
|
|
878
950
|
|
|
879
|
-
# Impersonate a mutation defined on a Firebase
|
|
951
|
+
# Impersonate a mutation defined on a Firebase SQL Connect connector. It grants
|
|
880
952
|
# the admin SDK access to mutations defined in the given connector. The caller
|
|
881
953
|
# can choose to impersonate a particular Firebase Auth user, or skip @auth
|
|
882
954
|
# completely.
|
|
@@ -914,8 +986,8 @@ module Google
|
|
|
914
986
|
execute_or_queue_command(command, &block)
|
|
915
987
|
end
|
|
916
988
|
|
|
917
|
-
# Impersonate a query defined on a Firebase
|
|
918
|
-
#
|
|
989
|
+
# Impersonate a query defined on a Firebase SQL Connect connector. It grants the
|
|
990
|
+
# admin SDK access to queries defined in the given connector. The caller can
|
|
919
991
|
# choose to impersonate a particular Firebase Auth user, or skip @auth
|
|
920
992
|
# completely.
|
|
921
993
|
# @param [String] name
|
|
@@ -21,7 +21,7 @@ module Google
|
|
|
21
21
|
module Apis
|
|
22
22
|
# Firebase Data Connect API
|
|
23
23
|
#
|
|
24
|
-
# Firebase
|
|
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
|
|
26
26
|
# powered by Cloud SQL. The REST API lets developers manage the connections to
|
|
27
27
|
# their database, change the schema of their database, and query the database.
|
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:
|