google-apis-bigtableadmin_v2 0.1.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/bigtableadmin_v2.rb +1 -1
- data/lib/google/apis/bigtableadmin_v2/classes.rb +91 -1
- data/lib/google/apis/bigtableadmin_v2/gem_version.rb +3 -3
- data/lib/google/apis/bigtableadmin_v2/representations.rb +35 -0
- data/lib/google/apis/bigtableadmin_v2/service.rb +51 -7
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a52fc188c571e7bd4b278169645ef2fdda4eda3866fb435c9a5f77b754d8455
|
4
|
+
data.tar.gz: 53ac2b462036b9bc7beb7478d6b640ae061d27b176d270202b43ed496533d942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca2091a9dcae3d0adc96ec37ac6e47e4bd53b4c1635f971801f7d3713bb9bf10a65e815f514f25fce451298e2e57e3c0f3b2578bc99f82a3bfe92ecb5b4dee20
|
7
|
+
data.tar.gz: 34eb922593a3ab8624ff26922384ab9be25e7455af9d48556d2b113533f95cc5e2fdd07330cb01f495c24ef6d76619899f11e1c276a45f3c582ebc87de9501a5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-bigtableadmin_v2
|
2
2
|
|
3
|
+
### v0.6.0 (2021-06-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210513
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
8
|
+
### v0.5.0 (2021-05-19)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.4.0 (2021-05-10)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210416
|
15
|
+
|
16
|
+
### v0.3.0 (2021-03-30)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210323
|
19
|
+
* Regenerated using generator version 0.2.0
|
20
|
+
|
21
|
+
### v0.2.0 (2021-03-04)
|
22
|
+
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
# Administer your Cloud Bigtable tables
|
51
51
|
AUTH_CLOUD_BIGTABLE_ADMIN_TABLE = 'https://www.googleapis.com/auth/cloud-bigtable.admin.table'
|
52
52
|
|
53
|
-
#
|
53
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
54
54
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
55
55
|
|
56
56
|
# View your data across Google Cloud Platform services
|
@@ -153,6 +153,13 @@ module Google
|
|
153
153
|
class Backup
|
154
154
|
include Google::Apis::Core::Hashable
|
155
155
|
|
156
|
+
# Encryption information for a given resource. If this resource is protected
|
157
|
+
# with customer managed encryption, the in-use Cloud Key Management Service (
|
158
|
+
# Cloud KMS) key version is specified along with its status.
|
159
|
+
# Corresponds to the JSON property `encryptionInfo`
|
160
|
+
# @return [Google::Apis::BigtableadminV2::EncryptionInfo]
|
161
|
+
attr_accessor :encryption_info
|
162
|
+
|
156
163
|
# Output only. `end_time` is the time that the backup was finished. The row data
|
157
164
|
# in the backup will be no newer than this timestamp.
|
158
165
|
# Corresponds to the JSON property `endTime`
|
@@ -207,6 +214,7 @@ module Google
|
|
207
214
|
|
208
215
|
# Update properties of this object
|
209
216
|
def update!(**args)
|
217
|
+
@encryption_info = args[:encryption_info] if args.key?(:encryption_info)
|
210
218
|
@end_time = args[:end_time] if args.key?(:end_time)
|
211
219
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
212
220
|
@name = args[:name] if args.key?(:name)
|
@@ -380,6 +388,11 @@ module Google
|
|
380
388
|
# @return [String]
|
381
389
|
attr_accessor :default_storage_type
|
382
390
|
|
391
|
+
# Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected cluster.
|
392
|
+
# Corresponds to the JSON property `encryptionConfig`
|
393
|
+
# @return [Google::Apis::BigtableadminV2::EncryptionConfig]
|
394
|
+
attr_accessor :encryption_config
|
395
|
+
|
383
396
|
# Immutable. The location where this cluster's nodes and storage reside. For
|
384
397
|
# best performance, clients should be located as close as possible to this
|
385
398
|
# cluster. Currently only zones are supported, so values should be of the form `
|
@@ -412,6 +425,7 @@ module Google
|
|
412
425
|
# Update properties of this object
|
413
426
|
def update!(**args)
|
414
427
|
@default_storage_type = args[:default_storage_type] if args.key?(:default_storage_type)
|
428
|
+
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
|
415
429
|
@location = args[:location] if args.key?(:location)
|
416
430
|
@name = args[:name] if args.key?(:name)
|
417
431
|
@serve_nodes = args[:serve_nodes] if args.key?(:serve_nodes)
|
@@ -423,6 +437,15 @@ module Google
|
|
423
437
|
class ClusterState
|
424
438
|
include Google::Apis::Core::Hashable
|
425
439
|
|
440
|
+
# Output only. The encryption information for the table in this cluster. If the
|
441
|
+
# encryption key protecting this resource is customer managed, then its version
|
442
|
+
# can be rotated in Cloud Key Management Service (Cloud KMS). The primary
|
443
|
+
# version of the key and its status will be reflected here when changes
|
444
|
+
# propagate from Cloud KMS.
|
445
|
+
# Corresponds to the JSON property `encryptionInfo`
|
446
|
+
# @return [Array<Google::Apis::BigtableadminV2::EncryptionInfo>]
|
447
|
+
attr_accessor :encryption_info
|
448
|
+
|
426
449
|
# Output only. The state of replication for the table in this cluster.
|
427
450
|
# Corresponds to the JSON property `replicationState`
|
428
451
|
# @return [String]
|
@@ -434,6 +457,7 @@ module Google
|
|
434
457
|
|
435
458
|
# Update properties of this object
|
436
459
|
def update!(**args)
|
460
|
+
@encryption_info = args[:encryption_info] if args.key?(:encryption_info)
|
437
461
|
@replication_state = args[:replication_state] if args.key?(:replication_state)
|
438
462
|
end
|
439
463
|
end
|
@@ -732,6 +756,71 @@ module Google
|
|
732
756
|
end
|
733
757
|
end
|
734
758
|
|
759
|
+
# Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected cluster.
|
760
|
+
class EncryptionConfig
|
761
|
+
include Google::Apis::Core::Hashable
|
762
|
+
|
763
|
+
# Describes the Cloud KMS encryption key that will be used to protect the
|
764
|
+
# destination Bigtable cluster. The requirements for this key are: 1) The Cloud
|
765
|
+
# Bigtable service account associated with the project that contains this
|
766
|
+
# cluster must be granted the `cloudkms.cryptoKeyEncrypterDecrypter` role on the
|
767
|
+
# CMEK key. 2) Only regional keys can be used and the region of the CMEK key
|
768
|
+
# must match the region of the cluster. 3) All clusters within an instance must
|
769
|
+
# use the same CMEK key. Values are of the form `projects/`project`/locations/`
|
770
|
+
# location`/keyRings/`keyring`/cryptoKeys/`key``
|
771
|
+
# Corresponds to the JSON property `kmsKeyName`
|
772
|
+
# @return [String]
|
773
|
+
attr_accessor :kms_key_name
|
774
|
+
|
775
|
+
def initialize(**args)
|
776
|
+
update!(**args)
|
777
|
+
end
|
778
|
+
|
779
|
+
# Update properties of this object
|
780
|
+
def update!(**args)
|
781
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
782
|
+
end
|
783
|
+
end
|
784
|
+
|
785
|
+
# Encryption information for a given resource. If this resource is protected
|
786
|
+
# with customer managed encryption, the in-use Cloud Key Management Service (
|
787
|
+
# Cloud KMS) key version is specified along with its status.
|
788
|
+
class EncryptionInfo
|
789
|
+
include Google::Apis::Core::Hashable
|
790
|
+
|
791
|
+
# The `Status` type defines a logical error model that is suitable for different
|
792
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
793
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
794
|
+
# data: error code, error message, and error details. You can find out more
|
795
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
796
|
+
# //cloud.google.com/apis/design/errors).
|
797
|
+
# Corresponds to the JSON property `encryptionStatus`
|
798
|
+
# @return [Google::Apis::BigtableadminV2::Status]
|
799
|
+
attr_accessor :encryption_status
|
800
|
+
|
801
|
+
# Output only. The type of encryption used to protect this resource.
|
802
|
+
# Corresponds to the JSON property `encryptionType`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :encryption_type
|
805
|
+
|
806
|
+
# Output only. The version of the Cloud KMS key specified in the parent cluster
|
807
|
+
# that is in use for the data underlying this table.
|
808
|
+
# Corresponds to the JSON property `kmsKeyVersion`
|
809
|
+
# @return [String]
|
810
|
+
attr_accessor :kms_key_version
|
811
|
+
|
812
|
+
def initialize(**args)
|
813
|
+
update!(**args)
|
814
|
+
end
|
815
|
+
|
816
|
+
# Update properties of this object
|
817
|
+
def update!(**args)
|
818
|
+
@encryption_status = args[:encryption_status] if args.key?(:encryption_status)
|
819
|
+
@encryption_type = args[:encryption_type] if args.key?(:encryption_type)
|
820
|
+
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
|
821
|
+
end
|
822
|
+
end
|
823
|
+
|
735
824
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
736
825
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
737
826
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -1849,7 +1938,8 @@ module Google
|
|
1849
1938
|
# Output only. Map from cluster ID to per-cluster table state. If it could not
|
1850
1939
|
# be determined whether or not the table has data in a particular cluster (for
|
1851
1940
|
# example, if its zone is unavailable), then there will be an entry for the
|
1852
|
-
# cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `
|
1941
|
+
# cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `
|
1942
|
+
# ENCRYPTION_VIEW`, `FULL`
|
1853
1943
|
# Corresponds to the JSON property `clusterStates`
|
1854
1944
|
# @return [Hash<String,Google::Apis::BigtableadminV2::ClusterState>]
|
1855
1945
|
attr_accessor :cluster_states
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210513"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -136,6 +136,18 @@ module Google
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
137
137
|
end
|
138
138
|
|
139
|
+
class EncryptionConfig
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class EncryptionInfo
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
139
151
|
class Expr
|
140
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
153
|
|
@@ -415,6 +427,8 @@ module Google
|
|
415
427
|
class Backup
|
416
428
|
# @private
|
417
429
|
class Representation < Google::Apis::Core::JsonRepresentation
|
430
|
+
property :encryption_info, as: 'encryptionInfo', class: Google::Apis::BigtableadminV2::EncryptionInfo, decorator: Google::Apis::BigtableadminV2::EncryptionInfo::Representation
|
431
|
+
|
418
432
|
property :end_time, as: 'endTime'
|
419
433
|
property :expire_time, as: 'expireTime'
|
420
434
|
property :name, as: 'name'
|
@@ -463,6 +477,8 @@ module Google
|
|
463
477
|
# @private
|
464
478
|
class Representation < Google::Apis::Core::JsonRepresentation
|
465
479
|
property :default_storage_type, as: 'defaultStorageType'
|
480
|
+
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::BigtableadminV2::EncryptionConfig, decorator: Google::Apis::BigtableadminV2::EncryptionConfig::Representation
|
481
|
+
|
466
482
|
property :location, as: 'location'
|
467
483
|
property :name, as: 'name'
|
468
484
|
property :serve_nodes, as: 'serveNodes'
|
@@ -473,6 +489,8 @@ module Google
|
|
473
489
|
class ClusterState
|
474
490
|
# @private
|
475
491
|
class Representation < Google::Apis::Core::JsonRepresentation
|
492
|
+
collection :encryption_info, as: 'encryptionInfo', class: Google::Apis::BigtableadminV2::EncryptionInfo, decorator: Google::Apis::BigtableadminV2::EncryptionInfo::Representation
|
493
|
+
|
476
494
|
property :replication_state, as: 'replicationState'
|
477
495
|
end
|
478
496
|
end
|
@@ -564,6 +582,23 @@ module Google
|
|
564
582
|
end
|
565
583
|
end
|
566
584
|
|
585
|
+
class EncryptionConfig
|
586
|
+
# @private
|
587
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
588
|
+
property :kms_key_name, as: 'kmsKeyName'
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
class EncryptionInfo
|
593
|
+
# @private
|
594
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
595
|
+
property :encryption_status, as: 'encryptionStatus', class: Google::Apis::BigtableadminV2::Status, decorator: Google::Apis::BigtableadminV2::Status::Representation
|
596
|
+
|
597
|
+
property :encryption_type, as: 'encryptionType'
|
598
|
+
property :kms_key_version, as: 'kmsKeyVersion'
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
567
602
|
class Expr
|
568
603
|
# @private
|
569
604
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -834,7 +834,47 @@ module Google
|
|
834
834
|
execute_or_queue_command(command, &block)
|
835
835
|
end
|
836
836
|
|
837
|
-
#
|
837
|
+
# Partially updates a cluster within a project. This method is the preferred way
|
838
|
+
# to update a Cluster.
|
839
|
+
# @param [String] name
|
840
|
+
# The unique name of the cluster. Values are of the form `projects/`project`/
|
841
|
+
# instances/`instance`/clusters/a-z*`.
|
842
|
+
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
|
843
|
+
# @param [String] update_mask
|
844
|
+
# Required. The subset of Cluster fields which should be replaced. Must be
|
845
|
+
# explicitly set.
|
846
|
+
# @param [String] fields
|
847
|
+
# Selector specifying which fields to include in a partial response.
|
848
|
+
# @param [String] quota_user
|
849
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
850
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
851
|
+
# @param [Google::Apis::RequestOptions] options
|
852
|
+
# Request-specific options
|
853
|
+
#
|
854
|
+
# @yield [result, err] Result & error if block supplied
|
855
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
|
856
|
+
# @yieldparam err [StandardError] error object if request failed
|
857
|
+
#
|
858
|
+
# @return [Google::Apis::BigtableadminV2::Operation]
|
859
|
+
#
|
860
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
861
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
862
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
863
|
+
def partial_project_instance_cluster_update_cluster(name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
864
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
865
|
+
command.request_representation = Google::Apis::BigtableadminV2::Cluster::Representation
|
866
|
+
command.request_object = cluster_object
|
867
|
+
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
|
868
|
+
command.response_class = Google::Apis::BigtableadminV2::Operation
|
869
|
+
command.params['name'] = name unless name.nil?
|
870
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
871
|
+
command.query['fields'] = fields unless fields.nil?
|
872
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
873
|
+
execute_or_queue_command(command, &block)
|
874
|
+
end
|
875
|
+
|
876
|
+
# Updates a cluster within an instance. UpdateCluster is deprecated. Please use
|
877
|
+
# PartialUpdateCluster instead.
|
838
878
|
# @param [String] name
|
839
879
|
# The unique name of the cluster. Values are of the form `projects/`project`/
|
840
880
|
# instances/`instance`/clusters/a-z*`.
|
@@ -1531,14 +1571,14 @@ module Google
|
|
1531
1571
|
end
|
1532
1572
|
|
1533
1573
|
# Create a new table by restoring from a completed backup. The new table must be
|
1534
|
-
# in the same
|
1574
|
+
# in the same project as the instance containing the backup. The returned table
|
1535
1575
|
# long-running operation can be used to track the progress of the operation, and
|
1536
1576
|
# to cancel it. The metadata field type is RestoreTableMetadata. The response
|
1537
1577
|
# type is Table, if successful.
|
1538
1578
|
# @param [String] parent
|
1539
1579
|
# Required. The name of the instance in which to create the restored table. This
|
1540
|
-
# instance must be the
|
1541
|
-
# projects//instances/`.
|
1580
|
+
# instance must be in the same project as the source backup. Values are of the
|
1581
|
+
# form `projects//instances/`.
|
1542
1582
|
# @param [Google::Apis::BigtableadminV2::RestoreTableRequest] restore_table_request_object
|
1543
1583
|
# @param [String] fields
|
1544
1584
|
# Selector specifying which fields to include in a partial response.
|
@@ -1672,11 +1712,15 @@ module Google
|
|
1672
1712
|
# @param [String] name
|
1673
1713
|
# The resource that owns the locations collection, if applicable.
|
1674
1714
|
# @param [String] filter
|
1675
|
-
#
|
1715
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
1716
|
+
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
1717
|
+
# AIP-160](https://google.aip.dev/160).
|
1676
1718
|
# @param [Fixnum] page_size
|
1677
|
-
# The
|
1719
|
+
# The maximum number of results to return. If not set, the service selects a
|
1720
|
+
# default.
|
1678
1721
|
# @param [String] page_token
|
1679
|
-
#
|
1722
|
+
# A page token received from the `next_page_token` field in the response. Send
|
1723
|
+
# that page token to receive the subsequent page.
|
1680
1724
|
# @param [String] fields
|
1681
1725
|
# Selector specifying which fields to include in a partial response.
|
1682
1726
|
# @param [String] quota_user
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-14 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-bigtableadmin_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigtableadmin_v2
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Bigtable Admin API V2
|