google-cloud-tasks 1.0.1 → 1.1.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: cdbba29a9ffd166e155ff866eb290bdafddc5543dbf7f801b668e2264fcb07d7
4
- data.tar.gz: fb634728f11d9a952a628c950012a2ef0c9512d39f85997534f5780d6b81522d
3
+ metadata.gz: d347f5912f20027711d7d4a3f66f3a52182cc0822927829525820a9cc3fa7394
4
+ data.tar.gz: d942d2138c10248742c72cb58d8e9d7784b8501bb5ccf482229407f94110f5c3
5
5
  SHA512:
6
- metadata.gz: 974d0d2cb2b8852af517cc952a75ba0228eb0f3bbe31c5226333ed133b0f838a1efd90ee39894e3be2874792958b0bc84c7f1deab6445dc80def4e21f6e5a4a8
7
- data.tar.gz: 253ac79647243144ee0bd33dc165742d87c66dfc663322aa2dca1724f4e82fd2f65fe29df73d83b40fd6ab7df3a4f877fe412249cc0f672eb0320a7749954922
6
+ metadata.gz: 0fdabdc356f1abdcb1e7ecd63293983cadfdf7f287e4f96a087f533043f4e4afc6321b3bb0f33d470622beaf6d9336b21a5fbf044426de909fea2839f5ba4d5c
7
+ data.tar.gz: 539bccd3907a1104077abd52d618228eb3446e09601eb97a8c00429205015d54449905f2e300869fd93828feb7d4d264179e5caf9ae0a61f0167156b9d37fe99
@@ -120,6 +120,10 @@ module Google
120
120
  # The default timeout, in seconds, for calls made through this client.
121
121
  # @param metadata [Hash]
122
122
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
123
+ # @param service_address [String]
124
+ # Override for the service hostname, or `nil` to leave as the default.
125
+ # @param service_port [Integer]
126
+ # Override for the service port, or `nil` to leave as the default.
123
127
  # @param exception_transformer [Proc]
124
128
  # An optional proc that intercepts any exceptions raised during an API call to inject
125
129
  # custom error handling.
@@ -109,6 +109,10 @@ module Google
109
109
  # The default timeout, in seconds, for calls made through this client.
110
110
  # @param metadata [Hash]
111
111
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
112
+ # @param service_address [String]
113
+ # Override for the service hostname, or `nil` to leave as the default.
114
+ # @param service_port [Integer]
115
+ # Override for the service port, or `nil` to leave as the default.
112
116
  # @param exception_transformer [Proc]
113
117
  # An optional proc that intercepts any exceptions raised during an API call to inject
114
118
  # custom error handling.
@@ -118,6 +122,8 @@ module Google
118
122
  client_config: nil,
119
123
  timeout: nil,
120
124
  metadata: nil,
125
+ service_address: nil,
126
+ service_port: nil,
121
127
  exception_transformer: nil,
122
128
  lib_name: nil,
123
129
  lib_version: nil
@@ -129,6 +135,8 @@ module Google
129
135
  metadata: metadata,
130
136
  exception_transformer: exception_transformer,
131
137
  lib_name: lib_name,
138
+ service_address: service_address,
139
+ service_port: service_port,
132
140
  lib_version: lib_version
133
141
  }.select { |_, v| v != nil }
134
142
  Google::Cloud::Tasks::V2::CloudTasksClient.new(**kwargs)
@@ -171,6 +171,10 @@ module Google
171
171
  # The default timeout, in seconds, for calls made through this client.
172
172
  # @param metadata [Hash]
173
173
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
174
+ # @param service_address [String]
175
+ # Override for the service hostname, or `nil` to leave as the default.
176
+ # @param service_port [Integer]
177
+ # Override for the service port, or `nil` to leave as the default.
174
178
  # @param exception_transformer [Proc]
175
179
  # An optional proc that intercepts any exceptions raised during an API call to inject
176
180
  # custom error handling.
@@ -180,6 +184,8 @@ module Google
180
184
  client_config: {},
181
185
  timeout: DEFAULT_TIMEOUT,
182
186
  metadata: nil,
187
+ service_address: nil,
188
+ service_port: nil,
183
189
  exception_transformer: nil,
184
190
  lib_name: nil,
185
191
  lib_version: ""
@@ -234,8 +240,8 @@ module Google
234
240
  end
235
241
 
236
242
  # Allow overriding the service path/port in subclasses.
237
- service_path = self.class::SERVICE_ADDRESS
238
- port = self.class::DEFAULT_SERVICE_PORT
243
+ service_path = service_address || self.class::SERVICE_ADDRESS
244
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
239
245
  interceptors = self.class::GRPC_INTERCEPTORS
