galaxy-ruby 0.2.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 +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE +201 -0
- data/README.md +169 -0
- data/SECURITY.md +19 -0
- data/SKILL.md +83 -0
- data/api.md +188 -0
- data/lib/galaxy-ruby/client.rb +254 -0
- data/lib/galaxy-ruby/errors.rb +227 -0
- data/lib/galaxy-ruby/file_part.rb +58 -0
- data/lib/galaxy-ruby/internal/transport/base_client.rb +576 -0
- data/lib/galaxy-ruby/internal/transport/pooled_net_requester.rb +224 -0
- data/lib/galaxy-ruby/internal/type/array_of.rb +164 -0
- data/lib/galaxy-ruby/internal/type/base_model.rb +529 -0
- data/lib/galaxy-ruby/internal/type/base_page.rb +55 -0
- data/lib/galaxy-ruby/internal/type/boolean.rb +77 -0
- data/lib/galaxy-ruby/internal/type/converter.rb +333 -0
- data/lib/galaxy-ruby/internal/type/enum.rb +130 -0
- data/lib/galaxy-ruby/internal/type/file_input.rb +111 -0
- data/lib/galaxy-ruby/internal/type/hash_of.rb +184 -0
- data/lib/galaxy-ruby/internal/type/request_parameters.rb +42 -0
- data/lib/galaxy-ruby/internal/type/union.rb +234 -0
- data/lib/galaxy-ruby/internal/type/unknown.rb +81 -0
- data/lib/galaxy-ruby/internal/util.rb +960 -0
- data/lib/galaxy-ruby/internal.rb +15 -0
- data/lib/galaxy-ruby/models/authentication_create_token_params.rb +14 -0
- data/lib/galaxy-ruby/models/authentication_create_token_response.rb +16 -0
- data/lib/galaxy-ruby/models/authentication_create_user_params.rb +32 -0
- data/lib/galaxy-ruby/models/authentication_list_me_params.rb +14 -0
- data/lib/galaxy-ruby/models/celestial_body.rb +81 -0
- data/lib/galaxy-ruby/models/celestial_body_create_params.rb +20 -0
- data/lib/galaxy-ruby/models/credentials.rb +25 -0
- data/lib/galaxy-ruby/models/new_planet_webhook_event.rb +216 -0
- data/lib/galaxy-ruby/models/planet.rb +218 -0
- data/lib/galaxy-ruby/models/planet_create_params.rb +14 -0
- data/lib/galaxy-ruby/models/planet_delete_params.rb +20 -0
- data/lib/galaxy-ruby/models/planet_delte_image_params.rb +29 -0
- data/lib/galaxy-ruby/models/planet_delte_image_response.rb +48 -0
- data/lib/galaxy-ruby/models/planet_list_all_data_params.rb +30 -0
- data/lib/galaxy-ruby/models/planet_list_all_data_response.rb +51 -0
- data/lib/galaxy-ruby/models/planet_retrieve_params.rb +20 -0
- data/lib/galaxy-ruby/models/planet_update_params.rb +20 -0
- data/lib/galaxy-ruby/models/unwrap_webhook_event.rb +14 -0
- data/lib/galaxy-ruby/models/user.rb +26 -0
- data/lib/galaxy-ruby/models/webhook_unwrap_params.rb +14 -0
- data/lib/galaxy-ruby/models.rb +78 -0
- data/lib/galaxy-ruby/request_options.rb +77 -0
- data/lib/galaxy-ruby/resources/authentication.rb +80 -0
- data/lib/galaxy-ruby/resources/celestial_bodies.rb +37 -0
- data/lib/galaxy-ruby/resources/planets.rb +215 -0
- data/lib/galaxy-ruby/resources/webhooks.rb +34 -0
- data/lib/galaxy-ruby/version.rb +5 -0
- data/lib/galaxy-ruby.rb +78 -0
- data/rbi/galaxy-ruby/client.rbi +128 -0
- data/rbi/galaxy-ruby/errors.rbi +205 -0
- data/rbi/galaxy-ruby/file_part.rbi +37 -0
- data/rbi/galaxy-ruby/internal/transport/base_client.rbi +305 -0
- data/rbi/galaxy-ruby/internal/transport/pooled_net_requester.rbi +84 -0
- data/rbi/galaxy-ruby/internal/type/array_of.rbi +104 -0
- data/rbi/galaxy-ruby/internal/type/base_model.rbi +314 -0
- data/rbi/galaxy-ruby/internal/type/base_page.rbi +43 -0
- data/rbi/galaxy-ruby/internal/type/boolean.rbi +58 -0
- data/rbi/galaxy-ruby/internal/type/converter.rbi +222 -0
- data/rbi/galaxy-ruby/internal/type/enum.rbi +82 -0
- data/rbi/galaxy-ruby/internal/type/file_input.rbi +59 -0
- data/rbi/galaxy-ruby/internal/type/hash_of.rbi +104 -0
- data/rbi/galaxy-ruby/internal/type/request_parameters.rbi +31 -0
- data/rbi/galaxy-ruby/internal/type/union.rbi +128 -0
- data/rbi/galaxy-ruby/internal/type/unknown.rbi +58 -0
- data/rbi/galaxy-ruby/internal/util.rbi +515 -0
- data/rbi/galaxy-ruby/internal.rbi +18 -0
- data/rbi/galaxy-ruby/models/authentication_create_token_params.rbi +32 -0
- data/rbi/galaxy-ruby/models/authentication_create_token_response.rbi +29 -0
- data/rbi/galaxy-ruby/models/authentication_create_user_params.rbi +54 -0
- data/rbi/galaxy-ruby/models/authentication_list_me_params.rbi +32 -0
- data/rbi/galaxy-ruby/models/celestial_body.rbi +140 -0
- data/rbi/galaxy-ruby/models/celestial_body_create_params.rbi +53 -0
- data/rbi/galaxy-ruby/models/credentials.rbi +27 -0
- data/rbi/galaxy-ruby/models/new_planet_webhook_event.rbi +396 -0
- data/rbi/galaxy-ruby/models/planet.rbi +350 -0
- data/rbi/galaxy-ruby/models/planet_create_params.rbi +32 -0
- data/rbi/galaxy-ruby/models/planet_delete_params.rbi +38 -0
- data/rbi/galaxy-ruby/models/planet_delte_image_params.rbi +55 -0
- data/rbi/galaxy-ruby/models/planet_delte_image_response.rbi +85 -0
- data/rbi/galaxy-ruby/models/planet_list_all_data_params.rbi +60 -0
- data/rbi/galaxy-ruby/models/planet_list_all_data_response.rbi +110 -0
- data/rbi/galaxy-ruby/models/planet_retrieve_params.rbi +38 -0
- data/rbi/galaxy-ruby/models/planet_update_params.rbi +38 -0
- data/rbi/galaxy-ruby/models/unwrap_webhook_event.rbi +17 -0
- data/rbi/galaxy-ruby/models/user.rbi +33 -0
- data/rbi/galaxy-ruby/models/webhook_unwrap_params.rbi +32 -0
- data/rbi/galaxy-ruby/models.rbi +39 -0
- data/rbi/galaxy-ruby/request_options.rbi +59 -0
- data/rbi/galaxy-ruby/resources/authentication.rbi +47 -0
- data/rbi/galaxy-ruby/resources/celestial_bodies.rbi +28 -0
- data/rbi/galaxy-ruby/resources/planets.rbi +176 -0
- data/rbi/galaxy-ruby/resources/webhooks.rbi +29 -0
- data/rbi/galaxy-ruby/version.rbi +5 -0
- data/sig/galaxy-ruby/client.rbs +62 -0
- data/sig/galaxy-ruby/errors.rbs +117 -0
- data/sig/galaxy-ruby/file_part.rbs +21 -0
- data/sig/galaxy-ruby/internal/transport/base_client.rbs +133 -0
- data/sig/galaxy-ruby/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/galaxy-ruby/internal/type/array_of.rbs +48 -0
- data/sig/galaxy-ruby/internal/type/base_model.rbs +102 -0
- data/sig/galaxy-ruby/internal/type/base_page.rbs +24 -0
- data/sig/galaxy-ruby/internal/type/boolean.rbs +26 -0
- data/sig/galaxy-ruby/internal/type/converter.rbs +79 -0
- data/sig/galaxy-ruby/internal/type/enum.rbs +32 -0
- data/sig/galaxy-ruby/internal/type/file_input.rbs +25 -0
- data/sig/galaxy-ruby/internal/type/hash_of.rbs +48 -0
- data/sig/galaxy-ruby/internal/type/request_parameters.rbs +17 -0
- data/sig/galaxy-ruby/internal/type/union.rbs +52 -0
- data/sig/galaxy-ruby/internal/type/unknown.rbs +26 -0
- data/sig/galaxy-ruby/internal/util.rbs +199 -0
- data/sig/galaxy-ruby/internal.rbs +9 -0
- data/sig/galaxy-ruby/models/authentication_create_token_params.rbs +15 -0
- data/sig/galaxy-ruby/models/authentication_create_token_response.rbs +15 -0
- data/sig/galaxy-ruby/models/authentication_create_user_params.rbs +34 -0
- data/sig/galaxy-ruby/models/authentication_list_me_params.rbs +15 -0
- data/sig/galaxy-ruby/models/celestial_body.rbs +76 -0
- data/sig/galaxy-ruby/models/celestial_body_create_params.rbs +24 -0
- data/sig/galaxy-ruby/models/credentials.rbs +15 -0
- data/sig/galaxy-ruby/models/new_planet_webhook_event.rbs +211 -0
- data/sig/galaxy-ruby/models/planet.rbs +211 -0
- data/sig/galaxy-ruby/models/planet_create_params.rbs +15 -0
- data/sig/galaxy-ruby/models/planet_delete_params.rbs +23 -0
- data/sig/galaxy-ruby/models/planet_delte_image_params.rbs +32 -0
- data/sig/galaxy-ruby/models/planet_delte_image_response.rbs +50 -0
- data/sig/galaxy-ruby/models/planet_list_all_data_params.rbs +32 -0
- data/sig/galaxy-ruby/models/planet_list_all_data_response.rbs +64 -0
- data/sig/galaxy-ruby/models/planet_retrieve_params.rbs +23 -0
- data/sig/galaxy-ruby/models/planet_update_params.rbs +25 -0
- data/sig/galaxy-ruby/models/unwrap_webhook_event.rbs +11 -0
- data/sig/galaxy-ruby/models/user.rbs +19 -0
- data/sig/galaxy-ruby/models/webhook_unwrap_params.rbs +15 -0
- data/sig/galaxy-ruby/models.rbs +35 -0
- data/sig/galaxy-ruby/request_options.rbs +34 -0
- data/sig/galaxy-ruby/resources/authentication.rbs +24 -0
- data/sig/galaxy-ruby/resources/celestial_bodies.rbs +12 -0
- data/sig/galaxy-ruby/resources/planets.rbs +68 -0
- data/sig/galaxy-ruby/resources/webhooks.rbs +13 -0
- data/sig/galaxy-ruby/version.rbs +3 -0
- data/sig/manifest.yaml +6 -0
- metadata +245 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type new_planet_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: Integer,
|
|
6
|
+
name: String,
|
|
7
|
+
atmosphere: ::Array[ScalarGalaxy::NewPlanetWebhookEvent::Atmosphere],
|
|
8
|
+
creator: ScalarGalaxy::User,
|
|
9
|
+
description: String?,
|
|
10
|
+
discovered_at: Time,
|
|
11
|
+
failure_callback_url: String,
|
|
12
|
+
habitability_index: Float,
|
|
13
|
+
image: String?,
|
|
14
|
+
last_updated: Time,
|
|
15
|
+
physical_properties: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties,
|
|
16
|
+
satellites: ::Array[top],
|
|
17
|
+
success_callback_url: String,
|
|
18
|
+
tags: ::Array[String],
|
|
19
|
+
type: ScalarGalaxy::Models::NewPlanetWebhookEvent::type_
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class NewPlanetWebhookEvent < ScalarGalaxy::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor id: Integer
|
|
24
|
+
|
|
25
|
+
attr_accessor name: String
|
|
26
|
+
|
|
27
|
+
attr_reader atmosphere: ::Array[ScalarGalaxy::NewPlanetWebhookEvent::Atmosphere]?
|
|
28
|
+
|
|
29
|
+
def atmosphere=: (
|
|
30
|
+
::Array[ScalarGalaxy::NewPlanetWebhookEvent::Atmosphere]
|
|
31
|
+
) -> ::Array[ScalarGalaxy::NewPlanetWebhookEvent::Atmosphere]
|
|
32
|
+
|
|
33
|
+
attr_reader creator: ScalarGalaxy::User?
|
|
34
|
+
|
|
35
|
+
def creator=: (ScalarGalaxy::User) -> ScalarGalaxy::User
|
|
36
|
+
|
|
37
|
+
attr_accessor description: String?
|
|
38
|
+
|
|
39
|
+
attr_reader discovered_at: Time?
|
|
40
|
+
|
|
41
|
+
def discovered_at=: (Time) -> Time
|
|
42
|
+
|
|
43
|
+
attr_reader failure_callback_url: String?
|
|
44
|
+
|
|
45
|
+
def failure_callback_url=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader habitability_index: Float?
|
|
48
|
+
|
|
49
|
+
def habitability_index=: (Float) -> Float
|
|
50
|
+
|
|
51
|
+
attr_accessor image: String?
|
|
52
|
+
|
|
53
|
+
attr_reader last_updated: Time?
|
|
54
|
+
|
|
55
|
+
def last_updated=: (Time) -> Time
|
|
56
|
+
|
|
57
|
+
attr_reader physical_properties: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties?
|
|
58
|
+
|
|
59
|
+
def physical_properties=: (
|
|
60
|
+
ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties
|
|
61
|
+
) -> ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties
|
|
62
|
+
|
|
63
|
+
attr_reader satellites: ::Array[top]?
|
|
64
|
+
|
|
65
|
+
def satellites=: (::Array[top]) -> ::Array[top]
|
|
66
|
+
|
|
67
|
+
attr_reader success_callback_url: String?
|
|
68
|
+
|
|
69
|
+
def success_callback_url=: (String) -> String
|
|
70
|
+
|
|
71
|
+
attr_reader tags: ::Array[String]?
|
|
72
|
+
|
|
73
|
+
def tags=: (::Array[String]) -> ::Array[String]
|
|
74
|
+
|
|
75
|
+
attr_reader type: ScalarGalaxy::Models::NewPlanetWebhookEvent::type_?
|
|
76
|
+
|
|
77
|
+
def type=: (
|
|
78
|
+
ScalarGalaxy::Models::NewPlanetWebhookEvent::type_
|
|
79
|
+
) -> ScalarGalaxy::Models::NewPlanetWebhookEvent::type_
|
|
80
|
+
|
|
81
|
+
def initialize: (
|
|
82
|
+
id: Integer,
|
|
83
|
+
name: String,
|
|
84
|
+
?atmosphere: ::Array[ScalarGalaxy::NewPlanetWebhookEvent::Atmosphere],
|
|
85
|
+
?creator: ScalarGalaxy::User,
|
|
86
|
+
?description: String?,
|
|
87
|
+
?discovered_at: Time,
|
|
88
|
+
?failure_callback_url: String,
|
|
89
|
+
?habitability_index: Float,
|
|
90
|
+
?image: String?,
|
|
91
|
+
?last_updated: Time,
|
|
92
|
+
?physical_properties: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties,
|
|
93
|
+
?satellites: ::Array[top],
|
|
94
|
+
?success_callback_url: String,
|
|
95
|
+
?tags: ::Array[String],
|
|
96
|
+
?type: ScalarGalaxy::Models::NewPlanetWebhookEvent::type_
|
|
97
|
+
) -> void
|
|
98
|
+
|
|
99
|
+
def to_hash: -> {
|
|
100
|
+
id: Integer,
|
|
101
|
+
name: String,
|
|
102
|
+
atmosphere: ::Array[ScalarGalaxy::NewPlanetWebhookEvent::Atmosphere],
|
|
103
|
+
creator: ScalarGalaxy::User,
|
|
104
|
+
description: String?,
|
|
105
|
+
discovered_at: Time,
|
|
106
|
+
failure_callback_url: String,
|
|
107
|
+
habitability_index: Float,
|
|
108
|
+
image: String?,
|
|
109
|
+
last_updated: Time,
|
|
110
|
+
physical_properties: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties,
|
|
111
|
+
satellites: ::Array[top],
|
|
112
|
+
success_callback_url: String,
|
|
113
|
+
tags: ::Array[String],
|
|
114
|
+
type: ScalarGalaxy::Models::NewPlanetWebhookEvent::type_
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
type atmosphere = { compound: String, percentage: Float }
|
|
118
|
+
|
|
119
|
+
class Atmosphere < ScalarGalaxy::Internal::Type::BaseModel
|
|
120
|
+
attr_reader compound: String?
|
|
121
|
+
|
|
122
|
+
def compound=: (String) -> String
|
|
123
|
+
|
|
124
|
+
attr_reader percentage: Float?
|
|
125
|
+
|
|
126
|
+
def percentage=: (Float) -> Float
|
|
127
|
+
|
|
128
|
+
def initialize: (?compound: String, ?percentage: Float) -> void
|
|
129
|
+
|
|
130
|
+
def to_hash: -> { compound: String, percentage: Float }
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
type physical_properties =
|
|
134
|
+
{
|
|
135
|
+
gravity: Float,
|
|
136
|
+
mass: Float,
|
|
137
|
+
radius: Float,
|
|
138
|
+
temperature: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties::Temperature
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
class PhysicalProperties < ScalarGalaxy::Internal::Type::BaseModel
|
|
142
|
+
attr_reader gravity: Float?
|
|
143
|
+
|
|
144
|
+
def gravity=: (Float) -> Float
|
|
145
|
+
|
|
146
|
+
attr_reader mass: Float?
|
|
147
|
+
|
|
148
|
+
def mass=: (Float) -> Float
|
|
149
|
+
|
|
150
|
+
attr_reader radius: Float?
|
|
151
|
+
|
|
152
|
+
def radius=: (Float) -> Float
|
|
153
|
+
|
|
154
|
+
attr_reader temperature: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties::Temperature?
|
|
155
|
+
|
|
156
|
+
def temperature=: (
|
|
157
|
+
ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties::Temperature
|
|
158
|
+
) -> ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties::Temperature
|
|
159
|
+
|
|
160
|
+
def initialize: (
|
|
161
|
+
?gravity: Float,
|
|
162
|
+
?mass: Float,
|
|
163
|
+
?radius: Float,
|
|
164
|
+
?temperature: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties::Temperature
|
|
165
|
+
) -> void
|
|
166
|
+
|
|
167
|
+
def to_hash: -> {
|
|
168
|
+
gravity: Float,
|
|
169
|
+
mass: Float,
|
|
170
|
+
radius: Float,
|
|
171
|
+
temperature: ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties::Temperature
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
type temperature = { average: Float, max: Float, min: Float }
|
|
175
|
+
|
|
176
|
+
class Temperature < ScalarGalaxy::Internal::Type::BaseModel
|
|
177
|
+
attr_reader average: Float?
|
|
178
|
+
|
|
179
|
+
def average=: (Float) -> Float
|
|
180
|
+
|
|
181
|
+
attr_reader max: Float?
|
|
182
|
+
|
|
183
|
+
def max=: (Float) -> Float
|
|
184
|
+
|
|
185
|
+
attr_reader min: Float?
|
|
186
|
+
|
|
187
|
+
def min=: (Float) -> Float
|
|
188
|
+
|
|
189
|
+
def initialize: (?average: Float, ?max: Float, ?min: Float) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> { average: Float, max: Float, min: Float }
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
type type_ =
|
|
196
|
+
:terrestrial | :gas_giant | :ice_giant | :dwarf | :super_earth
|
|
197
|
+
|
|
198
|
+
module Type
|
|
199
|
+
extend ScalarGalaxy::Internal::Type::Enum
|
|
200
|
+
|
|
201
|
+
TERRESTRIAL: :terrestrial
|
|
202
|
+
GAS_GIANT: :gas_giant
|
|
203
|
+
ICE_GIANT: :ice_giant
|
|
204
|
+
DWARF: :dwarf
|
|
205
|
+
SUPER_EARTH: :super_earth
|
|
206
|
+
|
|
207
|
+
def self?.values: -> ::Array[ScalarGalaxy::Models::NewPlanetWebhookEvent::type_]
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet =
|
|
4
|
+
{
|
|
5
|
+
id: Integer,
|
|
6
|
+
name: String,
|
|
7
|
+
atmosphere: ::Array[ScalarGalaxy::Planet::Atmosphere],
|
|
8
|
+
creator: ScalarGalaxy::User,
|
|
9
|
+
description: String?,
|
|
10
|
+
discovered_at: Time,
|
|
11
|
+
failure_callback_url: String,
|
|
12
|
+
habitability_index: Float,
|
|
13
|
+
image: String?,
|
|
14
|
+
last_updated: Time,
|
|
15
|
+
physical_properties: ScalarGalaxy::Planet::PhysicalProperties,
|
|
16
|
+
satellites: ::Array[top],
|
|
17
|
+
success_callback_url: String,
|
|
18
|
+
tags: ::Array[String],
|
|
19
|
+
type: ScalarGalaxy::Models::Planet::type_
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class Planet < ScalarGalaxy::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor id: Integer
|
|
24
|
+
|
|
25
|
+
attr_accessor name: String
|
|
26
|
+
|
|
27
|
+
attr_reader atmosphere: ::Array[ScalarGalaxy::Planet::Atmosphere]?
|
|
28
|
+
|
|
29
|
+
def atmosphere=: (
|
|
30
|
+
::Array[ScalarGalaxy::Planet::Atmosphere]
|
|
31
|
+
) -> ::Array[ScalarGalaxy::Planet::Atmosphere]
|
|
32
|
+
|
|
33
|
+
attr_reader creator: ScalarGalaxy::User?
|
|
34
|
+
|
|
35
|
+
def creator=: (ScalarGalaxy::User) -> ScalarGalaxy::User
|
|
36
|
+
|
|
37
|
+
attr_accessor description: String?
|
|
38
|
+
|
|
39
|
+
attr_reader discovered_at: Time?
|
|
40
|
+
|
|
41
|
+
def discovered_at=: (Time) -> Time
|
|
42
|
+
|
|
43
|
+
attr_reader failure_callback_url: String?
|
|
44
|
+
|
|
45
|
+
def failure_callback_url=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader habitability_index: Float?
|
|
48
|
+
|
|
49
|
+
def habitability_index=: (Float) -> Float
|
|
50
|
+
|
|
51
|
+
attr_accessor image: String?
|
|
52
|
+
|
|
53
|
+
attr_reader last_updated: Time?
|
|
54
|
+
|
|
55
|
+
def last_updated=: (Time) -> Time
|
|
56
|
+
|
|
57
|
+
attr_reader physical_properties: ScalarGalaxy::Planet::PhysicalProperties?
|
|
58
|
+
|
|
59
|
+
def physical_properties=: (
|
|
60
|
+
ScalarGalaxy::Planet::PhysicalProperties
|
|
61
|
+
) -> ScalarGalaxy::Planet::PhysicalProperties
|
|
62
|
+
|
|
63
|
+
attr_reader satellites: ::Array[top]?
|
|
64
|
+
|
|
65
|
+
def satellites=: (::Array[top]) -> ::Array[top]
|
|
66
|
+
|
|
67
|
+
attr_reader success_callback_url: String?
|
|
68
|
+
|
|
69
|
+
def success_callback_url=: (String) -> String
|
|
70
|
+
|
|
71
|
+
attr_reader tags: ::Array[String]?
|
|
72
|
+
|
|
73
|
+
def tags=: (::Array[String]) -> ::Array[String]
|
|
74
|
+
|
|
75
|
+
attr_reader type: ScalarGalaxy::Models::Planet::type_?
|
|
76
|
+
|
|
77
|
+
def type=: (
|
|
78
|
+
ScalarGalaxy::Models::Planet::type_
|
|
79
|
+
) -> ScalarGalaxy::Models::Planet::type_
|
|
80
|
+
|
|
81
|
+
def initialize: (
|
|
82
|
+
id: Integer,
|
|
83
|
+
name: String,
|
|
84
|
+
?atmosphere: ::Array[ScalarGalaxy::Planet::Atmosphere],
|
|
85
|
+
?creator: ScalarGalaxy::User,
|
|
86
|
+
?description: String?,
|
|
87
|
+
?discovered_at: Time,
|
|
88
|
+
?failure_callback_url: String,
|
|
89
|
+
?habitability_index: Float,
|
|
90
|
+
?image: String?,
|
|
91
|
+
?last_updated: Time,
|
|
92
|
+
?physical_properties: ScalarGalaxy::Planet::PhysicalProperties,
|
|
93
|
+
?satellites: ::Array[top],
|
|
94
|
+
?success_callback_url: String,
|
|
95
|
+
?tags: ::Array[String],
|
|
96
|
+
?type: ScalarGalaxy::Models::Planet::type_
|
|
97
|
+
) -> void
|
|
98
|
+
|
|
99
|
+
def to_hash: -> {
|
|
100
|
+
id: Integer,
|
|
101
|
+
name: String,
|
|
102
|
+
atmosphere: ::Array[ScalarGalaxy::Planet::Atmosphere],
|
|
103
|
+
creator: ScalarGalaxy::User,
|
|
104
|
+
description: String?,
|
|
105
|
+
discovered_at: Time,
|
|
106
|
+
failure_callback_url: String,
|
|
107
|
+
habitability_index: Float,
|
|
108
|
+
image: String?,
|
|
109
|
+
last_updated: Time,
|
|
110
|
+
physical_properties: ScalarGalaxy::Planet::PhysicalProperties,
|
|
111
|
+
satellites: ::Array[top],
|
|
112
|
+
success_callback_url: String,
|
|
113
|
+
tags: ::Array[String],
|
|
114
|
+
type: ScalarGalaxy::Models::Planet::type_
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
type atmosphere = { compound: String, percentage: Float }
|
|
118
|
+
|
|
119
|
+
class Atmosphere < ScalarGalaxy::Internal::Type::BaseModel
|
|
120
|
+
attr_reader compound: String?
|
|
121
|
+
|
|
122
|
+
def compound=: (String) -> String
|
|
123
|
+
|
|
124
|
+
attr_reader percentage: Float?
|
|
125
|
+
|
|
126
|
+
def percentage=: (Float) -> Float
|
|
127
|
+
|
|
128
|
+
def initialize: (?compound: String, ?percentage: Float) -> void
|
|
129
|
+
|
|
130
|
+
def to_hash: -> { compound: String, percentage: Float }
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
type physical_properties =
|
|
134
|
+
{
|
|
135
|
+
gravity: Float,
|
|
136
|
+
mass: Float,
|
|
137
|
+
radius: Float,
|
|
138
|
+
temperature: ScalarGalaxy::Planet::PhysicalProperties::Temperature
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
class PhysicalProperties < ScalarGalaxy::Internal::Type::BaseModel
|
|
142
|
+
attr_reader gravity: Float?
|
|
143
|
+
|
|
144
|
+
def gravity=: (Float) -> Float
|
|
145
|
+
|
|
146
|
+
attr_reader mass: Float?
|
|
147
|
+
|
|
148
|
+
def mass=: (Float) -> Float
|
|
149
|
+
|
|
150
|
+
attr_reader radius: Float?
|
|
151
|
+
|
|
152
|
+
def radius=: (Float) -> Float
|
|
153
|
+
|
|
154
|
+
attr_reader temperature: ScalarGalaxy::Planet::PhysicalProperties::Temperature?
|
|
155
|
+
|
|
156
|
+
def temperature=: (
|
|
157
|
+
ScalarGalaxy::Planet::PhysicalProperties::Temperature
|
|
158
|
+
) -> ScalarGalaxy::Planet::PhysicalProperties::Temperature
|
|
159
|
+
|
|
160
|
+
def initialize: (
|
|
161
|
+
?gravity: Float,
|
|
162
|
+
?mass: Float,
|
|
163
|
+
?radius: Float,
|
|
164
|
+
?temperature: ScalarGalaxy::Planet::PhysicalProperties::Temperature
|
|
165
|
+
) -> void
|
|
166
|
+
|
|
167
|
+
def to_hash: -> {
|
|
168
|
+
gravity: Float,
|
|
169
|
+
mass: Float,
|
|
170
|
+
radius: Float,
|
|
171
|
+
temperature: ScalarGalaxy::Planet::PhysicalProperties::Temperature
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
type temperature = { average: Float, max: Float, min: Float }
|
|
175
|
+
|
|
176
|
+
class Temperature < ScalarGalaxy::Internal::Type::BaseModel
|
|
177
|
+
attr_reader average: Float?
|
|
178
|
+
|
|
179
|
+
def average=: (Float) -> Float
|
|
180
|
+
|
|
181
|
+
attr_reader max: Float?
|
|
182
|
+
|
|
183
|
+
def max=: (Float) -> Float
|
|
184
|
+
|
|
185
|
+
attr_reader min: Float?
|
|
186
|
+
|
|
187
|
+
def min=: (Float) -> Float
|
|
188
|
+
|
|
189
|
+
def initialize: (?average: Float, ?max: Float, ?min: Float) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> { average: Float, max: Float, min: Float }
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
type type_ =
|
|
196
|
+
:terrestrial | :gas_giant | :ice_giant | :dwarf | :super_earth
|
|
197
|
+
|
|
198
|
+
module Type
|
|
199
|
+
extend ScalarGalaxy::Internal::Type::Enum
|
|
200
|
+
|
|
201
|
+
TERRESTRIAL: :terrestrial
|
|
202
|
+
GAS_GIANT: :gas_giant
|
|
203
|
+
ICE_GIANT: :ice_giant
|
|
204
|
+
DWARF: :dwarf
|
|
205
|
+
SUPER_EARTH: :super_earth
|
|
206
|
+
|
|
207
|
+
def self?.values: -> ::Array[ScalarGalaxy::Models::Planet::type_]
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_create_params =
|
|
4
|
+
{ } & ScalarGalaxy::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PlanetCreateParams < ScalarGalaxy::Models::Planet
|
|
7
|
+
extend ScalarGalaxy::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ScalarGalaxy::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: ScalarGalaxy::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: ScalarGalaxy::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_delete_params =
|
|
4
|
+
{ planet_id: Integer } & ScalarGalaxy::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PlanetDeleteParams < ScalarGalaxy::Internal::Type::BaseModel
|
|
7
|
+
extend ScalarGalaxy::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ScalarGalaxy::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor planet_id: Integer
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
planet_id: Integer,
|
|
14
|
+
?request_options: ScalarGalaxy::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
planet_id: Integer,
|
|
19
|
+
request_options: ScalarGalaxy::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_delte_image_params =
|
|
4
|
+
{ planet_id: Integer, image: ScalarGalaxy::Internal::file_input }
|
|
5
|
+
& ScalarGalaxy::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class PlanetDelteImageParams < ScalarGalaxy::Internal::Type::BaseModel
|
|
8
|
+
extend ScalarGalaxy::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include ScalarGalaxy::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor planet_id: Integer
|
|
12
|
+
|
|
13
|
+
attr_reader image: ScalarGalaxy::Internal::file_input?
|
|
14
|
+
|
|
15
|
+
def image=: (
|
|
16
|
+
ScalarGalaxy::Internal::file_input
|
|
17
|
+
) -> ScalarGalaxy::Internal::file_input
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
planet_id: Integer,
|
|
21
|
+
?image: ScalarGalaxy::Internal::file_input,
|
|
22
|
+
?request_options: ScalarGalaxy::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
planet_id: Integer,
|
|
27
|
+
image: ScalarGalaxy::Internal::file_input,
|
|
28
|
+
request_options: ScalarGalaxy::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_delte_image_response =
|
|
4
|
+
{
|
|
5
|
+
file_size: Integer,
|
|
6
|
+
image_url: String,
|
|
7
|
+
message: String,
|
|
8
|
+
mime_type: String,
|
|
9
|
+
uploaded_at: Time
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class PlanetDelteImageResponse < ScalarGalaxy::Internal::Type::BaseModel
|
|
13
|
+
attr_reader file_size: Integer?
|
|
14
|
+
|
|
15
|
+
def file_size=: (Integer) -> Integer
|
|
16
|
+
|
|
17
|
+
attr_reader image_url: String?
|
|
18
|
+
|
|
19
|
+
def image_url=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader message: String?
|
|
22
|
+
|
|
23
|
+
def message=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader mime_type: String?
|
|
26
|
+
|
|
27
|
+
def mime_type=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader uploaded_at: Time?
|
|
30
|
+
|
|
31
|
+
def uploaded_at=: (Time) -> Time
|
|
32
|
+
|
|
33
|
+
def initialize: (
|
|
34
|
+
?file_size: Integer,
|
|
35
|
+
?image_url: String,
|
|
36
|
+
?message: String,
|
|
37
|
+
?mime_type: String,
|
|
38
|
+
?uploaded_at: Time
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
file_size: Integer,
|
|
43
|
+
image_url: String,
|
|
44
|
+
message: String,
|
|
45
|
+
mime_type: String,
|
|
46
|
+
uploaded_at: Time
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_list_all_data_params =
|
|
4
|
+
{ limit: Integer, offset: Integer }
|
|
5
|
+
& ScalarGalaxy::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class PlanetListAllDataParams < ScalarGalaxy::Internal::Type::BaseModel
|
|
8
|
+
extend ScalarGalaxy::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include ScalarGalaxy::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader limit: Integer?
|
|
12
|
+
|
|
13
|
+
def limit=: (Integer) -> Integer
|
|
14
|
+
|
|
15
|
+
attr_reader offset: Integer?
|
|
16
|
+
|
|
17
|
+
def offset=: (Integer) -> Integer
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?limit: Integer,
|
|
21
|
+
?offset: Integer,
|
|
22
|
+
?request_options: ScalarGalaxy::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
limit: Integer,
|
|
27
|
+
offset: Integer,
|
|
28
|
+
request_options: ScalarGalaxy::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_list_all_data_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[top],
|
|
6
|
+
meta: ScalarGalaxy::Models::PlanetListAllDataResponse::Meta
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class PlanetListAllDataResponse < ScalarGalaxy::Internal::Type::BaseModel
|
|
10
|
+
attr_reader data: ::Array[top]?
|
|
11
|
+
|
|
12
|
+
def data=: (::Array[top]) -> ::Array[top]
|
|
13
|
+
|
|
14
|
+
attr_reader meta: ScalarGalaxy::Models::PlanetListAllDataResponse::Meta?
|
|
15
|
+
|
|
16
|
+
def meta=: (
|
|
17
|
+
ScalarGalaxy::Models::PlanetListAllDataResponse::Meta
|
|
18
|
+
) -> ScalarGalaxy::Models::PlanetListAllDataResponse::Meta
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?data: ::Array[top],
|
|
22
|
+
?meta: ScalarGalaxy::Models::PlanetListAllDataResponse::Meta
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
data: ::Array[top],
|
|
27
|
+
meta: ScalarGalaxy::Models::PlanetListAllDataResponse::Meta
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type meta =
|
|
31
|
+
{ limit: Integer, next_: String?, offset: Integer, total: Integer }
|
|
32
|
+
|
|
33
|
+
class Meta < ScalarGalaxy::Internal::Type::BaseModel
|
|
34
|
+
attr_reader limit: Integer?
|
|
35
|
+
|
|
36
|
+
def limit=: (Integer) -> Integer
|
|
37
|
+
|
|
38
|
+
attr_accessor next_: String?
|
|
39
|
+
|
|
40
|
+
attr_reader offset: Integer?
|
|
41
|
+
|
|
42
|
+
def offset=: (Integer) -> Integer
|
|
43
|
+
|
|
44
|
+
attr_reader total: Integer?
|
|
45
|
+
|
|
46
|
+
def total=: (Integer) -> Integer
|
|
47
|
+
|
|
48
|
+
def initialize: (
|
|
49
|
+
?limit: Integer,
|
|
50
|
+
?next_: String?,
|
|
51
|
+
?offset: Integer,
|
|
52
|
+
?total: Integer
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
limit: Integer,
|
|
57
|
+
next_: String?,
|
|
58
|
+
offset: Integer,
|
|
59
|
+
total: Integer
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_retrieve_params =
|
|
4
|
+
{ planet_id: Integer } & ScalarGalaxy::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PlanetRetrieveParams < ScalarGalaxy::Internal::Type::BaseModel
|
|
7
|
+
extend ScalarGalaxy::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ScalarGalaxy::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor planet_id: Integer
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
planet_id: Integer,
|
|
14
|
+
?request_options: ScalarGalaxy::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
planet_id: Integer,
|
|
19
|
+
request_options: ScalarGalaxy::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type planet_update_params =
|
|
4
|
+
{ planet_id: Integer } & ScalarGalaxy::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PlanetUpdateParams < ScalarGalaxy::Models::Planet
|
|
7
|
+
extend ScalarGalaxy::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ScalarGalaxy::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def planet_id: -> Integer
|
|
11
|
+
|
|
12
|
+
def planet_id=: (Integer _) -> Integer
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
planet_id: Integer,
|
|
16
|
+
?request_options: ScalarGalaxy::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
planet_id: Integer,
|
|
21
|
+
request_options: ScalarGalaxy::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module ScalarGalaxy
|
|
2
|
+
module Models
|
|
3
|
+
type unwrap_webhook_event = ScalarGalaxy::NewPlanetWebhookEvent
|
|
4
|
+
|
|
5
|
+
module UnwrapWebhookEvent
|
|
6
|
+
extend ScalarGalaxy::Internal::Type::Union
|
|
7
|
+
|
|
8
|
+
def self?.variants: -> ::Array[ScalarGalaxy::Models::unwrap_webhook_event]
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|