google-apis-bigtableadmin_v2 0.9.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 658d626505a19f7abb9d559b54f01fcf8081d7270cddd3e62f28c8926d0b30b0
4
- data.tar.gz: d32b9aa3141eee90085aca486cd05207c3ddc55175c2727efaf2ffdf01455596
3
+ metadata.gz: 477963a3187fab50e4ea049756d82d0d878482d34b124448a30be9da06235c19
4
+ data.tar.gz: c5786a220487fa88c899fde2a66d0a4ce0a3e191096c0feec4a7585aab049159
5
5
  SHA512:
6
- metadata.gz: 8a024dbab32c1b34c88a32b6f92cf9a712f49203df8ff4ea2e5792d416693efd8bda9adbc4126b11dab30792e25d3f55c5b8af856f232bb1247852e5b537ff4f
7
- data.tar.gz: 97e2315c155f3e8cd00c565c98e9832ad089bc723a78ca5aaa82000c23e0a7902cfda466509daafca6c605bf8569aa3e7f299fcf7c7eea3cb53d378d7acdb993
6
+ metadata.gz: 2eca62660c52b92a3e684ce952aad7d83ac5f9169539240be72dcd04075384b5348eca09b2a15b611de90caf5bb691b1e99e0989cdd4c94a99d7ab12b169ccfb
7
+ data.tar.gz: f70cf8d92a9a008d0d9b6c0148d2c18046ee8900b357241a827e3d6670ef5543508b9abbc3afde3abc83a442f96d17ddec91128d01bef3ee67cfd78c48a6fc85
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-bigtableadmin_v2
2
2
 
3
+ ### v0.13.0 (2021-12-14)
4
+
5
+ * Regenerated from discovery document revision 20211202
6
+
7
+ ### v0.12.0 (2021-11-16)
8
+
9
+ * Regenerated from discovery document revision 20211104
10
+
11
+ ### v0.11.0 (2021-10-20)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.10.0 (2021-10-02)
16
+
17
+ * Regenerated from discovery document revision 20210921
18
+
3
19
  ### v0.9.0 (2021-09-07)
4
20
 
5
21
  * Regenerated from discovery document revision 20210811
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/bigtableadmin_v2"
51
51
  client = Google::Apis::BigtableadminV2::BigtableAdminService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Bigtableadmin service in particular.)
67
67
 
@@ -149,6 +149,51 @@ module Google
149
149
  end
150
150
  end
151
151
 
152
+ # Limits for the number of nodes a Cluster can autoscale up/down to.
153
+ class AutoscalingLimits
154
+ include Google::Apis::Core::Hashable
155
+
156
+ # Required. Maximum number of nodes to scale up to.
157
+ # Corresponds to the JSON property `maxServeNodes`
158
+ # @return [Fixnum]
159
+ attr_accessor :max_serve_nodes
160
+
161
+ # Required. Minimum number of nodes to scale down to.
162
+ # Corresponds to the JSON property `minServeNodes`
163
+ # @return [Fixnum]
164
+ attr_accessor :min_serve_nodes
165
+
166
+ def initialize(**args)
167
+ update!(**args)
168
+ end
169
+
170
+ # Update properties of this object
171
+ def update!(**args)
172
+ @max_serve_nodes = args[:max_serve_nodes] if args.key?(:max_serve_nodes)
173
+ @min_serve_nodes = args[:min_serve_nodes] if args.key?(:min_serve_nodes)
174
+ end
175
+ end
176
+
177
+ # The Autoscaling targets for a Cluster. These determine the recommended nodes.
178
+ class AutoscalingTargets
179
+ include Google::Apis::Core::Hashable
180
+
181
+ # The cpu utilization that the Autoscaler should be trying to achieve. This
182
+ # number is on a scale from 0 (no utilization) to 100 (total utilization).
183
+ # Corresponds to the JSON property `cpuUtilizationPercent`
184
+ # @return [Fixnum]
185
+ attr_accessor :cpu_utilization_percent
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @cpu_utilization_percent = args[:cpu_utilization_percent] if args.key?(:cpu_utilization_percent)
194
+ end
195
+ end
196
+
152
197
  # A backup of a Cloud Bigtable table.
