google-cloud-spanner 1.9.1 → 1.9.2

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: 01e57b593ae2ee535ca3c1a3a6432fac3cb89a20a7281b65b4ac27c1218af892
4
- data.tar.gz: c662c62580697337783a77d9af59e25465e14f083fb13ce50ff3fefb66cc9df3
3
+ metadata.gz: bf9358c873b50e2b24de40a4b5f2f5b9740017882c27df1baa9cb32c34380d99
4
+ data.tar.gz: 280e8d0ab2f482d0a8ae287a6b58df280947f038c0fa5424bb6e8c0f5bc9b798
5
5
  SHA512:
6
- metadata.gz: cf84f31f5fd21b4a458fda2b236d1204be4c6113d9ec7617a77e2a8a7db9c5eef66f90d985a1ecbc43eeb4f9846967d95f500eeb61d2851fa8e3b010f71e6760
7
- data.tar.gz: 0516eb395fc8602ab97eafbf935e4dd51d3583fdac8c0ba9ed35eb7dbb15d5c1b2f41ddab90ddeac7a9a55c4dc630b8fa2874dfc71a60d55922268c65e9f9a21
6
+ metadata.gz: 53ab07efae8054d36365ae1a3b0fe9e5285083015621086e05cd2baec69e2968173cb594fc9976ddf527f215c326cb05a2668297c4944cdf5309fa3d58266692
7
+ data.tar.gz: d44a79c6f081edcce303956b04982e819d3f2ec1e9f84d64381e03457f79004b700bad758f5292e53d261d4ba42e01eb3067b718b67ba289adc3ab11f935b7dc
@@ -1,5 +1,15 @@
1
1
  # Release History
2
2
 
3
+ ### 1.9.2 / 2019-06-13
4
+
5
+ * Update IAM:
6
+ * Deprecate Policy#version
7
+ * Add Binding#condition
8
+ * Add Google::Type::Expr
9
+ * Update documentation
10
+ * Update retry configuration
11
+ * Use VERSION constant in GAPIC client
12
+
3
13
  ### 1.9.1 / 2019-04-30
4
14
 
5
15
  * Fix Spanner session limit bug.
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/spanner/admin/database/v1/spanner_database_admin_pb"
31
31
  require "google/cloud/spanner/admin/database/v1/credentials"
32
+ require "google/cloud/spanner/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -188,7 +189,7 @@ module Google
188
189
  updater_proc = credentials.updater_proc
189
190
  end
190
191
 
191
- package_version = Gem.loaded_specs['google-cloud-spanner'].version.version
192
+ package_version = Google::Cloud::Spanner::VERSION
192
193
 
193
194
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
194
195
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -645,8 +646,7 @@ module Google
645
646
  #
646
647
  # @param resource [String]
647
648
  # REQUIRED: The resource for which the policy is being specified.
648
- # `resource` is usually specified as a path. For example, a Project
649
- # resource is specified as `projects/{project}`.
649
+ # See the operation documentation for the appropriate value for this field.
650
650
  # @param policy [Google::Iam::V1::Policy | Hash]
651
651
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
652
652
  # the policy is limited to a few 10s of KB. An empty policy is a
@@ -693,8 +693,7 @@ module Google
693
693
  #
694
694
  # @param resource [String]
695
695
  # REQUIRED: The resource for which the policy is being requested.
696
- # `resource` is usually specified as a path. For example, a Project
697
- # resource is specified as `projects/{project}`.
696
+ # See the operation documentation for the appropriate value for this field.
698
697
  # @param options [Google::Gax::CallOptions]
699
698
  # Overrides the default settings for this call, e.g, timeout,
700
699
  # retries, etc.
@@ -730,8 +729,7 @@ module Google
730
729
  #
731
730
  # @param resource [String]
732
731
  # REQUIRED: The resource for which the policy detail is being requested.
733
- # `resource` is usually specified as a path. For example, a Project
734
- # resource is specified as `projects/{project}`.
732
+ # See the operation documentation for the appropriate value for this field.
735
733
  # @param permissions [Array<String>]
736
734
  # The set of permissions to check for the `resource`. Permissions with
