google-apis-spanner_v1 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1243dcf90ea82fda1dae00b5a98f84e653b2610e887b6633aac5b573249cc70
4
- data.tar.gz: f0db958321c5009cac506b1ee4fb9e798020ce6de390e8283ec354c27812781e
3
+ metadata.gz: 9d298077ac6791fa4a61e2f2b6b65cf07ca365a438e5fdf3855201908a636e81
4
+ data.tar.gz: 73dd1e17d5cef167fc75816ea0306c93607ca71faf5802978d0260c46bb6f685
5
5
  SHA512:
6
- metadata.gz: '01860fbbfdb61ed4fb3da58328c6ab11769097d7ca2d52dbc5234eecb147fef348920a724138f6918d65c8e7bdbffd717fde36ee51e39a14d836f1324ede17aa'
7
- data.tar.gz: bf892f11e0fa5beac035efccbb672c87d0a18d6de49c0fe0a0dbd1890a1c4a4ed0f9bb4c74ba52adb07d2e4227c09b49fb4847413ff8e4f3ba55f3d507d563d6
6
+ metadata.gz: 3babd3de3ba956c13eba380f71fcc2deedbdeb038214ad2a3f1a88be08b68a7c103daf6f0ee45478bf0cf6a9f718b774284ca4d5d7e352b2adfc8b92e49d5c12
7
+ data.tar.gz: f7bd4236ac9abc7b6e87f70de14c0c66505bb703ca5ce4ef622a0a5accd482a7dbc05fa14fa6bb22553352fda8d38fcf334a8a88c5729a7d6499679e73d35374
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.10.0 (2021-05-22)
4
+
5
+ * Regenerated from discovery document revision 20210517
6
+ * Unspecified changes
7
+
3
8
  ### v0.9.0 (2021-04-17)
4
9
 
5
10
  * Regenerated from discovery document revision 20210405
@@ -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
@@ -1642,6 +1803,97 @@ module Google
1642
1803
  end
1643
1804
  end
1644
1805
 
1806
+ # A message representing information for a key range (possibly one key).
1807
+ class KeyRangeInfo
1808
+ include Google::Apis::Core::Hashable
1809
+
1810
+ # The list of context values for this key range.
1811
+ # Corresponds to the JSON property `contextValues`
1812
+ # @return [Array<Google::Apis::SpannerV1::ContextValue>]
1813
+ attr_accessor :context_values
1814
+
1815
+ # The index of the end key in indexed_keys.
1816
+ # Corresponds to the JSON property `endKeyIndex`
1817
+ # @return [Fixnum]
1818
+ attr_accessor :end_key_index
1819
+
1820
+ # A message representing a user-facing string whose value may need to be
1821
+ # translated before being displayed.
1822
+ # Corresponds to the JSON property `info`
1823
+ # @return [Google::Apis::SpannerV1::LocalizedString]
1824
+ attr_accessor :info
1825
+
1826
+ # The number of keys this range covers.
1827
+ # Corresponds to the JSON property `keysCount`
1828
+ # @return [Fixnum]
1829
+ attr_accessor :keys_count
1830
+
1831
+ # A message representing a user-facing string whose value may need to be
1832
+ # translated before being displayed.
1833
+ # Corresponds to the JSON property `metric`
1834
+ # @return [Google::Apis::SpannerV1::LocalizedString]
1835
+ attr_accessor :metric
1836
+
1837
+ # The index of the start key in indexed_keys.
1838
+ # Corresponds to the JSON property `startKeyIndex`
1839
+ # @return [Fixnum]
1840
+ attr_accessor :start_key_index
1841
+
1842
+ # A message representing a user-facing string whose value may need to be
1843
+ # translated before being displayed.
1844
+ # Corresponds to the JSON property `unit`
1845
+ # @return [Google::Apis::SpannerV1::LocalizedString]
1846
+ attr_accessor :unit
1847
+
1848
+ # The value of the metric.
1849
+ # Corresponds to the JSON property `value`
1850
+ # @return [Float]
1851
+ attr_accessor :value
1852
+
1853
+ def initialize(**args)
1854
+ update!(**args)
1855
+ end
1856
+
1857
+ # Update properties of this object
1858
+ def update!(**args)
1859
+ @context_values = args[:context_values] if args.key?(:context_values)
1860
+ @end_key_index = args[:end_key_index] if args.key?(:end_key_index)
1861
+ @info = args[:info] if args.key?(:info)
1862
+ @keys_count = args[:keys_count] if args.key?(:keys_count)
1863
+ @metric = args[:metric] if args.key?(:metric)
1864
+ @start_key_index = args[:start_key_index] if args.key?(:start_key_index)
1865
+ @unit = args[:unit] if args.key?(:unit)
1866
+ @value = args[:value] if args.key?(:value)
1867
+ end
1868
+ end
1869
+
1870
+ # A message representing a list of specific information for multiple key ranges.
1871
+ class KeyRangeInfos
1872
+ include Google::Apis::Core::Hashable
1873
+
1874
+ # The list individual KeyRangeInfos.
1875
+ # Corresponds to the JSON property `infos`
1876
+ # @return [Array<Google::Apis::SpannerV1::KeyRangeInfo>]
1877
+ attr_accessor :infos
1878
+
1879
+ # The total size of the list of all KeyRangeInfos. This may be larger than the
1880
+ # number of repeated messages above. If that is the case, this number may be
1881
+ # used to determine how many are not being shown.
1882
+ # Corresponds to the JSON property `totalSize`
1883
+ # @return [Fixnum]
1884
+ attr_accessor :total_size
1885
+
1886
+ def initialize(**args)
1887
+ update!(**args)
1888
+ end
1889
+
1890
+ # Update properties of this object
1891
+ def update!(**args)
1892
+ @infos = args[:infos] if args.key?(:infos)
1893
+ @total_size = args[:total_size] if args.key?(:total_size)
1894
+ end
1895
+ end
1896
+
1645
1897
  # `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All the
