google-apis-spanner_v1 0.28.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.28.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220413"
25
+ REVISION = "20220531"
26
26
  end
27
27
  end
28
28
  end
@@ -148,6 +148,12 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class DatabaseRole
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
151
157
  class Delete
152
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
159
 
@@ -298,6 +304,12 @@ module Google
298
304
  include Google::Apis::Core::JsonObjectSupport
299
305
  end
300
306
 
307
+ class ListDatabaseRolesResponse
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
301
313
  class ListDatabasesResponse
302
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
315
 
@@ -874,6 +886,13 @@ module Google
874
886
  end
875
887
  end
876
888
 
889
+ class DatabaseRole
890
+ # @private
891
+ class Representation < Google::Apis::Core::JsonRepresentation
892
+ property :name, as: 'name'
893
+ end
894
+ end
895
+
877
896
  class Delete
878
897
  # @private
879
898
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1135,6 +1154,15 @@ module Google
1135
1154
  end
1136
1155
  end
1137
1156
 
1157
+ class ListDatabaseRolesResponse
1158
+ # @private
1159
+ class Representation < Google::Apis::Core::JsonRepresentation
1160
+ collection :database_roles, as: 'databaseRoles', class: Google::Apis::SpannerV1::DatabaseRole, decorator: Google::Apis::SpannerV1::DatabaseRole::Representation
1161
+
1162
+ property :next_page_token, as: 'nextPageToken'
1163
+ end
1164
+ end
1165
+
1138
1166
  class ListDatabasesResponse
1139
1167
  # @private
1140
1168
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1576,6 +1604,7 @@ module Google
1576
1604
  class Representation < Google::Apis::Core::JsonRepresentation
1577
1605
  property :approximate_last_use_time, as: 'approximateLastUseTime'
1578
1606
  property :create_time, as: 'createTime'
1607
+ property :creator_role, as: 'creatorRole'
1579
1608
  hash :labels, as: 'labels'
1580
1609
  property :name, as: 'name'
1581
1610
  end
@@ -1717,6 +1717,45 @@ module Google
1717
1717
  execute_or_queue_command(command, &block)
1718
1718
  end
1719
1719
 
1720
+ # Lists Cloud Spanner database roles.
1721
+ # @param [String] parent
1722
+ # Required. The database whose roles should be listed. Values are of the form `
1723
+ # projects//instances//databases//databaseRoles`.
1724
+ # @param [Fixnum] page_size
1725
+ # Number of database roles to be returned in the response. If 0 or less,
1726
+ # defaults to the server's maximum allowed page size.
1727
+ # @param [String] page_token
1728
+ # If non-empty, `page_token` should contain a next_page_token from a previous
1729
+ # ListDatabaseRolesResponse.
1730
+ # @param [String] fields
1731
+ # Selector specifying which fields to include in a partial response.
1732
+ # @param [String] quota_user
1733
+ # Available to use for quota purposes for server-side applications. Can be any
1734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1735
+ # @param [Google::Apis::RequestOptions] options
1736
+ # Request-specific options
1737
+ #
1738
+ # @yield [result, err] Result & error if block supplied
1739
+ # @yieldparam result [Google::Apis::SpannerV1::ListDatabaseRolesResponse] parsed result object
1740
+ # @yieldparam err [StandardError] error object if request failed
1741
+ #
1742
+ # @return [Google::Apis::SpannerV1::ListDatabaseRolesResponse]
1743
+ #
1744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1747
+ def list_project_instance_database_database_roles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1748
+ command = make_simple_command(:get, 'v1/{+parent}/databaseRoles', options)
1749
+ command.response_representation = Google::Apis::SpannerV1::ListDatabaseRolesResponse::Representation
1750
+ command.response_class = Google::Apis::SpannerV1::ListDatabaseRolesResponse
1751
+ command.params['parent'] = parent unless parent.nil?
1752
+ command.query['pageSize'] = page_size unless page_size.nil?
1753
+ command.query['pageToken'] = page_token unless page_token.nil?
1754
+ command.query['fields'] = fields unless fields.nil?
1755
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1756
+ execute_or_queue_command(command, &block)
1757
+ end
1758
+
1720
1759
  # Starts asynchronous cancellation on a long-running operation. The server makes
1721
1760
  # a best effort to cancel the operation, but success is not guaranteed. If the
1722
1761
  # 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.28.0
4
+ version: 0.29.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-04-25 00:00:00.000000000 Z
11
+ date: 2022-06-13 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.4'
19
+ version: '0.5'
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.4'
29
+ version: '0.5'
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.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.29.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Spanner API V1