google-cloud-service_control-v1 0.7.0 → 0.7.1

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: 6806aa4cbd7d925b3a3e4d80dd111bcaa7492d2c73624cc005d7acf17d00851d
4
- data.tar.gz: 8930728a13512b71375e26062deaf5c68711c50d87adaf33f5847a0753077e40
3
+ metadata.gz: 45aed4e60a6762e0e00f0e9c5d3fab8531be3c577bd6e39aeb92120fa8fefaf1
4
+ data.tar.gz: 25534263ebb7df8aaca735f20426845406914d8d941ef24843585384f8ea626c
5
5
  SHA512:
6
- metadata.gz: 3787cc1e5e0e30fbeb5a39133cdcef84ef4cbfe599f8637584c6d86d410dd3cc8b244b60dcf94b9309e45bbd9810962d8460a7c9050ef2b28631773f05b122b9
7
- data.tar.gz: cad54b890c62a9ef91d6899786b8b5f9a41565fa1fdb1e9054e41e0759620cfc0ca8a289ebaf7609824eeffdc6510e8084263dfb4cce6f9ecbd7178c86d2731d
6
+ metadata.gz: 3b38bd2196570dc30ac519140cc317883af93f3d0fa181498cca417512b832a79bf0afe6f335e554934045bbbf256a8f86dde8395a5aa7893ba83a7b2fef3175
7
+ data.tar.gz: df35fa4714e418cdc5d50be97fb34f20f6aca7f3ca6ce2da1482ca2513db4a020ac5b74b07df50f23fd9ece58509d634dc731e333a295d4266b346e8df5066f2
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -331,7 +331,9 @@ module Google
331
331
  class Configuration
332
332
  extend ::Gapic::Config
333
333
 
334
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
334
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
335
+
336
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
335
337
  config_attr :credentials, nil do |value|
336
338
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
337
339
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -120,7 +120,7 @@ module Google
120
120
  credentials = @config.credentials
121
121
  # Use self-signed JWT if the endpoint is unchanged from default,
122
122
  # but only if the default endpoint does not have a region prefix.
123
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
123
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
124
124
  !@config.endpoint.split(".").first.include?("-")
125
125
  credentials ||= Credentials.default scope: @config.scope,
126
126
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -290,7 +290,9 @@ module Google
290
290
  class Configuration
291
291
  extend ::Gapic::Config
292
292
 
293
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
293
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
294
+
295
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
294
296
  config_attr :credentials, nil do |value|
295
297
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
296
298
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_allocate_quota_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -470,7 +470,9 @@ module Google
470
470
  class Configuration
471
471
  extend ::Gapic::Config
472
472
 
473
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
473
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
474
+
475
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
474
476
  config_attr :credentials, nil do |value|
475
477
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
476
478
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -406,7 +406,9 @@ module Google
406
406
  class Configuration
407
407
  extend ::Gapic::Config
408
408
 
409
- config_attr :endpoint, "servicecontrol.googleapis.com", ::String
409
+ DEFAULT_ENDPOINT = "servicecontrol.googleapis.com"
410
+
411
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
410
412
  config_attr :credentials, nil do |value|
411
413
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
412
414
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_check_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_report_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceControl
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.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-service_control-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a