google-cloud-scheduler 1.0.1 → 1.1.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: 3554e666a2ebb3658a1c55705a4e58f40e1009366b786e31747c966c3388ed6b
4
- data.tar.gz: 92af07ea926d50efc6555023db2e39da61b50426b3e19f012ff8db1890c12f45
3
+ metadata.gz: 7b6eaaa11c235bc98bd6babf16f3b1170ba72a9aed317dd641ed3e762a36a295
4
+ data.tar.gz: fe44a065817c39e8587f8d0f4c7a3577198f59226dbfb2d574eeba83535b20f3
5
5
  SHA512:
6
- metadata.gz: e3a9971f77e7f2c7ada91dcbec4758a59073dfcb21cc35db617da72843fd1ea9e0667b35ac80f73f6a7414ddaf1266a10ba98df571a49ec410a9ba977be8f714
7
- data.tar.gz: eaef434726207640657c20582800f4266d4069902466860804096745d91713f0503c7d9d9b49c846eb99351108b3bdeb41c8ace36e34d04ae9238a934bc8e14d
6
+ metadata.gz: a7a176fb5de1eb936c6e2bec1ee32ad66dd8bd101a9767b7676696b770dd668765fedab8e6c5f627d29babd83869019a374e13e9fc40da49a9d69630ac359164
7
+ data.tar.gz: 79298b20f7a4516960eea0a82bcd23098e53a68a3754089c48d1c82644702ecc7ce062f3ea10a3c533f016b25374945dfaae0fca2569f01e231528c888f651c2
@@ -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::Scheduler::V1::CloudSchedulerClient.new(**kwargs)
@@ -146,6 +146,10 @@ module Google
146
146
  # The default timeout, in seconds, for calls made through this client.
147
147
  # @param metadata [Hash]
148
148
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
149
+ # @param service_address [String]
150
+ # Override for the service hostname, or `nil` to leave as the default.
151
+ # @param service_port [Integer]
152
+ # Override for the service port, or `nil` to leave as the default.
149
153
  # @param exception_transformer [Proc]
150
154
  # An optional proc that intercepts any exceptions raised during an API call to inject
151
155
  # custom error handling.
@@ -155,6 +159,8 @@ module Google
155
159
  client_config: {},
156
160
  timeout: DEFAULT_TIMEOUT,
157
161
  metadata: nil,
162
+ service_address: nil,
163
+ service_port: nil,
158
164
  exception_transformer: nil,
159
165
  lib_name: nil,
160
166
  lib_version: ""
@@ -209,8 +215,8 @@ module Google
209
215
  end
210
216
 
211
217
  # Allow overriding the service path/port in subclasses.
212
- service_path = self.class::SERVICE_ADDRESS
213
- port = self.class::DEFAULT_SERVICE_PORT
218
+ service_path = service_address || self.class::SERVICE_ADDRESS
219
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
214
220
  interceptors = self.class::GRPC_INTERCEPTORS
215
221
  @cloud_scheduler_stub = Google::Gax::Grpc.create_stub(
216
222
  service_path,
@@ -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::Scheduler::V1beta1::CloudSchedulerClient.new(**kwargs)
@@ -146,6 +146,10 @@ module Google
146
146
  # The default timeout, in seconds, for calls made through this client.
147
147
  # @param metadata [Hash]
148
148
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
149
+ # @param service_address [String]
150
+ # Override for the service hostname, or `nil` to leave as the default.
151
+ # @param service_port [Integer]
152
+ # Override for the service port, or `nil` to leave as the default.
149
153
  # @param exception_transformer [Proc]
150
154
  # An optional proc that intercepts any exceptions raised during an API call to inject
151
155
  # custom error handling.
@@ -155,6 +159,8 @@ module Google
155
159
  client_config: {},
156
160
  timeout: DEFAULT_TIMEOUT,
157
161
  metadata: nil,
162
+ service_address: nil,
163
+ service_port: nil,
158
164
  exception_transformer: nil,
159
165
  lib_name: nil,
160
166
  lib_version: ""
@@ -209,8 +215,8 @@ module Google
209
215
  end
210
216
 
211
217
  # Allow overriding the service path/port in subclasses.
212
- service_path = self.class::SERVICE_ADDRESS
213
- port = self.class::DEFAULT_SERVICE_PORT
218
+ service_path = service_address || self.class::SERVICE_ADDRESS
219
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
214
220
  interceptors = self.class::GRPC_INTERCEPTORS
215
221
  @cloud_scheduler_stub = Google::Gax::Grpc.create_stub(
216
222
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Scheduler
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-scheduler
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
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 0.64.0
81
+ version: 0.50.0
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 0.64.0
88
+ version: 0.50.0
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: simplecov
91
91
  requirement: !ruby/object:Gem::Requirement