240
246
  @cloud_tasks_stub = Google::Gax::Grpc.create_stub(
241
247
  service_path,
@@ -791,6 +797,11 @@ module Google
791
797
  # @param resource [String]
792
798
  # REQUIRED: The resource for which the policy is being requested.
793
799
  # See the operation documentation for the appropriate value for this field.
800
+ # @param options_ [Google::Iam::V1::GetPolicyOptions | Hash]
801
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
802
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
803
+ # A hash of the same form as `Google::Iam::V1::GetPolicyOptions`
804
+ # can also be provided.
794
805
  # @param options [Google::Gax::CallOptions]
795
806
  # Overrides the default settings for this call, e.g, timeout,
796
807
  # retries, etc.
@@ -808,10 +819,12 @@ module Google
808
819
 
809
820
  def get_iam_policy \
810
821
  resource,
822
+ options_: nil,
811
823
  options: nil,
812
824
  &block
813
825
  req = {
814
- resource: resource
826
+ resource: resource,
827
+ options: options_
815
828
  }.delete_if { |_, v| v.nil? }
816
829
  req = Google::Gax::to_proto(req, Google::Iam::V1::GetIamPolicyRequest)
817
830
  @get_iam_policy.call(req, options, &block)
@@ -34,6 +34,10 @@ module Google
34
34
  # @return [String]
35
35
  # REQUIRED: The resource for which the policy is being requested.
36
36
  # See the operation documentation for the appropriate value for this field.
37
+ # @!attribute [rw] options
38
+ # @return [Google::Iam::V1::GetPolicyOptions]
39
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
40
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
37
41
  class GetIamPolicyRequest; end
38
42
 
39
43
  # Request message for `TestIamPermissions` method.
@@ -0,0 +1,29 @@
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 Iam
18
+ module V1
19
+ # Encapsulates settings provided to GetIamPolicy.
20
+ # @!attribute [rw] requested_policy_version
21
+ # @return [Integer]
22
+ # Optional. The policy format version to be returned.
23
+ # Acceptable values are 0 and 1.
24
+ # If the value is 0, or the field is omitted, policy format version 1 will be
25
+ # returned.
26
+ class GetPolicyOptions; end
27
+ end
28
+ end
29
+ end
@@ -109,6 +109,10 @@ module Google
109
109
  # The default timeout, in seconds, for calls made through this client.
110
110
  # @param metadata [Hash]
111
111
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
112
+ # @param service_address [String]
113
+ # Override for the service hostname, or `nil` to leave as the default.
114
+ # @param service_port [Integer]
115
+ # Override for the service port, or `nil` to leave as the default.
112
116
  # @param exception_transformer [Proc]
113
117
  # An optional proc that intercepts any exceptions raised during an API call to inject
114
118
  # custom error handling.
@@ -118,6 +122,8 @@ module Google
118
122
  client_config: nil,
119
123
  timeout: nil,
120
124
  metadata: nil,
125
+ service_address: nil,
126
+ service_port: nil,
121
127
  exception_transformer: nil,
122
128
  lib_name: nil,
123
129
  lib_version: nil
@@ -129,6 +135,8 @@ module Google
129
135
  metadata: metadata,
130
136
  exception_transformer: exception_transformer,
131
137
  lib_name: lib_name,
138
+ service_address: service_address,
139
+ service_port: service_port,
132
140
  lib_version: lib_version
133
141
  }.select { |_, v| v != nil }
134
142
  Google::Cloud::Tasks::V2beta2::CloudTasksClient.new(**kwargs)
@@ -171,6 +171,10 @@ module Google
171
171
  # The default timeout, in seconds, for calls made through this client.
172
172
  # @param metadata [Hash]
173
173
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
174
+ # @param service_address [String]
175
+ # Override for the service hostname, or `nil` to leave as the default.
176
+ # @param service_port [Integer]
177
+ # Override for the service port, or `nil` to leave as the default.
174
178
  # @param exception_transformer [Proc]
175
179
  # An optional proc that intercepts any exceptions raised during an API call to inject
176
180
  # custom error handling.
@@ -180,6 +184,8 @@ module Google
180
184
  client_config: {},
181
185
  timeout: DEFAULT_TIMEOUT,
182
186
  metadata: nil,
187
+ service_address: nil,
188
+ service_port: nil,
183
189
  exception_transformer: nil,
184
190
  lib_name: nil,
185
191
  lib_version: ""