153
198
  class Backup
154
199
  include Google::Apis::Core::Hashable
@@ -264,7 +309,7 @@ module Google
264
309
  end
265
310
  end
266
311
 
267
- # Associates `members` with a `role`.
312
+ # Associates `members`, or principals, with a `role`.
268
313
  class Binding
269
314
  include Google::Apis::Core::Hashable
270
315
 
@@ -287,7 +332,7 @@ module Google
287
332
  # @return [Google::Apis::BigtableadminV2::Expr]
288
333
  attr_accessor :condition
289
334
 
290
- # Specifies the identities requesting access for a Cloud Platform resource. `
335
+ # Specifies the principals requesting access for a Cloud Platform resource. `
291
336
  # members` can have the following values: * `allUsers`: A special identifier
292
337
  # that represents anyone who is on the internet; with or without a Google
293
338
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -317,8 +362,8 @@ module Google
317
362
  # @return [Array<String>]
318
363
  attr_accessor :members
319
364
 
320
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
321
- # , or `roles/owner`.
365
+ # Role that is assigned to the list of `members`, or principals. For example, `
366
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
322
367
  # Corresponds to the JSON property `role`
323
368
  # @return [String]
324
369
  attr_accessor :role
@@ -382,6 +427,11 @@ module Google
382
427
  class Cluster
383
428
  include Google::Apis::Core::Hashable
384
429
 
430
+ # Configuration for a cluster.
431
+ # Corresponds to the JSON property `clusterConfig`
432
+ # @return [Google::Apis::BigtableadminV2::ClusterConfig]
433
+ attr_accessor :cluster_config
434
+
385
435
  # Immutable. The type of storage used by this cluster to serve its parent
386
436
  # instance's tables, unless explicitly overridden.
387
437
  # Corresponds to the JSON property `defaultStorageType`
@@ -407,8 +457,8 @@ module Google
407
457
  # @return [String]
408
458
  attr_accessor :name
409
459
 
410
- # Required. The number of nodes allocated to this cluster. More nodes enable
411
- # higher throughput and more consistent performance.
460
+ # The number of nodes allocated to this cluster. More nodes enable higher
461
+ # throughput and more consistent performance.
412
462
  # Corresponds to the JSON property `serveNodes`
413
463
  # @return [Fixnum]
414
464
  attr_accessor :serve_nodes
@@ -424,6 +474,7 @@ module Google
424
474
 
425
475
  # Update properties of this object
426
476
  def update!(**args)
477
+ @cluster_config = args[:cluster_config] if args.key?(:cluster_config)
427
478
  @default_storage_type = args[:default_storage_type] if args.key?(:default_storage_type)
428
479
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
429
480
  @location = args[:location] if args.key?(:location)
@@ -433,6 +484,50 @@ module Google
433
484
  end
434
485
  end
435
486
 
487
+ # Autoscaling config for a cluster.
488
+ class ClusterAutoscalingConfig
489
+ include Google::Apis::Core::Hashable
490
+
491
+ # Limits for the number of nodes a Cluster can autoscale up/down to.
492
+ # Corresponds to the JSON property `autoscalingLimits`
493
+ # @return [Google::Apis::BigtableadminV2::AutoscalingLimits]
494
+ attr_accessor :autoscaling_limits
495
+
496
+ # The Autoscaling targets for a Cluster. These determine the recommended nodes.
497
+ # Corresponds to the JSON property `autoscalingTargets`
498
+ # @return [Google::Apis::BigtableadminV2::AutoscalingTargets]
499
+ attr_accessor :autoscaling_targets
500
+
501
+ def initialize(**args)
502
+ update!(**args)
503
+ end
504
+
505
+ # Update properties of this object
506
+ def update!(**args)
507
+ @autoscaling_limits = args[:autoscaling_limits] if args.key?(:autoscaling_limits)
508
+ @autoscaling_targets = args[:autoscaling_targets] if args.key?(:autoscaling_targets)
509
+ end
510
+ end
511
+
512
+ # Configuration for a cluster.
513
+ class ClusterConfig
514
+ include Google::Apis::Core::Hashable
515
+
516
+ # Autoscaling config for a cluster.
517
+ # Corresponds to the JSON property `clusterAutoscalingConfig`
518
+ # @return [Google::Apis::BigtableadminV2::ClusterAutoscalingConfig]
519
+ attr_accessor :cluster_autoscaling_config
520
+
521
+ def initialize(**args)
522
+ update!(**args)
523
+ end
524
+
525
+ # Update properties of this object
526
+ def update!(**args)
527
+ @cluster_autoscaling_config = args[:cluster_autoscaling_config] if args.key?(:cluster_autoscaling_config)
528
+ end
529
+ end
530
+
436
531
  # The state of a table's data in a particular cluster.