1646
1898
  # keys are expected to be in the same table or index. The keys need not be
1647
1899
  # sorted in any particular way. If the same key is specified multiple times in
@@ -1879,6 +2131,32 @@ module Google
1879
2131
  end
1880
2132
  end
1881
2133
 
2134
+ # Response method from the ListScans method.
2135
+ class ListScansResponse
2136
+ include Google::Apis::Core::Hashable
2137
+
2138
+ # Token to retrieve the next page of results, or empty if there are no more
2139
+ # results in the list.
2140
+ # Corresponds to the JSON property `nextPageToken`
2141
+ # @return [String]
2142
+ attr_accessor :next_page_token
2143
+
2144
+ # Available scans based on the list query parameters.
2145
+ # Corresponds to the JSON property `scans`
2146
+ # @return [Array<Google::Apis::SpannerV1::Scan>]
2147
+ attr_accessor :scans
2148
+
2149
+ def initialize(**args)
2150
+ update!(**args)
2151
+ end
2152
+
2153
+ # Update properties of this object
2154
+ def update!(**args)
2155
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2156
+ @scans = args[:scans] if args.key?(:scans)
2157
+ end
2158
+ end
2159
+
1882
2160
  # The response for ListSessions.
1883
2161
  class ListSessionsResponse
1884
2162
  include Google::Apis::Core::Hashable
@@ -1905,6 +2183,179 @@ module Google
1905
2183
  end
1906
2184
  end
1907
2185
 
