google-cloud-storage_insights-v1 0.2.0 → 0.2.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: af9f37116903b1faaa1ea4378380729c0f52f8ab7b04e6629fb83cf266cabe45
4
- data.tar.gz: 85bafc8fbc09a3419c8d32bc854e650a103de38b508f2b3ea976b66b57a713bc
3
+ metadata.gz: 8b46fe231674840cf381b80ba1385095cf185683b8a9542379492c0f592d85dd
4
+ data.tar.gz: 1abf1d39c9675c7d4e0afea51070b903fa9cfa3f8ff21b0b6cf1b4436389c826
5
5
  SHA512:
6
- metadata.gz: d812dd021ed9773049086c055bae768fdab4d958f852d283a1df7368e3e91a20fb4dee8cce02f31c9ce1a7f1f4226beb05aebd244608be4a691272bfebf62084
7
- data.tar.gz: 25bc0615beffd4699ae878dbd127dc43ed97cb162257c823232de83b4deb6e56f70ca738549254fee92a34286a9c4f7654a1bab342b552f3e77b6a23f041295e
6
+ metadata.gz: c68d015269d51549bea594fdd543caf05192d4799844be35cb9a27a012d1a521fe3c6680fe6b8578f782b11ac3aab30db9f2616a0d3bbdbb8fa96dafc715b90b
7
+ data.tar.gz: 62d0abb8687f06015a157101d256e8107e80f0970b2b2ea0b3857891f19b4023520421d97ae6b53ad47f0cb17e733caa7f6d2a57d566b7c67f4eec8252f2d024
@@ -146,7 +146,7 @@ module Google
146
146
  credentials = @config.credentials
147
147
  # Use self-signed JWT if the endpoint is unchanged from default,
148
148
  # but only if the default endpoint does not have a region prefix.
149
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
149
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
150
150
  !@config.endpoint.split(".").first.include?("-")
151
151
  credentials ||= Credentials.default scope: @config.scope,
152
152
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -937,7 +937,9 @@ module Google
937
937
  class Configuration
938
938
  extend ::Gapic::Config
939
939
 
940
- config_attr :endpoint, "storageinsights.googleapis.com", ::String
940
+ DEFAULT_ENDPOINT = "storageinsights.googleapis.com"
941
+
942
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
941
943
  config_attr :credentials, nil do |value|
942
944
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
943
945
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -142,7 +142,7 @@ module Google
142
142
  credentials = @config.credentials
143
143
  # Use self-signed JWT if the endpoint is unchanged from default,
144
144
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
146
  !@config.endpoint.split(".").first.include?("-")
147
147
  credentials ||= Credentials.default scope: @config.scope,
148
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -749,7 +749,9 @@ module Google
749
749
  class Configuration
750
750
  extend ::Gapic::Config
751
751
 
752
- config_attr :endpoint, "storageinsights.googleapis.com", ::String
752
+ DEFAULT_ENDPOINT = "storageinsights.googleapis.com"
753
+
754
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
753
755
  config_attr :credentials, nil do |value|
754
756
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
755
757
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_report_configs_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_get_report_config_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
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_report_config_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_report_config_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_report_config_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_list_report_details_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_get_report_detail_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module StorageInsights
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.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-storage_insights-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.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