openlayer 0.8.1 → 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 +8 -0
- data/README.md +1 -1
- data/lib/openlayer/client.rb +4 -0
- 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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4fef69ff5dd2fed090aafd0a09c00bf5e055a0ccfd824a1c9cd6bd32863d543
|
|
4
|
+
data.tar.gz: 7f925a5f85f8e1b56d3f38406d857e9b41576efa801cbb0b30ec73b1759ff963
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e4c32f19ad0cd0bccd14503f7a3701365073001c4ae3fac7d966f099620ed179859de2721d856406ef3a52bf809fc91c01aeb6efa559fe4d8e6dd4d38a84b4a
|
|
7
|
+
data.tar.gz: 32280271eebd4357da99181bd051ba9d75b2f49e654e370b299640ea3216837d853fcf81abe8b92709a7b03b68aad3ec33cb45eaede980491d1840108fe3a844
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.0 (2026-01-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.8.1...v0.9.0](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.8.1...v0.9.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add missing endpoints ([57f7ad7](https://github.com/openlayer-ai/openlayer-ruby/commit/57f7ad72db4fe4a7b3802a5cabbe0c425e3740f4))
|
|
10
|
+
|
|
3
11
|
## 0.8.1 (2026-01-06)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.8.0...v0.8.1](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.8.0...v0.8.1)
|
data/README.md
CHANGED
data/lib/openlayer/client.rb
CHANGED
|
@@ -21,6 +21,9 @@ module Openlayer
|
|
|
21
21
|
# @return [Openlayer::Resources::Projects]
|
|
22
22
|
attr_reader :projects
|
|
23
23
|
|
|
24
|
+
# @return [Openlayer::Resources::Workspaces]
|
|
25
|
+
attr_reader :workspaces
|
|
26
|
+
|
|
24
27
|
# @return [Openlayer::Resources::Commits]
|
|
25
28
|
attr_reader :commits
|
|
26
29
|
|
|
@@ -77,6 +80,7 @@ module Openlayer
|
|
|
77
80
|
)
|
|
78
81
|
|
|
79
82
|
@projects = Openlayer::Resources::Projects.new(client: self)
|
|
83
|
+
@workspaces = Openlayer::Resources::Workspaces.new(client: self)
|
|
80
84
|
@commits = Openlayer::Resources::Commits.new(client: self)
|
|
81
85
|
@inference_pipelines = Openlayer::Resources::InferencePipelines.new(client: self)
|
|
82
86
|
@storage = Openlayer::Resources::Storage.new(client: self)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
# @see Openlayer::Resources::Workspaces#retrieve
|
|
6
|
+
class WorkspaceRetrieveParams < Openlayer::Internal::Type::BaseModel
|
|
7
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
# @see Openlayer::Resources::Workspaces#retrieve
|
|
6
|
+
class WorkspaceRetrieveResponse < Openlayer::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute name
|
|
8
|
+
# The workspace name.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :name, String
|
|
12
|
+
|
|
13
|
+
# @!attribute slug
|
|
14
|
+
# The workspace slug.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :slug, String
|
|
18
|
+
|
|
19
|
+
# @!attribute saml_only_access
|
|
20
|
+
# Whether the workspace only allows SAML authentication.
|
|
21
|
+
#
|
|
22
|
+
# @return [Boolean, nil]
|
|
23
|
+
optional :saml_only_access, Openlayer::Internal::Type::Boolean, api_name: :samlOnlyAccess
|
|
24
|
+
|
|
25
|
+
# @!attribute wildcard_domains
|
|
26
|
+
#
|
|
27
|
+
# @return [Array<String>, nil]
|
|
28
|
+
optional :wildcard_domains, Openlayer::Internal::Type::ArrayOf[String], api_name: :wildcardDomains
|
|
29
|
+
|
|
30
|
+
response_only do
|
|
31
|
+
# @!attribute id
|
|
32
|
+
# The workspace id.
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
required :id, String
|
|
36
|
+
|
|
37
|
+
# @!attribute creator_id
|
|
38
|
+
# The workspace creator id.
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
required :creator_id, String, api_name: :creatorId, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute date_created
|
|
44
|
+
# The workspace creation date.
|
|
45
|
+
#
|
|
46
|
+
# @return [Time]
|
|
47
|
+
required :date_created, Time, api_name: :dateCreated
|
|
48
|
+
|
|
49
|
+
# @!attribute date_updated
|
|
50
|
+
# The workspace last updated date.
|
|
51
|
+
#
|
|
52
|
+
# @return [Time]
|
|
53
|
+
required :date_updated, Time, api_name: :dateUpdated
|
|
54
|
+
|
|
55
|
+
# @!attribute invite_count
|
|
56
|
+
# The number of invites in the workspace.
|
|
57
|
+
#
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
required :invite_count, Integer, api_name: :inviteCount
|
|
60
|
+
|
|
61
|
+
# @!attribute member_count
|
|
62
|
+
# The number of members in the workspace.
|
|
63
|
+
#
|
|
64
|
+
# @return [Integer]
|
|
65
|
+
required :member_count, Integer, api_name: :memberCount
|
|
66
|
+
|
|
67
|
+
# @!attribute period_end_date
|
|
68
|
+
# The end date of the current billing period.
|
|
69
|
+
#
|
|
70
|
+
# @return [Time, nil]
|
|
71
|
+
required :period_end_date, Time, api_name: :periodEndDate, nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute period_start_date
|
|
74
|
+
# The start date of the current billing period.
|
|
75
|
+
#
|
|
76
|
+
# @return [Time, nil]
|
|
77
|
+
required :period_start_date, Time, api_name: :periodStartDate, nil?: true
|
|
78
|
+
|
|
79
|
+
# @!attribute project_count
|
|
80
|
+
# The number of projects in the workspace.
|
|
81
|
+
#
|
|
82
|
+
# @return [Integer]
|
|
83
|
+
required :project_count, Integer, api_name: :projectCount
|
|
84
|
+
|
|
85
|
+
# @!attribute status
|
|
86
|
+
#
|
|
87
|
+
# @return [Symbol, Openlayer::Models::WorkspaceRetrieveResponse::Status]
|
|
88
|
+
required :status, enum: -> { Openlayer::Models::WorkspaceRetrieveResponse::Status }
|
|
89
|
+
|
|
90
|
+
# @!attribute monthly_usage
|
|
91
|
+
#
|
|
92
|
+
# @return [Array<Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage>, nil]
|
|
93
|
+
optional :monthly_usage,
|
|
94
|
+
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage] },
|
|
95
|
+
api_name: :monthlyUsage
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @!method initialize(id:, creator_id:, date_created:, date_updated:, invite_count:, member_count:, name:, period_end_date:, period_start_date:, project_count:, slug:, status:, monthly_usage: nil, saml_only_access: nil, wildcard_domains: nil)
|
|
99
|
+
# @param id [String] The workspace id.
|
|
100
|
+
#
|
|
101
|
+
# @param creator_id [String, nil] The workspace creator id.
|
|
102
|
+
#
|
|
103
|
+
# @param date_created [Time] The workspace creation date.
|
|
104
|
+
#
|
|
105
|
+
# @param date_updated [Time] The workspace last updated date.
|
|
106
|
+
#
|
|
107
|
+
# @param invite_count [Integer] The number of invites in the workspace.
|
|
108
|
+
#
|
|
109
|
+
# @param member_count [Integer] The number of members in the workspace.
|
|
110
|
+
#
|
|
111
|
+
# @param name [String] The workspace name.
|
|
112
|
+
#
|
|
113
|
+
# @param period_end_date [Time, nil] The end date of the current billing period.
|
|
114
|
+
#
|
|
115
|
+
# @param period_start_date [Time, nil] The start date of the current billing period.
|
|
116
|
+
#
|
|
117
|
+
# @param project_count [Integer] The number of projects in the workspace.
|
|
118
|
+
#
|
|
119
|
+
# @param slug [String] The workspace slug.
|
|
120
|
+
#
|
|
121
|
+
# @param status [Symbol, Openlayer::Models::WorkspaceRetrieveResponse::Status]
|
|
122
|
+
#
|
|
123
|
+
# @param monthly_usage [Array<Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage>]
|
|
124
|
+
#
|
|
125
|
+
# @param saml_only_access [Boolean] Whether the workspace only allows SAML authentication.
|
|
126
|
+
#
|
|
127
|
+
# @param wildcard_domains [Array<String>]
|
|
128
|
+
|
|
129
|
+
# @see Openlayer::Models::WorkspaceRetrieveResponse#status
|
|
130
|
+
module Status
|
|
131
|
+
extend Openlayer::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
ACTIVE = :active
|
|
134
|
+
PAST_DUE = :past_due
|
|
135
|
+
UNPAID = :unpaid
|
|
136
|
+
CANCELED = :canceled
|
|
137
|
+
INCOMPLETE = :incomplete
|
|
138
|
+
INCOMPLETE_EXPIRED = :incomplete_expired
|
|
139
|
+
TRIALING = :trialing
|
|
140
|
+
PAUSED = :paused
|
|
141
|
+
|
|
142
|
+
# @!method self.values
|
|
143
|
+
# @return [Array<Symbol>]
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
|
147
|
+
# @!attribute execution_time_ms
|
|
148
|
+
#
|
|
149
|
+
# @return [Integer, nil]
|
|
150
|
+
optional :execution_time_ms, Integer, api_name: :executionTimeMs, nil?: true
|
|
151
|
+
|
|
152
|
+
# @!attribute month_year
|
|
153
|
+
#
|
|
154
|
+
# @return [Date, nil]
|
|
155
|
+
optional :month_year, Date, api_name: :monthYear
|
|
156
|
+
|
|
157
|
+
# @!attribute prediction_count
|
|
158
|
+
#
|
|
159
|
+
# @return [Integer, nil]
|
|
160
|
+
optional :prediction_count, Integer, api_name: :predictionCount
|
|
161
|
+
|
|
162
|
+
# @!method initialize(execution_time_ms: nil, month_year: nil, prediction_count: nil)
|
|
163
|
+
# @param execution_time_ms [Integer, nil]
|
|
164
|
+
# @param month_year [Date]
|
|
165
|
+
# @param prediction_count [Integer]
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
# @see Openlayer::Resources::Workspaces#update
|
|
6
|
+
class WorkspaceUpdateParams < Openlayer::Internal::Type::BaseModel
|
|
7
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute invite_code
|
|
11
|
+
# The workspace invite code.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :invite_code, String, api_name: :inviteCode
|
|
15
|
+
|
|
16
|
+
# @!attribute name
|
|
17
|
+
# The workspace name.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :name, String
|
|
21
|
+
|
|
22
|
+
# @!attribute slug
|
|
23
|
+
# The workspace slug.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :slug, String
|
|
27
|
+
|
|
28
|
+
# @!method initialize(invite_code: nil, name: nil, slug: nil, request_options: {})
|
|
29
|
+
# @param invite_code [String] The workspace invite code.
|
|
30
|
+
#
|
|
31
|
+
# @param name [String] The workspace name.
|
|
32
|
+
#
|
|
33
|
+
# @param slug [String] The workspace slug.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
# @see Openlayer::Resources::Workspaces#update
|
|
6
|
+
class WorkspaceUpdateResponse < Openlayer::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute name
|
|
8
|
+
# The workspace name.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :name, String
|
|
12
|
+
|
|
13
|
+
# @!attribute slug
|
|
14
|
+
# The workspace slug.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :slug, String
|
|
18
|
+
|
|
19
|
+
# @!attribute saml_only_access
|
|
20
|
+
# Whether the workspace only allows SAML authentication.
|
|
21
|
+
#
|
|
22
|
+
# @return [Boolean, nil]
|
|
23
|
+
optional :saml_only_access, Openlayer::Internal::Type::Boolean, api_name: :samlOnlyAccess
|
|
24
|
+
|
|
25
|
+
# @!attribute wildcard_domains
|
|
26
|
+
#
|
|
27
|
+
# @return [Array<String>, nil]
|
|
28
|
+
optional :wildcard_domains, Openlayer::Internal::Type::ArrayOf[String], api_name: :wildcardDomains
|
|
29
|
+
|
|
30
|
+
response_only do
|
|
31
|
+
# @!attribute id
|
|
32
|
+
# The workspace id.
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
required :id, String
|
|
36
|
+
|
|
37
|
+
# @!attribute creator_id
|
|
38
|
+
# The workspace creator id.
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
required :creator_id, String, api_name: :creatorId, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute date_created
|
|
44
|
+
# The workspace creation date.
|
|
45
|
+
#
|
|
46
|
+
# @return [Time]
|
|
47
|
+
required :date_created, Time, api_name: :dateCreated
|
|
48
|
+
|
|
49
|
+
# @!attribute date_updated
|
|
50
|
+
# The workspace last updated date.
|
|
51
|
+
#
|
|
52
|
+
# @return [Time]
|
|
53
|
+
required :date_updated, Time, api_name: :dateUpdated
|
|
54
|
+
|
|
55
|
+
# @!attribute invite_count
|
|
56
|
+
# The number of invites in the workspace.
|
|
57
|
+
#
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
required :invite_count, Integer, api_name: :inviteCount
|
|
60
|
+
|
|
61
|
+
# @!attribute member_count
|
|
62
|
+
# The number of members in the workspace.
|
|
63
|
+
#
|
|
64
|
+
# @return [Integer]
|
|
65
|
+
required :member_count, Integer, api_name: :memberCount
|
|
66
|
+
|
|
67
|
+
# @!attribute period_end_date
|
|
68
|
+
# The end date of the current billing period.
|
|
69
|
+
#
|
|
70
|
+
# @return [Time, nil]
|
|
71
|
+
required :period_end_date, Time, api_name: :periodEndDate, nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute period_start_date
|
|
74
|
+
# The start date of the current billing period.
|
|
75
|
+
#
|
|
76
|
+
# @return [Time, nil]
|
|
77
|
+
required :period_start_date, Time, api_name: :periodStartDate, nil?: true
|
|
78
|
+
|
|
79
|
+
# @!attribute project_count
|
|
80
|
+
# The number of projects in the workspace.
|
|
81
|
+
#
|
|
82
|
+
# @return [Integer]
|
|
83
|
+
required :project_count, Integer, api_name: :projectCount
|
|
84
|
+
|
|
85
|
+
# @!attribute status
|
|
86
|
+
#
|
|
87
|
+
# @return [Symbol, Openlayer::Models::WorkspaceUpdateResponse::Status]
|
|
88
|
+
required :status, enum: -> { Openlayer::Models::WorkspaceUpdateResponse::Status }
|
|
89
|
+
|
|
90
|
+
# @!attribute monthly_usage
|
|
91
|
+
#
|
|
92
|
+
# @return [Array<Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage>, nil]
|
|
93
|
+
optional :monthly_usage,
|
|
94
|
+
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage] },
|
|
95
|
+
api_name: :monthlyUsage
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @!method initialize(id:, creator_id:, date_created:, date_updated:, invite_count:, member_count:, name:, period_end_date:, period_start_date:, project_count:, slug:, status:, monthly_usage: nil, saml_only_access: nil, wildcard_domains: nil)
|
|
99
|
+
# @param id [String] The workspace id.
|
|
100
|
+
#
|
|
101
|
+
# @param creator_id [String, nil] The workspace creator id.
|
|
102
|
+
#
|
|
103
|
+
# @param date_created [Time] The workspace creation date.
|
|
104
|
+
#
|
|
105
|
+
# @param date_updated [Time] The workspace last updated date.
|
|
106
|
+
#
|
|
107
|
+
# @param invite_count [Integer] The number of invites in the workspace.
|
|
108
|
+
#
|
|
109
|
+
# @param member_count [Integer] The number of members in the workspace.
|
|
110
|
+
#
|
|
111
|
+
# @param name [String] The workspace name.
|
|
112
|
+
#
|
|
113
|
+
# @param period_end_date [Time, nil] The end date of the current billing period.
|
|
114
|
+
#
|
|
115
|
+
# @param period_start_date [Time, nil] The start date of the current billing period.
|
|
116
|
+
#
|
|
117
|
+
# @param project_count [Integer] The number of projects in the workspace.
|
|
118
|
+
#
|
|
119
|
+
# @param slug [String] The workspace slug.
|
|
120
|
+
#
|
|
121
|
+
# @param status [Symbol, Openlayer::Models::WorkspaceUpdateResponse::Status]
|
|
122
|
+
#
|
|
123
|
+
# @param monthly_usage [Array<Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage>]
|
|
124
|
+
#
|
|
125
|
+
# @param saml_only_access [Boolean] Whether the workspace only allows SAML authentication.
|
|
126
|
+
#
|
|
127
|
+
# @param wildcard_domains [Array<String>]
|
|
128
|
+
|
|
129
|
+
# @see Openlayer::Models::WorkspaceUpdateResponse#status
|
|
130
|
+
module Status
|
|
131
|
+
extend Openlayer::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
ACTIVE = :active
|
|
134
|
+
PAST_DUE = :past_due
|
|
135
|
+
UNPAID = :unpaid
|
|
136
|
+
CANCELED = :canceled
|
|
137
|
+
INCOMPLETE = :incomplete
|
|
138
|
+
INCOMPLETE_EXPIRED = :incomplete_expired
|
|
139
|
+
TRIALING = :trialing
|
|
140
|
+
PAUSED = :paused
|
|
141
|
+
|
|
142
|
+
# @!method self.values
|
|
143
|
+
# @return [Array<Symbol>]
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
|
147
|
+
# @!attribute execution_time_ms
|
|
148
|
+
#
|
|
149
|
+
# @return [Integer, nil]
|
|
150
|
+
optional :execution_time_ms, Integer, api_name: :executionTimeMs, nil?: true
|
|
151
|
+
|
|
152
|
+
# @!attribute month_year
|
|
153
|
+
#
|
|
154
|
+
# @return [Date, nil]
|
|
155
|
+
optional :month_year, Date, api_name: :monthYear
|
|
156
|
+
|
|
157
|
+
# @!attribute prediction_count
|
|
158
|
+
#
|
|
159
|
+
# @return [Integer, nil]
|
|
160
|
+
optional :prediction_count, Integer, api_name: :predictionCount
|
|
161
|
+
|
|
162
|
+
# @!method initialize(execution_time_ms: nil, month_year: nil, prediction_count: nil)
|
|
163
|
+
# @param execution_time_ms [Integer, nil]
|
|
164
|
+
# @param month_year [Date]
|
|
165
|
+
# @param prediction_count [Integer]
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
module Workspaces
|
|
6
|
+
# @see Openlayer::Resources::Workspaces::APIKeys#create
|
|
7
|
+
class APIKeyCreateParams < Openlayer::Internal::Type::BaseModel
|
|
8
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute name
|
|
12
|
+
# The API key name.
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :name, String, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!method initialize(name: nil, request_options: {})
|
|
18
|
+
# @param name [String, nil] The API key name.
|
|
19
|
+
#
|
|
20
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
module Workspaces
|
|
6
|
+
# @see Openlayer::Resources::Workspaces::APIKeys#create
|
|
7
|
+
class APIKeyCreateResponse < Openlayer::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute name
|
|
9
|
+
# The API key name.
|
|
10
|
+
#
|
|
11
|
+
# @return [String, nil]
|
|
12
|
+
optional :name, String, nil?: true
|
|
13
|
+
|
|
14
|
+
response_only do
|
|
15
|
+
# @!attribute id
|
|
16
|
+
# The API key id.
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :id, String
|
|
20
|
+
|
|
21
|
+
# @!attribute date_created
|
|
22
|
+
# The API key creation date.
|
|
23
|
+
#
|
|
24
|
+
# @return [Time]
|
|
25
|
+
required :date_created, Time, api_name: :dateCreated
|
|
26
|
+
|
|
27
|
+
# @!attribute date_last_used
|
|
28
|
+
# The API key last use date.
|
|
29
|
+
#
|
|
30
|
+
# @return [Time, nil]
|
|
31
|
+
required :date_last_used, Time, api_name: :dateLastUsed, nil?: true
|
|
32
|
+
|
|
33
|
+
# @!attribute date_updated
|
|
34
|
+
# The API key last update date.
|
|
35
|
+
#
|
|
36
|
+
# @return [Time]
|
|
37
|
+
required :date_updated, Time, api_name: :dateUpdated
|
|
38
|
+
|
|
39
|
+
# @!attribute secure_key
|
|
40
|
+
# The API key value.
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
required :secure_key, String, api_name: :secureKey
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# @!method initialize(id:, date_created:, date_last_used:, date_updated:, secure_key:, name: nil)
|
|
47
|
+
# @param id [String] The API key id.
|
|
48
|
+
#
|
|
49
|
+
# @param date_created [Time] The API key creation date.
|
|
50
|
+
#
|
|
51
|
+
# @param date_last_used [Time, nil] The API key last use date.
|
|
52
|
+
#
|
|
53
|
+
# @param date_updated [Time] The API key last update date.
|
|
54
|
+
#
|
|
55
|
+
# @param secure_key [String] The API key value.
|
|
56
|
+
#
|
|
57
|
+
# @param name [String, nil] The API key name.
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Openlayer
|
|
4
|
+
module Models
|
|
5
|
+
module Workspaces
|
|
6
|
+
# @see Openlayer::Resources::Workspaces::Invites#create
|
|
7
|
+
class InviteCreateParams < Openlayer::Internal::Type::BaseModel
|
|
8
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute emails
|
|
12
|
+
#
|
|
13
|
+
# @return [Array<String>, nil]
|
|
14
|
+
optional :emails, Openlayer::Internal::Type::ArrayOf[String]
|
|
15
|
+
|
|
16
|
+
# @!attribute role
|
|
17
|
+
# The member role.
|
|
18
|
+
#
|
|
19
|
+
# @return [Symbol, Openlayer::Models::Workspaces::InviteCreateParams::Role, nil]
|
|
20
|
+
optional :role, enum: -> { Openlayer::Workspaces::InviteCreateParams::Role }
|
|
21
|
+
|
|
22
|
+
# @!method initialize(emails: nil, role: nil, request_options: {})
|
|
23
|
+
# @param emails [Array<String>]
|
|
24
|
+
#
|
|
25
|
+
# @param role [Symbol, Openlayer::Models::Workspaces::InviteCreateParams::Role] The member role.
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
|
|
29
|
+
# The member role.
|
|
30
|
+
module Role
|
|
31
|
+
extend Openlayer::Internal::Type::Enum
|
|
32
|
+
|
|
33
|
+
ADMIN = :ADMIN
|
|
34
|
+
MEMBER = :MEMBER
|
|
35
|
+
VIEWER = :VIEWER
|
|
36
|
+
|
|
37
|
+
# @!method self.values
|
|
38
|
+
# @return [Array<Symbol>]
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|