737
735
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -20,8 +20,7 @@ module Google
20
20
  # @!attribute [rw] resource
21
21
  # @return [String]
22
22
  # REQUIRED: The resource for which the policy is being specified.
23
- # `resource` is usually specified as a path. For example, a Project
24
- # resource is specified as `projects/{project}`.
23
+ # See the operation documentation for the appropriate value for this field.
25
24
  # @!attribute [rw] policy
26
25
  # @return [Google::Iam::V1::Policy]
27
26
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
@@ -34,16 +33,14 @@ module Google
34
33
  # @!attribute [rw] resource
35
34
  # @return [String]
36
35
  # REQUIRED: The resource for which the policy is being requested.
37
- # `resource` is usually specified as a path. For example, a Project
38
- # resource is specified as `projects/{project}`.
36
+ # See the operation documentation for the appropriate value for this field.
39
37
  class GetIamPolicyRequest; end
40
38
 
41
39
  # Request message for `TestIamPermissions` method.
42
40
  # @!attribute [rw] resource
43
41
  # @return [String]
44
42
  # REQUIRED: The resource for which the policy detail is being requested.
45
- # `resource` is usually specified as a path. For example, a Project
46
- # resource is specified as `projects/{project}`.
43
+ # See the operation documentation for the appropriate value for this field.
47
44
  # @!attribute [rw] permissions
48
45
  # @return [Array<String>]
49
46
  # The set of permissions to check for the `resource`. Permissions with
@@ -20,12 +20,12 @@ module Google
20
20
  # specify access control policies for Cloud Platform resources.
21
21
  #
22
22
  #
23
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
23
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
24
24
  # `members` to a `role`, where the members can be user accounts, Google groups,
25
25
  # Google domains, and service accounts. A `role` is a named list of permissions
26
26
  # defined by IAM.
27
27
  #
28
- # **Example**
28
+ # **JSON Example**
29
29
  #
30
30
  # {
31
31
  # "bindings": [
@@ -35,7 +35,7 @@ module Google
35
35
  # "user:mike@example.com",
36
36
  # "group:admins@example.com",
37
37
  # "domain:google.com",
38
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
38
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
39
39
  # ]
40
40
  # },
41
41
  # {
@@ -45,15 +45,28 @@ module Google
45
45
  # ]
46
46
  # }
47
47
  #
48
- # For a description of IAM and its features, see the
49
- # [IAM developer's guide](https://cloud.google.com/iam).
48
+ # **YAML Example**
49
+ #
50
+ # bindings:
51
+ # * members:
52
+ # * user:mike@example.com
53
+ # * group:admins@example.com
54
+ # * domain:google.com
55
+ # * serviceAccount:my-other-app@appspot.gserviceaccount.com
56
+ # role: roles/owner
57
+ # * members:
58
+ # * user:sean@example.com
59
+ # role: roles/viewer
60
+ #
61
+ #
62
+ # For a description of IAM and its features, see the
63
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
50
64
  # @!attribute [rw] version
51
65
  # @return [Integer]
52
- # Version of the `Policy`. The default version is 0.
66
+ # Deprecated.
53
67
  # @!attribute [rw] bindings
54
68
  # @return [Array<Google::Iam::V1::Binding>]
55
69
  # Associates a list of `members` to a `role`.
56
- # Multiple `bindings` must not be specified for the same `role`.
57
70
  # `bindings` with no members will result in an error.
58
71
  # @!attribute [rw] etag
59
72
  # @return [String]
@@ -74,7 +87,6 @@ module Google
74
87
  # @return [String]
75
88
  # Role that is assigned to `members`.
76
89
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
77
- # Required
78
90
  # @!attribute [rw] members
79
91
  # @return [Array<String>]
80
92
  # Specifies the identities requesting access for a Cloud Platform resource.
@@ -87,7 +99,7 @@ module Google
87
99
  # who is authenticated with a Google account or a service account.
88
100
  #
89
101
  # * `user:{emailid}`: An email address that represents a specific Google
90
- # account. For example, `alice@gmail.com` or `joe@example.com`.
102
+ # account. For example, `alice@gmail.com` .
91
103
  #
92
104
  #
