google-cloud-container 0.4.2 → 0.5.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: a80691781b977da5f67682b8367c6128f30d2f048ef52d2ccefe9d313bdff627
4
- data.tar.gz: 64720b4d81e7c58a7494cc91a267ca7674d5c38d4e67483a9ece1775870783cb
3
+ metadata.gz: 75318019f0d88f9064852e8cb429a6e9276b465bdeca04b93941e009674996fc
4
+ data.tar.gz: ff4326aabbe954cc808810ebd7546a874fa87b79bb34265089539019cae14b53
5
5
  SHA512:
6
- metadata.gz: 3f10ab83314b23643b510bcef24b1ff7610711f554d2581e4b11d384802691676e5ce2cf0802c74638350bdf219a17e28fa6dbf940ad9d24595ac08f13a35096
7
- data.tar.gz: 9cb148d87af1e0dd3b91401659c535833daa64e0f731ed7c9311deab55e3e84d94b1c0802d269890ded77a6302c6d000bd665db1feb50feabaa873e09c04ad74
6
+ metadata.gz: fc3bb5fe45349121837e97b969c18995f6b65684e83e9fcc2d2224346c00fc9762ac73cb9c64351eb646647e471c6cb80cbf33a58aa18ca8b70a9a2884d57bde
7
+ data.tar.gz: d3103a205b747fe33beb9f4b2be769427c970e40eff06dc484c690cf36f7fa069ed8a021a983055222e0bba8bd13e99d6b3eb19ddad76efa4d81d277bd2e5982
@@ -131,6 +131,10 @@ module Google
131
131
  # The default timeout, in seconds, for calls made through this client.
132
132
  # @param metadata [Hash]
133
133
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
134
+ # @param service_address [String]
135
+ # Override for the service hostname, or `nil` to leave as the default.
136
+ # @param service_port [Integer]
137
+ # Override for the service port, or `nil` to leave as the default.
134
138
  # @param exception_transformer [Proc]
135
139
  # An optional proc that intercepts any exceptions raised during an API call to inject
136
140
  # custom error handling.
@@ -119,6 +119,10 @@ module Google
119
119
  # The default timeout, in seconds, for calls made through this client.
120
120
  # @param metadata [Hash]
121
121
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
122
+ # @param service_address [String]
123
+ # Override for the service hostname, or `nil` to leave as the default.
124
+ # @param service_port [Integer]
125
+ # Override for the service port, or `nil` to leave as the default.
122
126
  # @param exception_transformer [Proc]
123
127
  # An optional proc that intercepts any exceptions raised during an API call to inject
124
128
  # custom error handling.
@@ -128,6 +132,8 @@ module Google
128
132
  client_config: nil,
129
133
  timeout: nil,
130
134
  metadata: nil,
135
+ service_address: nil,
136
+ service_port: nil,
131
137
  exception_transformer: nil,
132
138
  lib_name: nil,
133
139
  lib_version: nil
@@ -139,6 +145,8 @@ module Google
139
145
  metadata: metadata,
140
146
  exception_transformer: exception_transformer,
141
147
  lib_name: lib_name,
148
+ service_address: service_address,
149
+ service_port: service_port,
142
150
  lib_version: lib_version
143
151
  }.select { |_, v| v != nil }
144
152
  Google::Cloud::Container::V1::ClusterManagerClient.new(**kwargs)
@@ -85,6 +85,10 @@ module Google
85
85
  # The default timeout, in seconds, for calls made through this client.
86
86
  # @param metadata [Hash]
87
87
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
88
+ # @param service_address [String]
89
+ # Override for the service hostname, or `nil` to leave as the default.
90
+ # @param service_port [Integer]
91
+ # Override for the service port, or `nil` to leave as the default.
88
92
  # @param exception_transformer [Proc]
89
93
  # An optional proc that intercepts any exceptions raised during an API call to inject
90
94
  # custom error handling.
@@ -94,6 +98,8 @@ module Google
94
98
  client_config: {},
95
99
  timeout: DEFAULT_TIMEOUT,
96
100
  metadata: nil,
101
+ service_address: nil,
102
+ service_port: nil,
97
103
  exception_transformer: nil,
98
104
  lib_name: nil,
99
105
  lib_version: ""
@@ -147,8 +153,8 @@ module Google
147
153
  end
148
154
 
149
155
  # Allow overriding the service path/port in subclasses.
150
- service_path = self.class::SERVICE_ADDRESS
151
- port = self.class::DEFAULT_SERVICE_PORT
156
+ service_path = service_address || self.class::SERVICE_ADDRESS
157
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
152
158
  interceptors = self.class::GRPC_INTERCEPTORS
153
159
  @cluster_manager_stub = Google::Gax::Grpc.create_stub(
154
160
  service_path,
@@ -119,6 +119,10 @@ module Google
119
119
  # The default timeout, in seconds, for calls made through this client.
120
120
  # @param metadata [Hash]
121
121
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
122
+ # @param service_address [String]
123
+ # Override for the service hostname, or `nil` to leave as the default.
124
+ # @param service_port [Integer]
125
+ # Override for the service port, or `nil` to leave as the default.
122
126
  # @param exception_transformer [Proc]
123
127
  # An optional proc that intercepts any exceptions raised during an API call to inject
124
128
  # custom error handling.
@@ -128,6 +132,8 @@ module Google
128
132
  client_config: nil,
129
133
  timeout: nil,
130
134
  metadata: nil,
135
+ service_address: nil,
136
+ service_port: nil,
131
137
  exception_transformer: nil,
132
138
  lib_name: nil,
133
139
  lib_version: nil
@@ -139,6 +145,8 @@ module Google
139
145
  metadata: metadata,
140
146
  exception_transformer: exception_transformer,
141
147
  lib_name: lib_name,
148
+ service_address: service_address,
149
+ service_port: service_port,
142
150
  lib_version: lib_version
143
151
  }.select { |_, v| v != nil }
144
152
  Google::Cloud::Container::V1beta1::ClusterManagerClient.new(**kwargs)
@@ -94,6 +94,10 @@ module Google
94
94
  # The default timeout, in seconds, for calls made through this client.
95
95
  # @param metadata [Hash]
96
96
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
97
+ # @param service_address [String]
98
+ # Override for the service hostname, or `nil` to leave as the default.
99
+ # @param service_port [Integer]
100
+ # Override for the service port, or `nil` to leave as the default.
97
101
  # @param exception_transformer [Proc]
98
102
  # An optional proc that intercepts any exceptions raised during an API call to inject
99
103
  # custom error handling.
@@ -103,6 +107,8 @@ module Google
103
107
  client_config: {},
104
108
  timeout: DEFAULT_TIMEOUT,
105
109
  metadata: nil,
110
+ service_address: nil,
111
+ service_port: nil,
106
112
  exception_transformer: nil,
107
113
  lib_name: nil,
108
114
  lib_version: ""
@@ -157,8 +163,8 @@ module Google
157
163
  end
158
164
 
159
165
  # Allow overriding the service path/port in subclasses.
160
- service_path = self.class::SERVICE_ADDRESS
161
- port = self.class::DEFAULT_SERVICE_PORT
166
+ service_path = service_address || self.class::SERVICE_ADDRESS
167
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
162
168
  interceptors = self.class::GRPC_INTERCEPTORS
163
169
  @cluster_manager_stub = Google::Gax::Grpc.create_stub(
164
170
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Container
19
- VERSION = "0.4.2".freeze
19
+ VERSION = "0.5.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-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.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-14 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