google-cloud-os_login 0.2.5 → 0.3.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: 5b6fef5c5602baffa66db01ae0eb600cde3ca4ae7dbf36cb5a028e997c2ce590
4
- data.tar.gz: b09f734cdc49cfcc6328a680a44a00be53927639f49423219be7b0421e2c524b
3
+ metadata.gz: '06655940c902e56e7f111443ebb49ecd85a2de5dd93d8c4643fa071e67915eff'
4
+ data.tar.gz: cca917b3ec92edec61167224ddc5b4c46b5c43c384896ef934a4b76389878698
5
5
  SHA512:
6
- metadata.gz: 1719fdfc878e957bf25e76889d369b38380dc63cdcedabf7a47b50c9fe43e92eab4e08bb903715538ff6ffa66eee0c9d926a35cfa08dd9ed5f0ae4b090046dea
7
- data.tar.gz: 95069862cefc0d06d0118750ebd245dbacd415fb4967f0200a718c2e2db3bcf514c1221ce1b999da61dfef5ab141fceffa5c8011f97d2713d5bd739d0deb9846
6
+ metadata.gz: 6a1db82d9de4c5c535392617e21ed20805090b64ea601dbe39bc31311c6c6bb189e60441ba73d0b9346e9c868c826729754f03895772b920e734ef6ede92da47
7
+ data.tar.gz: bd79c8d3af77183a4fd7c8747e65790228c59d200aad532c2e49461e41cd9a1b8b31e6b3116230913e4726d7095d51bd37ec574a0db71a40997eaa46ca828b14
@@ -122,6 +122,10 @@ module Google
122
122
  # The default timeout, in seconds, for calls made through this client.
123
123
  # @param metadata [Hash]
124
124
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
125
+ # @param service_address [String]
126
+ # Override for the service hostname, or `nil` to leave as the default.
127
+ # @param service_port [Integer]
128
+ # Override for the service port, or `nil` to leave as the default.
125
129
  # @param exception_transformer [Proc]
126
130
  # An optional proc that intercepts any exceptions raised during an API call to inject
127
131
  # custom error handling.
@@ -110,6 +110,10 @@ module Google
110
110
  # The default timeout, in seconds, for calls made through this client.
111
111
  # @param metadata [Hash]
112
112
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
113
+ # @param service_address [String]
114
+ # Override for the service hostname, or `nil` to leave as the default.
115
+ # @param service_port [Integer]
116
+ # Override for the service port, or `nil` to leave as the default.
113
117
  # @param exception_transformer [Proc]
114
118
  # An optional proc that intercepts any exceptions raised during an API call to inject
115
119
  # custom error handling.
@@ -119,6 +123,8 @@ module Google
119
123
  client_config: nil,
120
124
  timeout: nil,
121
125
  metadata: nil,
126
+ service_address: nil,
127
+ service_port: nil,
122
128
  exception_transformer: nil,
123
129
  lib_name: nil,
124
130
  lib_version: nil
@@ -130,6 +136,8 @@ module Google
130
136
  metadata: metadata,
131
137
  exception_transformer: exception_transformer,
132
138
  lib_name: lib_name,
139
+ service_address: service_address,
140
+ service_port: service_port,
133
141
  lib_version: lib_version
134
142
  }.select { |_, v| v != nil }
135
143
  Google::Cloud::OsLogin::V1::OsLoginServiceClient.new(**kwargs)
@@ -140,6 +140,10 @@ module Google
140
140
  # The default timeout, in seconds, for calls made through this client.
141
141
  # @param metadata [Hash]
142
142
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
143
+ # @param service_address [String]
144
+ # Override for the service hostname, or `nil` to leave as the default.
145
+ # @param service_port [Integer]
146
+ # Override for the service port, or `nil` to leave as the default.
143
147
  # @param exception_transformer [Proc]
144
148
  # An optional proc that intercepts any exceptions raised during an API call to inject
145
149
  # custom error handling.
@@ -149,6 +153,8 @@ module Google
149
153
  client_config: {},
150
154
  timeout: DEFAULT_TIMEOUT,
151
155
  metadata: nil,
156
+ service_address: nil,
157
+ service_port: nil,
152
158
  exception_transformer: nil,
153
159
  lib_name: nil,
154
160
  lib_version: ""
@@ -202,8 +208,8 @@ module Google
202
208
  end
203
209
 
204
210
  # Allow overriding the service path/port in subclasses.
205
- service_path = self.class::SERVICE_ADDRESS
206
- port = self.class::DEFAULT_SERVICE_PORT
211
+ service_path = service_address || self.class::SERVICE_ADDRESS
212
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
207
213
  interceptors = self.class::GRPC_INTERCEPTORS
208
214
  @os_login_service_stub = Google::Gax::Grpc.create_stub(
209
215
  service_path,
@@ -110,6 +110,10 @@ module Google
110
110
  # The default timeout, in seconds, for calls made through this client.
111
111
  # @param metadata [Hash]
112
112
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
113
+ # @param service_address [String]
114
+ # Override for the service hostname, or `nil` to leave as the default.
115
+ # @param service_port [Integer]
116
+ # Override for the service port, or `nil` to leave as the default.
113
117
  # @param exception_transformer [Proc]
114
118
  # An optional proc that intercepts any exceptions raised during an API call to inject
115
119
  # custom error handling.
@@ -119,6 +123,8 @@ module Google
119
123
  client_config: nil,
120
124
  timeout: nil,
121
125
  metadata: nil,
126
+ service_address: nil,
127
+ service_port: nil,
122
128
  exception_transformer: nil,
123
129
  lib_name: nil,
124
130
  lib_version: nil
@@ -130,6 +136,8 @@ module Google
130
136
  metadata: metadata,
131
137
  exception_transformer: exception_transformer,
132
138
  lib_name: lib_name,
139
+ service_address: service_address,
140
+ service_port: service_port,
133
141
  lib_version: lib_version
134
142
  }.select { |_, v| v != nil }
135
143
  Google::Cloud::OsLogin::V1beta::OsLoginServiceClient.new(**kwargs)
@@ -140,6 +140,10 @@ module Google
140
140
  # The default timeout, in seconds, for calls made through this client.
141
141
  # @param metadata [Hash]
142
142
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
143
+ # @param service_address [String]
144
+ # Override for the service hostname, or `nil` to leave as the default.
145
+ # @param service_port [Integer]
146
+ # Override for the service port, or `nil` to leave as the default.
143
147
  # @param exception_transformer [Proc]
144
148
  # An optional proc that intercepts any exceptions raised during an API call to inject
145
149
  # custom error handling.
@@ -149,6 +153,8 @@ module Google
149
153
  client_config: {},
150
154
  timeout: DEFAULT_TIMEOUT,
151
155
  metadata: nil,
156
+ service_address: nil,
157
+ service_port: nil,
152
158
  exception_transformer: nil,
153
159
  lib_name: nil,
154
160
  lib_version: ""
@@ -202,8 +208,8 @@ module Google
202
208
  end
203
209
 
204
210
  # Allow overriding the service path/port in subclasses.
205
- service_path = self.class::SERVICE_ADDRESS
206
- port = self.class::DEFAULT_SERVICE_PORT
211
+ service_path = service_address || self.class::SERVICE_ADDRESS
212
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
207
213
  interceptors = self.class::GRPC_INTERCEPTORS
208
214
  @os_login_service_stub = Google::Gax::Grpc.create_stub(
209
215
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module OsLogin
19
- VERSION = "0.2.5".freeze
19
+ VERSION = "0.3.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-os_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.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: minitest
29
29
  requirement: !ruby/object:Gem::Requirement