google-apis-bigtableadmin_v2 0.18.0 → 0.19.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: 3be5be3db859dbd3f0d1790413fbe44251d18bb43884eabcd7c273c1e8243ddd
|
4
|
+
data.tar.gz: c443e09ad54b79b80d18438114e88b352d19df858499e2d1c64c917fdc0882c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77386b4cbd60b4067e3ea540660da943e9182dd0383ff8f17bbbe8b9adb43c0974b5013a8f0ac569c2bc57d54f8986d013f507fcab73665a8caf356e51a3995c
|
7
|
+
data.tar.gz: e8c4b29558fc283da623f152209ba4079e2ad67e91e0446694899655fff24240268deef704945142b2d31ecae379f778616250da53f1b0e026f8c6c4800bcedb
|
data/CHANGELOG.md
CHANGED
@@ -333,7 +333,7 @@ module Google
|
|
333
333
|
# @return [Google::Apis::BigtableadminV2::Expr]
|
334
334
|
attr_accessor :condition
|
335
335
|
|
336
|
-
# Specifies the principals requesting access for a Cloud
|
336
|
+
# Specifies the principals requesting access for a Google Cloud resource. `
|
337
337
|
# members` can have the following values: * `allUsers`: A special identifier
|
338
338
|
# that represents anyone who is on the internet; with or without a Google
|
339
339
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -728,7 +728,6 @@ module Google
|
|
728
728
|
# Required. The clusters to be created within the instance, mapped by desired
|
729
729
|
# cluster ID, e.g., just `mycluster` rather than `projects/myproject/instances/
|
730
730
|
# myinstance/clusters/mycluster`. Fields marked `OutputOnly` must be left blank.
|
731
|
-
# Currently, at most four clusters can be specified.
|
732
731
|
# Corresponds to the JSON property `clusters`
|
733
732
|
# @return [Hash<String,Google::Apis::BigtableadminV2::Cluster>]
|
734
733
|
attr_accessor :clusters
|
@@ -860,9 +859,8 @@ module Google
|
|
860
859
|
# Bigtable service account associated with the project that contains this
|
861
860
|
# cluster must be granted the `cloudkms.cryptoKeyEncrypterDecrypter` role on the
|
862
861
|
# CMEK key. 2) Only regional keys can be used and the region of the CMEK key
|
863
|
-
# must match the region of the cluster.
|
864
|
-
#
|
865
|
-
# location`/keyRings/`keyring`/cryptoKeys/`key``
|
862
|
+
# must match the region of the cluster. Values are of the form `projects/`
|
863
|
+
# project`/locations/`location`/keyRings/`keyring`/cryptoKeys/`key``
|
866
864
|
# Corresponds to the JSON property `kmsKeyName`
|
867
865
|
# @return [String]
|
868
866
|
attr_accessor :kms_key_name
|
@@ -1089,6 +1087,69 @@ module Google
|
|
1089
1087
|
end
|
1090
1088
|
end
|
1091
1089
|
|
1090
|
+
# A tablet is a defined by a start and end key and is explained in https://cloud.
|
1091
|
+
# google.com/bigtable/docs/overview#architecture and https://cloud.google.com/
|
1092
|
+
# bigtable/docs/performance#optimization. A Hot tablet is a tablet that exhibits
|
1093
|
+
# high average cpu usage during the time interval from start time to end time.
|
1094
|
+
class HotTablet
|
1095
|
+
include Google::Apis::Core::Hashable
|
1096
|
+
|
1097
|
+
# Tablet End Key (inclusive).
|
1098
|
+
# Corresponds to the JSON property `endKey`
|
1099
|
+
# @return [String]
|
1100
|
+
attr_accessor :end_key
|
1101
|
+
|
1102
|
+
# Output only. The end time of the hot tablet.
|
1103
|
+
# Corresponds to the JSON property `endTime`
|
1104
|
+
# @return [String]
|
1105
|
+
attr_accessor :end_time
|
1106
|
+
|
1107
|
+
# The unique name of the hot tablet. Values are of the form `projects/`project`/
|
1108
|
+
# instances/`instance`/clusters/`cluster`/hotTablets/[a-zA-Z0-9_-]*`.
|
1109
|
+
# Corresponds to the JSON property `name`
|
1110
|
+
# @return [String]
|
1111
|
+
attr_accessor :name
|
1112
|
+
|
1113
|
+
# Output only. The average CPU usage spent by a node on this tablet over the
|
1114
|
+
# start_time to end_time time range. The percentage is the amount of CPU used by
|
1115
|
+
# the node to serve the tablet, from 0% (tablet was not interacted with) to 100%
|
1116
|
+
# (the node spent all cycles serving the hot tablet).
|
1117
|
+
# Corresponds to the JSON property `nodeCpuUsagePercent`
|
1118
|
+
# @return [Float]
|
1119
|
+
attr_accessor :node_cpu_usage_percent
|
1120
|
+
|
1121
|
+
# Tablet Start Key (inclusive).
|
1122
|
+
# Corresponds to the JSON property `startKey`
|
1123
|
+
# @return [String]
|
1124
|
+
attr_accessor :start_key
|
1125
|
+
|
1126
|
+
# Output only. The start time of the hot tablet.
|
1127
|
+
# Corresponds to the JSON property `startTime`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :start_time
|
1130
|
+
|
1131
|
+
# Name of the table that contains the tablet. Values are of the form `projects/`
|
1132
|
+
# project`/instances/`instance`/tables/_a-zA-Z0-9*`.
|
1133
|
+
# Corresponds to the JSON property `tableName`
|
1134
|
+
# @return [String]
|
1135
|
+
attr_accessor :table_name
|
1136
|
+
|
1137
|
+
def initialize(**args)
|
1138
|
+
update!(**args)
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
# Update properties of this object
|
1142
|
+
def update!(**args)
|
1143
|
+
@end_key = args[:end_key] if args.key?(:end_key)
|
1144
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1145
|
+
@name = args[:name] if args.key?(:name)
|
1146
|
+
@node_cpu_usage_percent = args[:node_cpu_usage_percent] if args.key?(:node_cpu_usage_percent)
|
1147
|
+
@start_key = args[:start_key] if args.key?(:start_key)
|
1148
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1149
|
+
@table_name = args[:table_name] if args.key?(:table_name)
|
1150
|
+
end
|
1151
|
+
end
|
1152
|
+
|
1092
1153
|
# A collection of Bigtable Tables and the resources that serve them. All tables
|
1093
1154
|
# in an instance are served from all Clusters in the instance.
|
1094
1155
|
class Instance
|
@@ -1263,6 +1324,36 @@ module Google
|
|
1263
1324
|
end
|
1264
1325
|
end
|
1265
1326
|
|
1327
|
+
# Response message for BigtableInstanceAdmin.ListHotTablets.
|
1328
|
+
class ListHotTabletsResponse
|
1329
|
+
include Google::Apis::Core::Hashable
|
1330
|
+
|
1331
|
+
# List of hot tablets in the tables of the requested cluster that fall within
|
1332
|
+
# the requested time range. Hot tablets are ordered by node cpu usage percent.
|
1333
|
+
# If there are multiple hot tablets that correspond to the same tablet within a
|
1334
|
+
# 15-minute interval, only the hot tablet with the highest node cpu usage will
|
1335
|
+
# be included in the response.
|
1336
|
+
# Corresponds to the JSON property `hotTablets`
|
1337
|
+
# @return [Array<Google::Apis::BigtableadminV2::HotTablet>]
|
1338
|
+
attr_accessor :hot_tablets
|
1339
|
+
|
1340
|
+
# Set if not all hot tablets could be returned in a single response. Pass this
|
1341
|
+
# value to `page_token` in another request to get the next page of results.
|
1342
|
+
# Corresponds to the JSON property `nextPageToken`
|
1343
|
+
# @return [String]
|
1344
|
+
attr_accessor :next_page_token
|
1345
|
+
|
1346
|
+
def initialize(**args)
|
1347
|
+
update!(**args)
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
# Update properties of this object
|
1351
|
+
def update!(**args)
|
1352
|
+
@hot_tablets = args[:hot_tablets] if args.key?(:hot_tablets)
|
1353
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
|
1266
1357
|
# Response message for BigtableInstanceAdmin.ListInstances.
|
1267
1358
|
class ListInstancesResponse
|
1268
1359
|
include Google::Apis::Core::Hashable
|
@@ -2146,7 +2237,7 @@ module Google
|
|
2146
2237
|
include Google::Apis::Core::Hashable
|
2147
2238
|
|
2148
2239
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
2149
|
-
# (such as
|
2240
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
2150
2241
|
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
2151
2242
|
# Corresponds to the JSON property `permissions`
|
2152
2243
|
# @return [Array<String>]
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BigtableadminV2
|
18
18
|
# Version of the google-apis-bigtableadmin_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220412"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -208,6 +208,12 @@ module Google
|
|
208
208
|
include Google::Apis::Core::JsonObjectSupport
|
209
209
|
end
|
210
210
|
|
211
|
+
class HotTablet
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
211
217
|
class Instance
|
212
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
219
|
|
@@ -238,6 +244,12 @@ module Google
|
|
238
244
|
include Google::Apis::Core::JsonObjectSupport
|
239
245
|
end
|
240
246
|
|
247
|
+
class ListHotTabletsResponse
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
241
253
|
class ListInstancesResponse
|
242
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
255
|
|
@@ -708,6 +720,19 @@ module Google
|
|
708
720
|
end
|
709
721
|
end
|
710
722
|
|
723
|
+
class HotTablet
|
724
|
+
# @private
|
725
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
726
|
+
property :end_key, as: 'endKey'
|
727
|
+
property :end_time, as: 'endTime'
|
728
|
+
property :name, as: 'name'
|
729
|
+
property :node_cpu_usage_percent, as: 'nodeCpuUsagePercent'
|
730
|
+
property :start_key, as: 'startKey'
|
731
|
+
property :start_time, as: 'startTime'
|
732
|
+
property :table_name, as: 'tableName'
|
733
|
+
end
|
734
|
+
end
|
735
|
+
|
711
736
|
class Instance
|
712
737
|
# @private
|
713
738
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -757,6 +782,15 @@ module Google
|
|
757
782
|
end
|
758
783
|
end
|
759
784
|
|
785
|
+
class ListHotTabletsResponse
|
786
|
+
# @private
|
787
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
788
|
+
collection :hot_tablets, as: 'hotTablets', class: Google::Apis::BigtableadminV2::HotTablet, decorator: Google::Apis::BigtableadminV2::HotTablet::Representation
|
789
|
+
|
790
|
+
property :next_page_token, as: 'nextPageToken'
|
791
|
+
end
|
792
|
+
end
|
793
|
+
|
760
794
|
class ListInstancesResponse
|
761
795
|
# @private
|
762
796
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1253,6 +1253,60 @@ module Google
|
|
1253
1253
|
execute_or_queue_command(command, &block)
|
1254
1254
|
end
|
1255
1255
|
|
1256
|
+
# Lists hot tablets in a cluster, within the time range provided. Hot tablets
|
1257
|
+
# are ordered based on CPU usage.
|
1258
|
+
# @param [String] parent
|
1259
|
+
# Required. The cluster name to list hot tablets. Value is in the following form:
|
1260
|
+
# `projects/`project`/instances/`instance`/clusters/`cluster``.
|
1261
|
+
# @param [String] end_time
|
1262
|
+
# The end time to list hot tablets.
|
1263
|
+
# @param [Fixnum] page_size
|
1264
|
+
# Maximum number of results per page. A page_size that is empty or zero lets the
|
1265
|
+
# server choose the number of items to return. A page_size which is strictly
|
1266
|
+
# positive will return at most that many items. A negative page_size will cause
|
1267
|
+
# an error. Following the first request, subsequent paginated calls do not need
|
1268
|
+
# a page_size field. If a page_size is set in subsequent calls, it must match
|
1269
|
+
# the page_size given in the first request.
|
1270
|
+
# @param [String] page_token
|
1271
|
+
# The value of `next_page_token` returned by a previous call.
|
1272
|
+
# @param [String] start_time
|
1273
|
+
# The start time to list hot tablets. The hot tablets in the response will have
|
1274
|
+
# start times between the requested start time and end time. Start time defaults
|
1275
|
+
# to Now if it is unset, and end time defaults to Now - 24 hours if it is unset.
|
1276
|
+
# The start time should be less than the end time, and the maximum allowed time
|
1277
|
+
# range between start time and end time is 48 hours. Start time and end time
|
1278
|
+
# should have values between Now and Now - 14 days.
|
1279
|
+
# @param [String] fields
|
1280
|
+
# Selector specifying which fields to include in a partial response.
|
1281
|
+
# @param [String] quota_user
|
1282
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1283
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1284
|
+
# @param [Google::Apis::RequestOptions] options
|
1285
|
+
# Request-specific options
|
1286
|
+
#
|
1287
|
+
# @yield [result, err] Result & error if block supplied
|
1288
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::ListHotTabletsResponse] parsed result object
|
1289
|
+
# @yieldparam err [StandardError] error object if request failed
|
1290
|
+
#
|
1291
|
+
# @return [Google::Apis::BigtableadminV2::ListHotTabletsResponse]
|
1292
|
+
#
|
1293
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1294
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1295
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1296
|
+
def list_project_instance_cluster_hot_tablets(parent, end_time: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1297
|
+
command = make_simple_command(:get, 'v2/{+parent}/hotTablets', options)
|
1298
|
+
command.response_representation = Google::Apis::BigtableadminV2::ListHotTabletsResponse::Representation
|
1299
|
+
command.response_class = Google::Apis::BigtableadminV2::ListHotTabletsResponse
|
1300
|
+
command.params['parent'] = parent unless parent.nil?
|
1301
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
1302
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1303
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1304
|
+
command.query['startTime'] = start_time unless start_time.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
|
+
|
1256
1310
|
# Checks replication consistency based on a consistency token, that is, if
|
1257
1311
|
# replication has caught up based on the conditions specified in the token and
|
1258
1312
|
# the check request.
|
@@ -1728,8 +1782,8 @@ module Google
|
|
1728
1782
|
# The resource that owns the locations collection, if applicable.
|
1729
1783
|
# @param [String] filter
|
1730
1784
|
# A filter to narrow down results to a preferred subset. The filtering language
|
1731
|
-
# accepts strings like "displayName=tokyo"
|
1732
|
-
# AIP-160](https://google.aip.dev/160).
|
1785
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
1786
|
+
# in [AIP-160](https://google.aip.dev/160).
|
1733
1787
|
# @param [Fixnum] page_size
|
1734
1788
|
# The maximum number of results to return. If not set, the service selects a
|
1735
1789
|
# default.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-bigtableadmin_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.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: 2022-04-
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigtableadmin_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.19.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigtableadmin_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|