google-apis-firebasedataconnect_v1beta 0.24.0 → 0.25.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 +86 -0
- data/lib/google/apis/firebasedataconnect_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/firebasedataconnect_v1beta/representations.rb +31 -0
- data/lib/google/apis/firebasedataconnect_v1beta/service.rb +38 -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: 0c166b42b04cb542451d4422c55f46d1ba3c815cb5aebe7cb764a5574887c1fb
|
|
4
|
+
data.tar.gz: 4b8062c2eee4c4f1a39ff785370488d51539a4c983447ec502c501920a5ed2c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57b15a1df2924aae521892d99c1a6f1949a74d44bca6eb9cd8c5fb8b582c3121ddba9ffed5bcb58e6b2ef8cd76fa4f1f784e8fbc02acb73c1da09f42105cc3c1
|
|
7
|
+
data.tar.gz: fcce0539906f9e34b096d73972f71abb0313e000181811d5753a5d51bd8253b03b431997f63f2e3aa505f2d2de4129f3e36a16cfd36f77cf9eac32f182e1591b
|
data/CHANGELOG.md
CHANGED
|
@@ -1092,6 +1092,92 @@ module Google
|
|
|
1092
1092
|
end
|
|
1093
1093
|
end
|
|
1094
1094
|
|
|
1095
|
+
# Request message for `MigrateSchema`. Next tag: 7
|
|
1096
|
+
class MigrateSchemaRequest
|
|
1097
|
+
include Google::Apis::Core::Hashable
|
|
1098
|
+
|
|
1099
|
+
# Optional. Execution mode controlling DDL execution and ledger recording.
|
|
1100
|
+
# Defaults to EXECUTE_AND_RECORD.
|
|
1101
|
+
# Corresponds to the JSON property `executionMode`
|
|
1102
|
+
# @return [String]
|
|
1103
|
+
attr_accessor :execution_mode
|
|
1104
|
+
|
|
1105
|
+
# Required. Ordered migration steps from `./sql/migrations/` (or a single ad-hoc
|
|
1106
|
+
# step). Backend compares submitted versions against `firebasesql.
|
|
1107
|
+
# schema_migrations`: already-applied steps are verified for SQL immutability
|
|
1108
|
+
# and skipped, while unapplied steps (`version > MAX(applied_version)`) are
|
|
1109
|
+
# executed. All unapplied transactional steps in a single request execute
|
|
1110
|
+
# atomically within one database transaction (BEGIN ... COMMIT): either every
|
|
1111
|
+
# unapplied step commits and is recorded in the ledger, or the entire request
|
|
1112
|
+
# rolls back. An unapplied step containing CREATE INDEX CONCURRENTLY or DROP
|
|
1113
|
+
# INDEX CONCURRENTLY cannot be mixed with other unapplied steps and must be the
|
|
1114
|
+
# sole unapplied step executed in the request.
|
|
1115
|
+
# Corresponds to the JSON property `migrationSteps`
|
|
1116
|
+
# @return [Array<Google::Apis::FirebasedataconnectV1beta::MigrationStep>]
|
|
1117
|
+
attr_accessor :migration_steps
|
|
1118
|
+
|
|
1119
|
+
# Optional. When true, runs preflight validation (syntax, applied-step
|
|
1120
|
+
# immutability, sequence ordering, CONCURRENTLY isolation, and SAVEPOINT catalog
|
|
1121
|
+
# checks) without committing mutations to the database.
|
|
1122
|
+
# Corresponds to the JSON property `validateOnly`
|
|
1123
|
+
# @return [Boolean]
|
|
1124
|
+
attr_accessor :validate_only
|
|
1125
|
+
alias_method :validate_only?, :validate_only
|
|
1126
|
+
|
|
1127
|
+
def initialize(**args)
|
|
1128
|
+
update!(**args)
|
|
1129
|
+
end
|
|
1130
|
+
|
|
1131
|
+
# Update properties of this object
|
|
1132
|
+
def update!(**args)
|
|
1133
|
+
@execution_mode = args[:execution_mode] if args.key?(:execution_mode)
|
|
1134
|
+
@migration_steps = args[:migration_steps] if args.key?(:migration_steps)
|
|
1135
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
|
1136
|
+
end
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
# An individual unit of migration work. Next tag: 4
|
|
1140
|
+
class MigrationStep
|
|
1141
|
+
include Google::Apis::Core::Hashable
|
|
1142
|
+
|
|
1143
|
+
# Optional. Descriptive migration label (e.g. "create_accounts_table"). If
|
|
1144
|
+
# omitted, defaults to "adhoc".
|
|
1145
|
+
# Corresponds to the JSON property `name`
|
|
1146
|
+
# @return [String]
|
|
1147
|
+
attr_accessor :name
|
|
1148
|
+
|
|
1149
|
+
# Required. Raw multi-statement SQL script. The backend splits it into
|
|
1150
|
+
# individual statements before execution; callers do not pre-split. Required
|
|
1151
|
+
# whenever the request executes or records DDL, which is every publicly
|
|
1152
|
+
# available execution mode; omitting it returns INVALID_ARGUMENT.
|
|
1153
|
+
# Corresponds to the JSON property `sql`
|
|
1154
|
+
# @return [String]
|
|
1155
|
+
attr_accessor :sql
|
|
1156
|
+
|
|
1157
|
+
# Optional. Monotonic 14-digit UTC timestamp (YYYYMMDDHHMMSS), matching the
|
|
1158
|
+
# timestamp prefix of the developer's migration filename. Constrained to `^[0-9]`
|
|
1159
|
+
# 14`$`. - When specified (file migrations): If `version` is already recorded in
|
|
1160
|
+
# `firebasesql.schema_migrations`, the backend verifies that `sql` matches the
|
|
1161
|
+
# recorded statements and skips execution. If `version` is unapplied, the
|
|
1162
|
+
# backend validates `version > MAX(applied_version)` and records the value
|
|
1163
|
+
# unchanged, so the ledger row and the on-disk filename stay identical. - When
|
|
1164
|
+
# omitted (Console/ad-hoc): Backend auto-generates a 14-digit UTC timestamp.
|
|
1165
|
+
# Corresponds to the JSON property `version`
|
|
1166
|
+
# @return [String]
|
|
1167
|
+
attr_accessor :version
|
|
1168
|
+
|
|
1169
|
+
def initialize(**args)
|
|
1170
|
+
update!(**args)
|
|
1171
|
+
end
|
|
1172
|
+
|
|
1173
|
+
# Update properties of this object
|
|
1174
|
+
def update!(**args)
|
|
1175
|
+
@name = args[:name] if args.key?(:name)
|
|
1176
|
+
@sql = args[:sql] if args.key?(:sql)
|
|
1177
|
+
@version = args[:version] if args.key?(:version)
|
|
1178
|
+
end
|
|
1179
|
+
end
|
|
1180
|
+
|
|
1095
1181
|
# This resource represents a long-running operation that is the result of a
|
|
1096
1182
|
# network API call.
|
|
1097
1183
|
class Operation
|
|
@@ -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.25.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260927"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -220,6 +220,18 @@ module Google
|
|
|
220
220
|
include Google::Apis::Core::JsonObjectSupport
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
+
class MigrateSchemaRequest
|
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
|
+
|
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
class MigrationStep
|
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
|
+
|
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
233
|
+
end
|
|
234
|
+
|
|
223
235
|
class Operation
|
|
224
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
237
|
|
|
@@ -600,6 +612,25 @@ module Google
|
|
|
600
612
|
end
|
|
601
613
|
end
|
|
602
614
|
|
|
615
|
+
class MigrateSchemaRequest
|
|
616
|
+
# @private
|
|
617
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
618
|
+
property :execution_mode, as: 'executionMode'
|
|
619
|
+
collection :migration_steps, as: 'migrationSteps', class: Google::Apis::FirebasedataconnectV1beta::MigrationStep, decorator: Google::Apis::FirebasedataconnectV1beta::MigrationStep::Representation
|
|
620
|
+
|
|
621
|
+
property :validate_only, as: 'validateOnly'
|
|
622
|
+
end
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
class MigrationStep
|
|
626
|
+
# @private
|
|
627
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
628
|
+
property :name, as: 'name'
|
|
629
|
+
property :sql, as: 'sql'
|
|
630
|
+
property :version, as: 'version'
|
|
631
|
+
end
|
|
632
|
+
end
|
|
633
|
+
|
|
603
634
|
class Operation
|
|
604
635
|
# @private
|
|
605
636
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1329,6 +1329,44 @@ module Google
|
|
|
1329
1329
|
execute_or_queue_command(command, &block)
|
|
1330
1330
|
end
|
|
1331
1331
|
|
|
1332
|
+
# Executes SQL migration steps against the active database schema. This
|
|
1333
|
+
# operation compares submitted migration steps against the schema migration
|
|
1334
|
+
# ledger (`firebasesql.schema_migrations`), executes unapplied DDL, and records
|
|
1335
|
+
# applied steps. It does NOT persist the GraphQL schema to the control plane.
|
|
1336
|
+
# @param [String] name
|
|
1337
|
+
# Required. Resource name of the target schema: projects/`project`/locations/`
|
|
1338
|
+
# location`/services/`service`/schemas/`schema` Note: Only `schemas/main` is
|
|
1339
|
+
# supported (singleton schema per service).
|
|
1340
|
+
# @param [Google::Apis::FirebasedataconnectV1beta::MigrateSchemaRequest] migrate_schema_request_object
|
|
1341
|
+
# @param [String] fields
|
|
1342
|
+
# Selector specifying which fields to include in a partial response.
|
|
1343
|
+
# @param [String] quota_user
|
|
1344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1346
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1347
|
+
# Request-specific options
|
|
1348
|
+
#
|
|
1349
|
+
# @yield [result, err] Result & error if block supplied
|
|
1350
|
+
# @yieldparam result [Google::Apis::FirebasedataconnectV1beta::Operation] parsed result object
|
|
1351
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1352
|
+
#
|
|
1353
|
+
# @return [Google::Apis::FirebasedataconnectV1beta::Operation]
|
|
1354
|
+
#
|
|
1355
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1356
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1357
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1358
|
+
def migrate_schema(name, migrate_schema_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1359
|
+
command = make_simple_command(:post, 'v1beta/{+name}:migrate', options)
|
|
1360
|
+
command.request_representation = Google::Apis::FirebasedataconnectV1beta::MigrateSchemaRequest::Representation
|
|
1361
|
+
command.request_object = migrate_schema_request_object
|
|
1362
|
+
command.response_representation = Google::Apis::FirebasedataconnectV1beta::Operation::Representation
|
|
1363
|
+
command.response_class = Google::Apis::FirebasedataconnectV1beta::Operation
|
|
1364
|
+
command.params['name'] = name unless name.nil?
|
|
1365
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1367
|
+
execute_or_queue_command(command, &block)
|
|
1368
|
+
end
|
|
1369
|
+
|
|
1332
1370
|
# Updates the parameters of a single Schema, and creates a new SchemaRevision
|
|
1333
1371
|
# with the updated Schema.
|
|
1334
1372
|
# @param [String] name
|
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.25.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.25.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:
|