2186
+ # A message representing a user-facing string whose value may need to be
2187
+ # translated before being displayed.
2188
+ class LocalizedString
2189
+ include Google::Apis::Core::Hashable
2190
+
2191
+ # A map of arguments used when creating the localized message. Keys represent
2192
+ # parameter names which may be used by the localized version when substituting
2193
+ # dynamic values.
2194
+ # Corresponds to the JSON property `args`
2195
+ # @return [Hash<String,String>]
2196
+ attr_accessor :args
2197
+
2198
+ # The canonical English version of this message. If no token is provided or the
2199
+ # front-end has no message associated with the token, this text will be
2200
+ # displayed as-is.
2201
+ # Corresponds to the JSON property `message`
2202
+ # @return [String]
2203
+ attr_accessor :message
2204
+
2205
+ # The token identifying the message, e.g. 'METRIC_READ_CPU'. This should be
2206
+ # unique within the service.
2207
+ # Corresponds to the JSON property `token`
2208
+ # @return [String]
2209
+ attr_accessor :token
2210
+
2211
+ def initialize(**args)
2212
+ update!(**args)
2213
+ end
2214
+
2215
+ # Update properties of this object
2216
+ def update!(**args)
2217
+ @args = args[:args] if args.key?(:args)
2218
+ @message = args[:message] if args.key?(:message)
2219
+ @token = args[:token] if args.key?(:token)
2220
+ end
2221
+ end
2222
+
2223
+ # A message representing the actual monitoring data, values for each key bucket
2224
+ # over time, of a metric.
2225
+ class Metric
2226
+ include Google::Apis::Core::Hashable
2227
+
2228
+ # The aggregation function used to aggregate each key bucket
2229
+ # Corresponds to the JSON property `aggregation`
2230
+ # @return [String]
2231
+ attr_accessor :aggregation
2232
+
2233
+ # A message representing a user-facing string whose value may need to be
2234
+ # translated before being displayed.
2235
+ # Corresponds to the JSON property `category`
2236
+ # @return [Google::Apis::SpannerV1::LocalizedString]
2237
+ attr_accessor :category
2238
+
2239
+ # A message representing a derived metric.
2240
+ # Corresponds to the JSON property `derived`
2241
+ # @return [Google::Apis::SpannerV1::DerivedMetric]
2242
+ attr_accessor :derived
2243
+
2244
+ # A message representing a user-facing string whose value may need to be
2245
+ # translated before being displayed.
2246
+ # Corresponds to the JSON property `displayLabel`
2247
+ # @return [Google::Apis::SpannerV1::LocalizedString]
2248
+ attr_accessor :display_label
2249
+
2250
+ # Whether the metric has any non-zero data.
2251
+ # Corresponds to the JSON property `hasNonzeroData`
2252
+ # @return [Boolean]
2253
+ attr_accessor :has_nonzero_data
2254
+ alias_method :has_nonzero_data?, :has_nonzero_data
2255
+
2256
+ # The value that is considered hot for the metric. On a per metric basis hotness
2257
+ # signals high utilization and something that might potentially be a cause for
2258
+ # concern by the end user. hot_value is used to calibrate and scale visual color
2259
+ # scales.
2260
+ # Corresponds to the JSON property `hotValue`
2261
+ # @return [Float]
2262
+ attr_accessor :hot_value
2263
+
2264
+ # The (sparse) mapping from time index to an IndexedHotKey message, representing
2265
+ # those time intervals for which there are hot keys.
2266
+ # Corresponds to the JSON property `indexedHotKeys`
2267
+ # @return [Hash<String,Google::Apis::SpannerV1::IndexedHotKey>]
2268
+ attr_accessor :indexed_hot_keys
2269
+
2270
+ # The (sparse) mapping from time interval index to an IndexedKeyRangeInfos
2271
+ # message, representing those time intervals for which there are informational
2272
+ # messages concerning key ranges.
2273
+ # Corresponds to the JSON property `indexedKeyRangeInfos`
2274
+ # @return [Hash<String,Google::Apis::SpannerV1::IndexedKeyRangeInfos>]
2275
+ attr_accessor :indexed_key_range_infos
2276
+
2277
+ # A message representing a user-facing string whose value may need to be
2278
+ # translated before being displayed.
2279
+ # Corresponds to the JSON property `info`
2280
+ # @return [Google::Apis::SpannerV1::LocalizedString]
2281
+ attr_accessor :info
2282
+
2283
+ # A message representing a matrix of floats.
2284
+ # Corresponds to the JSON property `matrix`
2285
+ # @return [Google::Apis::SpannerV1::MetricMatrix]
2286
+ attr_accessor :matrix
2287
+
2288
+ # A message representing a user-facing string whose value may need to be
2289
+ # translated before being displayed.
2290
+ # Corresponds to the JSON property `unit`
2291
+ # @return [Google::Apis::SpannerV1::LocalizedString]
2292
+ attr_accessor :unit
2293
+
2294
+ # Whether the metric is visible to the end user.
2295
+ # Corresponds to the JSON property `visible`
2296
+ # @return [Boolean]
2297
+ attr_accessor :visible
2298
+ alias_method :visible?, :visible
2299
+
2300
+ def initialize(**args)
2301
+ update!(**args)
2302
+ end
2303
+
2304
+ # Update properties of this object
2305
+ def update!(**args)
2306
+ @aggregation = args[:aggregation] if args.key?(:aggregation)
2307
+ @category = args[:category] if args.key?(:category)
2308
+ @derived = args[:derived] if args.key?(:derived)
2309
+ @display_label = args[:display_label] if args.key?(:display_label)
2310
+ @has_nonzero_data = args[:has_nonzero_data] if args.key?(:has_nonzero_data)
2311
+ @hot_value = args[:hot_value] if args.key?(:hot_value)
2312
+ @indexed_hot_keys = args[:indexed_hot_keys] if args.key?(:indexed_hot_keys)
2313
+ @indexed_key_range_infos = args[:indexed_key_range_infos] if args.key?(:indexed_key_range_infos)
2314
+ @info = args[:info] if args.key?(:info)
2315
+ @matrix = args[:matrix] if args.key?(:matrix)
2316
+ @unit = args[:unit] if args.key?(:unit)
2317
+ @visible = args[:visible] if args.key?(:visible)
2318
+ end
2319
+ end
2320
+
2321
+ # A message representing a matrix of floats.
2322
+ class MetricMatrix
2323
+ include Google::Apis::Core::Hashable
2324
+
2325
+ # The rows of the matrix.
2326
+ # Corresponds to the JSON property `rows`
2327
+ # @return [Array<Google::Apis::SpannerV1::MetricMatrixRow>]
2328
+ attr_accessor :rows
2329
+
2330
+ def initialize(**args)
2331
+ update!(**args)
2332
+ end
2333
+
2334
+ # Update properties of this object
2335
+ def update!(**args)
2336
+ @rows = args[:rows] if args.key?(:rows)
2337
+ end
2338
+ end
2339
+
2340
+ # A message representing a row of a matrix of floats.
2341
+ class MetricMatrixRow
2342
+ include Google::Apis::Core::Hashable
2343
+
2344
+ # The columns of the row.
2345
+ # Corresponds to the JSON property `cols`
2346
+ # @return [Array<Float>]
2347
+ attr_accessor :cols
2348
+
2349
+ def initialize(**args)
2350
+ update!(**args)
2351
+ end
2352
+
2353
+ # Update properties of this object
2354
+ def update!(**args)
2355
+ @cols = args[:cols] if args.key?(:cols)
2356
+ end
2357
+ end
2358
+
1908
2359
  # A modification to one or more Cloud Spanner rows. Mutations can be applied to
