google-apis-spanner_v1 0.31.0 → 0.34.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: '08ab4980be12c976f096a706cfa02ac5dee2f21bbb4113922be734afc40ef2b6'
4
- data.tar.gz: d3774667e9d33c3937b01ce15c3462b77b993f59afccb6b9c630befccabf3164
3
+ metadata.gz: 9690840da97002a01747a49e2d16b6f86a8a2edd25e0ebd551293801bce67bf3
4
+ data.tar.gz: caf06b123f2ba67f54caaae8054bf242500066d97d180d8c50217e584bcc48ca
5
5
  SHA512:
6
- metadata.gz: ccb99bbcf051a29c1f93490fb9b370a5cfb1b089182c41aa02daa60c9f44f3c57d21fa896e2ffc25d67dbaf421a12dfd82d088e12f682ba8ad2c16b9a6abe4b1
7
- data.tar.gz: 5f22db567383fdd3d8fb624deb3d0819e2f952910c8766e596e2562d014fb68110cddb44f852b33d759a6f7a1a99af8f8b585924626f5734f419035f9dc094cd
6
+ metadata.gz: 24be8acd6f107b988be951d8e3125bcfa7304044c21aa185caed9518ea676b1699dd1a895412197355a7a282af8febc0f752e54d861a9a693cd2ef988b37fc8a
7
+ data.tar.gz: c5c9955189c7c6f6f7cc17f1b48326e99b41c433d43e39ea5e6249c9c9622639814a64e392dc473bd1ce913c3ef503eaf9aa7298c9642f2f6dafce76bedf1cb4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-spanner_v1
2
2
 
3
+ ### v0.34.0 (2022-07-27)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.33.0 (2022-07-23)
8
+
9
+ * Regenerated from discovery document revision 20220718
10
+ * Regenerated using generator version 0.9.0
11
+
12
+ ### v0.32.0 (2022-06-30)
13
+
14
+ * Regenerated using generator version 0.8.0
15
+
3
16
  ### v0.31.0 (2022-06-21)
4
17
 
5
18
  * Regenerated from discovery document revision 20220615
@@ -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.31.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.7.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 = "20220718"
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
@@ -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.31.0
4
+ version: 0.34.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-06-27 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.34.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: []