google-cloud-run-v2 0.13.0 → 0.13.1

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: e6124228a8f8c0512dca256e87a63f3f545d099380b9a22572a34252f9e2778c
4
- data.tar.gz: 05b6a01545bb1734ae5b8006cfb1d95b81f048baa090424b31a815ee35445eb8
3
+ metadata.gz: '08a8ca820ec103fe206c3536eadfb10f15927054418b73b3ca11189520181f24'
4
+ data.tar.gz: 88a491b6e7be9fcec9ae8452725e95ee9c31d31a7601e07ab1e28c810d4e330f
5
5
  SHA512:
6
- metadata.gz: 69499b705eb3403a2697d65d334ad0b160ace933a48e009209e6b65ae1f5c074f6027f4f0abd76df63e397e3b1b2c3ca9cb4dd126ec23625cb31cb70487e9a66
7
- data.tar.gz: 490968f10189161e22a9a388ded2d4c319674d6d1a631f92e31afa9a6b8b54bdfaf957bb8cade493c2b55be85515b86a0cecb296c529b89ed85eb33674d076d0
6
+ metadata.gz: 9447658b3aac615ada3b7bc3dbf8c69f8124fdaf46bade4d0850c34854917705d012927055929ccb94bb985658b19aabbeed2bce35ec2de80adc8c6775b90392
7
+ data.tar.gz: c1a55956ebf24b96fa77db2910960236fa8ca49d517819a751c89a8e2600c7af2a0f79c488b687e62b4733df1532f6ad35896dffc9622fa2c29590a02859c3b7
@@ -154,13 +154,6 @@ module Google
154
154
  config.universe_domain = @config.universe_domain
155
155
  end
156
156
 
157
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
158
- config.credentials = credentials
159
- config.quota_project = @quota_project_id
160
- config.endpoint = @config.endpoint
161
- config.universe_domain = @config.universe_domain
162
- end
163
-
164
157
  @executions_stub = ::Gapic::ServiceStub.new(
165
158
  ::Google::Cloud::Run::V2::Executions::Stub,
166
159
  credentials: credentials,
@@ -171,6 +164,13 @@ module Google
171
164
  interceptors: @config.interceptors,
172
165
  channel_pool_config: @config.channel_pool
173
166
  )
167
+
168
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
169
+ config.credentials = credentials
170
+ config.quota_project = @quota_project_id
171
+ config.endpoint = @executions_stub.endpoint
172
+ config.universe_domain = @executions_stub.universe_domain
173
+ end
174
174
  end
175
175
 
176
176
  ##
@@ -151,19 +151,19 @@ module Google
151
151
  config.universe_domain = @config.universe_domain
152
152
  end
153
153
 
154
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
155
- config.credentials = credentials
156
- config.quota_project = @quota_project_id
157
- config.endpoint = @config.endpoint
158
- config.universe_domain = @config.universe_domain
159
- end
160
-
161
154
  @executions_stub = ::Google::Cloud::Run::V2::Executions::Rest::ServiceStub.new(
162
155
  endpoint: @config.endpoint,
163
156
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
164
157
  universe_domain: @config.universe_domain,
165
158
  credentials: credentials
166
159
  )
160
+
161
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
162
+ config.credentials = credentials
163
+ config.quota_project = @quota_project_id
164
+ config.endpoint = @executions_stub.endpoint
165
+ config.universe_domain = @executions_stub.universe_domain
166
+ end
167
167
  end
168
168
 
169
169
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the get_execution REST call
57
66
  #
@@ -154,13 +154,6 @@ module Google
154
154
  config.universe_domain = @config.universe_domain
155
155
  end
156
156
 
157
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
158
- config.credentials = credentials
159
- config.quota_project = @quota_project_id
160
- config.endpoint = @config.endpoint
161
- config.universe_domain = @config.universe_domain
162
- end
163
-
164
157
  @jobs_stub = ::Gapic::ServiceStub.new(
165
158
  ::Google::Cloud::Run::V2::Jobs::Stub,
166
159
  credentials: credentials,
@@ -171,6 +164,13 @@ module Google
171
164
  interceptors: @config.interceptors,
172
165
  channel_pool_config: @config.channel_pool
173
166
  )
167
+
168
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
169
+ config.credentials = credentials
170
+ config.quota_project = @quota_project_id
171
+ config.endpoint = @jobs_stub.endpoint
172
+ config.universe_domain = @jobs_stub.universe_domain
173
+ end
174
174
  end
175
175
 
176
176
  ##
@@ -151,19 +151,19 @@ module Google
151
151
  config.universe_domain = @config.universe_domain
152
152
  end
153
153
 
154
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
155
- config.credentials = credentials
156
- config.quota_project = @quota_project_id
157
- config.endpoint = @config.endpoint
158
- config.universe_domain = @config.universe_domain
159
- end
160
-
161
154
  @jobs_stub = ::Google::Cloud::Run::V2::Jobs::Rest::ServiceStub.new(
162
155
  endpoint: @config.endpoint,
163
156
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
164
157
  universe_domain: @config.universe_domain,
165
158
  credentials: credentials
166
159
  )
160
+
161
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
162
+ config.credentials = credentials
163
+ config.quota_project = @quota_project_id
164
+ config.endpoint = @jobs_stub.endpoint
165
+ config.universe_domain = @jobs_stub.universe_domain
166
+ end
167
167
  end
168
168
 
169
169
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the create_job REST call
57
66
  #
@@ -154,13 +154,6 @@ module Google
154
154
  config.universe_domain = @config.universe_domain
155
155
  end
156
156
 
