imagekitio 4.7.0 → 4.8.0
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/imagekitio/internal/transport/base_client.rb +4 -1
- data/lib/imagekitio/models/accounts/request_bandwidth_entry.rb +26 -0
- data/lib/imagekitio/models/accounts/usage_analytics_get_params.rb +39 -0
- data/lib/imagekitio/models/accounts/usage_analytics_response.rb +1044 -0
- data/lib/imagekitio/resources/accounts/usage.rb +6 -0
- data/lib/imagekitio/resources/accounts/usage_analytics.rb +55 -0
- data/lib/imagekitio/resources/accounts.rb +4 -0
- data/lib/imagekitio/version.rb +1 -1
- data/lib/imagekitio.rb +4 -0
- data/rbi/imagekitio/models/accounts/request_bandwidth_entry.rbi +44 -0
- data/rbi/imagekitio/models/accounts/usage_analytics_get_params.rbi +64 -0
- data/rbi/imagekitio/models/accounts/usage_analytics_response.rbi +2097 -0
- data/rbi/imagekitio/resources/accounts/usage.rbi +6 -0
- data/rbi/imagekitio/resources/accounts/usage_analytics.rbi +46 -0
- data/rbi/imagekitio/resources/accounts.rbi +3 -0
- data/sig/imagekitio/models/accounts/request_bandwidth_entry.rbs +18 -0
- data/sig/imagekitio/models/accounts/usage_analytics_get_params.rbs +30 -0
- data/sig/imagekitio/models/accounts/usage_analytics_response.rbs +785 -0
- data/sig/imagekitio/resources/accounts/usage_analytics.rbs +15 -0
- data/sig/imagekitio/resources/accounts.rbs +2 -0
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53589b5e387cc2e3919aaea2e515bc77f13f77d81cf9b244ba2b1749868acb8e
|
|
4
|
+
data.tar.gz: 2b8701182074f45b8e43235229cff8d2112dfc6063a307e97431110a7419a19b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc8f6b4f36557e0419313bdb688c243736a3139e9e1095300d0af2f8c2af339858881d51c67b92d41b1b2493d031cdbed69c116fd6a992ba8bacb54ab5f1bdfb
|
|
7
|
+
data.tar.gz: b4033a82d0f7960904b513ccd4f01cb662698b0abbba368727889a3aee987438c6f78768efe30b577e35f3f249b4d4cde55bad1c3c27b1418030471f719463ac
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.8.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.7.0...v4.8.0) (2026-07-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add usage analytics breakdown endpoint ([82b2909](https://github.com/imagekit-developer/imagekit-ruby/commit/82b29099bc232601ad99dd3b304be8edf59e2179))
|
|
9
|
+
|
|
3
10
|
## [4.7.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.6.0...v4.7.0) (2026-06-18)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
|
@@ -306,7 +306,10 @@ module Imagekitio
|
|
|
306
306
|
Imagekitio::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
# Generated methods always pass `req[:body]` for operations that define a
|
|
310
|
+
# request body, so only elide the content-type header when the operation
|
|
311
|
+
# has no body at all, not when an optional body param was omitted.
|
|
312
|
+
headers.delete("content-type") if body.nil? && !req.key?(:body)
|
|
310
313
|
|
|
311
314
|
url = Imagekitio::Internal::Util.join_parsed_uri(
|
|
312
315
|
@base_url_components,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Models
|
|
5
|
+
module Accounts
|
|
6
|
+
class RequestBandwidthEntry < Imagekitio::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute bandwidth_bytes
|
|
8
|
+
# Total bandwidth used in bytes.
|
|
9
|
+
#
|
|
10
|
+
# @return [Float]
|
|
11
|
+
required :bandwidth_bytes, Float, api_name: :bandwidthBytes
|
|
12
|
+
|
|
13
|
+
# @!attribute request_count
|
|
14
|
+
# Number of requests.
|
|
15
|
+
#
|
|
16
|
+
# @return [Float]
|
|
17
|
+
required :request_count, Float, api_name: :requestCount
|
|
18
|
+
|
|
19
|
+
# @!method initialize(bandwidth_bytes:, request_count:)
|
|
20
|
+
# @param bandwidth_bytes [Float] Total bandwidth used in bytes.
|
|
21
|
+
#
|
|
22
|
+
# @param request_count [Float] Number of requests.
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Models
|
|
5
|
+
module Accounts
|
|
6
|
+
# @see Imagekitio::Resources::Accounts::UsageAnalytics#get
|
|
7
|
+
class UsageAnalyticsGetParams < Imagekitio::Internal::Type::BaseModel
|
|
8
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute end_date
|
|
12
|
+
# Specify an `endDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
|
|
13
|
+
# It should be after the `startDate`. The difference between `startDate` and
|
|
14
|
+
# `endDate` should be less than 90 days.
|
|
15
|
+
#
|
|
16
|
+
# @return [Date]
|
|
17
|
+
required :end_date, Date
|
|
18
|
+
|
|
19
|
+
# @!attribute start_date
|
|
20
|
+
# Specify a `startDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
|
|
21
|
+
# It should be before the `endDate`. The difference between `startDate` and
|
|
22
|
+
# `endDate` should be less than 90 days.
|
|
23
|
+
#
|
|
24
|
+
# @return [Date]
|
|
25
|
+
required :start_date, Date
|
|
26
|
+
|
|
27
|
+
# @!method initialize(end_date:, start_date:, request_options: {})
|
|
28
|
+
# Some parameter documentations has been truncated, see
|
|
29
|
+
# {Imagekitio::Models::Accounts::UsageAnalyticsGetParams} for more details.
|
|
30
|
+
#
|
|
31
|
+
# @param end_date [Date] Specify an `endDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
|
|
32
|
+
#
|
|
33
|
+
# @param start_date [Date] Specify a `startDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Imagekitio::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|