google-cloud-storage_insights-v1 0.2.0 → 0.2.2

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: af9f37116903b1faaa1ea4378380729c0f52f8ab7b04e6629fb83cf266cabe45
4
- data.tar.gz: 85bafc8fbc09a3419c8d32bc854e650a103de38b508f2b3ea976b66b57a713bc
3
+ metadata.gz: a837572c51978c7447ee1e6f805667a1d5c15424af88fde27d6bb8666f89c6a7
4
+ data.tar.gz: 584622c70e1eef257b9c397076aecbe86d4701c238839a0299dfeb2431573202
5
5
  SHA512:
6
- metadata.gz: d812dd021ed9773049086c055bae768fdab4d958f852d283a1df7368e3e91a20fb4dee8cce02f31c9ce1a7f1f4226beb05aebd244608be4a691272bfebf62084
7
- data.tar.gz: 25bc0615beffd4699ae878dbd127dc43ed97cb162257c823232de83b4deb6e56f70ca738549254fee92a34286a9c4f7654a1bab342b552f3e77b6a23f041295e
6
+ metadata.gz: 2b26645dd637aa96a9c16ed3e38ddc4b89c99185ee94fd0935d6171dd143b31f88b69fadba17ca9ecae1323f9900007f68e20ac2c1cfaa1797532158d5069bc6
7
+ data.tar.gz: 94478b94b04e25733718bcdb656991da4c0a3edffc3827ec82f68653a599e9e14d0d72dd8e685845a498150a7c7850cb742f7217228c2ea8f99ca3f387764c8b
@@ -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.2"
25
25
  end
26
26
  end
27
27
  end
@@ -382,6 +382,9 @@ module Google
382
382
 
383
383
  # Message describing ReportConfig object. ReportConfig is the configuration to
384
384
  # generate reports.
385
+ # See
386
+ # https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
387
+ # for more details on how to set various fields.
385
388
  # Next ID: 12
386
389
  # @!attribute [rw] name
387
390
  # @return [::String]
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.2
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-08-16 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