1909
2360
  # a Cloud Spanner database by sending them in a Commit call.
1910
2361
  class Mutation
@@ -2513,6 +2964,55 @@ module Google
2513
2964
  end
2514
2965
  end
2515
2966
 
2967
+ # A message representing a key prefix node in the key prefix hierarchy. for eg.
2968
+ # Bigtable keyspaces are lexicographically ordered mappings of keys to values.
2969
+ # Keys often have a shared prefix structure where users use the keys to organize
2970
+ # data. Eg ///employee In this case Keysight will possibly use one node for a
2971
+ # company and reuse it for all employees that fall under the company. Doing so
2972
+ # improves legibility in the UI.
2973
+ class PrefixNode
2974
+ include Google::Apis::Core::Hashable
2975
+
2976
+ # Whether this corresponds to a data_source name.
2977
+ # Corresponds to the JSON property `dataSourceNode`
2978
+ # @return [Boolean]
2979
+ attr_accessor :data_source_node
2980
+ alias_method :data_source_node?, :data_source_node
2981
+
2982
+ # The depth in the prefix hierarchy.
2983
+ # Corresponds to the JSON property `depth`
2984
+ # @return [Fixnum]
2985
+ attr_accessor :depth
2986
+
2987
+ # The index of the end key bucket of the range that this node spans.
2988
+ # Corresponds to the JSON property `endIndex`
2989
+ # @return [Fixnum]
2990
+ attr_accessor :end_index
2991
+
2992
+ # The index of the start key bucket of the range that this node spans.
2993
+ # Corresponds to the JSON property `startIndex`
2994
+ # @return [Fixnum]
2995
+ attr_accessor :start_index
2996
+
2997
+ # The string represented by the prefix node.
2998
+ # Corresponds to the JSON property `word`
2999
+ # @return [String]
3000
+ attr_accessor :word
3001
+
3002
+ def initialize(**args)
3003
+ update!(**args)
3004
+ end
3005
+
3006
+ # Update properties of this object
3007
+ def update!(**args)
3008
+ @data_source_node = args[:data_source_node] if args.key?(:data_source_node)
3009
+ @depth = args[:depth] if args.key?(:depth)
3010
+ @end_index = args[:end_index] if args.key?(:end_index)
3011
+ @start_index = args[:start_index] if args.key?(:start_index)
3012
+ @word = args[:word] if args.key?(:word)
3013
+ end
3014
+ end
3015
+
2516
3016
  # Query optimizer configuration.
2517
3017
  class QueryOptions
2518
3018
  include Google::Apis::Core::Hashable
@@ -3104,6 +3604,87 @@ module Google
3104
3604
  end
3105
3605
  end
3106
3606
 