437
532
  class ClusterState
438
533
  include Google::Apis::Core::Hashable
@@ -1020,13 +1115,16 @@ module Google
1020
1115
  class GetPolicyOptions
1021
1116
  include Google::Apis::Core::Hashable
1022
1117
 
1023
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
1024
- # 3. Requests specifying an invalid value will be rejected. Requests for
1025
- # policies with any conditional bindings must specify version 3. Policies
1026
- # without any conditional bindings may specify any valid value or leave the
1027
- # field unset. To learn which resources support conditions in their IAM policies,
1028
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1029
- # resource-policies).
1118
+ # Optional. The maximum policy version that will be used to format the policy.
1119
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1120
+ # rejected. Requests for policies with any conditional role bindings must
1121
+ # specify version 3. Policies with no conditional role bindings may specify any
1122
+ # valid value or leave the field unset. The policy in the response might use the
1123
+ # policy version that you specified, or it might use a lower policy version. For
1124
+ # example, if you specify version 3, but the policy has no conditional role
1125
+ # bindings, the response uses version 1. To learn which resources support
1126
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1127
+ # google.com/iam/help/conditions/resource-policies).
1030
1128
  # Corresponds to the JSON property `requestedPolicyVersion`
1031
1129
  # @return [Fixnum]
1032
1130
  attr_accessor :requested_policy_version
@@ -1047,7 +1145,8 @@ module Google
1047
1145
  include Google::Apis::Core::Hashable
1048
1146
 
1049
1147
  # Output only. A server-assigned timestamp representing when this Instance was
1050
- # created.
1148
+ # created. For instances created before this field was added (August 2021), this
1149
+ # value is `seconds: 0, nanos: 1`.
1051
1150
  # Corresponds to the JSON property `createTime`
1052
1151
  # @return [String]
1053
1152
  attr_accessor :create_time
@@ -1442,12 +1541,19 @@ module Google
1442
1541
  class MultiClusterRoutingUseAny
1443
1542
  include Google::Apis::Core::Hashable
1444
1543
 
1544
+ # The set of clusters to route to. The order is ignored; clusters will be tried
1545
+ # in order of distance. If left empty, all clusters are eligible.
1546
+ # Corresponds to the JSON property `clusterIds`
1547
+ # @return [Array<String>]
1548
+ attr_accessor :cluster_ids
1549
+
1445
1550
  def initialize(**args)
1446
1551
  update!(**args)
1447
1552
  end
1448
1553
 
1449
1554
  # Update properties of this object
1450
1555
  def update!(**args)
1556
+ @cluster_ids = args[:cluster_ids] if args.key?(:cluster_ids)
1451
1557
  end
1452
1558
  end
1453
1559
 
@@ -1574,6 +1680,63 @@ module Google
1574
1680
  end
1575
1681
  end
1576
1682
 
