google-cloud-functions-v2 0.6.0 → 0.6.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: 62865f496c0c020486ce7ebda8b4216f9ab5781604840c590082309fffdf7177
4
- data.tar.gz: c4a5a1c021c64be9d261cfd4fc33df6cc429ee82b44211358c33777aa1c036f0
3
+ metadata.gz: 4c95b991c8c7b8773c5f6c272d7c96a6dd22d4cd308d23aed115588426265519
4
+ data.tar.gz: 576a35428763d99b3c722b2ec227dec04f065710b38623fdf0a3b7b4e5950a50
5
5
  SHA512:
6
- metadata.gz: 21cda9ce638e65683f258b601a2ca9cefd3f79d2ea7d84585eff269dfa202721da8feeffd670dd29d86c5fe4dd0c0230cef9659b710f77388a61c91fc1f9ba0a
7
- data.tar.gz: 9256e00d08e38bc8740f70e65d68ccf83b0f565cb529a89f8eac4c0680e1da1cb1b08e0043772ee14aefef629f02ab84a54edc085f7b82db86f3a17b841ce860
6
+ metadata.gz: e9495b3745800ddf8628443e575b9e05fbebdf70f04648809f86d0caba12357fc2cfca0d7fa08035411e71f95d12f7454b997998b091537cfc54ad0e5b129c75
7
+ data.tar.gz: f32a261cb7569ce037f91bbf23e0a90b4c00e1983a2b28bc9a72324f568bfc5957350bd80f03c1ee78377b079d0f92028da3568c34e6eb209d1e2ec1cfee5693
@@ -160,20 +160,6 @@ module Google
160
160
  config.universe_domain = @config.universe_domain
161
161
  end
162
162
 
163
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
164
- config.credentials = credentials
165
- config.quota_project = @quota_project_id
166
- config.endpoint = @config.endpoint
167
- config.universe_domain = @config.universe_domain
168
- end
169
-
170
- @iam_policy_client = Google::Iam::V1::IAMPolicy::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
163
  @function_service_stub = ::Gapic::ServiceStub.new(
178
164
  ::Google::Cloud::Functions::V2::FunctionService::Stub,
179
165
  credentials: credentials,
@@ -184,6 +170,20 @@ module Google
184
170
  interceptors: @config.interceptors,
185
171
  channel_pool_config: @config.channel_pool
186
172
  )
173
+
174
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
175
+ config.credentials = credentials
176
+ config.quota_project = @quota_project_id
177
+ config.endpoint = @function_service_stub.endpoint
178
+ config.universe_domain = @function_service_stub.universe_domain
179
+ end
180
+
181
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
182
+ config.credentials = credentials
183
+ config.quota_project = @quota_project_id
184
+ config.endpoint = @function_service_stub.endpoint
185
+ config.universe_domain = @function_service_stub.universe_domain
186
+ end
187
187
  end
188
188
 
189
189
  ##
@@ -157,28 +157,28 @@ module Google
157
157
  config.universe_domain = @config.universe_domain
158
158
  end
159
159
 
160
+ @function_service_stub = ::Google::Cloud::Functions::V2::FunctionService::Rest::ServiceStub.new(
161
+ endpoint: @config.endpoint,
162
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
+ universe_domain: @config.universe_domain,
164
+ credentials: credentials
165
+ )
166
+
160
167
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
161
168
  config.credentials = credentials
162
169
  config.quota_project = @quota_project_id
163
- config.endpoint = @config.endpoint
164
- config.universe_domain = @config.universe_domain
170
+ config.endpoint = @function_service_stub.endpoint
171
+ config.universe_domain = @function_service_stub.universe_domain
165
172
  config.bindings_override = @config.bindings_override
166
173
  end
167
174
 
168
175
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
169
176
  config.credentials = credentials
170
177
  config.quota_project = @quota_project_id
171
- config.endpoint = @config.endpoint
172
- config.universe_domain = @config.universe_domain
178
+ config.endpoint = @function_service_stub.endpoint
179
+ config.universe_domain = @function_service_stub.universe_domain
173
180
  config.bindings_override = @config.bindings_override
174
181
  end
175
-
176
- @function_service_stub = ::Google::Cloud::Functions::V2::FunctionService::Rest::ServiceStub.new(
177
- endpoint: @config.endpoint,
178
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
179
- universe_domain: @config.universe_domain,
180
- credentials: credentials
181
- )
182
182
  end
183
183
 
184
184
  ##
@@ -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_function REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V2
24
- VERSION = "0.6.0"
24
+ VERSION = "0.6.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-functions-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.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