3607
+ # Scan is a structure which describes Cloud Key Visualizer scan information.
3608
+ class Scan
3609
+ include Google::Apis::Core::Hashable
3610
+
3611
+ # Additional information provided by the implementer.
3612
+ # Corresponds to the JSON property `details`
3613
+ # @return [Hash<String,Object>]
3614
+ attr_accessor :details
3615
+
3616
+ # The upper bound for when the scan is defined.
3617
+ # Corresponds to the JSON property `endTime`
3618
+ # @return [String]
3619
+ attr_accessor :end_time
3620
+
3621
+ # The unique name of the scan, specific to the Database service implementing
3622
+ # this interface.
3623
+ # Corresponds to the JSON property `name`
3624
+ # @return [String]
3625
+ attr_accessor :name
3626
+
3627
+ # ScanData contains Cloud Key Visualizer scan data used by the caller to
3628
+ # construct a visualization.
3629
+ # Corresponds to the JSON property `scanData`
3630
+ # @return [Google::Apis::SpannerV1::ScanData]
3631
+ attr_accessor :scan_data
3632
+
3633
+ # A range of time (inclusive) for when the scan is defined. The lower bound for
3634
+ # when the scan is defined.
3635
+ # Corresponds to the JSON property `startTime`
3636
+ # @return [String]
3637
+ attr_accessor :start_time
3638
+
3639
+ def initialize(**args)
3640
+ update!(**args)
3641
+ end
3642
+
3643
+ # Update properties of this object
3644
+ def update!(**args)
3645
+ @details = args[:details] if args.key?(:details)
3646
+ @end_time = args[:end_time] if args.key?(:end_time)
3647
+ @name = args[:name] if args.key?(:name)
3648
+ @scan_data = args[:scan_data] if args.key?(:scan_data)
3649
+ @start_time = args[:start_time] if args.key?(:start_time)
3650
+ end
3651
+ end
3652
+
3653
+ # ScanData contains Cloud Key Visualizer scan data used by the caller to
3654
+ # construct a visualization.
3655
+ class ScanData
3656
+ include Google::Apis::Core::Hashable
3657
+
3658
+ # Cloud Key Visualizer scan data. The range of time this information covers is
3659
+ # captured via the above time range fields. Note, this field is not available to
3660
+ # the ListScans method.
3661
+ # Corresponds to the JSON property `data`
3662
+ # @return [Google::Apis::SpannerV1::VisualizationData]
3663
+ attr_accessor :data
3664
+
3665
+ # The upper bound for when the contained data is defined.
3666
+ # Corresponds to the JSON property `endTime`
3667
+ # @return [String]
3668
+ attr_accessor :end_time
3669
+
3670
+ # A range of time (inclusive) for when the contained data is defined. The lower
3671
+ # bound for when the contained data is defined.
3672
+ # Corresponds to the JSON property `startTime`
3673
+ # @return [String]
3674
+ attr_accessor :start_time
3675
+
3676
+ def initialize(**args)
3677
+ update!(**args)
3678
+ end
3679
+
3680
+ # Update properties of this object
3681
+ def update!(**args)
3682
+ @data = args[:data] if args.key?(:data)
3683
+ @end_time = args[:end_time] if args.key?(:end_time)
3684
+ @start_time = args[:start_time] if args.key?(:start_time)
3685
+ end
3686
+ end
3687
+
3107
3688
  # A session in the Cloud Spanner API.
3108
3689
  class Session
3109
3690
  include Google::Apis::Core::Hashable
@@ -4130,6 +4711,84 @@ module Google
4130
4711
  end
4131
4712
  end
4132
4713
 
4714
+ #
4715
+ class VisualizationData
4716
+ include Google::Apis::Core::Hashable
4717
+
4718
+ # The token signifying the end of a data_source.
4719
+ # Corresponds to the JSON property `dataSourceEndToken`
4720
+ # @return [String]
4721
+ attr_accessor :data_source_end_token
4722
+
4723
+ # The token delimiting a datasource name from the rest of a key in a data_source.
4724
+ # Corresponds to the JSON property `dataSourceSeparatorToken`
4725
+ # @return [String]
4726
+ attr_accessor :data_source_separator_token
4727
+
4728
+ # The list of messages (info, alerts, ...)
4729
+ # Corresponds to the JSON property `diagnosticMessages`
4730
+ # @return [Array<Google::Apis::SpannerV1::DiagnosticMessage>]
4731
+ attr_accessor :diagnostic_messages
4732
+
4733
+ # We discretize the entire keyspace into buckets. Assuming each bucket has an
4734
+ # inclusive keyrange and covers keys from k(i) ... k(n). In this case k(n) would
4735
+ # be an end key for a given range. end_key_string is the collection of all such
4736
+ # end keys
4737
+ # Corresponds to the JSON property `endKeyStrings`
4738
+ # @return [Array<String>]
4739
+ attr_accessor :end_key_strings
4740
+
4741
+ # Whether this scan contains PII.
4742
+ # Corresponds to the JSON property `hasPii`
4743
+ # @return [Boolean]
4744
+ attr_accessor :has_pii
4745
+ alias_method :has_pii?, :has_pii
4746
+
4747
+ # Keys of key ranges that contribute significantly to a given metric Can be
4748
+ # thought of as heavy hitters.
4749
+ # Corresponds to the JSON property `indexedKeys`
4750
+ # @return [Array<String>]
4751
+ attr_accessor :indexed_keys
4752
+
4753
+ # The token delimiting the key prefixes.
4754
+ # Corresponds to the JSON property `keySeparator`
4755
+ # @return [String]
4756
+ attr_accessor :key_separator
4757
+
4758
+ # The unit for the key: e.g. 'key' or 'chunk'.
4759
+ # Corresponds to the JSON property `keyUnit`
4760
+ # @return [String]
4761
+ attr_accessor :key_unit
4762
+
4763
+ # The list of data objects for each metric.
4764
+ # Corresponds to the JSON property `metrics`
4765
+ # @return [Array<Google::Apis::SpannerV1::Metric>]
4766
+ attr_accessor :metrics
4767
+
4768
+ # The list of extracted key prefix nodes used in the key prefix hierarchy.
4769
+ # Corresponds to the JSON property `prefixNodes`
4770
+ # @return [Array<Google::Apis::SpannerV1::PrefixNode>]
4771
+ attr_accessor :prefix_nodes
4772
+
4773
+ def initialize(**args)
4774
+ update!(**args)
4775
+ end
4776
+
4777
+ # Update properties of this object
4778
+ def update!(**args)
4779
+ @data_source_end_token = args[:data_source_end_token] if args.key?(:data_source_end_token)
4780
+ @data_source_separator_token = args[:data_source_separator_token] if args.key?(:data_source_separator_token)
4781
+ @diagnostic_messages = args[:diagnostic_messages] if args.key?(:diagnostic_messages)
4782
+ @end_key_strings = args[:end_key_strings] if args.key?(:end_key_strings)
4783
+ @has_pii = args[:has_pii] if args.key?(:has_pii)
4784
+ @indexed_keys = args[:indexed_keys] if args.key?(:indexed_keys)
4785
+ @key_separator = args[:key_separator] if args.key?(:key_separator)
4786
+ @key_unit = args[:key_unit] if args.key?(:key_unit)
4787
+ @metrics = args[:metrics] if args.key?(:metrics)
4788
+ @prefix_nodes = args[:prefix_nodes] if args.key?(:prefix_nodes)
4789
+ end
4790
+ end
4791
+
4133
4792
  # Arguments to insert, update, insert_or_update, and replace operations.