1683
+ # The metadata for the Operation returned by PartialUpdateCluster.
1684
+ class PartialUpdateClusterMetadata
1685
+ include Google::Apis::Core::Hashable
1686
+
1687
+ # The time at which the operation failed or was completed successfully.
1688
+ # Corresponds to the JSON property `finishTime`
1689
+ # @return [String]
1690
+ attr_accessor :finish_time
1691
+
1692
+ # Request message for BigtableInstanceAdmin.PartialUpdateCluster.
1693
+ # Corresponds to the JSON property `originalRequest`
1694
+ # @return [Google::Apis::BigtableadminV2::PartialUpdateClusterRequest]
1695
+ attr_accessor :original_request
1696
+
1697
+ # The time at which the original request was received.
1698
+ # Corresponds to the JSON property `requestTime`
1699
+ # @return [String]
1700
+ attr_accessor :request_time
1701
+
1702
+ def initialize(**args)
1703
+ update!(**args)
1704
+ end
1705
+
1706
+ # Update properties of this object
1707
+ def update!(**args)
1708
+ @finish_time = args[:finish_time] if args.key?(:finish_time)
1709
+ @original_request = args[:original_request] if args.key?(:original_request)
1710
+ @request_time = args[:request_time] if args.key?(:request_time)
1711
+ end
1712
+ end
1713
+
1714
+ # Request message for BigtableInstanceAdmin.PartialUpdateCluster.
1715
+ class PartialUpdateClusterRequest
1716
+ include Google::Apis::Core::Hashable
1717
+
1718
+ # A resizable group of nodes in a particular cloud location, capable of serving
1719
+ # all Tables in the parent Instance.
1720
+ # Corresponds to the JSON property `cluster`
1721
+ # @return [Google::Apis::BigtableadminV2::Cluster]
1722
+ attr_accessor :cluster
1723
+
1724
+ # Required. The subset of Cluster fields which should be replaced.
1725
+ # Corresponds to the JSON property `updateMask`
1726
+ # @return [String]
1727
+ attr_accessor :update_mask
1728
+
1729
+ def initialize(**args)
1730
+ update!(**args)
1731
+ end
1732
+
1733
+ # Update properties of this object
1734
+ def update!(**args)
1735
+ @cluster = args[:cluster] if args.key?(:cluster)
1736
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1737
+ end
1738
+ end
1739
+
1577
1740
  # Request message for BigtableInstanceAdmin.PartialUpdateInstance.
1578
1741
  class PartialUpdateInstanceRequest
1579
1742
  include Google::Apis::Core::Hashable
@@ -1603,31 +1766,31 @@ module Google
1603
1766
 
1604
1767
  # An Identity and Access Management (IAM) policy, which specifies access
1605
1768
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1606
- # A `binding` binds one or more `members` to a single `role`. Members can be
1607
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1608
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1609
- # role or a user-created custom role. For some types of Google Cloud resources,
1610
- # a `binding` can also specify a `condition`, which is a logical expression that
1611
- # allows access to a resource only if the expression evaluates to `true`. A
1612
- # condition can add constraints based on attributes of the request, the resource,
1613
- # or both. To learn which resources support conditions in their IAM policies,
1614
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1615
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1616
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1617
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1618
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1619
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1620
- # title": "expirable access", "description": "Does not grant access after Sep
1621
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1622
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1623
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1624
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1625
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1626
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1627
- # description: Does not grant access after Sep 2020 expression: request.time <
1628
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1629
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1630
- # google.com/iam/docs/).
1769
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1770
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1771
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1772
+ # an IAM predefined role or a user-created custom role. For some types of Google
1773
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1774
+ # logical expression that allows access to a resource only if the expression
1775
+ # evaluates to `true`. A condition can add constraints based on attributes of
1776
+ # the request, the resource, or both. To learn which resources support
1777
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1778
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1779
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1780
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1781
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1782
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1783
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1784
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1785
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1786
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1787
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1788
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1789
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1790
+ # access description: Does not grant access after Sep 2020 expression: request.
1791
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1792
+ # a description of IAM and its features, see the [IAM documentation](https://
1793
+ # cloud.google.com/iam/docs/).
1631
1794
  class Policy
1632
1795
  include Google::Apis::Core::Hashable
1633
1796
 
@@ -1636,9 +1799,14 @@ module Google
1636
1799
  # @return [Array<Google::Apis::BigtableadminV2::AuditConfig>]
1637
1800
  attr_accessor :audit_configs
1638
1801
 
