google-apis-spanner_v1 0.5.0 → 0.10.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 +22 -0
- data/lib/google/apis/spanner_v1.rb +1 -1
- data/lib/google/apis/spanner_v1/classes.rb +770 -9
- data/lib/google/apis/spanner_v1/gem_version.rb +3 -3
- data/lib/google/apis/spanner_v1/representations.rb +312 -0
- data/lib/google/apis/spanner_v1/service.rb +91 -0
- metadata +4 -4
@@ -1262,6 +1262,51 @@ module Google
|
|
1262
1262
|
execute_or_queue_command(command, &block)
|
1263
1263
|
end
|
1264
1264
|
|
1265
|
+
# Request a specific scan with Database-specific data for Cloud Key Visualizer.
|
1266
|
+
# @param [String] name
|
1267
|
+
# Required. The unique name of the scan containing the requested information,
|
1268
|
+
# specific to the Database service implementing this interface.
|
1269
|
+
# @param [String] end_time
|
1270
|
+
# The upper bound for the time range to retrieve Scan data for.
|
1271
|
+
# @param [String] start_time
|
1272
|
+
# These fields restrict the Database-specific information returned in the `Scan.
|
1273
|
+
# data` field. If a `View` is provided that does not include the `Scan.data`
|
1274
|
+
# field, these are ignored. This range of time must be entirely contained within
|
1275
|
+
# the defined time range of the targeted scan. The lower bound for the time
|
1276
|
+
# range to retrieve Scan data for.
|
1277
|
+
# @param [String] view
|
1278
|
+
# Specifies which parts of the Scan should be returned in the response. Note, if
|
1279
|
+
# left unspecified, the FULL view is assumed.
|
1280
|
+
# @param [String] fields
|
1281
|
+
# Selector specifying which fields to include in a partial response.
|
1282
|
+
# @param [String] quota_user
|
1283
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1284
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1285
|
+
# @param [Google::Apis::RequestOptions] options
|
1286
|
+
# Request-specific options
|
1287
|
+
#
|
1288
|
+
# @yield [result, err] Result & error if block supplied
|
1289
|
+
# @yieldparam result [Google::Apis::SpannerV1::Scan] parsed result object
|
1290
|
+
# @yieldparam err [StandardError] error object if request failed
|
1291
|
+
#
|
1292
|
+
# @return [Google::Apis::SpannerV1::Scan]
|
1293
|
+
#
|
1294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1297
|
+
def get_project_instance_database_scans(name, end_time: nil, start_time: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1298
|
+
command = make_simple_command(:get, 'v1/{+name}/scans', options)
|
1299
|
+
command.response_representation = Google::Apis::SpannerV1::Scan::Representation
|
1300
|
+
command.response_class = Google::Apis::SpannerV1::Scan
|
1301
|
+
command.params['name'] = name unless name.nil?
|
1302
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
1303
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
1304
|
+
command.query['view'] = view unless view.nil?
|
1305
|
+
command.query['fields'] = fields unless fields.nil?
|
1306
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1307
|
+
execute_or_queue_command(command, &block)
|
1308
|
+
end
|
1309
|
+
|
1265
1310
|
# Lists Cloud Spanner databases.
|
1266
1311
|
# @param [String] parent
|
1267
1312
|
# Required. The instance whose databases should be listed. Values are of the
|
@@ -2329,6 +2374,52 @@ module Google
|
|
2329
2374
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2330
2375
|
execute_or_queue_command(command, &block)
|
2331
2376
|
end
|
2377
|
+
|
2378
|
+
# Return available scans given a Database-specific resource name.
|
2379
|
+
# @param [String] parent
|
2380
|
+
# Required. The unique name of the parent resource, specific to the Database
|
2381
|
+
# service implementing this interface.
|
2382
|
+
# @param [String] filter
|
2383
|
+
# A filter expression to restrict the results based on information present in
|
2384
|
+
# the available Scan collection. The filter applies to all fields within the
|
2385
|
+
# Scan message except for `data`.
|
2386
|
+
# @param [Fixnum] page_size
|
2387
|
+
# The maximum number of items to return.
|
2388
|
+
# @param [String] page_token
|
2389
|
+
# The next_page_token value returned from a previous List request, if any.
|
2390
|
+
# @param [String] view
|
2391
|
+
# Specifies which parts of the Scan should be returned in the response. Note,
|
2392
|
+
# only the SUMMARY view (the default) is currently supported for ListScans.
|
2393
|
+
# @param [String] fields
|
2394
|
+
# Selector specifying which fields to include in a partial response.
|
2395
|
+
# @param [String] quota_user
|
2396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2398
|
+
# @param [Google::Apis::RequestOptions] options
|
2399
|
+
# Request-specific options
|
2400
|
+
#
|
2401
|
+
# @yield [result, err] Result & error if block supplied
|
2402
|
+
# @yieldparam result [Google::Apis::SpannerV1::ListScansResponse] parsed result object
|
2403
|
+
# @yieldparam err [StandardError] error object if request failed
|
2404
|
+
#
|
2405
|
+
# @return [Google::Apis::SpannerV1::ListScansResponse]
|
2406
|
+
#
|
2407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2410
|
+
def list_scans(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2411
|
+
command = make_simple_command(:get, 'v1/{+parent}', options)
|
2412
|
+
command.response_representation = Google::Apis::SpannerV1::ListScansResponse::Representation
|
2413
|
+
command.response_class = Google::Apis::SpannerV1::ListScansResponse
|
2414
|
+
command.params['parent'] = parent unless parent.nil?
|
2415
|
+
command.query['filter'] = filter unless filter.nil?
|
2416
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2417
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2418
|
+
command.query['view'] = view unless view.nil?
|
2419
|
+
command.query['fields'] = fields unless fields.nil?
|
2420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2421
|
+
execute_or_queue_command(command, &block)
|
2422
|
+
end
|
2332
2423
|
|
2333
2424
|
protected
|
2334
2425
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-spanner_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-spanner_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.10.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-spanner_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Spanner API V1
|