4134
4793
  class Write
4135
4794
  include Google::Apis::Core::Hashable
@@ -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.9.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210405"
25
+ REVISION = "20210517"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class ContextValue
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class CreateBackupMetadata
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -130,6 +136,18 @@ module Google
130
136
  include Google::Apis::Core::JsonObjectSupport
131
137
  end
132
138
 
139
+ class DerivedMetric
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class DiagnosticMessage
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
133
151
  class Empty
134
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
153
 
@@ -196,6 +214,18 @@ module Google
196
214
  include Google::Apis::Core::JsonObjectSupport
197
215
  end
198
216
 
217
+ class IndexedHotKey
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class IndexedKeyRangeInfos
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
199
229
  class Instance
200
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
231
 
@@ -214,6 +244,18 @@ module Google
214
244
  include Google::Apis::Core::JsonObjectSupport
215
245
  end
216
246
 
247
+ class KeyRangeInfo
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class KeyRangeInfos
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
217
259
  class KeySet
218
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
261
 
@@ -262,12 +304,42 @@ module Google
262
304
  include Google::Apis::Core::JsonObjectSupport
263
305
  end
264
306
 
307
+ class ListScansResponse
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
265
313
  class ListSessionsResponse
266
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
315
 
268
316
  include Google::Apis::Core::JsonObjectSupport
269
317
  end
270
318
 
319
+ class LocalizedString
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class Metric
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class MetricMatrix
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class MetricMatrixRow
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
271
343
  class Mutation
272
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
345
 
@@ -346,6 +418,12 @@ module Google
346
418
  include Google::Apis::Core::JsonObjectSupport
347
419
  end
348
420
 
421
+ class PrefixNode
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
349
427
  class QueryOptions
350
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
429
 
@@ -436,6 +514,18 @@ module Google
436
514
  include Google::Apis::Core::JsonObjectSupport
437
515
  end
438
516
 
517
+ class Scan
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ class ScanData
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
439
529
  class Session
440
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
531
 
@@ -532,6 +622,12 @@ module Google
532
622
  include Google::Apis::Core::JsonObjectSupport
533
623
  end
534
624
 
625
+ class VisualizationData
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
535
631
  class Write
536
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
633
 
@@ -640,6 +736,17 @@ module Google
640
736
  end
641
737
  end
642
738
 
739
+ class ContextValue
740
+ # @private
741
+ class Representation < Google::Apis::Core::JsonRepresentation
742
+ property :label, as: 'label', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
743
+
744
+ property :severity, as: 'severity'
745
+ property :unit, as: 'unit'
746
+ property :value, as: 'value'
747
+ end
748
+ end
749
+
643
750
  class CreateBackupMetadata
644
751
  # @private
645
752
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -722,6 +829,30 @@ module Google
722
829
  end
723
830
  end
724
831
 