1639
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1640
- # condition` that determines how and when the `bindings` are applied. Each of
1641
- # the `bindings` must contain at least one member.
1802
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1803
+ # specify a `condition` that determines how and when the `bindings` are applied.
1804
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1805
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1806
+ # can be Google groups. Each occurrence of a principal counts towards these
1807
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1808
+ # example.com`, and not to any other principal, then you can add another 1,450
1809
+ # principals to the `bindings` in the `Policy`.
1642
1810
  # Corresponds to the JSON property `bindings`
1643
1811
  # @return [Array<Google::Apis::BigtableadminV2::Binding>]
1644
1812
  attr_accessor :bindings
@@ -1801,31 +1969,31 @@ module Google
1801
1969
 
1802
1970
  # An Identity and Access Management (IAM) policy, which specifies access
1803
1971
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1804
- # A `binding` binds one or more `members` to a single `role`. Members can be
1805
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1806
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1807
- # role or a user-created custom role. For some types of Google Cloud resources,
1808
- # a `binding` can also specify a `condition`, which is a logical expression that
1809
- # allows access to a resource only if the expression evaluates to `true`. A
1810
- # condition can add constraints based on attributes of the request, the resource,
1811
- # or both. To learn which resources support conditions in their IAM policies,
1812
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1813
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1814
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1815
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1816
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1817
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1818
- # title": "expirable access", "description": "Does not grant access after Sep
1819
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1820
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1821
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1822
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1823
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1824
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1825
- # description: Does not grant access after Sep 2020 expression: request.time <
1826
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1827
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1828
- # google.com/iam/docs/).
1972
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1973
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1974
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1975
+ # an IAM predefined role or a user-created custom role. For some types of Google
1976
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1977
+ # logical expression that allows access to a resource only if the expression
1978
+ # evaluates to `true`. A condition can add constraints based on attributes of
1979
+ # the request, the resource, or both. To learn which resources support
1980
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1981
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1982
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1983
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1984
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1985
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1986
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1987
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1988
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1989
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1990
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1991
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1992
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1993
+ # access description: Does not grant access after Sep 2020 expression: request.
1994
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1995
+ # a description of IAM and its features, see the [IAM documentation](https://
1996
+ # cloud.google.com/iam/docs/).
1829
1997
  # Corresponds to the JSON property `policy`
1830
1998
  # @return [Google::Apis::BigtableadminV2::Policy]
1831
1999
  attr_accessor :policy
@@ -2063,6 +2231,38 @@ module Google
2063
2231
  end
2064
2232
  end
2065
2233
 
2234
+ # Metadata type for the operation returned by google.bigtable.admin.v2.
2235
+ # BigtableTableAdmin.UndeleteTable.
2236
+ class UndeleteTableMetadata
2237
+ include Google::Apis::Core::Hashable
2238
+
2239
+ # If set, the time at which this operation finished or was cancelled.
2240
+ # Corresponds to the JSON property `endTime`
2241
+ # @return [String]
2242
+ attr_accessor :end_time
2243
+
2244
+ # The name of the table being restored.
2245
+ # Corresponds to the JSON property `name`
2246
+ # @return [String]
2247
+ attr_accessor :name
2248
+
2249
+ # The time at which this operation started.
2250
+ # Corresponds to the JSON property `startTime`
2251
+ # @return [String]
2252
+ attr_accessor :start_time
2253
+
2254
+ def initialize(**args)
2255
+ update!(**args)
2256
+ end
2257
+
2258
+ # Update properties of this object
2259
+ def update!(**args)
2260
+ @end_time = args[:end_time] if args.key?(:end_time)
2261
+ @name = args[:name] if args.key?(:name)
2262
+ @start_time = args[:start_time] if args.key?(:start_time)
2263
+ end
2264
+ end
2265
+
2066
2266
  # A GcRule which deletes cells matching any of the given rules.
2067
2267
  class Union
2068
2268
  include Google::Apis::Core::Hashable
@@ -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.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210811"
25
+ REVISION = "20211202"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class AutoscalingLimits
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class AutoscalingTargets
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class Backup
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -76,6 +88,18 @@ module Google
76
88
  include Google::Apis::Core::JsonObjectSupport
77
89
  end
78
90
 
91
+ class ClusterAutoscalingConfig
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ClusterConfig
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
79
103
  class ClusterState