93
105
  # * `serviceAccount:{emailid}`: An email address that represents a service
@@ -96,8 +108,15 @@ module Google
96
108
  # * `group:{emailid}`: An email address that represents a Google group.
97
109
  # For example, `admins@example.com`.
98
110
  #
99
- # * `domain:{domain}`: A Google Apps domain name that represents all the
111
+ #
112
+ # * `domain:{domain}`: The G Suite domain (primary) that represents all the
100
113
  # users of that domain. For example, `google.com` or `example.com`.
114
+ # @!attribute [rw] condition
115
+ # @return [Google::Type::Expr]
116
+ # The condition that is associated with this binding.
117
+ # NOTE: An unsatisfied condition will not allow user access via current
118
+ # binding. Different bindings, including their conditions, are examined
119
+ # independently.
101
120
  class Binding; end
102
121
  end
103
122
  end
@@ -0,0 +1,45 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Type
18
+ # Represents an expression text. Example:
19
+ #
20
+ # title: "User account presence"
21
+ # description: "Determines whether the request has a user account"
22
+ # expression: "size(request.user) > 0"
23
+ # @!attribute [rw] expression
24
+ # @return [String]
25
+ # Textual representation of an expression in
26
+ # Common Expression Language syntax.
27
+ #
28
+ # The application context of the containing message determines which
29
+ # well-known feature set of CEL is supported.
30
+ # @!attribute [rw] title
31
+ # @return [String]
32
+ # An optional title for the expression, i.e. a short string describing
33
+ # its purpose. This can be used e.g. in UIs which allow to enter the
34
+ # expression.
35
+ # @!attribute [rw] description
36
+ # @return [String]
37
+ # An optional description of the expression. This is a longer text which
38
+ # describes the expression, e.g. when hovered over it in a UI.
39
+ # @!attribute [rw] location
40
+ # @return [String]
41
+ # An optional string indicating the location of the expression for error
42
+ # reporting, e.g. a file name and a position in the file.
43
+ class Expr; end
44
+ end
45
+ end
@@ -20,8 +20,7 @@ module Google
20
20
  # @!attribute [rw] resource
21
21
  # @return [String]
22
22
  # REQUIRED: The resource for which the policy is being specified.
23
- # `resource` is usually specified as a path. For example, a Project
24
- # resource is specified as `projects/{project}`.
23
+ # See the operation documentation for the appropriate value for this field.
25
24
  # @!attribute [rw] policy
26
25
  # @return [Google::Iam::V1::Policy]
27
26
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
@@ -34,16 +33,14 @@ module Google
34
33
  # @!attribute [rw] resource
35
34
  # @return [String]
36
35
  # REQUIRED: The resource for which the policy is being requested.
37
- # `resource` is usually specified as a path. For example, a Project
38
- # resource is specified as `projects/{project}`.
36
+ # See the operation documentation for the appropriate value for this field.
39
37
  class GetIamPolicyRequest; end
40
38
 
41
39
  # Request message for `TestIamPermissions` method.
42
40
  # @!attribute [rw] resource
43
41
  # @return [String]
44
42
  # REQUIRED: The resource for which the policy detail is being requested.
45
- # `resource` is usually specified as a path. For example, a Project
46
- # resource is specified as `projects/{project}`.
43
+ # See the operation documentation for the appropriate value for this field.
47
44
  # @!attribute [rw] permissions
48
45
  # @return [Array<String>]
49
46
  # The set of permissions to check for the `resource`. Permissions with
@@ -20,12 +20,12 @@ module Google
20
20
  # specify access control policies for Cloud Platform resources.
21
21
  #
22
22
  #
23
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
23
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
24
24
  # `members` to a `role`, where the members can be user accounts, Google groups,
25
25
  # Google domains, and service accounts. A `role` is a named list of permissions
26
26
  # defined by IAM.
27
27
  #
28
- # **Example**
28
+ # **JSON Example**
29
29
  #
30
30
  # {
31
31
  # "bindings": [
@@ -35,7 +35,7 @@ module Google
35
35
  # "user:mike@example.com",
36
36
  # "group:admins@example.com",
37
37
  # "domain:google.com",
38
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
38
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
39
39
  # ]
