stigg 0.1.0.pre.beta.13 → 0.1.0.pre.beta.15
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 +16 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1/credit_get_usage_params.rb +25 -1
- data/lib/stigg/models/v1/credit_get_usage_response.rb +42 -1
- data/lib/stigg/resources/v1/credits.rb +7 -1
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/v1/credit_get_usage_params.rbi +33 -0
- data/rbi/stigg/models/v1/credit_get_usage_response.rbi +68 -0
- data/rbi/stigg/resources/v1/credits.rbi +9 -0
- data/sig/stigg/models/v1/credit_get_usage_params.rbs +21 -0
- data/sig/stigg/models/v1/credit_get_usage_response.rbs +17 -0
- data/sig/stigg/resources/v1/credits.rbs +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b18ddc978487c294f6f5084fc93cd48e74274aaa076fe1880e21b77fb6c279c9
|
|
4
|
+
data.tar.gz: 76d23067795110fd6f35bac6e44b2b2b05e3ed25b845e0c8375d09105d24aa55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2d17c42187c79fab8a11500e3b361ae75e8033ee68890a77a0a5080a827796cdb92ee5df6ae9792a3b99c9856c552c5d9643d84e37f23e3aa334746f840f18a
|
|
7
|
+
data.tar.gz: cfad2d0da8535998a4b1b0cd0c125e136a51b3a4df8e6e127f92132452c66088153be43acd4c48e7d27f5acb92413413e2efff215421d96afa5d2c00b689dfff
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.15 (2026-06-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.14...v0.1.0-beta.15](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.14...v0.1.0-beta.15)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add pagination to credits get_usage method ([9c116ed](https://github.com/stiggio/stigg-ruby/commit/9c116edfec5202435552f5cb746cc63217051ef2))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-beta.14 (2026-06-02)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-beta.13...v0.1.0-beta.14](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.13...v0.1.0-beta.14)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([2522cf9](https://github.com/stiggio/stigg-ruby/commit/2522cf9e484166ce938eeeeca6b72bca1394ead7))
|
|
18
|
+
|
|
3
19
|
## 0.1.0-beta.13 (2026-06-01)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.1.0-beta.12...v0.1.0-beta.13](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.12...v0.1.0-beta.13)
|
data/README.md
CHANGED
|
@@ -14,6 +14,18 @@ module Stigg
|
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :customer_id, String
|
|
16
16
|
|
|
17
|
+
# @!attribute after
|
|
18
|
+
# Return items that come after this cursor
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :after, String
|
|
22
|
+
|
|
23
|
+
# @!attribute before
|
|
24
|
+
# Return items that come before this cursor
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :before, String
|
|
28
|
+
|
|
17
29
|
# @!attribute currency_id
|
|
18
30
|
# Filter by currency ID
|
|
19
31
|
#
|
|
@@ -34,6 +46,12 @@ module Stigg
|
|
|
34
46
|
# @return [String, nil]
|
|
35
47
|
optional :group_by, String
|
|
36
48
|
|
|
49
|
+
# @!attribute limit
|
|
50
|
+
# Maximum number of items to return
|
|
51
|
+
#
|
|
52
|
+
# @return [Integer, nil]
|
|
53
|
+
optional :limit, Integer
|
|
54
|
+
|
|
37
55
|
# @!attribute resource_id
|
|
38
56
|
# Filter by resource ID
|
|
39
57
|
#
|
|
@@ -54,18 +72,24 @@ module Stigg
|
|
|
54
72
|
# @return [Symbol, Stigg::Models::V1::CreditGetUsageParams::TimeRange, nil]
|
|
55
73
|
optional :time_range, enum: -> { Stigg::V1::CreditGetUsageParams::TimeRange }
|
|
56
74
|
|
|
57
|
-
# @!method initialize(customer_id:, currency_id: nil, end_date: nil, group_by: nil, resource_id: nil, start_date: nil, time_range: nil, request_options: {})
|
|
75
|
+
# @!method initialize(customer_id:, after: nil, before: nil, currency_id: nil, end_date: nil, group_by: nil, limit: nil, resource_id: nil, start_date: nil, time_range: nil, request_options: {})
|
|
58
76
|
# Some parameter documentations has been truncated, see
|
|
59
77
|
# {Stigg::Models::V1::CreditGetUsageParams} for more details.
|
|
60
78
|
#
|
|
61
79
|
# @param customer_id [String] Filter by customer ID (required)
|
|
62
80
|
#
|
|
81
|
+
# @param after [String] Return items that come after this cursor
|
|
82
|
+
#
|
|
83
|
+
# @param before [String] Return items that come before this cursor
|
|
84
|
+
#
|
|
63
85
|
# @param currency_id [String] Filter by currency ID
|
|
64
86
|
#
|
|
65
87
|
# @param end_date [Time] End date for the credit usage time range (ISO 8601). Defaults to now when startD
|
|
66
88
|
#
|
|
67
89
|
# @param group_by [String] Comma-separated list of feature dimension keys to group usage series by (up to 3
|
|
68
90
|
#
|
|
91
|
+
# @param limit [Integer] Maximum number of items to return
|
|
92
|
+
#
|
|
69
93
|
# @param resource_id [String] Filter by resource ID
|
|
70
94
|
#
|
|
71
95
|
# @param start_date [Time] Start date for the credit usage time range (ISO 8601). Takes precedence over tim
|
|
@@ -24,6 +24,14 @@ module Stigg
|
|
|
24
24
|
# @return [Stigg::Models::V1::CreditGetUsageResponse::Data::Currency, nil]
|
|
25
25
|
required :currency, -> { Stigg::Models::V1::CreditGetUsageResponse::Data::Currency }, nil?: true
|
|
26
26
|
|
|
27
|
+
# @!attribute pagination
|
|
28
|
+
# Cursor-based pagination for the returned series. `next`/`prev` are opaque
|
|
29
|
+
# cursors; pass them back as `after`/`before` to traverse pages. The series axis
|
|
30
|
+
# is `groupBy` when provided, otherwise `featureId`
|
|
31
|
+
#
|
|
32
|
+
# @return [Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination]
|
|
33
|
+
required :pagination, -> { Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination }
|
|
34
|
+
|
|
27
35
|
# @!attribute series
|
|
28
36
|
# Credit usage series grouped by feature
|
|
29
37
|
#
|
|
@@ -31,11 +39,16 @@ module Stigg
|
|
|
31
39
|
required :series,
|
|
32
40
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CreditGetUsageResponse::Data::Series] }
|
|
33
41
|
|
|
34
|
-
# @!method initialize(currency:, series:)
|
|
42
|
+
# @!method initialize(currency:, pagination:, series:)
|
|
43
|
+
# Some parameter documentations has been truncated, see
|
|
44
|
+
# {Stigg::Models::V1::CreditGetUsageResponse::Data} for more details.
|
|
45
|
+
#
|
|
35
46
|
# Credit usage data grouped by feature with time-series points
|
|
36
47
|
#
|
|
37
48
|
# @param currency [Stigg::Models::V1::CreditGetUsageResponse::Data::Currency, nil] The custom currency used for credit measurement
|
|
38
49
|
#
|
|
50
|
+
# @param pagination [Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination] Cursor-based pagination for the returned series. `next`/`prev` are opaque cursor
|
|
51
|
+
#
|
|
39
52
|
# @param series [Array<Stigg::Models::V1::CreditGetUsageResponse::Data::Series>] Credit usage series grouped by feature
|
|
40
53
|
|
|
41
54
|
# @see Stigg::Models::V1::CreditGetUsageResponse::Data#currency
|
|
@@ -84,6 +97,34 @@ module Stigg
|
|
|
84
97
|
# @param symbol [String, nil] The currency symbol
|
|
85
98
|
end
|
|
86
99
|
|
|
100
|
+
# @see Stigg::Models::V1::CreditGetUsageResponse::Data#pagination
|
|
101
|
+
class Pagination < Stigg::Internal::Type::BaseModel
|
|
102
|
+
# @!attribute next_
|
|
103
|
+
# Cursor for fetching the next page of results, or null if no additional pages
|
|
104
|
+
# exist
|
|
105
|
+
#
|
|
106
|
+
# @return [String, nil]
|
|
107
|
+
required :next_, String, api_name: :next, nil?: true
|
|
108
|
+
|
|
109
|
+
# @!attribute prev
|
|
110
|
+
# Cursor for fetching the previous page of results, or null if at the beginning
|
|
111
|
+
#
|
|
112
|
+
# @return [String, nil]
|
|
113
|
+
required :prev, String, nil?: true
|
|
114
|
+
|
|
115
|
+
# @!method initialize(next_:, prev:)
|
|
116
|
+
# Some parameter documentations has been truncated, see
|
|
117
|
+
# {Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination} for more details.
|
|
118
|
+
#
|
|
119
|
+
# Cursor-based pagination for the returned series. `next`/`prev` are opaque
|
|
120
|
+
# cursors; pass them back as `after`/`before` to traverse pages. The series axis
|
|
121
|
+
# is `groupBy` when provided, otherwise `featureId`
|
|
122
|
+
#
|
|
123
|
+
# @param next_ [String, nil] Cursor for fetching the next page of results, or null if no additional pages exi
|
|
124
|
+
#
|
|
125
|
+
# @param prev [String, nil] Cursor for fetching the previous page of results, or null if at the beginning
|
|
126
|
+
end
|
|
127
|
+
|
|
87
128
|
class Series < Stigg::Internal::Type::BaseModel
|
|
88
129
|
# @!attribute feature_id
|
|
89
130
|
# The feature ID; null when grouping by dimensions only
|
|
@@ -44,16 +44,22 @@ module Stigg
|
|
|
44
44
|
# Retrieves credit usage time-series data for a customer, grouped by feature, over
|
|
45
45
|
# a specified time range.
|
|
46
46
|
#
|
|
47
|
-
# @overload get_usage(customer_id:, currency_id: nil, end_date: nil, group_by: nil, resource_id: nil, start_date: nil, time_range: nil, request_options: {})
|
|
47
|
+
# @overload get_usage(customer_id:, after: nil, before: nil, currency_id: nil, end_date: nil, group_by: nil, limit: nil, resource_id: nil, start_date: nil, time_range: nil, request_options: {})
|
|
48
48
|
#
|
|
49
49
|
# @param customer_id [String] Filter by customer ID (required)
|
|
50
50
|
#
|
|
51
|
+
# @param after [String] Return items that come after this cursor
|
|
52
|
+
#
|
|
53
|
+
# @param before [String] Return items that come before this cursor
|
|
54
|
+
#
|
|
51
55
|
# @param currency_id [String] Filter by currency ID
|
|
52
56
|
#
|
|
53
57
|
# @param end_date [Time] End date for the credit usage time range (ISO 8601). Defaults to now when startD
|
|
54
58
|
#
|
|
55
59
|
# @param group_by [String] Comma-separated list of feature dimension keys to group usage series by (up to 3
|
|
56
60
|
#
|
|
61
|
+
# @param limit [Integer] Maximum number of items to return
|
|
62
|
+
#
|
|
57
63
|
# @param resource_id [String] Filter by resource ID
|
|
58
64
|
#
|
|
59
65
|
# @param start_date [Time] Start date for the credit usage time range (ISO 8601). Takes precedence over tim
|
data/lib/stigg/version.rb
CHANGED
|
@@ -16,6 +16,20 @@ module Stigg
|
|
|
16
16
|
sig { returns(String) }
|
|
17
17
|
attr_accessor :customer_id
|
|
18
18
|
|
|
19
|
+
# Return items that come after this cursor
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_reader :after
|
|
22
|
+
|
|
23
|
+
sig { params(after: String).void }
|
|
24
|
+
attr_writer :after
|
|
25
|
+
|
|
26
|
+
# Return items that come before this cursor
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_reader :before
|
|
29
|
+
|
|
30
|
+
sig { params(before: String).void }
|
|
31
|
+
attr_writer :before
|
|
32
|
+
|
|
19
33
|
# Filter by currency ID
|
|
20
34
|
sig { returns(T.nilable(String)) }
|
|
21
35
|
attr_reader :currency_id
|
|
@@ -39,6 +53,13 @@ module Stigg
|
|
|
39
53
|
sig { params(group_by: String).void }
|
|
40
54
|
attr_writer :group_by
|
|
41
55
|
|
|
56
|
+
# Maximum number of items to return
|
|
57
|
+
sig { returns(T.nilable(Integer)) }
|
|
58
|
+
attr_reader :limit
|
|
59
|
+
|
|
60
|
+
sig { params(limit: Integer).void }
|
|
61
|
+
attr_writer :limit
|
|
62
|
+
|
|
42
63
|
# Filter by resource ID
|
|
43
64
|
sig { returns(T.nilable(String)) }
|
|
44
65
|
attr_reader :resource_id
|
|
@@ -73,9 +94,12 @@ module Stigg
|
|
|
73
94
|
sig do
|
|
74
95
|
params(
|
|
75
96
|
customer_id: String,
|
|
97
|
+
after: String,
|
|
98
|
+
before: String,
|
|
76
99
|
currency_id: String,
|
|
77
100
|
end_date: Time,
|
|
78
101
|
group_by: String,
|
|
102
|
+
limit: Integer,
|
|
79
103
|
resource_id: String,
|
|
80
104
|
start_date: Time,
|
|
81
105
|
time_range: Stigg::V1::CreditGetUsageParams::TimeRange::OrSymbol,
|
|
@@ -85,6 +109,10 @@ module Stigg
|
|
|
85
109
|
def self.new(
|
|
86
110
|
# Filter by customer ID (required)
|
|
87
111
|
customer_id:,
|
|
112
|
+
# Return items that come after this cursor
|
|
113
|
+
after: nil,
|
|
114
|
+
# Return items that come before this cursor
|
|
115
|
+
before: nil,
|
|
88
116
|
# Filter by currency ID
|
|
89
117
|
currency_id: nil,
|
|
90
118
|
# End date for the credit usage time range (ISO 8601). Defaults to now when
|
|
@@ -93,6 +121,8 @@ module Stigg
|
|
|
93
121
|
# Comma-separated list of feature dimension keys to group usage series by (up to
|
|
94
122
|
# 3). Each key matches /^[a-zA-Z0-9_$-]+$/
|
|
95
123
|
group_by: nil,
|
|
124
|
+
# Maximum number of items to return
|
|
125
|
+
limit: nil,
|
|
96
126
|
# Filter by resource ID
|
|
97
127
|
resource_id: nil,
|
|
98
128
|
# Start date for the credit usage time range (ISO 8601). Takes precedence over
|
|
@@ -109,9 +139,12 @@ module Stigg
|
|
|
109
139
|
override.returns(
|
|
110
140
|
{
|
|
111
141
|
customer_id: String,
|
|
142
|
+
after: String,
|
|
143
|
+
before: String,
|
|
112
144
|
currency_id: String,
|
|
113
145
|
end_date: Time,
|
|
114
146
|
group_by: String,
|
|
147
|
+
limit: Integer,
|
|
115
148
|
resource_id: String,
|
|
116
149
|
start_date: Time,
|
|
117
150
|
time_range: Stigg::V1::CreditGetUsageParams::TimeRange::OrSymbol,
|
|
@@ -72,6 +72,22 @@ module Stigg
|
|
|
72
72
|
end
|
|
73
73
|
attr_writer :currency
|
|
74
74
|
|
|
75
|
+
# Cursor-based pagination for the returned series. `next`/`prev` are opaque
|
|
76
|
+
# cursors; pass them back as `after`/`before` to traverse pages. The series axis
|
|
77
|
+
# is `groupBy` when provided, otherwise `featureId`
|
|
78
|
+
sig do
|
|
79
|
+
returns(Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination)
|
|
80
|
+
end
|
|
81
|
+
attr_reader :pagination
|
|
82
|
+
|
|
83
|
+
sig do
|
|
84
|
+
params(
|
|
85
|
+
pagination:
|
|
86
|
+
Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination::OrHash
|
|
87
|
+
).void
|
|
88
|
+
end
|
|
89
|
+
attr_writer :pagination
|
|
90
|
+
|
|
75
91
|
# Credit usage series grouped by feature
|
|
76
92
|
sig do
|
|
77
93
|
returns(
|
|
@@ -87,6 +103,8 @@ module Stigg
|
|
|
87
103
|
T.nilable(
|
|
88
104
|
Stigg::Models::V1::CreditGetUsageResponse::Data::Currency::OrHash
|
|
89
105
|
),
|
|
106
|
+
pagination:
|
|
107
|
+
Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination::OrHash,
|
|
90
108
|
series:
|
|
91
109
|
T::Array[
|
|
92
110
|
Stigg::Models::V1::CreditGetUsageResponse::Data::Series::OrHash
|
|
@@ -96,6 +114,10 @@ module Stigg
|
|
|
96
114
|
def self.new(
|
|
97
115
|
# The custom currency used for credit measurement
|
|
98
116
|
currency:,
|
|
117
|
+
# Cursor-based pagination for the returned series. `next`/`prev` are opaque
|
|
118
|
+
# cursors; pass them back as `after`/`before` to traverse pages. The series axis
|
|
119
|
+
# is `groupBy` when provided, otherwise `featureId`
|
|
120
|
+
pagination:,
|
|
99
121
|
# Credit usage series grouped by feature
|
|
100
122
|
series:
|
|
101
123
|
)
|
|
@@ -108,6 +130,8 @@ module Stigg
|
|
|
108
130
|
T.nilable(
|
|
109
131
|
Stigg::Models::V1::CreditGetUsageResponse::Data::Currency
|
|
110
132
|
),
|
|
133
|
+
pagination:
|
|
134
|
+
Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination,
|
|
111
135
|
series:
|
|
112
136
|
T::Array[
|
|
113
137
|
Stigg::Models::V1::CreditGetUsageResponse::Data::Series
|
|
@@ -186,6 +210,50 @@ module Stigg
|
|
|
186
210
|
end
|
|
187
211
|
end
|
|
188
212
|
|
|
213
|
+
class Pagination < Stigg::Internal::Type::BaseModel
|
|
214
|
+
OrHash =
|
|
215
|
+
T.type_alias do
|
|
216
|
+
T.any(
|
|
217
|
+
Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination,
|
|
218
|
+
Stigg::Internal::AnyHash
|
|
219
|
+
)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Cursor for fetching the next page of results, or null if no additional pages
|
|
223
|
+
# exist
|
|
224
|
+
sig { returns(T.nilable(String)) }
|
|
225
|
+
attr_accessor :next_
|
|
226
|
+
|
|
227
|
+
# Cursor for fetching the previous page of results, or null if at the beginning
|
|
228
|
+
sig { returns(T.nilable(String)) }
|
|
229
|
+
attr_accessor :prev
|
|
230
|
+
|
|
231
|
+
# Cursor-based pagination for the returned series. `next`/`prev` are opaque
|
|
232
|
+
# cursors; pass them back as `after`/`before` to traverse pages. The series axis
|
|
233
|
+
# is `groupBy` when provided, otherwise `featureId`
|
|
234
|
+
sig do
|
|
235
|
+
params(next_: T.nilable(String), prev: T.nilable(String)).returns(
|
|
236
|
+
T.attached_class
|
|
237
|
+
)
|
|
238
|
+
end
|
|
239
|
+
def self.new(
|
|
240
|
+
# Cursor for fetching the next page of results, or null if no additional pages
|
|
241
|
+
# exist
|
|
242
|
+
next_:,
|
|
243
|
+
# Cursor for fetching the previous page of results, or null if at the beginning
|
|
244
|
+
prev:
|
|
245
|
+
)
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
sig do
|
|
249
|
+
override.returns(
|
|
250
|
+
{ next_: T.nilable(String), prev: T.nilable(String) }
|
|
251
|
+
)
|
|
252
|
+
end
|
|
253
|
+
def to_hash
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
189
257
|
class Series < Stigg::Internal::Type::BaseModel
|
|
190
258
|
OrHash =
|
|
191
259
|
T.type_alias do
|
|
@@ -35,9 +35,12 @@ module Stigg
|
|
|
35
35
|
sig do
|
|
36
36
|
params(
|
|
37
37
|
customer_id: String,
|
|
38
|
+
after: String,
|
|
39
|
+
before: String,
|
|
38
40
|
currency_id: String,
|
|
39
41
|
end_date: Time,
|
|
40
42
|
group_by: String,
|
|
43
|
+
limit: Integer,
|
|
41
44
|
resource_id: String,
|
|
42
45
|
start_date: Time,
|
|
43
46
|
time_range: Stigg::V1::CreditGetUsageParams::TimeRange::OrSymbol,
|
|
@@ -47,6 +50,10 @@ module Stigg
|
|
|
47
50
|
def get_usage(
|
|
48
51
|
# Filter by customer ID (required)
|
|
49
52
|
customer_id:,
|
|
53
|
+
# Return items that come after this cursor
|
|
54
|
+
after: nil,
|
|
55
|
+
# Return items that come before this cursor
|
|
56
|
+
before: nil,
|
|
50
57
|
# Filter by currency ID
|
|
51
58
|
currency_id: nil,
|
|
52
59
|
# End date for the credit usage time range (ISO 8601). Defaults to now when
|
|
@@ -55,6 +62,8 @@ module Stigg
|
|
|
55
62
|
# Comma-separated list of feature dimension keys to group usage series by (up to
|
|
56
63
|
# 3). Each key matches /^[a-zA-Z0-9_$-]+$/
|
|
57
64
|
group_by: nil,
|
|
65
|
+
# Maximum number of items to return
|
|
66
|
+
limit: nil,
|
|
58
67
|
# Filter by resource ID
|
|
59
68
|
resource_id: nil,
|
|
60
69
|
# Start date for the credit usage time range (ISO 8601). Takes precedence over
|
|
@@ -4,9 +4,12 @@ module Stigg
|
|
|
4
4
|
type credit_get_usage_params =
|
|
5
5
|
{
|
|
6
6
|
customer_id: String,
|
|
7
|
+
after: String,
|
|
8
|
+
before: String,
|
|
7
9
|
currency_id: String,
|
|
8
10
|
end_date: Time,
|
|
9
11
|
group_by: String,
|
|
12
|
+
limit: Integer,
|
|
10
13
|
resource_id: String,
|
|
11
14
|
start_date: Time,
|
|
12
15
|
time_range: Stigg::Models::V1::CreditGetUsageParams::time_range
|
|
@@ -19,6 +22,14 @@ module Stigg
|
|
|
19
22
|
|
|
20
23
|
attr_accessor customer_id: String
|
|
21
24
|
|
|
25
|
+
attr_reader after: String?
|
|
26
|
+
|
|
27
|
+
def after=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader before: String?
|
|
30
|
+
|
|
31
|
+
def before=: (String) -> String
|
|
32
|
+
|
|
22
33
|
attr_reader currency_id: String?
|
|
23
34
|
|
|
24
35
|
def currency_id=: (String) -> String
|
|
@@ -31,6 +42,10 @@ module Stigg
|
|
|
31
42
|
|
|
32
43
|
def group_by=: (String) -> String
|
|
33
44
|
|
|
45
|
+
attr_reader limit: Integer?
|
|
46
|
+
|
|
47
|
+
def limit=: (Integer) -> Integer
|
|
48
|
+
|
|
34
49
|
attr_reader resource_id: String?
|
|
35
50
|
|
|
36
51
|
def resource_id=: (String) -> String
|
|
@@ -47,9 +62,12 @@ module Stigg
|
|
|
47
62
|
|
|
48
63
|
def initialize: (
|
|
49
64
|
customer_id: String,
|
|
65
|
+
?after: String,
|
|
66
|
+
?before: String,
|
|
50
67
|
?currency_id: String,
|
|
51
68
|
?end_date: Time,
|
|
52
69
|
?group_by: String,
|
|
70
|
+
?limit: Integer,
|
|
53
71
|
?resource_id: String,
|
|
54
72
|
?start_date: Time,
|
|
55
73
|
?time_range: Stigg::Models::V1::CreditGetUsageParams::time_range,
|
|
@@ -58,9 +76,12 @@ module Stigg
|
|
|
58
76
|
|
|
59
77
|
def to_hash: -> {
|
|
60
78
|
customer_id: String,
|
|
79
|
+
after: String,
|
|
80
|
+
before: String,
|
|
61
81
|
currency_id: String,
|
|
62
82
|
end_date: Time,
|
|
63
83
|
group_by: String,
|
|
84
|
+
limit: Integer,
|
|
64
85
|
resource_id: String,
|
|
65
86
|
start_date: Time,
|
|
66
87
|
time_range: Stigg::Models::V1::CreditGetUsageParams::time_range,
|
|
@@ -18,21 +18,26 @@ module Stigg
|
|
|
18
18
|
type data =
|
|
19
19
|
{
|
|
20
20
|
currency: Stigg::Models::V1::CreditGetUsageResponse::Data::Currency?,
|
|
21
|
+
pagination: Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination,
|
|
21
22
|
series: ::Array[Stigg::Models::V1::CreditGetUsageResponse::Data::Series]
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
class Data < Stigg::Internal::Type::BaseModel
|
|
25
26
|
attr_accessor currency: Stigg::Models::V1::CreditGetUsageResponse::Data::Currency?
|
|
26
27
|
|
|
28
|
+
attr_accessor pagination: Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination
|
|
29
|
+
|
|
27
30
|
attr_accessor series: ::Array[Stigg::Models::V1::CreditGetUsageResponse::Data::Series]
|
|
28
31
|
|
|
29
32
|
def initialize: (
|
|
30
33
|
currency: Stigg::Models::V1::CreditGetUsageResponse::Data::Currency?,
|
|
34
|
+
pagination: Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination,
|
|
31
35
|
series: ::Array[Stigg::Models::V1::CreditGetUsageResponse::Data::Series]
|
|
32
36
|
) -> void
|
|
33
37
|
|
|
34
38
|
def to_hash: -> {
|
|
35
39
|
currency: Stigg::Models::V1::CreditGetUsageResponse::Data::Currency?,
|
|
40
|
+
pagination: Stigg::Models::V1::CreditGetUsageResponse::Data::Pagination,
|
|
36
41
|
series: ::Array[Stigg::Models::V1::CreditGetUsageResponse::Data::Series]
|
|
37
42
|
}
|
|
38
43
|
|
|
@@ -73,6 +78,18 @@ module Stigg
|
|
|
73
78
|
}
|
|
74
79
|
end
|
|
75
80
|
|
|
81
|
+
type pagination = { next_: String?, prev: String? }
|
|
82
|
+
|
|
83
|
+
class Pagination < Stigg::Internal::Type::BaseModel
|
|
84
|
+
attr_accessor next_: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor prev: String?
|
|
87
|
+
|
|
88
|
+
def initialize: (next_: String?, prev: String?) -> void
|
|
89
|
+
|
|
90
|
+
def to_hash: -> { next_: String?, prev: String? }
|
|
91
|
+
end
|
|
92
|
+
|
|
76
93
|
type series =
|
|
77
94
|
{
|
|
78
95
|
feature_id: String?,
|
|
@@ -14,9 +14,12 @@ module Stigg
|
|
|
14
14
|
|
|
15
15
|
def get_usage: (
|
|
16
16
|
customer_id: String,
|
|
17
|
+
?after: String,
|
|
18
|
+
?before: String,
|
|
17
19
|
?currency_id: String,
|
|
18
20
|
?end_date: Time,
|
|
19
21
|
?group_by: String,
|
|
22
|
+
?limit: Integer,
|
|
20
23
|
?resource_id: String,
|
|
21
24
|
?start_date: Time,
|
|
22
25
|
?time_range: Stigg::Models::V1::CreditGetUsageParams::time_range,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stigg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.pre.beta.
|
|
4
|
+
version: 0.1.0.pre.beta.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stigg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|