@@ -234,8 +240,8 @@ module Google
234
240
  end
235
241
 
236
242
  # Allow overriding the service path/port in subclasses.
237
- service_path = self.class::SERVICE_ADDRESS
238
- port = self.class::DEFAULT_SERVICE_PORT
243
+ service_path = service_address || self.class::SERVICE_ADDRESS
244
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
239
245
  interceptors = self.class::GRPC_INTERCEPTORS
240
246
  @cloud_tasks_stub = Google::Gax::Grpc.create_stub(
241
247
  service_path,
@@ -828,6 +834,11 @@ module Google
828
834
  # @param resource [String]
829
835
  # REQUIRED: The resource for which the policy is being requested.
830
836
  # See the operation documentation for the appropriate value for this field.
837
+ # @param options_ [Google::Iam::V1::GetPolicyOptions | Hash]
838
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
839
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
840
+ # A hash of the same form as `Google::Iam::V1::GetPolicyOptions`
841
+ # can also be provided.
831
842
  # @param options [Google::Gax::CallOptions]
832
843
  # Overrides the default settings for this call, e.g, timeout,
833
844
  # retries, etc.
@@ -845,10 +856,12 @@ module Google
845
856
 
846
857
  def get_iam_policy \
847
858
  resource,
859
+ options_: nil,
848
860
  options: nil,
849
861
  &block
850
862
  req = {
851
- resource: resource
863
+ resource: resource,
864
+ options: options_
852
865
  }.delete_if { |_, v| v.nil? }
853
866
  req = Google::Gax::to_proto(req, Google::Iam::V1::GetIamPolicyRequest)
854
867
  @get_iam_policy.call(req, options, &block)
@@ -34,6 +34,10 @@ module Google
34
34
  # @return [String]
35
35
  # REQUIRED: The resource for which the policy is being requested.
36
36
  # See the operation documentation for the appropriate value for this field.
37
+ # @!attribute [rw] options
38
+ # @return [Google::Iam::V1::GetPolicyOptions]
39
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
40
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
37
41
  class GetIamPolicyRequest; end
38
42
 
39
43
  # Request message for `TestIamPermissions` method.
@@ -0,0 +1,29 @@
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 Iam
18
+ module V1
19
+ # Encapsulates settings provided to GetIamPolicy.
20
+ # @!attribute [rw] requested_policy_version
21
+ # @return [Integer]
22
+ # Optional. The policy format version to be returned.
23
+ # Acceptable values are 0 and 1.
24
+ # If the value is 0, or the field is omitted, policy format version 1 will be
25
+ # returned.
26
+ class GetPolicyOptions; end
27
+ end
28
+ end
29
+ end
@@ -109,6 +109,10 @@ module Google
109
109
  # The default timeout, in seconds, for calls made through this client.
110
110
  # @param metadata [Hash]
111
111
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
112
+ # @param service_address [String]
113
+ # Override for the service hostname, or `nil` to leave as the default.
114
+ # @param service_port [Integer]
115
+ # Override for the service port, or `nil` to leave as the default.
112
116
  # @param exception_transformer [Proc]
113
117
  # An optional proc that intercepts any exceptions raised during an API call to inject
114
118
  # custom error handling.
@@ -118,6 +122,8 @@ module Google
118
122
  client_config: nil,
119
123
  timeout: nil,
120
124
  metadata: nil,
125
+ service_address: nil,
126
+ service_port: nil,
121
127
  exception_transformer: nil,
122
128
  lib_name: nil,
123
129
  lib_version: nil
@@ -129,6 +135,8 @@ module Google
129
135
  metadata: metadata,
130
136
  exception_transformer: exception_transformer,
131
137
  lib_name: lib_name,
138
+ service_address: service_address,
139
+ service_port: service_port,
132
140
  lib_version: lib_version
133
141
  }.select { |_, v| v != nil }
134
142
  Google::Cloud::Tasks::V2beta3::CloudTasksClient.new(**kwargs)
@@ -171,6 +171,10 @@ module Google
171
171
  # The default timeout, in seconds, for calls made through this client.
172
172
  # @param metadata [Hash]
173
173
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
174
+ # @param service_address [String]
175
+ # Override for the service hostname, or `nil` to leave as the default.
176
+ # @param service_port [Integer]
177
+ # Override for the service port, or `nil` to leave as the default.
174
178
  # @param exception_transformer [Proc]
175
179
  # An optional proc that intercepts any exceptions raised during an API call to inject
176
180
  # custom error handling.
@@ -180,6 +184,8 @@ module Google
180
184
  client_config: {},