40
40
  # },
41
41
  # {
@@ -45,15 +45,28 @@ module Google
45
45
  # ]
46
46
  # }
47
47
  #
48
- # For a description of IAM and its features, see the
49
- # [IAM developer's guide](https://cloud.google.com/iam).
48
+ # **YAML Example**
49
+ #
50
+ # bindings:
51
+ # * members:
52
+ # * user:mike@example.com
53
+ # * group:admins@example.com
54
+ # * domain:google.com
55
+ # * serviceAccount:my-other-app@appspot.gserviceaccount.com
56
+ # role: roles/owner
57
+ # * members:
58
+ # * user:sean@example.com
59
+ # role: roles/viewer
60
+ #
61
+ #
62
+ # For a description of IAM and its features, see the
63
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
50
64
  # @!attribute [rw] version
51
65
  # @return [Integer]
52
- # Version of the `Policy`. The default version is 0.
66
+ # Deprecated.
53
67
  # @!attribute [rw] bindings
54
68
  # @return [Array<Google::Iam::V1::Binding>]
55
69
  # Associates a list of `members` to a `role`.
56
- # Multiple `bindings` must not be specified for the same `role`.
57
70
  # `bindings` with no members will result in an error.
58
71
  # @!attribute [rw] etag
59
72
  # @return [String]
@@ -74,7 +87,6 @@ module Google
74
87
  # @return [String]
75
88
  # Role that is assigned to `members`.
76
89
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
77
- # Required
78
90
  # @!attribute [rw] members
79
91
  # @return [Array<String>]
80
92
  # Specifies the identities requesting access for a Cloud Platform resource.
@@ -87,7 +99,7 @@ module Google
87
99
  # who is authenticated with a Google account or a service account.
88
100
  #
89
101
  # * `user:{emailid}`: An email address that represents a specific Google
90
- # account. For example, `alice@gmail.com` or `joe@example.com`.
102
+ # account. For example, `alice@gmail.com` .
91
103
  #
92
104
  #
93
105
  # * `serviceAccount:{emailid}`: An email address that represents a service
@@ -96,8 +108,15 @@ module Google
96
108
  # * `group:{emailid}`: An email address that represents a Google group.
97
109
  # For example, `admins@example.com`.
98
110
  #
99
- # * `domain:{domain}`: A Google Apps domain name that represents all the
111
+ #
112
+ # * `domain:{domain}`: The G Suite domain (primary) that represents all the
100
113
  # users of that domain. For example, `google.com` or `example.com`.
114
+ # @!attribute [rw] condition
115
+ # @return [Google::Type::Expr]
116
+ # The condition that is associated with this binding.
117
+ # NOTE: An unsatisfied condition will not allow user access via current
118
+ # binding. Different bindings, including their conditions, are examined
119
+ # independently.
101
120
  class Binding; end
102
121
  end
103
122
  end
@@ -0,0 +1,45 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Type
18
+ # Represents an expression text. Example:
19
+ #
20
+ # title: "User account presence"
21
+ # description: "Determines whether the request has a user account"
22
+ # expression: "size(request.user) > 0"
23
+ # @!attribute [rw] expression
24
+ # @return [String]
25
+ # Textual representation of an expression in
26
+ # Common Expression Language syntax.
27
+ #
28
+ # The application context of the containing message determines which
29
+ # well-known feature set of CEL is supported.
30
+ # @!attribute [rw] title
31
+ # @return [String]
32
+ # An optional title for the expression, i.e. a short string describing
33
+ # its purpose. This can be used e.g. in UIs which allow to enter the
34
+ # expression.
35
+ # @!attribute [rw] description
36
+ # @return [String]
37
+ # An optional description of the expression. This is a longer text which
38
+ # describes the expression, e.g. when hovered over it in a UI.
39
+ # @!attribute [rw] location
40
+ # @return [String]
41
+ # An optional string indicating the location of the expression for error
42
+ # reporting, e.g. a file name and a position in the file.
43
+ class Expr; end
44
+ end
45
+ end
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/spanner/admin/instance/v1/spanner_instance_admin_pb"
31
31
  require "google/cloud/spanner/admin/instance/v1/credentials"