832
+ class DerivedMetric
833
+ # @private
834
+ class Representation < Google::Apis::Core::JsonRepresentation
835
+ property :denominator, as: 'denominator', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
836
+
837
+ property :numerator, as: 'numerator', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
838
+
839
+ end
840
+ end
841
+
842
+ class DiagnosticMessage
843
+ # @private
844
+ class Representation < Google::Apis::Core::JsonRepresentation
845
+ property :info, as: 'info', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
846
+
847
+ property :metric, as: 'metric', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
848
+
849
+ property :metric_specific, as: 'metricSpecific'
850
+ property :severity, as: 'severity'
851
+ property :short_message, as: 'shortMessage', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
852
+
853
+ end
854
+ end
855
+
725
856
  class Empty
726
857
  # @private
727
858
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -829,6 +960,21 @@ module Google
829
960
  end
830
961
  end
831
962
 
963
+ class IndexedHotKey
964
+ # @private
965
+ class Representation < Google::Apis::Core::JsonRepresentation
966
+ hash :sparse_hot_keys, as: 'sparseHotKeys'
967
+ end
968
+ end
969
+
970
+ class IndexedKeyRangeInfos
971
+ # @private
972
+ class Representation < Google::Apis::Core::JsonRepresentation
973
+ hash :key_range_infos, as: 'keyRangeInfos', class: Google::Apis::SpannerV1::KeyRangeInfos, decorator: Google::Apis::SpannerV1::KeyRangeInfos::Representation
974
+
975
+ end
976
+ end
977
+
832
978
  class Instance
833
979
  # @private
834
980
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -862,6 +1008,33 @@ module Google
862
1008
  end
863
1009
  end
864
1010
 
1011
+ class KeyRangeInfo
1012
+ # @private
1013
+ class Representation < Google::Apis::Core::JsonRepresentation
1014
+ collection :context_values, as: 'contextValues', class: Google::Apis::SpannerV1::ContextValue, decorator: Google::Apis::SpannerV1::ContextValue::Representation
1015
+
1016
+ property :end_key_index, as: 'endKeyIndex'
1017
+ property :info, as: 'info', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
1018
+
1019
+ property :keys_count, :numeric_string => true, as: 'keysCount'
1020
+ property :metric, as: 'metric', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
1021
+
1022
+ property :start_key_index, as: 'startKeyIndex'
1023
+ property :unit, as: 'unit', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
1024
+
1025
+ property :value, as: 'value'
1026
+ end
1027
+ end
1028
+
1029
+ class KeyRangeInfos
1030
+ # @private
1031
+ class Representation < Google::Apis::Core::JsonRepresentation
1032
+ collection :infos, as: 'infos', class: Google::Apis::SpannerV1::KeyRangeInfo, decorator: Google::Apis::SpannerV1::KeyRangeInfo::Representation
1033
+
1034
+ property :total_size, as: 'totalSize'
1035
+ end
1036
+ end
1037
+
865
1038
  class KeySet
866
1039
  # @private
867
1040
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -940,6 +1113,15 @@ module Google
940
1113
  end
941
1114
  end
942
1115
 
1116
+ class ListScansResponse
1117
+ # @private
1118
+ class Representation < Google::Apis::Core::JsonRepresentation
1119
+ property :next_page_token, as: 'nextPageToken'
1120
+ collection :scans, as: 'scans', class: Google::Apis::SpannerV1::Scan, decorator: Google::Apis::SpannerV1::Scan::Representation
1121
+
1122
+ end
1123
+ end
1124
+
943
1125
  class ListSessionsResponse
944
1126
  # @private
945
1127
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -949,6 +1131,56 @@ module Google
949
1131
  end
950
1132
  end
951
1133
 
