google-apis-spanner_v1 0.7.0 → 0.12.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 +708 -5
- data/lib/google/apis/spanner_v1/gem_version.rb +3 -3
- data/lib/google/apis/spanner_v1/representations.rb +289 -0
- data/lib/google/apis/spanner_v1/service.rb +91 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d2fdc362ea9ccbcf33b9234e1128298167bfc5b681ed05c2b146892d4a12adf
|
4
|
+
data.tar.gz: 4652b768176472da6fa3742b6b947bed6682e460b85777c1f9ed569baa61dd58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6112ac00d9e5f291b543d05a8dc1e92dbfc4ec4af92d25f17b8897f933ba39cf6dfd5c1b7ef4d9b8e2f162c89e38486981dfb52059900b6e62810cbc073a1002
|
7
|
+
data.tar.gz: 3505dbe22c9c699c1bc9ad822fe1841498ea3e4a54bd6e39b05baf789988661f2af638fbffa2c984d9f7db2b72f45d9b53b1a953365f399e0ef061098b14e868
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-spanner_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-06-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210603
|
6
|
+
|
7
|
+
### v0.11.0 (2021-06-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210527
|
10
|
+
* Regenerated using generator version 0.3.0
|
11
|
+
|
12
|
+
### v0.10.0 (2021-05-22)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210517
|
15
|
+
* Unspecified changes
|
16
|
+
|
17
|
+
### v0.9.0 (2021-04-17)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20210405
|
20
|
+
|
21
|
+
### v0.8.0 (2021-04-01)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20210325
|
24
|
+
|
3
25
|
### v0.7.0 (2021-03-26)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20210318
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
#
|
33
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
|
36
36
|
# Administer your Spanner databases
|
@@ -727,11 +727,11 @@ module Google
|
|
727
727
|
# The total number of mutations for the transaction. Knowing the `mutation_count`
|
728
728
|
# value can help you maximize the number of mutations in a transaction and
|
729
729
|
# minimize the number of API round trips. You can also monitor this value to
|
730
|
-
# prevent transactions from exceeding the system [limit](
|
731
|
-
# spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). If
|
732
|
-
# number of mutations exceeds the limit, the server returns [
|
733
|
-
#
|
734
|
-
# INVALID_ARGUMENT).
|
730
|
+
# prevent transactions from exceeding the system [limit](https://cloud.google.
|
731
|
+
# com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). If
|
732
|
+
# the number of mutations exceeds the limit, the server returns [
|
733
|
+
# INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#
|
734
|
+
# ENUM_VALUES.INVALID_ARGUMENT).
|
735
735
|
# Corresponds to the JSON property `mutationCount`
|
736
736
|
# @return [Fixnum]
|
737
737
|
attr_accessor :mutation_count
|
@@ -746,6 +746,45 @@ module Google
|
|
746
746
|
end
|
747
747
|
end
|
748
748
|
|
749
|
+
# A message representing context for a KeyRangeInfo, including a label, value,
|
750
|
+
# unit, and severity.
|
751
|
+
class ContextValue
|
752
|
+
include Google::Apis::Core::Hashable
|
753
|
+
|
754
|
+
# A message representing a user-facing string whose value may need to be
|
755
|
+
# translated before being displayed.
|
756
|
+
# Corresponds to the JSON property `label`
|
757
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
758
|
+
attr_accessor :label
|
759
|
+
|
760
|
+
# The severity of this context.
|
761
|
+
# Corresponds to the JSON property `severity`
|
762
|
+
# @return [String]
|
763
|
+
attr_accessor :severity
|
764
|
+
|
765
|
+
# The unit of the context value.
|
766
|
+
# Corresponds to the JSON property `unit`
|
767
|
+
# @return [String]
|
768
|
+
attr_accessor :unit
|
769
|
+
|
770
|
+
# The value for the context.
|
771
|
+
# Corresponds to the JSON property `value`
|
772
|
+
# @return [Float]
|
773
|
+
attr_accessor :value
|
774
|
+
|
775
|
+
def initialize(**args)
|
776
|
+
update!(**args)
|
777
|
+
end
|
778
|
+
|
779
|
+
# Update properties of this object
|
780
|
+
def update!(**args)
|
781
|
+
@label = args[:label] if args.key?(:label)
|
782
|
+
@severity = args[:severity] if args.key?(:severity)
|
783
|
+
@unit = args[:unit] if args.key?(:unit)
|
784
|
+
@value = args[:value] if args.key?(:value)
|
785
|
+
end
|
786
|
+
end
|
787
|
+
|
749
788
|
# Metadata type for the operation returned by CreateBackup.
|
750
789
|
class CreateBackupMetadata
|
751
790
|
include Google::Apis::Core::Hashable
|
@@ -1036,6 +1075,85 @@ module Google
|
|
1036
1075
|
end
|
1037
1076
|
end
|
1038
1077
|
|
1078
|
+
# A message representing a derived metric.
|
1079
|
+
class DerivedMetric
|
1080
|
+
include Google::Apis::Core::Hashable
|
1081
|
+
|
1082
|
+
# A message representing a user-facing string whose value may need to be
|
1083
|
+
# translated before being displayed.
|
1084
|
+
# Corresponds to the JSON property `denominator`
|
1085
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1086
|
+
attr_accessor :denominator
|
1087
|
+
|
1088
|
+
# A message representing a user-facing string whose value may need to be
|
1089
|
+
# translated before being displayed.
|
1090
|
+
# Corresponds to the JSON property `numerator`
|
1091
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1092
|
+
attr_accessor :numerator
|
1093
|
+
|
1094
|
+
def initialize(**args)
|
1095
|
+
update!(**args)
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
# Update properties of this object
|
1099
|
+
def update!(**args)
|
1100
|
+
@denominator = args[:denominator] if args.key?(:denominator)
|
1101
|
+
@numerator = args[:numerator] if args.key?(:numerator)
|
1102
|
+
end
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# A message representing the key visualizer diagnostic messages.
|
1106
|
+
class DiagnosticMessage
|
1107
|
+
include Google::Apis::Core::Hashable
|
1108
|
+
|
1109
|
+
# A message representing a user-facing string whose value may need to be
|
1110
|
+
# translated before being displayed.
|
1111
|
+
# Corresponds to the JSON property `info`
|
1112
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1113
|
+
attr_accessor :info
|
1114
|
+
|
1115
|
+
# A message representing a user-facing string whose value may need to be
|
1116
|
+
# translated before being displayed.
|
1117
|
+
# Corresponds to the JSON property `metric`
|
1118
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1119
|
+
attr_accessor :metric
|
1120
|
+
|
1121
|
+
# Whether this message is specific only for the current metric. By default
|
1122
|
+
# Diagnostics are shown for all metrics, regardless which metric is the
|
1123
|
+
# currently selected metric in the UI. However occasionally a metric will
|
1124
|
+
# generate so many messages that the resulting visual clutter becomes
|
1125
|
+
# overwhelming. In this case setting this to true, will show the diagnostic
|
1126
|
+
# messages for that metric only if it is the currently selected metric.
|
1127
|
+
# Corresponds to the JSON property `metricSpecific`
|
1128
|
+
# @return [Boolean]
|
1129
|
+
attr_accessor :metric_specific
|
1130
|
+
alias_method :metric_specific?, :metric_specific
|
1131
|
+
|
1132
|
+
# The severity of the diagnostic message.
|
1133
|
+
# Corresponds to the JSON property `severity`
|
1134
|
+
# @return [String]
|
1135
|
+
attr_accessor :severity
|
1136
|
+
|
1137
|
+
# A message representing a user-facing string whose value may need to be
|
1138
|
+
# translated before being displayed.
|
1139
|
+
# Corresponds to the JSON property `shortMessage`
|
1140
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1141
|
+
attr_accessor :short_message
|
1142
|
+
|
1143
|
+
def initialize(**args)
|
1144
|
+
update!(**args)
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
# Update properties of this object
|
1148
|
+
def update!(**args)
|
1149
|
+
@info = args[:info] if args.key?(:info)
|
1150
|
+
@metric = args[:metric] if args.key?(:metric)
|
1151
|
+
@metric_specific = args[:metric_specific] if args.key?(:metric_specific)
|
1152
|
+
@severity = args[:severity] if args.key?(:severity)
|
1153
|
+
@short_message = args[:short_message] if args.key?(:short_message)
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1039
1157
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1040
1158
|
# messages in your APIs. A typical example is to use it as the request or the
|
1041
1159
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -1454,6 +1572,49 @@ module Google
|
|
1454
1572
|
end
|
1455
1573
|
end
|
1456
1574
|
|
1575
|
+
# A message representing a (sparse) collection of hot keys for specific key
|
1576
|
+
# buckets.
|
1577
|
+
class IndexedHotKey
|
1578
|
+
include Google::Apis::Core::Hashable
|
1579
|
+
|
1580
|
+
# A (sparse) mapping from key bucket index to the index of the specific hot row
|
1581
|
+
# key for that key bucket. The index of the hot row key can be translated to the
|
1582
|
+
# actual row key via the ScanData.VisualizationData.indexed_keys repeated field.
|
1583
|
+
# Corresponds to the JSON property `sparseHotKeys`
|
1584
|
+
# @return [Hash<String,Fixnum>]
|
1585
|
+
attr_accessor :sparse_hot_keys
|
1586
|
+
|
1587
|
+
def initialize(**args)
|
1588
|
+
update!(**args)
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
# Update properties of this object
|
1592
|
+
def update!(**args)
|
1593
|
+
@sparse_hot_keys = args[:sparse_hot_keys] if args.key?(:sparse_hot_keys)
|
1594
|
+
end
|
1595
|
+
end
|
1596
|
+
|
1597
|
+
# A message representing a (sparse) collection of KeyRangeInfos for specific key
|
1598
|
+
# buckets.
|
1599
|
+
class IndexedKeyRangeInfos
|
1600
|
+
include Google::Apis::Core::Hashable
|
1601
|
+
|
1602
|
+
# A (sparse) mapping from key bucket index to the KeyRangeInfos for that key
|
1603
|
+
# bucket.
|
1604
|
+
# Corresponds to the JSON property `keyRangeInfos`
|
1605
|
+
# @return [Hash<String,Google::Apis::SpannerV1::KeyRangeInfos>]
|
1606
|
+
attr_accessor :key_range_infos
|
1607
|
+
|
1608
|
+
def initialize(**args)
|
1609
|
+
update!(**args)
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
# Update properties of this object
|
1613
|
+
def update!(**args)
|
1614
|
+
@key_range_infos = args[:key_range_infos] if args.key?(:key_range_infos)
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
|
1457
1618
|
# An isolated set of Cloud Spanner resources on which databases can be hosted.
|
1458
1619
|
class Instance
|
1459
1620
|
include Google::Apis::Core::Hashable
|
@@ -1511,6 +1672,13 @@ module Google
|
|
1511
1672
|
# @return [Fixnum]
|
1512
1673
|
attr_accessor :node_count
|
1513
1674
|
|
1675
|
+
# The number of processing units allocated to this instance. At most one of
|
1676
|
+
# processing_units or node_count should be present in the message. This may be
|
1677
|
+
# zero in API responses for instances that are not yet in state `READY`.
|
1678
|
+
# Corresponds to the JSON property `processingUnits`
|
1679
|
+
# @return [Fixnum]
|
1680
|
+
attr_accessor :processing_units
|
1681
|
+
|
1514
1682
|
# Output only. The current instance state. For CreateInstance, the state must be
|
1515
1683
|
# either omitted or set to `CREATING`. For UpdateInstance, the state must be
|
1516
1684
|
# either omitted or set to `READY`.
|
@@ -1530,6 +1698,7 @@ module Google
|
|
1530
1698
|
@labels = args[:labels] if args.key?(:labels)
|
1531
1699
|
@name = args[:name] if args.key?(:name)
|
1532
1700
|
@node_count = args[:node_count] if args.key?(:node_count)
|
1701
|
+
@processing_units = args[:processing_units] if args.key?(:processing_units)
|
1533
1702
|
@state = args[:state] if args.key?(:state)
|
1534
1703
|
end
|
1535
1704
|
end
|
@@ -1642,6 +1811,97 @@ module Google
|
|
1642
1811
|
end
|
1643
1812
|
end
|
1644
1813
|
|
1814
|
+
# A message representing information for a key range (possibly one key).
|
1815
|
+
class KeyRangeInfo
|
1816
|
+
include Google::Apis::Core::Hashable
|
1817
|
+
|
1818
|
+
# The list of context values for this key range.
|
1819
|
+
# Corresponds to the JSON property `contextValues`
|
1820
|
+
# @return [Array<Google::Apis::SpannerV1::ContextValue>]
|
1821
|
+
attr_accessor :context_values
|
1822
|
+
|
1823
|
+
# The index of the end key in indexed_keys.
|
1824
|
+
# Corresponds to the JSON property `endKeyIndex`
|
1825
|
+
# @return [Fixnum]
|
1826
|
+
attr_accessor :end_key_index
|
1827
|
+
|
1828
|
+
# A message representing a user-facing string whose value may need to be
|
1829
|
+
# translated before being displayed.
|
1830
|
+
# Corresponds to the JSON property `info`
|
1831
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1832
|
+
attr_accessor :info
|
1833
|
+
|
1834
|
+
# The number of keys this range covers.
|
1835
|
+
# Corresponds to the JSON property `keysCount`
|
1836
|
+
# @return [Fixnum]
|
1837
|
+
attr_accessor :keys_count
|
1838
|
+
|
1839
|
+
# A message representing a user-facing string whose value may need to be
|
1840
|
+
# translated before being displayed.
|
1841
|
+
# Corresponds to the JSON property `metric`
|
1842
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1843
|
+
attr_accessor :metric
|
1844
|
+
|
1845
|
+
# The index of the start key in indexed_keys.
|
1846
|
+
# Corresponds to the JSON property `startKeyIndex`
|
1847
|
+
# @return [Fixnum]
|
1848
|
+
attr_accessor :start_key_index
|
1849
|
+
|
1850
|
+
# A message representing a user-facing string whose value may need to be
|
1851
|
+
# translated before being displayed.
|
1852
|
+
# Corresponds to the JSON property `unit`
|
1853
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
1854
|
+
attr_accessor :unit
|
1855
|
+
|
1856
|
+
# The value of the metric.
|
1857
|
+
# Corresponds to the JSON property `value`
|
1858
|
+
# @return [Float]
|
1859
|
+
attr_accessor :value
|
1860
|
+
|
1861
|
+
def initialize(**args)
|
1862
|
+
update!(**args)
|
1863
|
+
end
|
1864
|
+
|
1865
|
+
# Update properties of this object
|
1866
|
+
def update!(**args)
|
1867
|
+
@context_values = args[:context_values] if args.key?(:context_values)
|
1868
|
+
@end_key_index = args[:end_key_index] if args.key?(:end_key_index)
|
1869
|
+
@info = args[:info] if args.key?(:info)
|
1870
|
+
@keys_count = args[:keys_count] if args.key?(:keys_count)
|
1871
|
+
@metric = args[:metric] if args.key?(:metric)
|
1872
|
+
@start_key_index = args[:start_key_index] if args.key?(:start_key_index)
|
1873
|
+
@unit = args[:unit] if args.key?(:unit)
|
1874
|
+
@value = args[:value] if args.key?(:value)
|
1875
|
+
end
|
1876
|
+
end
|
1877
|
+
|
1878
|
+
# A message representing a list of specific information for multiple key ranges.
|
1879
|
+
class KeyRangeInfos
|
1880
|
+
include Google::Apis::Core::Hashable
|
1881
|
+
|
1882
|
+
# The list individual KeyRangeInfos.
|
1883
|
+
# Corresponds to the JSON property `infos`
|
1884
|
+
# @return [Array<Google::Apis::SpannerV1::KeyRangeInfo>]
|
1885
|
+
attr_accessor :infos
|
1886
|
+
|
1887
|
+
# The total size of the list of all KeyRangeInfos. This may be larger than the
|
1888
|
+
# number of repeated messages above. If that is the case, this number may be
|
1889
|
+
# used to determine how many are not being shown.
|
1890
|
+
# Corresponds to the JSON property `totalSize`
|
1891
|
+
# @return [Fixnum]
|
1892
|
+
attr_accessor :total_size
|
1893
|
+
|
1894
|
+
def initialize(**args)
|
1895
|
+
update!(**args)
|
1896
|
+
end
|
1897
|
+
|
1898
|
+
# Update properties of this object
|
1899
|
+
def update!(**args)
|
1900
|
+
@infos = args[:infos] if args.key?(:infos)
|
1901
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
1902
|
+
end
|
1903
|
+
end
|
1904
|
+
|
1645
1905
|
# `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All the
|
1646
1906
|
# keys are expected to be in the same table or index. The keys need not be
|
1647
1907
|
# sorted in any particular way. If the same key is specified multiple times in
|
@@ -1879,6 +2139,32 @@ module Google
|
|
1879
2139
|
end
|
1880
2140
|
end
|
1881
2141
|
|
2142
|
+
# Response method from the ListScans method.
|
2143
|
+
class ListScansResponse
|
2144
|
+
include Google::Apis::Core::Hashable
|
2145
|
+
|
2146
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
2147
|
+
# results in the list.
|
2148
|
+
# Corresponds to the JSON property `nextPageToken`
|
2149
|
+
# @return [String]
|
2150
|
+
attr_accessor :next_page_token
|
2151
|
+
|
2152
|
+
# Available scans based on the list query parameters.
|
2153
|
+
# Corresponds to the JSON property `scans`
|
2154
|
+
# @return [Array<Google::Apis::SpannerV1::Scan>]
|
2155
|
+
attr_accessor :scans
|
2156
|
+
|
2157
|
+
def initialize(**args)
|
2158
|
+
update!(**args)
|
2159
|
+
end
|
2160
|
+
|
2161
|
+
# Update properties of this object
|
2162
|
+
def update!(**args)
|
2163
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2164
|
+
@scans = args[:scans] if args.key?(:scans)
|
2165
|
+
end
|
2166
|
+
end
|
2167
|
+
|
1882
2168
|
# The response for ListSessions.
|
1883
2169
|
class ListSessionsResponse
|
1884
2170
|
include Google::Apis::Core::Hashable
|
@@ -1905,6 +2191,179 @@ module Google
|
|
1905
2191
|
end
|
1906
2192
|
end
|
1907
2193
|
|
2194
|
+
# A message representing a user-facing string whose value may need to be
|
2195
|
+
# translated before being displayed.
|
2196
|
+
class LocalizedString
|
2197
|
+
include Google::Apis::Core::Hashable
|
2198
|
+
|
2199
|
+
# A map of arguments used when creating the localized message. Keys represent
|
2200
|
+
# parameter names which may be used by the localized version when substituting
|
2201
|
+
# dynamic values.
|
2202
|
+
# Corresponds to the JSON property `args`
|
2203
|
+
# @return [Hash<String,String>]
|
2204
|
+
attr_accessor :args
|
2205
|
+
|
2206
|
+
# The canonical English version of this message. If no token is provided or the
|
2207
|
+
# front-end has no message associated with the token, this text will be
|
2208
|
+
# displayed as-is.
|
2209
|
+
# Corresponds to the JSON property `message`
|
2210
|
+
# @return [String]
|
2211
|
+
attr_accessor :message
|
2212
|
+
|
2213
|
+
# The token identifying the message, e.g. 'METRIC_READ_CPU'. This should be
|
2214
|
+
# unique within the service.
|
2215
|
+
# Corresponds to the JSON property `token`
|
2216
|
+
# @return [String]
|
2217
|
+
attr_accessor :token
|
2218
|
+
|
2219
|
+
def initialize(**args)
|
2220
|
+
update!(**args)
|
2221
|
+
end
|
2222
|
+
|
2223
|
+
# Update properties of this object
|
2224
|
+
def update!(**args)
|
2225
|
+
@args = args[:args] if args.key?(:args)
|
2226
|
+
@message = args[:message] if args.key?(:message)
|
2227
|
+
@token = args[:token] if args.key?(:token)
|
2228
|
+
end
|
2229
|
+
end
|
2230
|
+
|
2231
|
+
# A message representing the actual monitoring data, values for each key bucket
|
2232
|
+
# over time, of a metric.
|
2233
|
+
class Metric
|
2234
|
+
include Google::Apis::Core::Hashable
|
2235
|
+
|
2236
|
+
# The aggregation function used to aggregate each key bucket
|
2237
|
+
# Corresponds to the JSON property `aggregation`
|
2238
|
+
# @return [String]
|
2239
|
+
attr_accessor :aggregation
|
2240
|
+
|
2241
|
+
# A message representing a user-facing string whose value may need to be
|
2242
|
+
# translated before being displayed.
|
2243
|
+
# Corresponds to the JSON property `category`
|
2244
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
2245
|
+
attr_accessor :category
|
2246
|
+
|
2247
|
+
# A message representing a derived metric.
|
2248
|
+
# Corresponds to the JSON property `derived`
|
2249
|
+
# @return [Google::Apis::SpannerV1::DerivedMetric]
|
2250
|
+
attr_accessor :derived
|
2251
|
+
|
2252
|
+
# A message representing a user-facing string whose value may need to be
|
2253
|
+
# translated before being displayed.
|
2254
|
+
# Corresponds to the JSON property `displayLabel`
|
2255
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
2256
|
+
attr_accessor :display_label
|
2257
|
+
|
2258
|
+
# Whether the metric has any non-zero data.
|
2259
|
+
# Corresponds to the JSON property `hasNonzeroData`
|
2260
|
+
# @return [Boolean]
|
2261
|
+
attr_accessor :has_nonzero_data
|
2262
|
+
alias_method :has_nonzero_data?, :has_nonzero_data
|
2263
|
+
|
2264
|
+
# The value that is considered hot for the metric. On a per metric basis hotness
|
2265
|
+
# signals high utilization and something that might potentially be a cause for
|
2266
|
+
# concern by the end user. hot_value is used to calibrate and scale visual color
|
2267
|
+
# scales.
|
2268
|
+
# Corresponds to the JSON property `hotValue`
|
2269
|
+
# @return [Float]
|
2270
|
+
attr_accessor :hot_value
|
2271
|
+
|
2272
|
+
# The (sparse) mapping from time index to an IndexedHotKey message, representing
|
2273
|
+
# those time intervals for which there are hot keys.
|
2274
|
+
# Corresponds to the JSON property `indexedHotKeys`
|
2275
|
+
# @return [Hash<String,Google::Apis::SpannerV1::IndexedHotKey>]
|
2276
|
+
attr_accessor :indexed_hot_keys
|
2277
|
+
|
2278
|
+
# The (sparse) mapping from time interval index to an IndexedKeyRangeInfos
|
2279
|
+
# message, representing those time intervals for which there are informational
|
2280
|
+
# messages concerning key ranges.
|
2281
|
+
# Corresponds to the JSON property `indexedKeyRangeInfos`
|
2282
|
+
# @return [Hash<String,Google::Apis::SpannerV1::IndexedKeyRangeInfos>]
|
2283
|
+
attr_accessor :indexed_key_range_infos
|
2284
|
+
|
2285
|
+
# A message representing a user-facing string whose value may need to be
|
2286
|
+
# translated before being displayed.
|
2287
|
+
# Corresponds to the JSON property `info`
|
2288
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
2289
|
+
attr_accessor :info
|
2290
|
+
|
2291
|
+
# A message representing a matrix of floats.
|
2292
|
+
# Corresponds to the JSON property `matrix`
|
2293
|
+
# @return [Google::Apis::SpannerV1::MetricMatrix]
|
2294
|
+
attr_accessor :matrix
|
2295
|
+
|
2296
|
+
# A message representing a user-facing string whose value may need to be
|
2297
|
+
# translated before being displayed.
|
2298
|
+
# Corresponds to the JSON property `unit`
|
2299
|
+
# @return [Google::Apis::SpannerV1::LocalizedString]
|
2300
|
+
attr_accessor :unit
|
2301
|
+
|
2302
|
+
# Whether the metric is visible to the end user.
|
2303
|
+
# Corresponds to the JSON property `visible`
|
2304
|
+
# @return [Boolean]
|
2305
|
+
attr_accessor :visible
|
2306
|
+
alias_method :visible?, :visible
|
2307
|
+
|
2308
|
+
def initialize(**args)
|
2309
|
+
update!(**args)
|
2310
|
+
end
|
2311
|
+
|
2312
|
+
# Update properties of this object
|
2313
|
+
def update!(**args)
|
2314
|
+
@aggregation = args[:aggregation] if args.key?(:aggregation)
|
2315
|
+
@category = args[:category] if args.key?(:category)
|
2316
|
+
@derived = args[:derived] if args.key?(:derived)
|
2317
|
+
@display_label = args[:display_label] if args.key?(:display_label)
|
2318
|
+
@has_nonzero_data = args[:has_nonzero_data] if args.key?(:has_nonzero_data)
|
2319
|
+
@hot_value = args[:hot_value] if args.key?(:hot_value)
|
2320
|
+
@indexed_hot_keys = args[:indexed_hot_keys] if args.key?(:indexed_hot_keys)
|
2321
|
+
@indexed_key_range_infos = args[:indexed_key_range_infos] if args.key?(:indexed_key_range_infos)
|
2322
|
+
@info = args[:info] if args.key?(:info)
|
2323
|
+
@matrix = args[:matrix] if args.key?(:matrix)
|
2324
|
+
@unit = args[:unit] if args.key?(:unit)
|
2325
|
+
@visible = args[:visible] if args.key?(:visible)
|
2326
|
+
end
|
2327
|
+
end
|
2328
|
+
|
2329
|
+
# A message representing a matrix of floats.
|
2330
|
+
class MetricMatrix
|
2331
|
+
include Google::Apis::Core::Hashable
|
2332
|
+
|
2333
|
+
# The rows of the matrix.
|
2334
|
+
# Corresponds to the JSON property `rows`
|
2335
|
+
# @return [Array<Google::Apis::SpannerV1::MetricMatrixRow>]
|
2336
|
+
attr_accessor :rows
|
2337
|
+
|
2338
|
+
def initialize(**args)
|
2339
|
+
update!(**args)
|
2340
|
+
end
|
2341
|
+
|
2342
|
+
# Update properties of this object
|
2343
|
+
def update!(**args)
|
2344
|
+
@rows = args[:rows] if args.key?(:rows)
|
2345
|
+
end
|
2346
|
+
end
|
2347
|
+
|
2348
|
+
# A message representing a row of a matrix of floats.
|
2349
|
+
class MetricMatrixRow
|
2350
|
+
include Google::Apis::Core::Hashable
|
2351
|
+
|
2352
|
+
# The columns of the row.
|
2353
|
+
# Corresponds to the JSON property `cols`
|
2354
|
+
# @return [Array<Float>]
|
2355
|
+
attr_accessor :cols
|
2356
|
+
|
2357
|
+
def initialize(**args)
|
2358
|
+
update!(**args)
|
2359
|
+
end
|
2360
|
+
|
2361
|
+
# Update properties of this object
|
2362
|
+
def update!(**args)
|
2363
|
+
@cols = args[:cols] if args.key?(:cols)
|
2364
|
+
end
|
2365
|
+
end
|
2366
|
+
|
1908
2367
|
# A modification to one or more Cloud Spanner rows. Mutations can be applied to
|
1909
2368
|
# a Cloud Spanner database by sending them in a Commit call.
|
1910
2369
|
class Mutation
|
@@ -2513,6 +2972,55 @@ module Google
|
|
2513
2972
|
end
|
2514
2973
|
end
|
2515
2974
|
|
2975
|
+
# A message representing a key prefix node in the key prefix hierarchy. for eg.
|
2976
|
+
# Bigtable keyspaces are lexicographically ordered mappings of keys to values.
|
2977
|
+
# Keys often have a shared prefix structure where users use the keys to organize
|
2978
|
+
# data. Eg ///employee In this case Keysight will possibly use one node for a
|
2979
|
+
# company and reuse it for all employees that fall under the company. Doing so
|
2980
|
+
# improves legibility in the UI.
|
2981
|
+
class PrefixNode
|
2982
|
+
include Google::Apis::Core::Hashable
|
2983
|
+
|
2984
|
+
# Whether this corresponds to a data_source name.
|
2985
|
+
# Corresponds to the JSON property `dataSourceNode`
|
2986
|
+
# @return [Boolean]
|
2987
|
+
attr_accessor :data_source_node
|
2988
|
+
alias_method :data_source_node?, :data_source_node
|
2989
|
+
|
2990
|
+
# The depth in the prefix hierarchy.
|
2991
|
+
# Corresponds to the JSON property `depth`
|
2992
|
+
# @return [Fixnum]
|
2993
|
+
attr_accessor :depth
|
2994
|
+
|
2995
|
+
# The index of the end key bucket of the range that this node spans.
|
2996
|
+
# Corresponds to the JSON property `endIndex`
|
2997
|
+
# @return [Fixnum]
|
2998
|
+
attr_accessor :end_index
|
2999
|
+
|
3000
|
+
# The index of the start key bucket of the range that this node spans.
|
3001
|
+
# Corresponds to the JSON property `startIndex`
|
3002
|
+
# @return [Fixnum]
|
3003
|
+
attr_accessor :start_index
|
3004
|
+
|
3005
|
+
# The string represented by the prefix node.
|
3006
|
+
# Corresponds to the JSON property `word`
|
3007
|
+
# @return [String]
|
3008
|
+
attr_accessor :word
|
3009
|
+
|
3010
|
+
def initialize(**args)
|
3011
|
+
update!(**args)
|
3012
|
+
end
|
3013
|
+
|
3014
|
+
# Update properties of this object
|
3015
|
+
def update!(**args)
|
3016
|
+
@data_source_node = args[:data_source_node] if args.key?(:data_source_node)
|
3017
|
+
@depth = args[:depth] if args.key?(:depth)
|
3018
|
+
@end_index = args[:end_index] if args.key?(:end_index)
|
3019
|
+
@start_index = args[:start_index] if args.key?(:start_index)
|
3020
|
+
@word = args[:word] if args.key?(:word)
|
3021
|
+
end
|
3022
|
+
end
|
3023
|
+
|
2516
3024
|
# Query optimizer configuration.
|
2517
3025
|
class QueryOptions
|
2518
3026
|
include Google::Apis::Core::Hashable
|
@@ -2799,6 +3307,29 @@ module Google
|
|
2799
3307
|
# @return [String]
|
2800
3308
|
attr_accessor :priority
|
2801
3309
|
|
3310
|
+
# A per-request tag which can be applied to queries or reads, used for
|
3311
|
+
# statistics collection. Both request_tag and transaction_tag can be specified
|
3312
|
+
# for a read or query that belongs to a transaction. This field is ignored for
|
3313
|
+
# requests where it's not applicable (e.g. CommitRequest). Legal characters for `
|
3314
|
+
# request_tag` values are all printable characters (ASCII 32 - 126) and the
|
3315
|
+
# length of a request_tag is limited to 50 characters. Values that exceed this
|
3316
|
+
# limit are truncated.
|
3317
|
+
# Corresponds to the JSON property `requestTag`
|
3318
|
+
# @return [String]
|
3319
|
+
attr_accessor :request_tag
|
3320
|
+
|
3321
|
+
# A tag used for statistics collection about this transaction. Both request_tag
|
3322
|
+
# and transaction_tag can be specified for a read or query that belongs to a
|
3323
|
+
# transaction. The value of transaction_tag should be the same for all requests
|
3324
|
+
# belonging to the same transaction. If this request doesn’t belong to any
|
3325
|
+
# transaction, transaction_tag will be ignored. Legal characters for `
|
3326
|
+
# transaction_tag` values are all printable characters (ASCII 32 - 126) and the
|
3327
|
+
# length of a transaction_tag is limited to 50 characters. Values that exceed
|
3328
|
+
# this limit are truncated.
|
3329
|
+
# Corresponds to the JSON property `transactionTag`
|
3330
|
+
# @return [String]
|
3331
|
+
attr_accessor :transaction_tag
|
3332
|
+
|
2802
3333
|
def initialize(**args)
|
2803
3334
|
update!(**args)
|
2804
3335
|
end
|
@@ -2806,6 +3337,8 @@ module Google
|
|
2806
3337
|
# Update properties of this object
|
2807
3338
|
def update!(**args)
|
2808
3339
|
@priority = args[:priority] if args.key?(:priority)
|
3340
|
+
@request_tag = args[:request_tag] if args.key?(:request_tag)
|
3341
|
+
@transaction_tag = args[:transaction_tag] if args.key?(:transaction_tag)
|
2809
3342
|
end
|
2810
3343
|
end
|
2811
3344
|
|
@@ -3079,6 +3612,87 @@ module Google
|
|
3079
3612
|
end
|
3080
3613
|
end
|
3081
3614
|
|
3615
|
+
# Scan is a structure which describes Cloud Key Visualizer scan information.
|
3616
|
+
class Scan
|
3617
|
+
include Google::Apis::Core::Hashable
|
3618
|
+
|
3619
|
+
# Additional information provided by the implementer.
|
3620
|
+
# Corresponds to the JSON property `details`
|
3621
|
+
# @return [Hash<String,Object>]
|
3622
|
+
attr_accessor :details
|
3623
|
+
|
3624
|
+
# The upper bound for when the scan is defined.
|
3625
|
+
# Corresponds to the JSON property `endTime`
|
3626
|
+
# @return [String]
|
3627
|
+
attr_accessor :end_time
|
3628
|
+
|
3629
|
+
# The unique name of the scan, specific to the Database service implementing
|
3630
|
+
# this interface.
|
3631
|
+
# Corresponds to the JSON property `name`
|
3632
|
+
# @return [String]
|
3633
|
+
attr_accessor :name
|
3634
|
+
|
3635
|
+
# ScanData contains Cloud Key Visualizer scan data used by the caller to
|
3636
|
+
# construct a visualization.
|
3637
|
+
# Corresponds to the JSON property `scanData`
|
3638
|
+
# @return [Google::Apis::SpannerV1::ScanData]
|
3639
|
+
attr_accessor :scan_data
|
3640
|
+
|
3641
|
+
# A range of time (inclusive) for when the scan is defined. The lower bound for
|
3642
|
+
# when the scan is defined.
|
3643
|
+
# Corresponds to the JSON property `startTime`
|
3644
|
+
# @return [String]
|
3645
|
+
attr_accessor :start_time
|
3646
|
+
|
3647
|
+
def initialize(**args)
|
3648
|
+
update!(**args)
|
3649
|
+
end
|
3650
|
+
|
3651
|
+
# Update properties of this object
|
3652
|
+
def update!(**args)
|
3653
|
+
@details = args[:details] if args.key?(:details)
|
3654
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
3655
|
+
@name = args[:name] if args.key?(:name)
|
3656
|
+
@scan_data = args[:scan_data] if args.key?(:scan_data)
|
3657
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
3658
|
+
end
|
3659
|
+
end
|
3660
|
+
|
3661
|
+
# ScanData contains Cloud Key Visualizer scan data used by the caller to
|
3662
|
+
# construct a visualization.
|
3663
|
+
class ScanData
|
3664
|
+
include Google::Apis::Core::Hashable
|
3665
|
+
|
3666
|
+
# Cloud Key Visualizer scan data. The range of time this information covers is
|
3667
|
+
# captured via the above time range fields. Note, this field is not available to
|
3668
|
+
# the ListScans method.
|
3669
|
+
# Corresponds to the JSON property `data`
|
3670
|
+
# @return [Google::Apis::SpannerV1::VisualizationData]
|
3671
|
+
attr_accessor :data
|
3672
|
+
|
3673
|
+
# The upper bound for when the contained data is defined.
|
3674
|
+
# Corresponds to the JSON property `endTime`
|
3675
|
+
# @return [String]
|
3676
|
+
attr_accessor :end_time
|
3677
|
+
|
3678
|
+
# A range of time (inclusive) for when the contained data is defined. The lower
|
3679
|
+
# bound for when the contained data is defined.
|
3680
|
+
# Corresponds to the JSON property `startTime`
|
3681
|
+
# @return [String]
|
3682
|
+
attr_accessor :start_time
|
3683
|
+
|
3684
|
+
def initialize(**args)
|
3685
|
+
update!(**args)
|
3686
|
+
end
|
3687
|
+
|
3688
|
+
# Update properties of this object
|
3689
|
+
def update!(**args)
|
3690
|
+
@data = args[:data] if args.key?(:data)
|
3691
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
3692
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
3693
|
+
end
|
3694
|
+
end
|
3695
|
+
|
3082
3696
|
# A session in the Cloud Spanner API.
|
3083
3697
|
class Session
|
3084
3698
|
include Google::Apis::Core::Hashable
|
@@ -3957,6 +4571,16 @@ module Google
|
|
3957
4571
|
# @return [String]
|
3958
4572
|
attr_accessor :database
|
3959
4573
|
|
4574
|
+
# The progress of the UpdateDatabaseDdl operations. Currently, only index
|
4575
|
+
# creation statements will have a continuously updating progress. For non-index
|
4576
|
+
# creation statements, `progress[i]` will have start time and end time populated
|
4577
|
+
# with commit timestamp of operation, as well as a progress of 100% once the
|
4578
|
+
# operation has completed. `progress[i]` is the operation progress for `
|
4579
|
+
# statements[i]`.
|
4580
|
+
# Corresponds to the JSON property `progress`
|
4581
|
+
# @return [Array<Google::Apis::SpannerV1::OperationProgress>]
|
4582
|
+
attr_accessor :progress
|
4583
|
+
|
3960
4584
|
# For an update this list contains all the statements. For an individual
|
3961
4585
|
# statement, this list contains only that statement.
|
3962
4586
|
# Corresponds to the JSON property `statements`
|
@@ -3979,6 +4603,7 @@ module Google
|
|
3979
4603
|
def update!(**args)
|
3980
4604
|
@commit_timestamps = args[:commit_timestamps] if args.key?(:commit_timestamps)
|
3981
4605
|
@database = args[:database] if args.key?(:database)
|
4606
|
+
@progress = args[:progress] if args.key?(:progress)
|
3982
4607
|
@statements = args[:statements] if args.key?(:statements)
|
3983
4608
|
@throttled = args[:throttled] if args.key?(:throttled)
|
3984
4609
|
end
|
@@ -4094,6 +4719,84 @@ module Google
|
|
4094
4719
|
end
|
4095
4720
|
end
|
4096
4721
|
|
4722
|
+
#
|
4723
|
+
class VisualizationData
|
4724
|
+
include Google::Apis::Core::Hashable
|
4725
|
+
|
4726
|
+
# The token signifying the end of a data_source.
|
4727
|
+
# Corresponds to the JSON property `dataSourceEndToken`
|
4728
|
+
# @return [String]
|
4729
|
+
attr_accessor :data_source_end_token
|
4730
|
+
|
4731
|
+
# The token delimiting a datasource name from the rest of a key in a data_source.
|
4732
|
+
# Corresponds to the JSON property `dataSourceSeparatorToken`
|
4733
|
+
# @return [String]
|
4734
|
+
attr_accessor :data_source_separator_token
|
4735
|
+
|
4736
|
+
# The list of messages (info, alerts, ...)
|
4737
|
+
# Corresponds to the JSON property `diagnosticMessages`
|
4738
|
+
# @return [Array<Google::Apis::SpannerV1::DiagnosticMessage>]
|
4739
|
+
attr_accessor :diagnostic_messages
|
4740
|
+
|
4741
|
+
# We discretize the entire keyspace into buckets. Assuming each bucket has an
|
4742
|
+
# inclusive keyrange and covers keys from k(i) ... k(n). In this case k(n) would
|
4743
|
+
# be an end key for a given range. end_key_string is the collection of all such
|
4744
|
+
# end keys
|
4745
|
+
# Corresponds to the JSON property `endKeyStrings`
|
4746
|
+
# @return [Array<String>]
|
4747
|
+
attr_accessor :end_key_strings
|
4748
|
+
|
4749
|
+
# Whether this scan contains PII.
|
4750
|
+
# Corresponds to the JSON property `hasPii`
|
4751
|
+
# @return [Boolean]
|
4752
|
+
attr_accessor :has_pii
|
4753
|
+
alias_method :has_pii?, :has_pii
|
4754
|
+
|
4755
|
+
# Keys of key ranges that contribute significantly to a given metric Can be
|
4756
|
+
# thought of as heavy hitters.
|
4757
|
+
# Corresponds to the JSON property `indexedKeys`
|
4758
|
+
# @return [Array<String>]
|
4759
|
+
attr_accessor :indexed_keys
|
4760
|
+
|
4761
|
+
# The token delimiting the key prefixes.
|
4762
|
+
# Corresponds to the JSON property `keySeparator`
|
4763
|
+
# @return [String]
|
4764
|
+
attr_accessor :key_separator
|
4765
|
+
|
4766
|
+
# The unit for the key: e.g. 'key' or 'chunk'.
|
4767
|
+
# Corresponds to the JSON property `keyUnit`
|
4768
|
+
# @return [String]
|
4769
|
+
attr_accessor :key_unit
|
4770
|
+
|
4771
|
+
# The list of data objects for each metric.
|
4772
|
+
# Corresponds to the JSON property `metrics`
|
4773
|
+
# @return [Array<Google::Apis::SpannerV1::Metric>]
|
4774
|
+
attr_accessor :metrics
|
4775
|
+
|
4776
|
+
# The list of extracted key prefix nodes used in the key prefix hierarchy.
|
4777
|
+
# Corresponds to the JSON property `prefixNodes`
|
4778
|
+
# @return [Array<Google::Apis::SpannerV1::PrefixNode>]
|
4779
|
+
attr_accessor :prefix_nodes
|
4780
|
+
|
4781
|
+
def initialize(**args)
|
4782
|
+
update!(**args)
|
4783
|
+
end
|
4784
|
+
|
4785
|
+
# Update properties of this object
|
4786
|
+
def update!(**args)
|
4787
|
+
@data_source_end_token = args[:data_source_end_token] if args.key?(:data_source_end_token)
|
4788
|
+
@data_source_separator_token = args[:data_source_separator_token] if args.key?(:data_source_separator_token)
|
4789
|
+
@diagnostic_messages = args[:diagnostic_messages] if args.key?(:diagnostic_messages)
|
4790
|
+
@end_key_strings = args[:end_key_strings] if args.key?(:end_key_strings)
|
4791
|
+
@has_pii = args[:has_pii] if args.key?(:has_pii)
|
4792
|
+
@indexed_keys = args[:indexed_keys] if args.key?(:indexed_keys)
|
4793
|
+
@key_separator = args[:key_separator] if args.key?(:key_separator)
|
4794
|
+
@key_unit = args[:key_unit] if args.key?(:key_unit)
|
4795
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
4796
|
+
@prefix_nodes = args[:prefix_nodes] if args.key?(:prefix_nodes)
|
4797
|
+
end
|
4798
|
+
end
|
4799
|
+
|
4097
4800
|
# Arguments to insert, update, insert_or_update, and replace operations.
|
4098
4801
|
class Write
|
4099
4802
|
include Google::Apis::Core::Hashable
|