google-apis-spanner_v1 0.1.0 → 0.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c691986d397c3d14116d3e6feb75191a64935d454f738f138f3cd5eb298278fb
|
4
|
+
data.tar.gz: 249c23193582a4420af547ca7a0e0bb4f4e8fc884bc80783a6eebf3acdf601eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e59ff7dff5cc84138d0e2f4914e630cc4b1f9a693b8bef24a6f50eb8f7d1073c31f819a3c7d89eb36e2ff952a9aae5d3eea6ec9835367d9ef4ef13f427a384
|
7
|
+
data.tar.gz: 3b48ef1c5c75b29e9a6fa511aebe07ac2fbbc3b0014a7a1bbd01b0ed9dac24022563d4dafae8f0d526af631984c55e909c961e2c1d2cfa4c32d1c067ec999573
|
data/CHANGELOG.md
CHANGED
@@ -26,9 +26,9 @@ module Google
|
|
26
26
|
class Backup
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# Output only. The
|
30
|
-
#
|
31
|
-
#
|
29
|
+
# Output only. The time the CreateBackup request is received. If the request
|
30
|
+
# does not specify `version_time`, the `version_time` of the backup will be
|
31
|
+
# equivalent to the `create_time`.
|
32
32
|
# Corresponds to the JSON property `createTime`
|
33
33
|
# @return [String]
|
34
34
|
attr_accessor :create_time
|
@@ -80,6 +80,13 @@ module Google
|
|
80
80
|
# @return [String]
|
81
81
|
attr_accessor :state
|
82
82
|
|
83
|
+
# The backup will contain an externally consistent copy of the database at the
|
84
|
+
# timestamp specified by `version_time`. If `version_time` is not specified, the
|
85
|
+
# system will set `version_time` to the `create_time` of the backup.
|
86
|
+
# Corresponds to the JSON property `versionTime`
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :version_time
|
89
|
+
|
83
90
|
def initialize(**args)
|
84
91
|
update!(**args)
|
85
92
|
end
|
@@ -93,6 +100,7 @@ module Google
|
|
93
100
|
@referencing_databases = args[:referencing_databases] if args.key?(:referencing_databases)
|
94
101
|
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
|
95
102
|
@state = args[:state] if args.key?(:state)
|
103
|
+
@version_time = args[:version_time] if args.key?(:version_time)
|
96
104
|
end
|
97
105
|
end
|
98
106
|
|
@@ -105,8 +113,7 @@ module Google
|
|
105
113
|
# @return [String]
|
106
114
|
attr_accessor :backup
|
107
115
|
|
108
|
-
# The
|
109
|
-
# timestamp specified by `create_time`.
|
116
|
+
# The time the CreateBackup request was received.
|
110
117
|
# Corresponds to the JSON property `createTime`
|
111
118
|
# @return [String]
|
112
119
|
attr_accessor :create_time
|
@@ -116,6 +123,14 @@ module Google
|
|
116
123
|
# @return [String]
|
117
124
|
attr_accessor :source_database
|
118
125
|
|
126
|
+
# The backup contains an externally consistent copy of `source_database` at the
|
127
|
+
# timestamp specified by `version_time`. If the CreateBackup request did not
|
128
|
+
# specify `version_time`, the `version_time` of the backup is equivalent to the `
|
129
|
+
# create_time`.
|
130
|
+
# Corresponds to the JSON property `versionTime`
|
131
|
+
# @return [String]
|
132
|
+
attr_accessor :version_time
|
133
|
+
|
119
134
|
def initialize(**args)
|
120
135
|
update!(**args)
|
121
136
|
end
|
@@ -125,6 +140,7 @@ module Google
|
|
125
140
|
@backup = args[:backup] if args.key?(:backup)
|
126
141
|
@create_time = args[:create_time] if args.key?(:create_time)
|
127
142
|
@source_database = args[:source_database] if args.key?(:source_database)
|
143
|
+
@version_time = args[:version_time] if args.key?(:version_time)
|
128
144
|
end
|
129
145
|
end
|
130
146
|
|
@@ -472,6 +488,13 @@ module Google
|
|
472
488
|
# @return [Array<Google::Apis::SpannerV1::Mutation>]
|
473
489
|
attr_accessor :mutations
|
474
490
|
|
491
|
+
# If `true`, then statistics related to the transaction will be included in the
|
492
|
+
# CommitResponse. Default value is `false`.
|
493
|
+
# Corresponds to the JSON property `returnCommitStats`
|
494
|
+
# @return [Boolean]
|
495
|
+
attr_accessor :return_commit_stats
|
496
|
+
alias_method :return_commit_stats?, :return_commit_stats
|
497
|
+
|
475
498
|
# # Transactions Each session can have at most one active transaction at a time (
|
476
499
|
# note that standalone reads and queries use a transaction internally and do
|
477
500
|
# count towards the one transaction limit). After the active transaction is
|
@@ -648,6 +671,7 @@ module Google
|
|
648
671
|
# Update properties of this object
|
649
672
|
def update!(**args)
|
650
673
|
@mutations = args[:mutations] if args.key?(:mutations)
|
674
|
+
@return_commit_stats = args[:return_commit_stats] if args.key?(:return_commit_stats)
|
651
675
|
@single_use_transaction = args[:single_use_transaction] if args.key?(:single_use_transaction)
|
652
676
|
@transaction_id = args[:transaction_id] if args.key?(:transaction_id)
|
653
677
|
end
|
@@ -657,6 +681,11 @@ module Google
|
|
657
681
|
class CommitResponse
|
658
682
|
include Google::Apis::Core::Hashable
|
659
683
|
|
684
|
+
# Additional statistics about a commit.
|
685
|
+
# Corresponds to the JSON property `commitStats`
|
686
|
+
# @return [Google::Apis::SpannerV1::CommitStats]
|
687
|
+
attr_accessor :commit_stats
|
688
|
+
|
660
689
|
# The Cloud Spanner timestamp at which the transaction committed.
|
661
690
|
# Corresponds to the JSON property `commitTimestamp`
|
662
691
|
# @return [String]
|
@@ -668,10 +697,37 @@ module Google
|
|
668
697
|
|
669
698
|
# Update properties of this object
|
670
699
|
def update!(**args)
|
700
|
+
@commit_stats = args[:commit_stats] if args.key?(:commit_stats)
|
671
701
|
@commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp)
|
672
702
|
end
|
673
703
|
end
|
674
704
|
|
705
|
+
# Additional statistics about a commit.
|
706
|
+
class CommitStats
|
707
|
+
include Google::Apis::Core::Hashable
|
708
|
+
|
709
|
+
# The total number of mutations for the transaction. Knowing the `mutation_count`
|
710
|
+
# value can help you maximize the number of mutations in a transaction and
|
711
|
+
# minimize the number of API round trips. You can also monitor this value to
|
712
|
+
# prevent transactions from exceeding the system [limit](http://cloud.google.com/
|
713
|
+
# spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). If the
|
714
|
+
# number of mutations exceeds the limit, the server returns [INVALID_ARGUMENT](
|
715
|
+
# http://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.
|
716
|
+
# INVALID_ARGUMENT).
|
717
|
+
# Corresponds to the JSON property `mutationCount`
|
718
|
+
# @return [Fixnum]
|
719
|
+
attr_accessor :mutation_count
|
720
|
+
|
721
|
+
def initialize(**args)
|
722
|
+
update!(**args)
|
723
|
+
end
|
724
|
+
|
725
|
+
# Update properties of this object
|
726
|
+
def update!(**args)
|
727
|
+
@mutation_count = args[:mutation_count] if args.key?(:mutation_count)
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
675
731
|
# Metadata type for the operation returned by CreateBackup.
|
676
732
|
class CreateBackupMetadata
|
677
733
|
include Google::Apis::Core::Hashable
|
@@ -861,6 +917,12 @@ module Google
|
|
861
917
|
# @return [String]
|
862
918
|
attr_accessor :create_time
|
863
919
|
|
920
|
+
# Output only. Earliest timestamp at which older versions of the data can be
|
921
|
+
# read.
|
922
|
+
# Corresponds to the JSON property `earliestVersionTime`
|
923
|
+
# @return [String]
|
924
|
+
attr_accessor :earliest_version_time
|
925
|
+
|
864
926
|
# Required. The name of the database. Values are of the form `projects//
|
865
927
|
# instances//databases/`, where `` is as specified in the `CREATE DATABASE`
|
866
928
|
# statement. This name can be passed to other API methods to identify the
|
@@ -879,6 +941,13 @@ module Google
|
|
879
941
|
# @return [String]
|
880
942
|
attr_accessor :state
|
881
943
|
|
944
|
+
# Output only. The period in which Cloud Spanner retains all versions of data
|
945
|
+
# for the database. This is same as the value of version_retention_period
|
946
|
+
# database option set using UpdateDatabaseDdl. Defaults to 1 hour, if not set.
|
947
|
+
# Corresponds to the JSON property `versionRetentionPeriod`
|
948
|
+
# @return [String]
|
949
|
+
attr_accessor :version_retention_period
|
950
|
+
|
882
951
|
def initialize(**args)
|
883
952
|
update!(**args)
|
884
953
|
end
|
@@ -886,9 +955,11 @@ module Google
|
|
886
955
|
# Update properties of this object
|
887
956
|
def update!(**args)
|
888
957
|
@create_time = args[:create_time] if args.key?(:create_time)
|
958
|
+
@earliest_version_time = args[:earliest_version_time] if args.key?(:earliest_version_time)
|
889
959
|
@name = args[:name] if args.key?(:name)
|
890
960
|
@restore_info = args[:restore_info] if args.key?(:restore_info)
|
891
961
|
@state = args[:state] if args.key?(:state)
|
962
|
+
@version_retention_period = args[:version_retention_period] if args.key?(:version_retention_period)
|
892
963
|
end
|
893
964
|
end
|
894
965
|
|
@@ -1652,6 +1723,12 @@ module Google
|
|
1652
1723
|
# @return [String]
|
1653
1724
|
attr_accessor :next_page_token
|
1654
1725
|
|
1726
|
+
# The list of unreachable instances. It includes the names of instances whose
|
1727
|
+
# metadata could not be retrieved within instance_deadline.
|
1728
|
+
# Corresponds to the JSON property `unreachable`
|
1729
|
+
# @return [Array<String>]
|
1730
|
+
attr_accessor :unreachable
|
1731
|
+
|
1655
1732
|
def initialize(**args)
|
1656
1733
|
update!(**args)
|
1657
1734
|
end
|
@@ -1660,6 +1737,7 @@ module Google
|
|
1660
1737
|
def update!(**args)
|
1661
1738
|
@instances = args[:instances] if args.key?(:instances)
|
1662
1739
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1740
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1663
1741
|
end
|
1664
1742
|
end
|
1665
1743
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SpannerV1
|
18
18
|
# Version of the google-apis-spanner_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210123"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,12 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class CommitStats
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
79
85
|
class CreateBackupMetadata
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
@@ -518,6 +524,7 @@ module Google
|
|
518
524
|
collection :referencing_databases, as: 'referencingDatabases'
|
519
525
|
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
520
526
|
property :state, as: 'state'
|
527
|
+
property :version_time, as: 'versionTime'
|
521
528
|
end
|
522
529
|
end
|
523
530
|
|
@@ -527,6 +534,7 @@ module Google
|
|
527
534
|
property :backup, as: 'backup'
|
528
535
|
property :create_time, as: 'createTime'
|
529
536
|
property :source_database, as: 'sourceDatabase'
|
537
|
+
property :version_time, as: 'versionTime'
|
530
538
|
end
|
531
539
|
end
|
532
540
|
|
@@ -579,6 +587,7 @@ module Google
|
|
579
587
|
class Representation < Google::Apis::Core::JsonRepresentation
|
580
588
|
collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation
|
581
589
|
|
590
|
+
property :return_commit_stats, as: 'returnCommitStats'
|
582
591
|
property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
|
583
592
|
|
584
593
|
property :transaction_id, :base64 => true, as: 'transactionId'
|
@@ -588,10 +597,19 @@ module Google
|
|
588
597
|
class CommitResponse
|
589
598
|
# @private
|
590
599
|
class Representation < Google::Apis::Core::JsonRepresentation
|
600
|
+
property :commit_stats, as: 'commitStats', class: Google::Apis::SpannerV1::CommitStats, decorator: Google::Apis::SpannerV1::CommitStats::Representation
|
601
|
+
|
591
602
|
property :commit_timestamp, as: 'commitTimestamp'
|
592
603
|
end
|
593
604
|
end
|
594
605
|
|
606
|
+
class CommitStats
|
607
|
+
# @private
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
609
|
+
property :mutation_count, :numeric_string => true, as: 'mutationCount'
|
610
|
+
end
|
611
|
+
end
|
612
|
+
|
595
613
|
class CreateBackupMetadata
|
596
614
|
# @private
|
597
615
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -650,10 +668,12 @@ module Google
|
|
650
668
|
# @private
|
651
669
|
class Representation < Google::Apis::Core::JsonRepresentation
|
652
670
|
property :create_time, as: 'createTime'
|
671
|
+
property :earliest_version_time, as: 'earliestVersionTime'
|
653
672
|
property :name, as: 'name'
|
654
673
|
property :restore_info, as: 'restoreInfo', class: Google::Apis::SpannerV1::RestoreInfo, decorator: Google::Apis::SpannerV1::RestoreInfo::Representation
|
655
674
|
|
656
675
|
property :state, as: 'state'
|
676
|
+
property :version_retention_period, as: 'versionRetentionPeriod'
|
657
677
|
end
|
658
678
|
end
|
659
679
|
|
@@ -850,6 +870,7 @@ module Google
|
|
850
870
|
collection :instances, as: 'instances', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
|
851
871
|
|
852
872
|
property :next_page_token, as: 'nextPageToken'
|
873
|
+
collection :unreachable, as: 'unreachable'
|
853
874
|
end
|
854
875
|
end
|
855
876
|
|
@@ -290,6 +290,10 @@ module Google
|
|
290
290
|
# value of the label contains the string "dev". * `name:howl labels.env:dev` -->
|
291
291
|
# The instance's name contains "howl" and it has the label "env" with its value
|
292
292
|
# containing "dev".
|
293
|
+
# @param [String] instance_deadline
|
294
|
+
# Deadline used while retrieving metadata for instances. Instances whose
|
295
|
+
# metadata cannot be retrieved within this deadline will be added to unreachable
|
296
|
+
# in ListInstancesResponse.
|
293
297
|
# @param [Fixnum] page_size
|
294
298
|
# Number of instances to be returned in the response. If 0 or less, defaults to
|
295
299
|
# the server's maximum allowed page size.
|
@@ -313,12 +317,13 @@ module Google
|
|
313
317
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
314
318
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
319
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
|
-
def list_project_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
320
|
+
def list_project_instances(parent, filter: nil, instance_deadline: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
317
321
|
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
|
318
322
|
command.response_representation = Google::Apis::SpannerV1::ListInstancesResponse::Representation
|
319
323
|
command.response_class = Google::Apis::SpannerV1::ListInstancesResponse
|
320
324
|
command.params['parent'] = parent unless parent.nil?
|
321
325
|
command.query['filter'] = filter unless filter.nil?
|
326
|
+
command.query['instanceDeadline'] = instance_deadline unless instance_deadline.nil?
|
322
327
|
command.query['pageSize'] = page_size unless page_size.nil?
|
323
328
|
command.query['pageToken'] = page_token unless page_token.nil?
|
324
329
|
command.query['fields'] = fields unless fields.nil?
|
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.2.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-02-08 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.2.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.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Spanner API V1
|