google-apis-bigtableadmin_v2 0.2.0 → 0.7.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: 3db44f27583ae41aa04c1c1ffd6551591ea6de110ac871ab5a2542eb71e8ea08
4
- data.tar.gz: ba7646af70f667028f37f56a683d2c6abbece6df6327e12df96720e8a1513ab0
3
+ metadata.gz: 44fa4e70f8509f6bb38a6e509f7cc3f2880e1a90a1b6470d8af0fd045528cec0
4
+ data.tar.gz: 9fc05f0329d24bf3c302bc2a2decc47d31dd88043da54bf66bd80df8e7536cad
5
5
  SHA512:
6
- metadata.gz: e7a14276b9605656bb8f792f34aaf7497931bfee4e9d1332b7ba9328d2b6ecda237caf9bf3cd4fde233b9ba58a8de920bbb49628402745144ae2ab12411cb32e
7
- data.tar.gz: 26dcad7b50abff9f0cbab1d6b675095c77f8bb772cf3959f709264ec32a236edcb2b651886a99b99d9e9a9aff0c1833a2c5162bcf98412cec7207c3f7deebd20
6
+ metadata.gz: 68a5f4f300a3f3afa9d330b56dd9c5dcbcb4533a9c26af24cc550a985b455a8323d6588df0d8623aba67224bedb0b69e0c6705bf9ad7941ae60d4476b713cfb3
7
+ data.tar.gz: 691f548cace9f7530432dff24cd5e1dd2aa84c16215a3bcd83edf269ec24c2d29d45074332f42eb9847358ea65a6be70deb957bb5b1ba7c64a3751259f2bd475
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-bigtableadmin_v2
2
2
 
3
+ ### v0.7.0 (2021-06-24)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.6.0 (2021-06-09)
8
+
9
+ * Regenerated from discovery document revision 20210513
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.5.0 (2021-05-19)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.4.0 (2021-05-10)
17
+
18
+ * Regenerated from discovery document revision 20210416
19
+
20
+ ### v0.3.0 (2021-03-30)
21
+
22
+ * Regenerated from discovery document revision 20210323
23
+ * Regenerated using generator version 0.2.0
24
+
3
25
  ### v0.2.0 (2021-03-04)
4
26
 
5
27
  * Regenerated using generator version 0.1.2
@@ -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
- # View and manage your data across Google Cloud Platform services
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`, `FULL`
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.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20200821"
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
- # Updates a cluster within an instance.
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 instance as the instance containing the backup. The returned table
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 parent of the source backup. Values are of the form `
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
- # The standard list filter.
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 standard list page size.
1719
+ # The maximum number of results to return. If not set, the service selects a
1720
+ # default.
1678
1721
  # @param [String] page_token
1679
- # The standard list page token.
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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigtableadmin_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Bigtable Admin API V2. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.7.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigtableadmin_v2
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Cloud Bigtable Admin API V2