google-apis-spanner_v1 0.32.0 → 0.35.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: 3ebc4e1c56604db24572ad85d3b3dbc50d3641699006f5b3873fc8ba308327cd
4
- data.tar.gz: 915199705f595e0dc523fae23899123c64b1fba8797f2ba097e61ed7f931ce5e
3
+ metadata.gz: 29054199e604a86833919d0b9af2a26da35c0895b869de9b81c57bdbf22a9d01
4
+ data.tar.gz: 472eb3c6b3cc17e2e7c695faa882c290d178f5d50ce20d5776d35c8d0b740df5
5
5
  SHA512:
6
- metadata.gz: b186ef6f4da24f526a2621227364d3fbac2ab1b28d400c86ab594ae54f303d63a08e8ebfce82a22a236285767b35dd00de04d8db48775849c8fda1316f50a9c5
7
- data.tar.gz: 99b785c3a771003129dcc59c06deb73f760192e18610f765741a3822af0a43528a9aea47356c6750c5f5558d2fbae27ff4a79b36c7bd25b5f532f7b7ae7a3c71
6
+ metadata.gz: e91b6c661250b07d53efd8a7fc7f209f035a873bd19ec00f50066ac731898b1c397e46868a70df55b0ef4cfe74867535a936cedb1deca5ebbb14a9b8cf60cd99
7
+ data.tar.gz: d71754ab504042646d400c1d75309bafdec83dbe3b68a7cd3f939dfa68be01fc70762e8765bad03e8e7bb298bd6ce29a4f08956a4fe80db93b9e9594222be505
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.35.0 (2022-08-08)
4
+
5
+ * Regenerated from discovery document revision 20220726
6
+
7
+ ### v0.34.0 (2022-07-27)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.33.0 (2022-07-23)
12
+
13
+ * Regenerated from discovery document revision 20220718
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.32.0 (2022-06-30)
4
17
 
5
18
  * Regenerated using generator version 0.8.0
@@ -1752,6 +1752,44 @@ module Google
1752
1752
  end
1753
1753
  end
1754
1754
 
1755
+ # Free instance specific metadata that is kept even after an instance has been
1756
+ # upgraded for tracking purposes.
1757
+ class FreeInstanceMetadata
1758
+ include Google::Apis::Core::Hashable
1759
+
1760
+ # Specifies the expiration behavior of a free instance. The default of
1761
+ # ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during or
1762
+ # after creation, and before expiration.
1763
+ # Corresponds to the JSON property `expireBehavior`
1764
+ # @return [String]
1765
+ attr_accessor :expire_behavior
1766
+
1767
+ # Output only. Timestamp after which the instance will either be upgraded or
1768
+ # scheduled for deletion after a grace period. ExpireBehavior is used to choose
1769
+ # between upgrading or scheduling the free instance for deletion. This timestamp
1770
+ # is set during the creation of a free instance.
1771
+ # Corresponds to the JSON property `expireTime`
1772
+ # @return [String]
1773
+ attr_accessor :expire_time
1774
+
1775
+ # Output only. If present, the timestamp at which the free instance was upgraded
1776
+ # to a provisioned instance.
1777
+ # Corresponds to the JSON property `upgradeTime`
1778
+ # @return [String]
1779
+ attr_accessor :upgrade_time
1780
+
1781
+ def initialize(**args)
1782
+ update!(**args)
1783
+ end
1784
+
1785
+ # Update properties of this object
1786
+ def update!(**args)
1787
+ @expire_behavior = args[:expire_behavior] if args.key?(:expire_behavior)
1788
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1789
+ @upgrade_time = args[:upgrade_time] if args.key?(:upgrade_time)
1790
+ end
1791
+ end
1792
+
1755
1793
  # The response for GetDatabaseDdl.
1756
1794
  class GetDatabaseDdlResponse
1757
1795
  include Google::Apis::Core::Hashable
@@ -1888,6 +1926,17 @@ module Google
1888
1926
  # @return [Array<String>]
1889
1927
  attr_accessor :endpoint_uris
1890
1928
 
1929
+ # Free instance specific metadata that is kept even after an instance has been
1930
+ # upgraded for tracking purposes.
1931
+ # Corresponds to the JSON property `freeInstanceMetadata`
1932
+ # @return [Google::Apis::SpannerV1::FreeInstanceMetadata]
1933
+ attr_accessor :free_instance_metadata
1934
+
1935
+ # The `InstanceType` of the current instance.
1936
+ # Corresponds to the JSON property `instanceType`
1937
+ # @return [String]
1938
+ attr_accessor :instance_type
1939
+
1891
1940
  # Cloud Labels are a flexible and lightweight mechanism for organizing cloud
