google-apis-bigtableadmin_v2 0.37.0 → 0.38.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: b662f8e4bdf995af8528431fd2a2d98458c2440959ac2b1e205bd3ea33e583b5
4
- data.tar.gz: 99aa10f664c3614f7b6e16b1815c5373deb8d7f82bd11f4807632bc093c46285
3
+ metadata.gz: 8c99a3de2af108a923aa77f8bfea8fff9be410d758b28750209750147d8d6205
4
+ data.tar.gz: 5ac608f24643eae50e92cc49d89486620605376ed55a27a5bf2f1bf04f77f08e
5
5
  SHA512:
6
- metadata.gz: cb7c4d6568da22c5b2d5f97e156177ba03393f209610dd79b9effc667ca167d6643a9f6db8dd8bcb4e872845306fa1cf9e55501bac9088aa6bf889e53d6c4cbe
7
- data.tar.gz: 02ece3fd88d92ec583692f0f23042a5f41d9cdd6ae81920f9d9a626eb54c795082073dc78c215f1723fb8c872300b676a4edca47a7138284a248e7958864309c
6
+ metadata.gz: 62182a152d7e97033cb9ba501cae785b231906e5d59fb6a0267ae1ed551a87f536d6c6405d82d8b32eb385ae8d5bbd386bb244c5db9ddcbe7d155dfda235322f
7
+ data.tar.gz: c6565696259e9ecff95f92b260e75cbc4dabd47ea6284bb39c67adee5c169dea6a81736a958d563b3caf10cdd0091d6a397df57dabd609e4fb5e7bb56673414c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-bigtableadmin_v2
2
2
 
3
+ ### v0.38.0 (2023-07-02)
4
+
5
+ * Regenerated from discovery document revision 20230622
6
+
3
7
  ### v0.37.0 (2023-05-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20230517
@@ -412,6 +412,28 @@ module Google
412
412
  end
413
413
  end
414
414
 
415
+ # Change stream configuration.
416
+ class ChangeStreamConfig
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # How long the change stream should be retained. Change stream data older than
420
+ # the retention period will not be returned when reading the change stream from
421
+ # the table. Values must be at least 1 day and at most 7 days, and will be
422
+ # truncated to microsecond granularity.
423
+ # Corresponds to the JSON property `retentionPeriod`
424
+ # @return [String]
425
+ attr_accessor :retention_period
426
+
427
+ def initialize(**args)
428
+ update!(**args)
429
+ end
430
+
431
+ # Update properties of this object
432
+ def update!(**args)
433
+ @retention_period = args[:retention_period] if args.key?(:retention_period)
434
+ end
435
+ end
436
+
415
437
  # Request message for google.bigtable.admin.v2.BigtableTableAdmin.
416
438
  # CheckConsistency
417
439
  class CheckConsistencyRequest
@@ -2328,6 +2350,11 @@ module Google
2328
2350
  class Table
2329
2351
  include Google::Apis::Core::Hashable
2330
2352
 
2353
+ # Change stream configuration.
2354
+ # Corresponds to the JSON property `changeStreamConfig`
2355
+ # @return [Google::Apis::BigtableadminV2::ChangeStreamConfig]
2356
+ attr_accessor :change_stream_config
2357
+
2331
2358
  # Output only. Map from cluster ID to per-cluster table state. If it could not
2332
2359
  # be determined whether or not the table has data in a particular cluster (for
2333
2360
  # example, if its zone is unavailable), then there will be an entry for the
@@ -2388,6 +2415,7 @@ module Google
2388
2415
 
2389
2416
  # Update properties of this object
2390
2417
  def update!(**args)
2418
+ @change_stream_config = args[:change_stream_config] if args.key?(:change_stream_config)
2391
2419
  @cluster_states = args[:cluster_states] if args.key?(:cluster_states)
2392
2420
  @column_families = args[:column_families] if args.key?(:column_families)
2393
2421
  @deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection)
@@ -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.37.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230517"
25
+ REVISION = "20230622"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class ChangeStreamConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class CheckConsistencyRequest
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -555,6 +561,13 @@ module Google
555
561
  end
556
562
  end
557
563
 
564
+ class ChangeStreamConfig
565
+ # @private
566
+ class Representation < Google::Apis::Core::JsonRepresentation
567
+ property :retention_period, as: 'retentionPeriod'
568
+ end
569
+ end
570
+
558
571
  class CheckConsistencyRequest
559
572
  # @private
560
573
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1080,6 +1093,8 @@ module Google
1080
1093
  class Table
1081
1094
  # @private
1082
1095
  class Representation < Google::Apis::Core::JsonRepresentation