157
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
158
- config.credentials = credentials
159
- config.quota_project = @quota_project_id
160
- config.endpoint = @config.endpoint
161
- config.universe_domain = @config.universe_domain
162
- end
163
-
164
157
  @revisions_stub = ::Gapic::ServiceStub.new(
165
158
  ::Google::Cloud::Run::V2::Revisions::Stub,
166
159
  credentials: credentials,
@@ -171,6 +164,13 @@ module Google
171
164
  interceptors: @config.interceptors,
172
165
  channel_pool_config: @config.channel_pool
173
166
  )
167
+
168
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
169
+ config.credentials = credentials
170
+ config.quota_project = @quota_project_id
171
+ config.endpoint = @revisions_stub.endpoint
172
+ config.universe_domain = @revisions_stub.universe_domain
173
+ end
174
174
  end
175
175
 
176
176
  ##
@@ -151,19 +151,19 @@ module Google
151
151
  config.universe_domain = @config.universe_domain
152
152
  end
153
153
 
154
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
155
- config.credentials = credentials
156
- config.quota_project = @quota_project_id
157
- config.endpoint = @config.endpoint
158
- config.universe_domain = @config.universe_domain
159
- end
160
-
161
154
  @revisions_stub = ::Google::Cloud::Run::V2::Revisions::Rest::ServiceStub.new(
162
155
  endpoint: @config.endpoint,
163
156
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
164
157
  universe_domain: @config.universe_domain,
165
158
  credentials: credentials
166
159
  )
160
+
161
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
162
+ config.credentials = credentials
163
+ config.quota_project = @quota_project_id
164
+ config.endpoint = @revisions_stub.endpoint
165
+ config.universe_domain = @revisions_stub.universe_domain
166
+ end
167
167
  end
168
168
 
169
169
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the get_revision REST call
57
66
  #
@@ -170,13 +170,6 @@ module Google
170
170
  config.universe_domain = @config.universe_domain
171
171
  end
172
172
 
173
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
174
- config.credentials = credentials
175
- config.quota_project = @quota_project_id
176
- config.endpoint = @config.endpoint
177
- config.universe_domain = @config.universe_domain
178
- end
179
-
180
173
  @services_stub = ::Gapic::ServiceStub.new(
181
174
  ::Google::Cloud::Run::V2::Services::Stub,
182
175
  credentials: credentials,
@@ -187,6 +180,13 @@ module Google
187
180
  interceptors: @config.interceptors,
188
181
  channel_pool_config: @config.channel_pool
189
182
  )
183
+
184
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
185
+ config.credentials = credentials
186
+ config.quota_project = @quota_project_id
187
+ config.endpoint = @services_stub.endpoint
188
+ config.universe_domain = @services_stub.universe_domain
189
+ end
190
190
  end
191
191
 
192
192
  ##
@@ -167,19 +167,19 @@ module Google
167
167
  config.universe_domain = @config.universe_domain
168
168
  end
169
169
 
170
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
171
- config.credentials = credentials
172
- config.quota_project = @quota_project_id
173
- config.endpoint = @config.endpoint
174
- config.universe_domain = @config.universe_domain
175
- end
176
-
177
170
  @services_stub = ::Google::Cloud::Run::V2::Services::Rest::ServiceStub.new(
178
171
  endpoint: @config.endpoint,
179
172
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
180
173
  universe_domain: @config.universe_domain,
181
174
  credentials: credentials
182
175
  )
176
+
177
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
178
+ config.credentials = credentials
179
+ config.quota_project = @quota_project_id
180
+ config.endpoint = @services_stub.endpoint
181
+ config.universe_domain = @services_stub.universe_domain
182
+ end
183
183
  end
184
184
 
185
185
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the create_service REST call
57
66
  #
@@ -147,13 +147,6 @@ module Google
147
147
  @quota_project_id = @config.quota_project
148
148
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
149
149
 
150
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
151
- config.credentials = credentials
152
- config.quota_project = @quota_project_id
153
- config.endpoint = @config.endpoint
154
- config.universe_domain = @config.universe_domain
155
- end
156
-
157
150
  @tasks_stub = ::Gapic::ServiceStub.new(
158
151
  ::Google::Cloud::Run::V2::Tasks::Stub,
159
152
  credentials: credentials,
@@ -164,6 +157,13 @@ module Google
164
157
  interceptors: @config.interceptors,
165
158
  channel_pool_config: @config.channel_pool
166
159
  )
160
+
161
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
162
+ config.credentials = credentials
163
+ config.quota_project = @quota_project_id
164
+ config.endpoint = @tasks_stub.endpoint
165
+ config.universe_domain = @tasks_stub.universe_domain
166
+ end
167
167
  end
168
168
 
169
169
  ##
@@ -144,19 +144,19 @@ module Google
144
144
  @quota_project_id = @config.quota_project
145
145
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
146
146
 
147
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
148
- config.credentials = credentials
149
- config.quota_project = @quota_project_id
150
- config.endpoint = @config.endpoint
151
- config.universe_domain = @config.universe_domain
152
- end
153
-
154
147
  @tasks_stub = ::Google::Cloud::Run::V2::Tasks::Rest::ServiceStub.new(
155
148
  endpoint: @config.endpoint,
156
149
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
157
150
  universe_domain: @config.universe_domain,
158
151
  credentials: credentials
159
152
  )
153
+
154
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
155
+ config.credentials = credentials
156
+ config.quota_project = @quota_project_id
157
+ config.endpoint = @tasks_stub.endpoint
158
+ config.universe_domain = @tasks_stub.universe_domain
159
+ end
160
160
  end
161
161
 
162
162
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the get_task REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Run
23
23
  module V2
24
- VERSION = "0.13.0"
24
+ VERSION = "0.13.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-run-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-11 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common