1892
1941
  # resources into groups that reflect a customer's organizational needs and
1893
1942
  # deployment strategies. Cloud Labels can be used to filter collections of
@@ -1956,6 +2005,8 @@ module Google
1956
2005
  @create_time = args[:create_time] if args.key?(:create_time)
1957
2006
  @display_name = args[:display_name] if args.key?(:display_name)
1958
2007
  @endpoint_uris = args[:endpoint_uris] if args.key?(:endpoint_uris)
2008
+ @free_instance_metadata = args[:free_instance_metadata] if args.key?(:free_instance_metadata)
2009
+ @instance_type = args[:instance_type] if args.key?(:instance_type)
1959
2010
  @labels = args[:labels] if args.key?(:labels)
1960
2011
  @name = args[:name] if args.key?(:name)
1961
2012
  @node_count = args[:node_count] if args.key?(:node_count)
@@ -1975,6 +2026,12 @@ module Google
1975
2026
  # @return [String]
1976
2027
  attr_accessor :display_name
1977
2028
 
2029
+ # Output only. Describes whether free instances are available to be created in
2030
+ # this instance config.
2031
+ # Corresponds to the JSON property `freeInstanceAvailability`
2032
+ # @return [String]
2033
+ attr_accessor :free_instance_availability
2034
+
1978
2035
  # Allowed values of the "default_leader" schema option for databases in
1979
2036
  # instances that use this instance configuration.
1980
2037
  # Corresponds to the JSON property `leaderOptions`
@@ -2000,6 +2057,7 @@ module Google
2000
2057
  # Update properties of this object
2001
2058
  def update!(**args)
2002
2059
  @display_name = args[:display_name] if args.key?(:display_name)
2060
+ @free_instance_availability = args[:free_instance_availability] if args.key?(:free_instance_availability)
2003
2061
  @leader_options = args[:leader_options] if args.key?(:leader_options)
2004
2062
  @name = args[:name] if args.key?(:name)
2005
2063
  @replicas = args[:replicas] if args.key?(:replicas)
@@ -2893,11 +2951,14 @@ module Google
2893
2951
  # suppose a streaming SQL query is yielding a result set whose rows contain a
2894
2952
  # single string field. The following `PartialResultSet`s might be yielded: ` "
2895
2953
  # metadata": ` ... ` "values": ["Hello", "W"] "chunked_value": true "
2896
- # resume_token": "Af65..." ` ` "values": ["orl"] "chunked_value": true "
2897
- # resume_token": "Bqp2..." ` ` "values": ["d"] "resume_token": "Zx1B..." ` This
2898
- # sequence of `PartialResultSet`s encodes two rows, one containing the field
2899
- # value `"Hello"`, and a second containing the field value `"World" = "W" + "orl"
2900
- # + "d"`.
2954
+ # resume_token": "Af65..." ` ` "values": ["orl"] "chunked_value": true ` ` "
2955
+ # values": ["d"] "resume_token": "Zx1B..." ` This sequence of `PartialResultSet`
2956
+ # s encodes two rows, one containing the field value `"Hello"`, and a second
2957
+ # containing the field value `"World" = "W" + "orl" + "d"`. Not all `
2958
+ # PartialResultSet`s contain a `resume_token`. Execution can only be resumed
2959
+ # from a previously yielded `resume_token`. For the above sequence of `
2960
+ # PartialResultSet`s, resuming the query with `"resume_token": "Af65..."` will
2961
+ # yield results from the `PartialResultSet` with value `["orl"]`.
2901
2962
  # Corresponds to the JSON property `values`
2902
2963
  # @return [Array<Object>]
2903
2964
  attr_accessor :values
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpannerV1
18
18
  # Version of the google-apis-spanner_v1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220615"
25
+ REVISION = "20220726"
26
26
  end
27
27
  end
28
28
  end
@@ -220,6 +220,12 @@ module Google
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
+ class FreeInstanceMetadata
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
223
229
  class GetDatabaseDdlResponse
224
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
231
 
@@ -1011,6 +1017,15 @@ module Google
1011
1017
  end
1012
1018
  end
1013
1019
 