1096
+ property :change_stream_config, as: 'changeStreamConfig', class: Google::Apis::BigtableadminV2::ChangeStreamConfig, decorator: Google::Apis::BigtableadminV2::ChangeStreamConfig::Representation
1097
+
1083
1098
  hash :cluster_states, as: 'clusterStates', class: Google::Apis::BigtableadminV2::ClusterState, decorator: Google::Apis::BigtableadminV2::ClusterState::Representation
1084
1099
 
1085
1100
  hash :column_families, as: 'columnFamilies', class: Google::Apis::BigtableadminV2::ColumnFamily, decorator: Google::Apis::BigtableadminV2::ColumnFamily::Representation
@@ -1862,6 +1862,113 @@ module Google
1862
1862
  execute_or_queue_command(command, &block)
1863
1863
  end
1864
1864
 
1865
+ # Gets the access control policy for a Table resource. Returns an empty policy
1866
+ # if the resource exists but does not have a policy set.
1867
+ # @param [String] resource
1868
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1869
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1870
+ # appropriate value for this field.
1871
+ # @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
1872
+ # @param [String] fields
1873
+ # Selector specifying which fields to include in a partial response.
1874
+ # @param [String] quota_user
1875
+ # Available to use for quota purposes for server-side applications. Can be any
1876
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1877
+ # @param [Google::Apis::RequestOptions] options
1878
+ # Request-specific options
1879
+ #
1880
+ # @yield [result, err] Result & error if block supplied
1881
+ # @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
1882
+ # @yieldparam err [StandardError] error object if request failed
1883
+ #
1884
+ # @return [Google::Apis::BigtableadminV2::Policy]
1885
+ #
1886
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1887
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1888
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1889
+ def get_view_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1890
+ command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
1891
+ command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation
1892
+ command.request_object = get_iam_policy_request_object
1893
+ command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
1894
+ command.response_class = Google::Apis::BigtableadminV2::Policy
1895
+ command.params['resource'] = resource unless resource.nil?
1896
+ command.query['fields'] = fields unless fields.nil?
1897
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1898
+ execute_or_queue_command(command, &block)
1899
+ end
1900
+
1901
+ # Sets the access control policy on a Table resource. Replaces any existing
1902
+ # policy.
1903
+ # @param [String] resource
1904
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1905
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1906
+ # appropriate value for this field.
1907
+ # @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
1908
+ # @param [String] fields
1909
+ # Selector specifying which fields to include in a partial response.
1910
+ # @param [String] quota_user
1911
+ # Available to use for quota purposes for server-side applications. Can be any
1912
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1913
+ # @param [Google::Apis::RequestOptions] options
1914
+ # Request-specific options
1915
+ #
1916
+ # @yield [result, err] Result & error if block supplied
1917
+ # @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
1918
+ # @yieldparam err [StandardError] error object if request failed
1919
+ #
1920
+ # @return [Google::Apis::BigtableadminV2::Policy]
1921
+ #
1922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1925
+ def set_view_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1926
+ command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
1927
+ command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation
1928
+ command.request_object = set_iam_policy_request_object
1929
+ command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
1930
+ command.response_class = Google::Apis::BigtableadminV2::Policy
1931
+ command.params['resource'] = resource unless resource.nil?
1932
+ command.query['fields'] = fields unless fields.nil?
1933
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1934
+ execute_or_queue_command(command, &block)
1935
+ end
1936
+
1937
+ # Returns permissions that the caller has on the specified table resource.
1938
+ # @param [String] resource
1939
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1940
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1941
+ # appropriate value for this field.
1942
+ # @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
1943
+ # @param [String] fields
1944
+ # Selector specifying which fields to include in a partial response.
1945
+ # @param [String] quota_user
1946
+ # Available to use for quota purposes for server-side applications. Can be any
1947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1948
+ # @param [Google::Apis::RequestOptions] options
1949
+ # Request-specific options
1950
+ #
1951
+ # @yield [result, err] Result & error if block supplied
1952
+ # @yieldparam result [Google::Apis::BigtableadminV2::TestIamPermissionsResponse] parsed result object
1953
+ # @yieldparam err [StandardError] error object if request failed
1954
+ #
1955
+ # @return [Google::Apis::BigtableadminV2::TestIamPermissionsResponse]
1956
+ #
1957
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1958
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1959
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1960
+ def test_view_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1961
+ command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
1962
+ command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation
1963
+ command.request_object = test_iam_permissions_request_object
1964
+ command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation
1965
+ command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse
1966
+ command.params['resource'] = resource unless resource.nil?
1967
+ command.query['fields'] = fields unless fields.nil?
1968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1969
+ execute_or_queue_command(command, &block)
1970
+ end
1971
+
1865
1972
  # Gets information about a location.
1866
1973
  # @param [String] name
1867
1974
  # Resource name for the location.
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.37.0
4
+ version: 0.38.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: 2023-05-28 00:00:00.000000000 Z
11
+ date: 2023-07-02 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.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.38.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: []