181
185
  timeout: DEFAULT_TIMEOUT,
182
186
  metadata: nil,
187
+ service_address: nil,
188
+ service_port: nil,
183
189
  exception_transformer: nil,
184
190
  lib_name: nil,
185
191
  lib_version: ""
@@ -234,8 +240,8 @@ module Google
234
240
  end
235
241
 
236
242
  # Allow overriding the service path/port in subclasses.
237
- service_path = self.class::SERVICE_ADDRESS
238
- port = self.class::DEFAULT_SERVICE_PORT
243
+ service_path = service_address || self.class::SERVICE_ADDRESS
244
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
239
245
  interceptors = self.class::GRPC_INTERCEPTORS
240
246
  @cloud_tasks_stub = Google::Gax::Grpc.create_stub(
241
247
  service_path,
@@ -791,6 +797,11 @@ module Google
791
797
  # @param resource [String]
792
798
  # REQUIRED: The resource for which the policy is being requested.
793
799
  # See the operation documentation for the appropriate value for this field.
800
+ # @param options_ [Google::Iam::V1::GetPolicyOptions | Hash]
801
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
802
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
803
+ # A hash of the same form as `Google::Iam::V1::GetPolicyOptions`
804
+ # can also be provided.
794
805
  # @param options [Google::Gax::CallOptions]
795
806
  # Overrides the default settings for this call, e.g, timeout,
796
807
  # retries, etc.
@@ -808,10 +819,12 @@ module Google
808
819
 
809
820
  def get_iam_policy \
810
821
  resource,
822
+ options_: nil,
811
823
  options: nil,
812
824
  &block
813
825
  req = {
814
- resource: resource
826
+ resource: resource,
827
+ options: options_
815
828
  }.delete_if { |_, v| v.nil? }
816
829
  req = Google::Gax::to_proto(req, Google::Iam::V1::GetIamPolicyRequest)
817
830
  @get_iam_policy.call(req, options, &block)
@@ -34,6 +34,10 @@ module Google
34
34
  # @return [String]
35
35
  # REQUIRED: The resource for which the policy is being requested.
36
36
  # See the operation documentation for the appropriate value for this field.
37
+ # @!attribute [rw] options
38
+ # @return [Google::Iam::V1::GetPolicyOptions]
39
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
40
+ # `GetIamPolicy`. This field is only used by Cloud IAM.
37
41
  class GetIamPolicyRequest; end
38
42
 
39
43
  # Request message for `TestIamPermissions` method.
@@ -0,0 +1,29 @@
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 Iam
18
+ module V1
19
+ # Encapsulates settings provided to GetIamPolicy.
20
+ # @!attribute [rw] requested_policy_version
21
+ # @return [Integer]
22
+ # Optional. The policy format version to be returned.
23
+ # Acceptable values are 0 and 1.
24
+ # If the value is 0, or the field is omitted, policy format version 1 will be
25
+ # returned.
26
+ class GetPolicyOptions; end
27
+ end
28
+ end
29
+ end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Tasks
19
- VERSION = "1.0.1".freeze
19
+ VERSION = "1.1.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.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: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: googleapis-common-protos
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,7 @@ files:
150
150
  - lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb
151
151
  - lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/task.rb
152
152
  - lib/google/cloud/tasks/v2/doc/google/iam/v1/iam_policy.rb
153
+ - lib/google/cloud/tasks/v2/doc/google/iam/v1/options.rb
153
154
  - lib/google/cloud/tasks/v2/doc/google/iam/v1/policy.rb
154
155
  - lib/google/cloud/tasks/v2/doc/google/protobuf/any.rb
155
156
  - lib/google/cloud/tasks/v2/doc/google/protobuf/duration.rb
@@ -173,6 +174,7 @@ files:
173
174
  - lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/target.rb
174
175
  - lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb
175
176
  - lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/iam_policy.rb
177
+ - lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/options.rb
176
178
  - lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/policy.rb
177
179
  - lib/google/cloud/tasks/v2beta2/doc/google/protobuf/any.rb
178
180
  - lib/google/cloud/tasks/v2beta2/doc/google/protobuf/duration.rb
@@ -196,6 +198,7 @@ files:
196
198
  - lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb
197
199
  - lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/task.rb
198
200
  - lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/iam_policy.rb
201
+ - lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/options.rb
199
202
  - lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/policy.rb
200
203
  - lib/google/cloud/tasks/v2beta3/doc/google/protobuf/any.rb
201
204
  - lib/google/cloud/tasks/v2beta3/doc/google/protobuf/duration.rb