80
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
105
 
@@ -292,6 +316,18 @@ module Google
292
316
  include Google::Apis::Core::JsonObjectSupport
293
317
  end
294
318
 
319
+ class PartialUpdateClusterMetadata
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class PartialUpdateClusterRequest
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
295
331
  class PartialUpdateInstanceRequest
296
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
333
 
@@ -370,6 +406,12 @@ module Google
370
406
  include Google::Apis::Core::JsonObjectSupport
371
407
  end
372
408
 
409
+ class UndeleteTableMetadata
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
373
415
  class Union
374
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
417
 
@@ -424,6 +466,21 @@ module Google
424
466
  end
425
467
  end
426
468
 
469
+ class AutoscalingLimits
470
+ # @private
471
+ class Representation < Google::Apis::Core::JsonRepresentation
472
+ property :max_serve_nodes, as: 'maxServeNodes'
473
+ property :min_serve_nodes, as: 'minServeNodes'
474
+ end
475
+ end
476
+
477
+ class AutoscalingTargets
478
+ # @private
479
+ class Representation < Google::Apis::Core::JsonRepresentation
480
+ property :cpu_utilization_percent, as: 'cpuUtilizationPercent'
481
+ end
482
+ end
483
+
427
484
  class Backup
428
485
  # @private
429
486
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -476,6 +533,8 @@ module Google
476
533
  class Cluster
477
534
  # @private
478
535
  class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :cluster_config, as: 'clusterConfig', class: Google::Apis::BigtableadminV2::ClusterConfig, decorator: Google::Apis::BigtableadminV2::ClusterConfig::Representation
537
+
479
538
  property :default_storage_type, as: 'defaultStorageType'
480
539
  property :encryption_config, as: 'encryptionConfig', class: Google::Apis::BigtableadminV2::EncryptionConfig, decorator: Google::Apis::BigtableadminV2::EncryptionConfig::Representation
481
540
 
@@ -486,6 +545,24 @@ module Google
486
545
  end
487
546
  end
488
547
 
548
+ class ClusterAutoscalingConfig
549
+ # @private
550
+ class Representation < Google::Apis::Core::JsonRepresentation
551
+ property :autoscaling_limits, as: 'autoscalingLimits', class: Google::Apis::BigtableadminV2::AutoscalingLimits, decorator: Google::Apis::BigtableadminV2::AutoscalingLimits::Representation
552
+
553
+ property :autoscaling_targets, as: 'autoscalingTargets', class: Google::Apis::BigtableadminV2::AutoscalingTargets, decorator: Google::Apis::BigtableadminV2::AutoscalingTargets::Representation
554
+
555
+ end
556
+ end
557
+
558
+ class ClusterConfig
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ property :cluster_autoscaling_config, as: 'clusterAutoscalingConfig', class: Google::Apis::BigtableadminV2::ClusterAutoscalingConfig, decorator: Google::Apis::BigtableadminV2::ClusterAutoscalingConfig::Representation
562
+
563
+ end
564
+ end
565
+
489
566
  class ClusterState
490
567
  # @private
491
568
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -786,6 +863,7 @@ module Google
786
863
  class MultiClusterRoutingUseAny
787
864
  # @private
788
865
  class Representation < Google::Apis::Core::JsonRepresentation
866
+ collection :cluster_ids, as: 'clusterIds'
789
867
  end
790
868
  end
791
869
 
@@ -819,6 +897,25 @@ module Google
819
897
  end
820
898
  end
821
899
 
900
+ class PartialUpdateClusterMetadata
901
+ # @private
902
+ class Representation < Google::Apis::Core::JsonRepresentation
903
+ property :finish_time, as: 'finishTime'
904
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV2::PartialUpdateClusterRequest, decorator: Google::Apis::BigtableadminV2::PartialUpdateClusterRequest::Representation
905
+
906
+ property :request_time, as: 'requestTime'
907
+ end
908
+ end
909
+
910
+ class PartialUpdateClusterRequest
911
+ # @private
912
+ class Representation < Google::Apis::Core::JsonRepresentation
913
+ property :cluster, as: 'cluster', class: Google::Apis::BigtableadminV2::Cluster, decorator: Google::Apis::BigtableadminV2::Cluster::Representation
914
+
915
+ property :update_mask, as: 'updateMask'
916
+ end
917
+ end
918
+
822
919
  class PartialUpdateInstanceRequest
