openlayer 0.8.0 → 0.9.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 +17 -0
- data/README.md +1 -1
- data/lib/openlayer/client.rb +4 -0
- data/lib/openlayer/integrations/google_conversational_search_tracer.rb +319 -25
- data/lib/openlayer/models/workspace_retrieve_params.rb +14 -0
- data/lib/openlayer/models/workspace_retrieve_response.rb +169 -0
- data/lib/openlayer/models/workspace_update_params.rb +38 -0
- data/lib/openlayer/models/workspace_update_response.rb +169 -0
- data/lib/openlayer/models/workspaces/api_key_create_params.rb +24 -0
- data/lib/openlayer/models/workspaces/api_key_create_response.rb +61 -0
- data/lib/openlayer/models/workspaces/invite_create_params.rb +43 -0
- data/lib/openlayer/models/workspaces/invite_create_response.rb +172 -0
- data/lib/openlayer/models/workspaces/invite_list_params.rb +32 -0
- data/lib/openlayer/models/workspaces/invite_list_response.rb +214 -0
- data/lib/openlayer/models.rb +6 -0
- data/lib/openlayer/resources/workspaces/api_keys.rb +40 -0
- data/lib/openlayer/resources/workspaces/invites.rb +68 -0
- data/lib/openlayer/resources/workspaces.rb +70 -0
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +13 -0
- data/rbi/openlayer/client.rbi +3 -0
- data/rbi/openlayer/models/workspace_retrieve_params.rbi +30 -0
- data/rbi/openlayer/models/workspace_retrieve_response.rbi +293 -0
- data/rbi/openlayer/models/workspace_update_params.rbi +68 -0
- data/rbi/openlayer/models/workspace_update_response.rbi +292 -0
- data/rbi/openlayer/models/workspaces/api_key_create_params.rbi +48 -0
- data/rbi/openlayer/models/workspaces/api_key_create_response.rbi +82 -0
- data/rbi/openlayer/models/workspaces/invite_create_params.rbi +105 -0
- data/rbi/openlayer/models/workspaces/invite_create_response.rbi +347 -0
- data/rbi/openlayer/models/workspaces/invite_list_params.rbi +62 -0
- data/rbi/openlayer/models/workspaces/invite_list_response.rbi +420 -0
- data/rbi/openlayer/models.rbi +6 -0
- data/rbi/openlayer/resources/workspaces/api_keys.rbi +31 -0
- data/rbi/openlayer/resources/workspaces/invites.rbi +53 -0
- data/rbi/openlayer/resources/workspaces.rbi +55 -0
- data/sig/openlayer/client.rbs +2 -0
- data/sig/openlayer/models/workspace_retrieve_params.rbs +15 -0
- data/sig/openlayer/models/workspace_retrieve_response.rbs +156 -0
- data/sig/openlayer/models/workspace_update_params.rbs +38 -0
- data/sig/openlayer/models/workspace_update_response.rbs +156 -0
- data/sig/openlayer/models/workspaces/api_key_create_params.rbs +25 -0
- data/sig/openlayer/models/workspaces/api_key_create_response.rbs +47 -0
- data/sig/openlayer/models/workspaces/invite_create_params.rbs +51 -0
- data/sig/openlayer/models/workspaces/invite_create_response.rbs +149 -0
- data/sig/openlayer/models/workspaces/invite_list_params.rbs +34 -0
- data/sig/openlayer/models/workspaces/invite_list_response.rbs +186 -0
- data/sig/openlayer/models.rbs +6 -0
- data/sig/openlayer/resources/workspaces/api_keys.rbs +15 -0
- data/sig/openlayer/resources/workspaces/invites.rbs +23 -0
- data/sig/openlayer/resources/workspaces.rbs +24 -0
- metadata +41 -2
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
class WorkspaceRetrieveResponse < Openlayer::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Openlayer::Models::WorkspaceRetrieveResponse,
|
|
10
|
+
Openlayer::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The workspace name.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# The workspace slug.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :slug
|
|
21
|
+
|
|
22
|
+
# Whether the workspace only allows SAML authentication.
|
|
23
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
+
attr_reader :saml_only_access
|
|
25
|
+
|
|
26
|
+
sig { params(saml_only_access: T::Boolean).void }
|
|
27
|
+
attr_writer :saml_only_access
|
|
28
|
+
|
|
29
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
30
|
+
attr_reader :wildcard_domains
|
|
31
|
+
|
|
32
|
+
sig { params(wildcard_domains: T::Array[String]).void }
|
|
33
|
+
attr_writer :wildcard_domains
|
|
34
|
+
|
|
35
|
+
# The workspace id.
|
|
36
|
+
sig { returns(String) }
|
|
37
|
+
attr_accessor :id
|
|
38
|
+
|
|
39
|
+
# The workspace creator id.
|
|
40
|
+
sig { returns(T.nilable(String)) }
|
|
41
|
+
attr_accessor :creator_id
|
|
42
|
+
|
|
43
|
+
# The workspace creation date.
|
|
44
|
+
sig { returns(Time) }
|
|
45
|
+
attr_accessor :date_created
|
|
46
|
+
|
|
47
|
+
# The workspace last updated date.
|
|
48
|
+
sig { returns(Time) }
|
|
49
|
+
attr_accessor :date_updated
|
|
50
|
+
|
|
51
|
+
# The number of invites in the workspace.
|
|
52
|
+
sig { returns(Integer) }
|
|
53
|
+
attr_accessor :invite_count
|
|
54
|
+
|
|
55
|
+
# The number of members in the workspace.
|
|
56
|
+
sig { returns(Integer) }
|
|
57
|
+
attr_accessor :member_count
|
|
58
|
+
|
|
59
|
+
# The end date of the current billing period.
|
|
60
|
+
sig { returns(T.nilable(Time)) }
|
|
61
|
+
attr_accessor :period_end_date
|
|
62
|
+
|
|
63
|
+
# The start date of the current billing period.
|
|
64
|
+
sig { returns(T.nilable(Time)) }
|
|
65
|
+
attr_accessor :period_start_date
|
|
66
|
+
|
|
67
|
+
# The number of projects in the workspace.
|
|
68
|
+
sig { returns(Integer) }
|
|
69
|
+
attr_accessor :project_count
|
|
70
|
+
|
|
71
|
+
sig do
|
|
72
|
+
returns(
|
|
73
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
attr_accessor :status
|
|
77
|
+
|
|
78
|
+
sig do
|
|
79
|
+
returns(
|
|
80
|
+
T.nilable(
|
|
81
|
+
T::Array[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage]
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
attr_reader :monthly_usage
|
|
86
|
+
|
|
87
|
+
sig do
|
|
88
|
+
params(
|
|
89
|
+
monthly_usage:
|
|
90
|
+
T::Array[
|
|
91
|
+
Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage::OrHash
|
|
92
|
+
]
|
|
93
|
+
).void
|
|
94
|
+
end
|
|
95
|
+
attr_writer :monthly_usage
|
|
96
|
+
|
|
97
|
+
sig do
|
|
98
|
+
params(
|
|
99
|
+
id: String,
|
|
100
|
+
creator_id: T.nilable(String),
|
|
101
|
+
date_created: Time,
|
|
102
|
+
date_updated: Time,
|
|
103
|
+
invite_count: Integer,
|
|
104
|
+
member_count: Integer,
|
|
105
|
+
name: String,
|
|
106
|
+
period_end_date: T.nilable(Time),
|
|
107
|
+
period_start_date: T.nilable(Time),
|
|
108
|
+
project_count: Integer,
|
|
109
|
+
slug: String,
|
|
110
|
+
status:
|
|
111
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::OrSymbol,
|
|
112
|
+
monthly_usage:
|
|
113
|
+
T::Array[
|
|
114
|
+
Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage::OrHash
|
|
115
|
+
],
|
|
116
|
+
saml_only_access: T::Boolean,
|
|
117
|
+
wildcard_domains: T::Array[String]
|
|
118
|
+
).returns(T.attached_class)
|
|
119
|
+
end
|
|
120
|
+
def self.new(
|
|
121
|
+
# The workspace id.
|
|
122
|
+
id:,
|
|
123
|
+
# The workspace creator id.
|
|
124
|
+
creator_id:,
|
|
125
|
+
# The workspace creation date.
|
|
126
|
+
date_created:,
|
|
127
|
+
# The workspace last updated date.
|
|
128
|
+
date_updated:,
|
|
129
|
+
# The number of invites in the workspace.
|
|
130
|
+
invite_count:,
|
|
131
|
+
# The number of members in the workspace.
|
|
132
|
+
member_count:,
|
|
133
|
+
# The workspace name.
|
|
134
|
+
name:,
|
|
135
|
+
# The end date of the current billing period.
|
|
136
|
+
period_end_date:,
|
|
137
|
+
# The start date of the current billing period.
|
|
138
|
+
period_start_date:,
|
|
139
|
+
# The number of projects in the workspace.
|
|
140
|
+
project_count:,
|
|
141
|
+
# The workspace slug.
|
|
142
|
+
slug:,
|
|
143
|
+
status:,
|
|
144
|
+
monthly_usage: nil,
|
|
145
|
+
# Whether the workspace only allows SAML authentication.
|
|
146
|
+
saml_only_access: nil,
|
|
147
|
+
wildcard_domains: nil
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
sig do
|
|
152
|
+
override.returns(
|
|
153
|
+
{
|
|
154
|
+
id: String,
|
|
155
|
+
creator_id: T.nilable(String),
|
|
156
|
+
date_created: Time,
|
|
157
|
+
date_updated: Time,
|
|
158
|
+
invite_count: Integer,
|
|
159
|
+
member_count: Integer,
|
|
160
|
+
name: String,
|
|
161
|
+
period_end_date: T.nilable(Time),
|
|
162
|
+
period_start_date: T.nilable(Time),
|
|
163
|
+
project_count: Integer,
|
|
164
|
+
slug: String,
|
|
165
|
+
status:
|
|
166
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol,
|
|
167
|
+
invite_code: String,
|
|
168
|
+
monthly_usage:
|
|
169
|
+
T::Array[
|
|
170
|
+
Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage
|
|
171
|
+
],
|
|
172
|
+
saml_only_access: T::Boolean,
|
|
173
|
+
wildcard_domains: T::Array[String]
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
end
|
|
177
|
+
def to_hash
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
module Status
|
|
181
|
+
extend Openlayer::Internal::Type::Enum
|
|
182
|
+
|
|
183
|
+
TaggedSymbol =
|
|
184
|
+
T.type_alias do
|
|
185
|
+
T.all(Symbol, Openlayer::Models::WorkspaceRetrieveResponse::Status)
|
|
186
|
+
end
|
|
187
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
188
|
+
|
|
189
|
+
ACTIVE =
|
|
190
|
+
T.let(
|
|
191
|
+
:active,
|
|
192
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
193
|
+
)
|
|
194
|
+
PAST_DUE =
|
|
195
|
+
T.let(
|
|
196
|
+
:past_due,
|
|
197
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
198
|
+
)
|
|
199
|
+
UNPAID =
|
|
200
|
+
T.let(
|
|
201
|
+
:unpaid,
|
|
202
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
203
|
+
)
|
|
204
|
+
CANCELED =
|
|
205
|
+
T.let(
|
|
206
|
+
:canceled,
|
|
207
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
208
|
+
)
|
|
209
|
+
INCOMPLETE =
|
|
210
|
+
T.let(
|
|
211
|
+
:incomplete,
|
|
212
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
213
|
+
)
|
|
214
|
+
INCOMPLETE_EXPIRED =
|
|
215
|
+
T.let(
|
|
216
|
+
:incomplete_expired,
|
|
217
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
218
|
+
)
|
|
219
|
+
TRIALING =
|
|
220
|
+
T.let(
|
|
221
|
+
:trialing,
|
|
222
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
223
|
+
)
|
|
224
|
+
PAUSED =
|
|
225
|
+
T.let(
|
|
226
|
+
:paused,
|
|
227
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
sig do
|
|
231
|
+
override.returns(
|
|
232
|
+
T::Array[
|
|
233
|
+
Openlayer::Models::WorkspaceRetrieveResponse::Status::TaggedSymbol
|
|
234
|
+
]
|
|
235
|
+
)
|
|
236
|
+
end
|
|
237
|
+
def self.values
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
|
242
|
+
OrHash =
|
|
243
|
+
T.type_alias do
|
|
244
|
+
T.any(
|
|
245
|
+
Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage,
|
|
246
|
+
Openlayer::Internal::AnyHash
|
|
247
|
+
)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
sig { returns(T.nilable(Integer)) }
|
|
251
|
+
attr_accessor :execution_time_ms
|
|
252
|
+
|
|
253
|
+
sig { returns(T.nilable(Date)) }
|
|
254
|
+
attr_reader :month_year
|
|
255
|
+
|
|
256
|
+
sig { params(month_year: Date).void }
|
|
257
|
+
attr_writer :month_year
|
|
258
|
+
|
|
259
|
+
sig { returns(T.nilable(Integer)) }
|
|
260
|
+
attr_reader :prediction_count
|
|
261
|
+
|
|
262
|
+
sig { params(prediction_count: Integer).void }
|
|
263
|
+
attr_writer :prediction_count
|
|
264
|
+
|
|
265
|
+
sig do
|
|
266
|
+
params(
|
|
267
|
+
execution_time_ms: T.nilable(Integer),
|
|
268
|
+
month_year: Date,
|
|
269
|
+
prediction_count: Integer
|
|
270
|
+
).returns(T.attached_class)
|
|
271
|
+
end
|
|
272
|
+
def self.new(
|
|
273
|
+
execution_time_ms: nil,
|
|
274
|
+
month_year: nil,
|
|
275
|
+
prediction_count: nil
|
|
276
|
+
)
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
sig do
|
|
280
|
+
override.returns(
|
|
281
|
+
{
|
|
282
|
+
execution_time_ms: T.nilable(Integer),
|
|
283
|
+
month_year: Date,
|
|
284
|
+
prediction_count: Integer
|
|
285
|
+
}
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
def to_hash
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
class WorkspaceUpdateParams < Openlayer::Internal::Type::BaseModel
|
|
6
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Openlayer::WorkspaceUpdateParams, Openlayer::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The workspace invite code.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :invite_code
|
|
17
|
+
|
|
18
|
+
sig { params(invite_code: String).void }
|
|
19
|
+
attr_writer :invite_code
|
|
20
|
+
|
|
21
|
+
# The workspace name.
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_reader :name
|
|
24
|
+
|
|
25
|
+
sig { params(name: String).void }
|
|
26
|
+
attr_writer :name
|
|
27
|
+
|
|
28
|
+
# The workspace slug.
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_reader :slug
|
|
31
|
+
|
|
32
|
+
sig { params(slug: String).void }
|
|
33
|
+
attr_writer :slug
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
invite_code: String,
|
|
38
|
+
name: String,
|
|
39
|
+
slug: String,
|
|
40
|
+
request_options: Openlayer::RequestOptions::OrHash
|
|
41
|
+
).returns(T.attached_class)
|
|
42
|
+
end
|
|
43
|
+
def self.new(
|
|
44
|
+
# The workspace invite code.
|
|
45
|
+
invite_code: nil,
|
|
46
|
+
# The workspace name.
|
|
47
|
+
name: nil,
|
|
48
|
+
# The workspace slug.
|
|
49
|
+
slug: nil,
|
|
50
|
+
request_options: {}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
override.returns(
|
|
56
|
+
{
|
|
57
|
+
invite_code: String,
|
|
58
|
+
name: String,
|
|
59
|
+
slug: String,
|
|
60
|
+
request_options: Openlayer::RequestOptions
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
def to_hash
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
class WorkspaceUpdateResponse < Openlayer::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Openlayer::Models::WorkspaceUpdateResponse,
|
|
10
|
+
Openlayer::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The workspace name.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# The workspace slug.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :slug
|
|
21
|
+
|
|
22
|
+
# Whether the workspace only allows SAML authentication.
|
|
23
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
+
attr_reader :saml_only_access
|
|
25
|
+
|
|
26
|
+
sig { params(saml_only_access: T::Boolean).void }
|
|
27
|
+
attr_writer :saml_only_access
|
|
28
|
+
|
|
29
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
30
|
+
attr_reader :wildcard_domains
|
|
31
|
+
|
|
32
|
+
sig { params(wildcard_domains: T::Array[String]).void }
|
|
33
|
+
attr_writer :wildcard_domains
|
|
34
|
+
|
|
35
|
+
# The workspace id.
|
|
36
|
+
sig { returns(String) }
|
|
37
|
+
attr_accessor :id
|
|
38
|
+
|
|
39
|
+
# The workspace creator id.
|
|
40
|
+
sig { returns(T.nilable(String)) }
|
|
41
|
+
attr_accessor :creator_id
|
|
42
|
+
|
|
43
|
+
# The workspace creation date.
|
|
44
|
+
sig { returns(Time) }
|
|
45
|
+
attr_accessor :date_created
|
|
46
|
+
|
|
47
|
+
# The workspace last updated date.
|
|
48
|
+
sig { returns(Time) }
|
|
49
|
+
attr_accessor :date_updated
|
|
50
|
+
|
|
51
|
+
# The number of invites in the workspace.
|
|
52
|
+
sig { returns(Integer) }
|
|
53
|
+
attr_accessor :invite_count
|
|
54
|
+
|
|
55
|
+
# The number of members in the workspace.
|
|
56
|
+
sig { returns(Integer) }
|
|
57
|
+
attr_accessor :member_count
|
|
58
|
+
|
|
59
|
+
# The end date of the current billing period.
|
|
60
|
+
sig { returns(T.nilable(Time)) }
|
|
61
|
+
attr_accessor :period_end_date
|
|
62
|
+
|
|
63
|
+
# The start date of the current billing period.
|
|
64
|
+
sig { returns(T.nilable(Time)) }
|
|
65
|
+
attr_accessor :period_start_date
|
|
66
|
+
|
|
67
|
+
# The number of projects in the workspace.
|
|
68
|
+
sig { returns(Integer) }
|
|
69
|
+
attr_accessor :project_count
|
|
70
|
+
|
|
71
|
+
sig do
|
|
72
|
+
returns(
|
|
73
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
attr_accessor :status
|
|
77
|
+
|
|
78
|
+
sig do
|
|
79
|
+
returns(
|
|
80
|
+
T.nilable(
|
|
81
|
+
T::Array[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage]
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
attr_reader :monthly_usage
|
|
86
|
+
|
|
87
|
+
sig do
|
|
88
|
+
params(
|
|
89
|
+
monthly_usage:
|
|
90
|
+
T::Array[
|
|
91
|
+
Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage::OrHash
|
|
92
|
+
]
|
|
93
|
+
).void
|
|
94
|
+
end
|
|
95
|
+
attr_writer :monthly_usage
|
|
96
|
+
|
|
97
|
+
sig do
|
|
98
|
+
params(
|
|
99
|
+
id: String,
|
|
100
|
+
creator_id: T.nilable(String),
|
|
101
|
+
date_created: Time,
|
|
102
|
+
date_updated: Time,
|
|
103
|
+
invite_count: Integer,
|
|
104
|
+
member_count: Integer,
|
|
105
|
+
name: String,
|
|
106
|
+
period_end_date: T.nilable(Time),
|
|
107
|
+
period_start_date: T.nilable(Time),
|
|
108
|
+
project_count: Integer,
|
|
109
|
+
slug: String,
|
|
110
|
+
status: Openlayer::Models::WorkspaceUpdateResponse::Status::OrSymbol,
|
|
111
|
+
monthly_usage:
|
|
112
|
+
T::Array[
|
|
113
|
+
Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage::OrHash
|
|
114
|
+
],
|
|
115
|
+
saml_only_access: T::Boolean,
|
|
116
|
+
wildcard_domains: T::Array[String]
|
|
117
|
+
).returns(T.attached_class)
|
|
118
|
+
end
|
|
119
|
+
def self.new(
|
|
120
|
+
# The workspace id.
|
|
121
|
+
id:,
|
|
122
|
+
# The workspace creator id.
|
|
123
|
+
creator_id:,
|
|
124
|
+
# The workspace creation date.
|
|
125
|
+
date_created:,
|
|
126
|
+
# The workspace last updated date.
|
|
127
|
+
date_updated:,
|
|
128
|
+
# The number of invites in the workspace.
|
|
129
|
+
invite_count:,
|
|
130
|
+
# The number of members in the workspace.
|
|
131
|
+
member_count:,
|
|
132
|
+
# The workspace name.
|
|
133
|
+
name:,
|
|
134
|
+
# The end date of the current billing period.
|
|
135
|
+
period_end_date:,
|
|
136
|
+
# The start date of the current billing period.
|
|
137
|
+
period_start_date:,
|
|
138
|
+
# The number of projects in the workspace.
|
|
139
|
+
project_count:,
|
|
140
|
+
# The workspace slug.
|
|
141
|
+
slug:,
|
|
142
|
+
status:,
|
|
143
|
+
monthly_usage: nil,
|
|
144
|
+
# Whether the workspace only allows SAML authentication.
|
|
145
|
+
saml_only_access: nil,
|
|
146
|
+
wildcard_domains: nil
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
sig do
|
|
151
|
+
override.returns(
|
|
152
|
+
{
|
|
153
|
+
id: String,
|
|
154
|
+
creator_id: T.nilable(String),
|
|
155
|
+
date_created: Time,
|
|
156
|
+
date_updated: Time,
|
|
157
|
+
invite_count: Integer,
|
|
158
|
+
member_count: Integer,
|
|
159
|
+
name: String,
|
|
160
|
+
period_end_date: T.nilable(Time),
|
|
161
|
+
period_start_date: T.nilable(Time),
|
|
162
|
+
project_count: Integer,
|
|
163
|
+
slug: String,
|
|
164
|
+
status:
|
|
165
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol,
|
|
166
|
+
invite_code: String,
|
|
167
|
+
monthly_usage:
|
|
168
|
+
T::Array[
|
|
169
|
+
Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage
|
|
170
|
+
],
|
|
171
|
+
saml_only_access: T::Boolean,
|
|
172
|
+
wildcard_domains: T::Array[String]
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
end
|
|
176
|
+
def to_hash
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
module Status
|
|
180
|
+
extend Openlayer::Internal::Type::Enum
|
|
181
|
+
|
|
182
|
+
TaggedSymbol =
|
|
183
|
+
T.type_alias do
|
|
184
|
+
T.all(Symbol, Openlayer::Models::WorkspaceUpdateResponse::Status)
|
|
185
|
+
end
|
|
186
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
187
|
+
|
|
188
|
+
ACTIVE =
|
|
189
|
+
T.let(
|
|
190
|
+
:active,
|
|
191
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
192
|
+
)
|
|
193
|
+
PAST_DUE =
|
|
194
|
+
T.let(
|
|
195
|
+
:past_due,
|
|
196
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
197
|
+
)
|
|
198
|
+
UNPAID =
|
|
199
|
+
T.let(
|
|
200
|
+
:unpaid,
|
|
201
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
202
|
+
)
|
|
203
|
+
CANCELED =
|
|
204
|
+
T.let(
|
|
205
|
+
:canceled,
|
|
206
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
207
|
+
)
|
|
208
|
+
INCOMPLETE =
|
|
209
|
+
T.let(
|
|
210
|
+
:incomplete,
|
|
211
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
212
|
+
)
|
|
213
|
+
INCOMPLETE_EXPIRED =
|
|
214
|
+
T.let(
|
|
215
|
+
:incomplete_expired,
|
|
216
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
217
|
+
)
|
|
218
|
+
TRIALING =
|
|
219
|
+
T.let(
|
|
220
|
+
:trialing,
|
|
221
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
222
|
+
)
|
|
223
|
+
PAUSED =
|
|
224
|
+
T.let(
|
|
225
|
+
:paused,
|
|
226
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
sig do
|
|
230
|
+
override.returns(
|
|
231
|
+
T::Array[
|
|
232
|
+
Openlayer::Models::WorkspaceUpdateResponse::Status::TaggedSymbol
|
|
233
|
+
]
|
|
234
|
+
)
|
|
235
|
+
end
|
|
236
|
+
def self.values
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
|
241
|
+
OrHash =
|
|
242
|
+
T.type_alias do
|
|
243
|
+
T.any(
|
|
244
|
+
Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage,
|
|
245
|
+
Openlayer::Internal::AnyHash
|
|
246
|
+
)
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
sig { returns(T.nilable(Integer)) }
|
|
250
|
+
attr_accessor :execution_time_ms
|
|
251
|
+
|
|
252
|
+
sig { returns(T.nilable(Date)) }
|
|
253
|
+
attr_reader :month_year
|
|
254
|
+
|
|
255
|
+
sig { params(month_year: Date).void }
|
|
256
|
+
attr_writer :month_year
|
|
257
|
+
|
|
258
|
+
sig { returns(T.nilable(Integer)) }
|
|
259
|
+
attr_reader :prediction_count
|
|
260
|
+
|
|
261
|
+
sig { params(prediction_count: Integer).void }
|
|
262
|
+
attr_writer :prediction_count
|
|
263
|
+
|
|
264
|
+
sig do
|
|
265
|
+
params(
|
|
266
|
+
execution_time_ms: T.nilable(Integer),
|
|
267
|
+
month_year: Date,
|
|
268
|
+
prediction_count: Integer
|
|
269
|
+
).returns(T.attached_class)
|
|
270
|
+
end
|
|
271
|
+
def self.new(
|
|
272
|
+
execution_time_ms: nil,
|
|
273
|
+
month_year: nil,
|
|
274
|
+
prediction_count: nil
|
|
275
|
+
)
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
sig do
|
|
279
|
+
override.returns(
|
|
280
|
+
{
|
|
281
|
+
execution_time_ms: T.nilable(Integer),
|
|
282
|
+
month_year: Date,
|
|
283
|
+
prediction_count: Integer
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
end
|
|
287
|
+
def to_hash
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
module Workspaces
|
|
6
|
+
class APIKeyCreateParams < Openlayer::Internal::Type::BaseModel
|
|
7
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Openlayer::Workspaces::APIKeyCreateParams,
|
|
14
|
+
Openlayer::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The API key name.
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(
|
|
24
|
+
name: T.nilable(String),
|
|
25
|
+
request_options: Openlayer::RequestOptions::OrHash
|
|
26
|
+
).returns(T.attached_class)
|
|
27
|
+
end
|
|
28
|
+
def self.new(
|
|
29
|
+
# The API key name.
|
|
30
|
+
name: nil,
|
|
31
|
+
request_options: {}
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
override.returns(
|
|
37
|
+
{
|
|
38
|
+
name: T.nilable(String),
|
|
39
|
+
request_options: Openlayer::RequestOptions
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
def to_hash
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|