1020
+ class FreeInstanceMetadata
1021
+ # @private
1022
+ class Representation < Google::Apis::Core::JsonRepresentation
1023
+ property :expire_behavior, as: 'expireBehavior'
1024
+ property :expire_time, as: 'expireTime'
1025
+ property :upgrade_time, as: 'upgradeTime'
1026
+ end
1027
+ end
1028
+
1014
1029
  class GetDatabaseDdlResponse
1015
1030
  # @private
1016
1031
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1055,6 +1070,9 @@ module Google
1055
1070
  property :create_time, as: 'createTime'
1056
1071
  property :display_name, as: 'displayName'
1057
1072
  collection :endpoint_uris, as: 'endpointUris'
1073
+ property :free_instance_metadata, as: 'freeInstanceMetadata', class: Google::Apis::SpannerV1::FreeInstanceMetadata, decorator: Google::Apis::SpannerV1::FreeInstanceMetadata::Representation
1074
+
1075
+ property :instance_type, as: 'instanceType'
1058
1076
  hash :labels, as: 'labels'
1059
1077
  property :name, as: 'name'
1060
1078
  property :node_count, as: 'nodeCount'
@@ -1068,6 +1086,7 @@ module Google
1068
1086
  # @private
1069
1087
  class Representation < Google::Apis::Core::JsonRepresentation
1070
1088
  property :display_name, as: 'displayName'
1089
+ property :free_instance_availability, as: 'freeInstanceAvailability'
1071
1090
  collection :leader_options, as: 'leaderOptions'
1072
1091
  property :name, as: 'name'
1073
1092
  collection :replicas, as: 'replicas', class: Google::Apis::SpannerV1::ReplicaInfo, decorator: Google::Apis::SpannerV1::ReplicaInfo::Representation
@@ -1720,7 +1720,7 @@ module Google
1720
1720
  # Lists Cloud Spanner database roles.
1721
1721
  # @param [String] parent
1722
1722
  # Required. The database whose roles should be listed. Values are of the form `
1723
- # projects//instances//databases//databaseRoles`.
1723
+ # projects//instances//databases/`.
1724
1724
  # @param [Fixnum] page_size
1725
1725
  # Number of database roles to be returned in the response. If 0 or less,
1726
1726
  # defaults to the server's maximum allowed page size.
@@ -1756,6 +1756,47 @@ module Google
1756
1756
  execute_or_queue_command(command, &block)
1757
1757
  end
1758
1758
 
1759
+ # Returns permissions that the caller has on the specified database or backup
1760
+ # resource. Attempting this RPC on a non-existent Cloud Spanner database will
1761
+ # result in a NOT_FOUND error if the user has `spanner.databases.list`
1762
+ # permission on the containing Cloud Spanner instance. Otherwise returns an
1763
+ # empty set of permissions. Calling this method on a backup that does not exist
1764
+ # will result in a NOT_FOUND error if the user has `spanner.backups.list`
1765
+ # permission on the containing instance.
1766
+ # @param [String] resource
1767
+ # REQUIRED: The Cloud Spanner resource for which permissions are being tested.
1768
+ # The format is `projects//instances/` for instance resources and `projects//
1769
+ # instances//databases/` for database resources.
1770
+ # @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1771
+ # @param [String] fields
1772
+ # Selector specifying which fields to include in a partial response.
1773
+ # @param [String] quota_user
1774
+ # Available to use for quota purposes for server-side applications. Can be any
1775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1776
+ # @param [Google::Apis::RequestOptions] options
1777
+ # Request-specific options
1778
+ #
1779
+ # @yield [result, err] Result & error if block supplied
1780
+ # @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
1781
+ # @yieldparam err [StandardError] error object if request failed
1782
+ #
1783
+ # @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
1784
+ #
1785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1788
+ def test_database_role_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1789
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1790
+ command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
1791
+ command.request_object = test_iam_permissions_request_object
1792
+ command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
1793
+ command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
1794
+ command.params['resource'] = resource unless resource.nil?
1795
+ command.query['fields'] = fields unless fields.nil?
1796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1797
+ execute_or_queue_command(command, &block)
1798
+ end
1799
+
1759
1800
  # Starts asynchronous cancellation on a long-running operation. The server makes
1760
1801
  # a best effort to cancel the operation, but success is not guaranteed. If the
1761
1802
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-spanner_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-08-15 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-spanner_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.35.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-spanner_v1
63
63
  post_install_message:
64
64
  rdoc_options: []