823
920
  # @private
824
921
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -940,6 +1037,15 @@ module Google
940
1037
  end
941
1038
  end
942
1039
 
1040
+ class UndeleteTableMetadata
1041
+ # @private
1042
+ class Representation < Google::Apis::Core::JsonRepresentation
1043
+ property :end_time, as: 'endTime'
1044
+ property :name, as: 'name'
1045
+ property :start_time, as: 'startTime'
1046
+ end
1047
+ end
1048
+
943
1049
  class Union
944
1050
  # @private
945
1051
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -196,7 +196,11 @@ module Google
196
196
  execute_or_queue_command(command, &block)
197
197
  end
198
198
 
199
- # Create an instance within a project.
199
+ # Create an instance within a project. Note that exactly one of Cluster.
200
+ # serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set.
201
+ # If serve_nodes is set to non-zero, then the cluster is manually scaled. If
202
+ # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is
203
+ # enabled.
200
204
  # @param [String] parent
201
205
  # Required. The unique name of the project in which to create the new instance.
202
206
  # Values are of the form `projects/`project``.
@@ -697,7 +701,11 @@ module Google
697
701
  execute_or_queue_command(command, &block)
698
702
  end
699
703
 
700
- # Creates a cluster within an instance.
704
+ # Creates a cluster within an instance. Note that exactly one of Cluster.
705
+ # serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set.
706
+ # If serve_nodes is set to non-zero, then the cluster is manually scaled. If
707
+ # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is
708
+ # enabled.
701
709
  # @param [String] parent
702
710
  # Required. The unique name of the instance in which to create the new cluster.
703
711
  # Values are of the form `projects/`project`/instances/`instance``.
@@ -835,14 +843,20 @@ module Google
835
843
  end
836
844
 
837
845
  # Partially updates a cluster within a project. This method is the preferred way
838
- # to update a Cluster.
846
+ # to update a Cluster. To enable and update autoscaling, set cluster_config.
847
+ # cluster_autoscaling_config. When autoscaling is enabled, serve_nodes is
848
+ # treated as an OUTPUT_ONLY field, meaning that updates to it are ignored. Note
849
+ # that an update cannot simultaneously set serve_nodes to non-zero and
850
+ # cluster_config.cluster_autoscaling_config to non-empty, and also specify both
851
+ # in the update_mask. To disable autoscaling, clear cluster_config.
852
+ # cluster_autoscaling_config, and explicitly set a serve_node count via the
853
+ # update_mask.
839
854
  # @param [String] name
840
855
  # The unique name of the cluster. Values are of the form `projects/`project`/
841
856
  # instances/`instance`/clusters/a-z*`.
842
857
  # @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
843
858
  # @param [String] update_mask
844
- # Required. The subset of Cluster fields which should be replaced. Must be
845
- # explicitly set.
859
+ # Required. The subset of Cluster fields which should be replaced.
846
860
  # @param [String] fields
847
861
  # Selector specifying which fields to include in a partial response.
848
862
  # @param [String] quota_user
@@ -873,8 +887,9 @@ module Google
873
887
  execute_or_queue_command(command, &block)
874
888
  end
875
889
 
876
- # Updates a cluster within an instance. UpdateCluster is deprecated. Please use
877
- # PartialUpdateCluster instead.
890
+ # Updates a cluster within an instance. Note that UpdateCluster does not support
891
+ # updating cluster_config.cluster_autoscaling_config. In order to update it, you
892
+ # must use PartialUpdateCluster.
878
893
  # @param [String] name
879
894
  # The unique name of the cluster. Values are of the form `projects/`project`/
880
895
  # instances/`instance`/clusters/a-z*`.
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.9.0
4
+ version: 0.13.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-09-13 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigtableadmin_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.9.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigtableadmin_v2
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.13.0
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: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Bigtable Admin API V2