1134
+ class LocalizedString
1135
+ # @private
1136
+ class Representation < Google::Apis::Core::JsonRepresentation
1137
+ hash :args, as: 'args'
1138
+ property :message, as: 'message'
1139
+ property :token, as: 'token'
1140
+ end
1141
+ end
1142
+
1143
+ class Metric
1144
+ # @private
1145
+ class Representation < Google::Apis::Core::JsonRepresentation
1146
+ property :aggregation, as: 'aggregation'
1147
+ property :category, as: 'category', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
1148
+
1149
+ property :derived, as: 'derived', class: Google::Apis::SpannerV1::DerivedMetric, decorator: Google::Apis::SpannerV1::DerivedMetric::Representation
1150
+
1151
+ property :display_label, as: 'displayLabel', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
1152
+
1153
+ property :has_nonzero_data, as: 'hasNonzeroData'
1154
+ property :hot_value, as: 'hotValue'
1155
+ hash :indexed_hot_keys, as: 'indexedHotKeys', class: Google::Apis::SpannerV1::IndexedHotKey, decorator: Google::Apis::SpannerV1::IndexedHotKey::Representation
1156
+
1157
+ hash :indexed_key_range_infos, as: 'indexedKeyRangeInfos', class: Google::Apis::SpannerV1::IndexedKeyRangeInfos, decorator: Google::Apis::SpannerV1::IndexedKeyRangeInfos::Representation
1158
+
1159
+ property :info, as: 'info', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
1160
+
1161
+ property :matrix, as: 'matrix', class: Google::Apis::SpannerV1::MetricMatrix, decorator: Google::Apis::SpannerV1::MetricMatrix::Representation
1162
+
1163
+ property :unit, as: 'unit', class: Google::Apis::SpannerV1::LocalizedString, decorator: Google::Apis::SpannerV1::LocalizedString::Representation
1164
+
1165
+ property :visible, as: 'visible'
1166
+ end
1167
+ end
1168
+
1169
+ class MetricMatrix
1170
+ # @private
1171
+ class Representation < Google::Apis::Core::JsonRepresentation
1172
+ collection :rows, as: 'rows', class: Google::Apis::SpannerV1::MetricMatrixRow, decorator: Google::Apis::SpannerV1::MetricMatrixRow::Representation
1173
+
1174
+ end
1175
+ end
1176
+
1177
+ class MetricMatrixRow
1178
+ # @private
1179
+ class Representation < Google::Apis::Core::JsonRepresentation
1180
+ collection :cols, as: 'cols'
1181
+ end
1182
+ end
1183
+
952
1184
  class Mutation
953
1185
  # @private
954
1186
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1093,6 +1325,17 @@ module Google
1093
1325
  end
1094
1326
  end
1095
1327
 
1328
+ class PrefixNode
1329
+ # @private
1330
+ class Representation < Google::Apis::Core::JsonRepresentation
1331
+ property :data_source_node, as: 'dataSourceNode'
1332
+ property :depth, as: 'depth'
1333
+ property :end_index, as: 'endIndex'
1334
+ property :start_index, as: 'startIndex'
1335
+ property :word, as: 'word'
1336
+ end
1337
+ end
1338
+
1096
1339
  class QueryOptions
1097
1340
  # @private
1098
1341
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1247,6 +1490,28 @@ module Google
1247
1490
  end
1248
1491
  end
1249
1492
 
1493
+ class Scan
1494
+ # @private
1495
+ class Representation < Google::Apis::Core::JsonRepresentation
1496
+ hash :details, as: 'details'
1497
+ property :end_time, as: 'endTime'
1498
+ property :name, as: 'name'
1499
+ property :scan_data, as: 'scanData', class: Google::Apis::SpannerV1::ScanData, decorator: Google::Apis::SpannerV1::ScanData::Representation
1500
+
1501
+ property :start_time, as: 'startTime'
1502
+ end
1503
+ end
1504
+
1505
+ class ScanData
1506
+ # @private
1507
+ class Representation < Google::Apis::Core::JsonRepresentation
1508
+ property :data, as: 'data', class: Google::Apis::SpannerV1::VisualizationData, decorator: Google::Apis::SpannerV1::VisualizationData::Representation
1509
+
1510
+ property :end_time, as: 'endTime'
1511
+ property :start_time, as: 'startTime'
1512
+ end
1513
+ end
1514
+
1250
1515
  class Session
1251
1516
  # @private
1252
1517
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1396,6 +1661,25 @@ module Google
1396
1661
  end
1397
1662
  end
1398
1663
 
1664
+ class VisualizationData
1665
+ # @private
1666
+ class Representation < Google::Apis::Core::JsonRepresentation
1667
+ property :data_source_end_token, as: 'dataSourceEndToken'
1668
+ property :data_source_separator_token, as: 'dataSourceSeparatorToken'
1669
+ collection :diagnostic_messages, as: 'diagnosticMessages', class: Google::Apis::SpannerV1::DiagnosticMessage, decorator: Google::Apis::SpannerV1::DiagnosticMessage::Representation
1670
+
1671
+ collection :end_key_strings, as: 'endKeyStrings'
1672
+ property :has_pii, as: 'hasPii'
1673
+ collection :indexed_keys, as: 'indexedKeys'
1674
+ property :key_separator, as: 'keySeparator'
1675
+ property :key_unit, as: 'keyUnit'
1676
+ collection :metrics, as: 'metrics', class: Google::Apis::SpannerV1::Metric, decorator: Google::Apis::SpannerV1::Metric::Representation
1677
+
1678
+ collection :prefix_nodes, as: 'prefixNodes', class: Google::Apis::SpannerV1::PrefixNode, decorator: Google::Apis::SpannerV1::PrefixNode::Representation
1679
+
1680
+ end
1681
+ end
1682
+
1399
1683
  class Write
1400
1684
  # @private
1401
1685
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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.9.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-05-18 00:00:00.000000000 Z
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.9.0
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: []