32
+ require "google/cloud/spanner/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -221,7 +222,7 @@ module Google
221
222
  updater_proc = credentials.updater_proc
222
223
  end
223
224
 
224
- package_version = Gem.loaded_specs['google-cloud-spanner'].version.version
225
+ package_version = Google::Cloud::Spanner::VERSION
225
226
 
226
227
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
227
228
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -823,8 +824,7 @@ module Google
823
824
  #
824
825
  # @param resource [String]
825
826
  # REQUIRED: The resource for which the policy is being specified.
826
- # `resource` is usually specified as a path. For example, a Project
827
- # resource is specified as `projects/{project}`.
827
+ # See the operation documentation for the appropriate value for this field.
828
828
  # @param policy [Google::Iam::V1::Policy | Hash]
829
829
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
830
830
  # the policy is limited to a few 10s of KB. An empty policy is a
@@ -871,8 +871,7 @@ module Google
871
871
  #
872
872
  # @param resource [String]
873
873
  # REQUIRED: The resource for which the policy is being requested.
874
- # `resource` is usually specified as a path. For example, a Project
875
- # resource is specified as `projects/{project}`.
874
+ # See the operation documentation for the appropriate value for this field.
876
875
  # @param options [Google::Gax::CallOptions]
877
876
  # Overrides the default settings for this call, e.g, timeout,
878
877
  # retries, etc.
@@ -908,8 +907,7 @@ module Google
908
907
  #
909
908
  # @param resource [String]
910
909
  # REQUIRED: The resource for which the policy detail is being requested.
911
- # `resource` is usually specified as a path. For example, a Project
912
- # resource is specified as `projects/{project}`.
910
+ # See the operation documentation for the appropriate value for this field.
913
911
  # @param permissions [Array<String>]
914
912
  # The set of permissions to check for the `resource`. Permissions with
915
913
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -27,6 +27,7 @@ require "google/gax"
27
27
 
28
28
  require "google/spanner/v1/spanner_pb"
29
29
  require "google/cloud/spanner/v1/credentials"
30
+ require "google/cloud/spanner/version"
30
31
 
31
32
  module Google
32
33
  module Cloud
@@ -173,7 +174,7 @@ module Google
173
174
  updater_proc = credentials.updater_proc
174
175
  end
175
176
 
176
- package_version = Gem.loaded_specs['google-cloud-spanner'].version.version
177
+ package_version = Google::Cloud::Spanner::VERSION
177
178
 
178
179
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
179
180
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -3,7 +3,6 @@
3
3
  "google.spanner.v1.Spanner": {
4
4
  "retry_codes": {
5
5
  "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
6
  "UNAVAILABLE"
8
7
  ],
9
8
  "non_idempotent": [],
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Spanner
19
- VERSION = "1.9.1".freeze
19
+ VERSION = "1.9.2".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-04-30 00:00:00.000000000 Z
12
+ date: 2019-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -240,6 +240,7 @@ files:
240
240
  - lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/empty.rb
241
241
  - lib/google/cloud/spanner/admin/database/v1/doc/google/rpc/status.rb
242
242
  - lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb
243
+ - lib/google/cloud/spanner/admin/database/v1/doc/google/type/expr.rb
243
244
  - lib/google/cloud/spanner/admin/instance.rb
244
245
  - lib/google/cloud/spanner/admin/instance/credentials.rb
245
246
  - lib/google/cloud/spanner/admin/instance/v1.rb
@@ -252,6 +253,7 @@ files:
252
253
  - lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/field_mask.rb
253
254
  - lib/google/cloud/spanner/admin/instance/v1/doc/google/rpc/status.rb
254
255
  - lib/google/cloud/spanner/admin/instance/v1/doc/google/spanner/admin/instance/v1/spanner_instance_admin.rb
256
+ - lib/google/cloud/spanner/admin/instance/v1/doc/google/type/expr.rb
255
257
  - lib/google/cloud/spanner/admin/instance/v1/instance_admin_client.rb
256
258
  - lib/google/cloud/spanner/admin/instance/v1/instance_admin_client_config.json
257
259
  - lib/google/cloud/spanner/batch_client.rb