comfydeploy 0.0.1
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/lib/comfydeploy.rb +20 -0
- data/lib/open_api_sdk/comfydeploy.rb +85 -0
- data/lib/open_api_sdk/comfyui.rb +308 -0
- data/lib/open_api_sdk/files.rb +67 -0
- data/lib/open_api_sdk/machines.rb +214 -0
- data/lib/open_api_sdk/models/operations/custom_nodes.rb +45 -0
- data/lib/open_api_sdk/models/operations/dependencies.rb +36 -0
- data/lib/open_api_sdk/models/operations/environment.rb +19 -0
- data/lib/open_api_sdk/models/operations/eventtype.rb +19 -0
- data/lib/open_api_sdk/models/operations/fields_.rb +19 -0
- data/lib/open_api_sdk/models/operations/files.rb +30 -0
- data/lib/open_api_sdk/models/operations/get_auth_response_request_id_comfyui_response_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_auth_response_request_id_comfyui_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_auth_response_request_id_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_auth_response_request_id_response.rb +42 -0
- data/lib/open_api_sdk/models/operations/get_auth_response_request_id_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/get_deployment_comfyui_responsebody.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_deployment_id_inputs_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_deployment_id_inputs_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_deployment_id_inputs_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_deployment_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_deployment_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/get_deployment_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_run_gpu.rb +22 -0
- data/lib/open_api_sdk/models/operations/get_run_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_run_response.rb +42 -0
- data/lib/open_api_sdk/models/operations/get_run_responsebody.rb +93 -0
- data/lib/open_api_sdk/models/operations/get_run_run_response_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_run_run_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/get_run_workflow_api.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_upload_url_files_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_upload_url_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/get_upload_url_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_upload_url_responsebody.rb +30 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_machine_id_machines_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_machine_id_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_machine_id_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_machine_id_responsebody.rb +42 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_machines_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_v1_machines_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_outputs_request.rb +36 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_outputs_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_outputs_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_outputs_workflows_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_responsebody.rb +45 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_versions.rb +51 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflow_id_workflows_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_v1_workflows_workflows_responsebody.rb +48 -0
- data/lib/open_api_sdk/models/operations/get_websocket_deployment_id_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_websocket_deployment_id_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_websocket_deployment_id_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_websocket_deployment_id_workflows_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_comfyui_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_dependencies.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_responsebody.rb +54 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_snapshot.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_workflow.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_workflow_id_workflow_api.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_workflow_version_version_id_comfyui_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_workflow_version_version_id_dependencies.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_workflow_version_version_id_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/get_workflow_version_version_id_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/get_workflow_version_version_id_responsebody.rb +54 -0
- data/lib/open_api_sdk/models/operations/get_workflow_version_version_id_snapshot.rb +20 -0
- data/lib/open_api_sdk/models/operations/get_workflow_version_version_id_workflow_api.rb +20 -0
- data/lib/open_api_sdk/models/operations/git_custom_nodes.rb +27 -0
- data/lib/open_api_sdk/models/operations/gpu.rb +22 -0
- data/lib/open_api_sdk/models/operations/gpu_provider.rb +19 -0
- data/lib/open_api_sdk/models/operations/gputype.rb +22 -0
- data/lib/open_api_sdk/models/operations/machine_type.rb +23 -0
- data/lib/open_api_sdk/models/operations/machines.rb +45 -0
- data/lib/open_api_sdk/models/operations/models.rb +30 -0
- data/lib/open_api_sdk/models/operations/node.rb +27 -0
- data/lib/open_api_sdk/models/operations/origin.rb +22 -0
- data/lib/open_api_sdk/models/operations/outputs.rb +30 -0
- data/lib/open_api_sdk/models/operations/post_gpu_event_machines_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_gpu_event_requestbody.rb +48 -0
- data/lib/open_api_sdk/models/operations/post_gpu_event_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/post_gpu_event_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_machine_endpoint_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/post_machine_endpoint_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/post_machine_endpoint_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/post_machine_endpoint_workflows_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_run_requestbody.rb +57 -0
- data/lib/open_api_sdk/models/operations/post_run_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/post_run_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_run_run_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_v1_machines_gpu.rb +18 -0
- data/lib/open_api_sdk/models/operations/post_v1_machines_machines_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_v1_machines_requestbody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_v1_machines_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/post_v1_machines_responsebody.rb +132 -0
- data/lib/open_api_sdk/models/operations/post_v1_machines_status.rb +18 -0
- data/lib/open_api_sdk/models/operations/post_v1_machines_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/post_v1_workflows_requestbody.rb +30 -0
- data/lib/open_api_sdk/models/operations/post_v1_workflows_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/post_v1_workflows_responsebody.rb +30 -0
- data/lib/open_api_sdk/models/operations/post_v1_workflows_workflows_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_workflow_comfyui_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/post_workflow_requestbody.rb +39 -0
- data/lib/open_api_sdk/models/operations/post_workflow_response.rb +39 -0
- data/lib/open_api_sdk/models/operations/post_workflow_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/queryparam_runorigin.rb +22 -0
- data/lib/open_api_sdk/models/operations/responsebody.rb +36 -0
- data/lib/open_api_sdk/models/operations/run_log.rb +20 -0
- data/lib/open_api_sdk/models/operations/run_origin.rb +22 -0
- data/lib/open_api_sdk/models/operations/snapshot.rb +30 -0
- data/lib/open_api_sdk/models/operations/status.rb +26 -0
- data/lib/open_api_sdk/models/operations/type.rb +24 -0
- data/lib/open_api_sdk/models/operations/user.rb +24 -0
- data/lib/open_api_sdk/models/operations/versions.rb +27 -0
- data/lib/open_api_sdk/models/operations/webhook_status.rb +21 -0
- data/lib/open_api_sdk/models/operations/workflow.rb +20 -0
- data/lib/open_api_sdk/models/operations/workflow_api.rb +27 -0
- data/lib/open_api_sdk/models/operations/workflow_inputs.rb +20 -0
- data/lib/open_api_sdk/models/operations/workflow_json.rb +20 -0
- data/lib/open_api_sdk/models/operations/wsgputype.rb +18 -0
- data/lib/open_api_sdk/models/operations.rb +130 -0
- data/lib/open_api_sdk/models/shared/security.rb +24 -0
- data/lib/open_api_sdk/models/shared.rb +10 -0
- data/lib/open_api_sdk/run.rb +118 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +52 -0
- data/lib/open_api_sdk/utils/metadata_fields.rb +150 -0
- data/lib/open_api_sdk/utils/t.rb +59 -0
- data/lib/open_api_sdk/utils/utils.rb +772 -0
- data/lib/open_api_sdk/workflows.rb +304 -0
- metadata +303 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'faraday'
|
|
7
|
+
require 'faraday/multipart'
|
|
8
|
+
require 'sorbet-runtime'
|
|
9
|
+
|
|
10
|
+
module OpenApiSDK
|
|
11
|
+
extend T::Sig
|
|
12
|
+
class Machines
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
|
17
|
+
def initialize(sdk_config)
|
|
18
|
+
@sdk_configuration = sdk_config
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::PostGpuEventRequestBody)).returns(::OpenApiSDK::Operations::PostGpuEventResponse) }
|
|
23
|
+
def post_gpu_event(request)
|
|
24
|
+
# post_gpu_event - Register a machine event
|
|
25
|
+
url, params = @sdk_configuration.get_server_details
|
|
26
|
+
base_url = Utils.template_url(url, params)
|
|
27
|
+
url = "#{base_url}/gpu_event"
|
|
28
|
+
headers = {}
|
|
29
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
|
30
|
+
headers['content-type'] = req_content_type
|
|
31
|
+
headers['Accept'] = 'application/json;q=1, text/plain;q=0'
|
|
32
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
33
|
+
|
|
34
|
+
r = @sdk_configuration.client.post(url) do |req|
|
|
35
|
+
req.headers = headers
|
|
36
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
37
|
+
if form
|
|
38
|
+
req.body = Utils.encode_form(form)
|
|
39
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
40
|
+
req.body = URI.encode_www_form(data)
|
|
41
|
+
else
|
|
42
|
+
req.body = data
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
47
|
+
|
|
48
|
+
res = ::OpenApiSDK::Operations::PostGpuEventResponse.new(
|
|
49
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
50
|
+
)
|
|
51
|
+
if r.status == 200
|
|
52
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
53
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::PostGpuEventResponseBody)
|
|
54
|
+
res.two_hundred_application_json_object = out
|
|
55
|
+
end
|
|
56
|
+
elsif r.status == 401
|
|
57
|
+
res.four_hundred_and_one_text_plain_res = r.env.response_body if Utils.match_content_type(content_type, 'text/plain')
|
|
58
|
+
|
|
59
|
+
elsif r.status == 500
|
|
60
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
61
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::PostGpuEventMachinesResponseBody)
|
|
62
|
+
res.five_hundred_application_json_object = out
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
res
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
sig { params(page: T.nilable(::String), page_size: T.nilable(::String), fields_: T.nilable(::OpenApiSDK::Operations::Fields)).returns(::OpenApiSDK::Operations::GetV1MachinesResponse) }
|
|
70
|
+
def get_v1_machines(page = nil, page_size = nil, fields_ = nil)
|
|
71
|
+
# get_v1_machines - Retrieve all machines for a user
|
|
72
|
+
# Retrieve details of all machines for the authenticated user, with pagination and optional field selection
|
|
73
|
+
request = ::OpenApiSDK::Operations::GetV1MachinesRequest.new(
|
|
74
|
+
|
|
75
|
+
page: page,
|
|
76
|
+
page_size: page_size,
|
|
77
|
+
fields_: fields_
|
|
78
|
+
)
|
|
79
|
+
url, params = @sdk_configuration.get_server_details
|
|
80
|
+
base_url = Utils.template_url(url, params)
|
|
81
|
+
url = "#{base_url}/v1/machines"
|
|
82
|
+
headers = {}
|
|
83
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetV1MachinesRequest, request)
|
|
84
|
+
headers['Accept'] = 'application/json;q=1, text/plain;q=0'
|
|
85
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
86
|
+
|
|
87
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
88
|
+
req.headers = headers
|
|
89
|
+
req.params = query_params
|
|
90
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
94
|
+
|
|
95
|
+
res = ::OpenApiSDK::Operations::GetV1MachinesResponse.new(
|
|
96
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
97
|
+
)
|
|
98
|
+
if r.status == 200
|
|
99
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
100
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetV1MachinesResponseBody)
|
|
101
|
+
res.two_hundred_application_json_object = out
|
|
102
|
+
end
|
|
103
|
+
elsif r.status == 400
|
|
104
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
105
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetV1MachinesMachinesResponseBody)
|
|
106
|
+
res.four_hundred_application_json_object = out
|
|
107
|
+
end
|
|
108
|
+
elsif r.status == 401
|
|
109
|
+
res.four_hundred_and_one_text_plain_res = r.env.response_body if Utils.match_content_type(content_type, 'text/plain')
|
|
110
|
+
|
|
111
|
+
end
|
|
112
|
+
res
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::PostV1MachinesRequestBody)).returns(::OpenApiSDK::Operations::PostV1MachinesResponse) }
|
|
117
|
+
def post_v1_machines(request)
|
|
118
|
+
# post_v1_machines - Create a new machine
|
|
119
|
+
# Create a new machine with optional default setting
|
|
120
|
+
url, params = @sdk_configuration.get_server_details
|
|
121
|
+
base_url = Utils.template_url(url, params)
|
|
122
|
+
url = "#{base_url}/v1/machines"
|
|
123
|
+
headers = {}
|
|
124
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
|
125
|
+
headers['content-type'] = req_content_type
|
|
126
|
+
headers['Accept'] = 'application/json;q=1, text/plain;q=0'
|
|
127
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
128
|
+
|
|
129
|
+
r = @sdk_configuration.client.post(url) do |req|
|
|
130
|
+
req.headers = headers
|
|
131
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
132
|
+
if form
|
|
133
|
+
req.body = Utils.encode_form(form)
|
|
134
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
135
|
+
req.body = URI.encode_www_form(data)
|
|
136
|
+
else
|
|
137
|
+
req.body = data
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
142
|
+
|
|
143
|
+
res = ::OpenApiSDK::Operations::PostV1MachinesResponse.new(
|
|
144
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
145
|
+
)
|
|
146
|
+
if r.status == 200
|
|
147
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
148
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::PostV1MachinesResponseBody)
|
|
149
|
+
res.two_hundred_application_json_object = out
|
|
150
|
+
end
|
|
151
|
+
elsif r.status == 400
|
|
152
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
153
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::PostV1MachinesMachinesResponseBody)
|
|
154
|
+
res.four_hundred_application_json_object = out
|
|
155
|
+
end
|
|
156
|
+
elsif r.status == 401
|
|
157
|
+
res.four_hundred_and_one_text_plain_res = r.env.response_body if Utils.match_content_type(content_type, 'text/plain')
|
|
158
|
+
|
|
159
|
+
end
|
|
160
|
+
res
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
sig { params(machine_id: ::String, ext_urls: T.nilable(::String)).returns(::OpenApiSDK::Operations::GetV1MachinesMachineIdResponse) }
|
|
165
|
+
def get_v1_machines_machine_id_(machine_id, ext_urls = nil)
|
|
166
|
+
# get_v1_machines_machine_id_ - Retrieve a specific machine by ID
|
|
167
|
+
# Retrieve details of a specific machine by its ID, with optional workspace details
|
|
168
|
+
request = ::OpenApiSDK::Operations::GetV1MachinesMachineIdRequest.new(
|
|
169
|
+
|
|
170
|
+
machine_id: machine_id,
|
|
171
|
+
ext_urls: ext_urls
|
|
172
|
+
)
|
|
173
|
+
url, params = @sdk_configuration.get_server_details
|
|
174
|
+
base_url = Utils.template_url(url, params)
|
|
175
|
+
url = Utils.generate_url(
|
|
176
|
+
::OpenApiSDK::Operations::GetV1MachinesMachineIdRequest,
|
|
177
|
+
base_url,
|
|
178
|
+
'/v1/machines/{machine_id}',
|
|
179
|
+
request
|
|
180
|
+
)
|
|
181
|
+
headers = {}
|
|
182
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetV1MachinesMachineIdRequest, request)
|
|
183
|
+
headers['Accept'] = 'application/json;q=1, text/plain;q=0'
|
|
184
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
185
|
+
|
|
186
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
187
|
+
req.headers = headers
|
|
188
|
+
req.params = query_params
|
|
189
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
193
|
+
|
|
194
|
+
res = ::OpenApiSDK::Operations::GetV1MachinesMachineIdResponse.new(
|
|
195
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
196
|
+
)
|
|
197
|
+
if r.status == 200
|
|
198
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
199
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetV1MachinesMachineIdResponseBody)
|
|
200
|
+
res.two_hundred_application_json_object = out
|
|
201
|
+
end
|
|
202
|
+
elsif r.status == 400
|
|
203
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
204
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetV1MachinesMachineIdMachinesResponseBody)
|
|
205
|
+
res.four_hundred_application_json_object = out
|
|
206
|
+
end
|
|
207
|
+
elsif r.status == 401
|
|
208
|
+
res.four_hundred_and_one_text_plain_res = r.env.response_body if Utils.match_content_type(content_type, 'text/plain')
|
|
209
|
+
|
|
210
|
+
end
|
|
211
|
+
res
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CustomNodes < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
|
16
|
+
|
|
17
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
|
18
|
+
|
|
19
|
+
field :files, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('files') } }
|
|
20
|
+
|
|
21
|
+
field :hash, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('hash') } }
|
|
22
|
+
|
|
23
|
+
field :install_type, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('install_type') } }
|
|
24
|
+
|
|
25
|
+
field :node, T.nilable(T::Array[::OpenApiSDK::Operations::Node]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('node') } }
|
|
26
|
+
|
|
27
|
+
field :pip, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('pip') } }
|
|
28
|
+
|
|
29
|
+
field :warning, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('warning') } }
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
sig { params(name: ::String, url: ::String, files: T.nilable(T::Array[::String]), hash: T.nilable(::String), install_type: T.nilable(::Object), node: T.nilable(T::Array[::OpenApiSDK::Operations::Node]), pip: T.nilable(T::Array[::String]), warning: T.nilable(::String)).void }
|
|
33
|
+
def initialize(name: nil, url: nil, files: nil, hash: nil, install_type: nil, node: nil, pip: nil, warning: nil)
|
|
34
|
+
@name = name
|
|
35
|
+
@url = url
|
|
36
|
+
@files = files
|
|
37
|
+
@hash = hash
|
|
38
|
+
@install_type = install_type
|
|
39
|
+
@node = node
|
|
40
|
+
@pip = pip
|
|
41
|
+
@warning = warning
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Dependencies < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :comfyui, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comfyui') } }
|
|
16
|
+
|
|
17
|
+
field :custom_nodes, T::Hash[Symbol, ::OpenApiSDK::Operations::CustomNodes], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('custom_nodes') } }
|
|
18
|
+
|
|
19
|
+
field :files, T::Hash[Symbol, T::Array[::OpenApiSDK::Operations::Files]], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('files') } }
|
|
20
|
+
|
|
21
|
+
field :missing_nodes, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('missing_nodes') } }
|
|
22
|
+
|
|
23
|
+
field :models, T::Hash[Symbol, T::Array[::OpenApiSDK::Operations::Models]], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('models') } }
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
sig { params(comfyui: ::String, custom_nodes: T::Hash[Symbol, ::OpenApiSDK::Operations::CustomNodes], files: T::Hash[Symbol, T::Array[::OpenApiSDK::Operations::Files]], missing_nodes: T::Array[::String], models: T::Hash[Symbol, T::Array[::OpenApiSDK::Operations::Models]]).void }
|
|
27
|
+
def initialize(comfyui: nil, custom_nodes: nil, files: nil, missing_nodes: nil, models: nil)
|
|
28
|
+
@comfyui = comfyui
|
|
29
|
+
@custom_nodes = custom_nodes
|
|
30
|
+
@files = files
|
|
31
|
+
@missing_nodes = missing_nodes
|
|
32
|
+
@models = models
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
# Environment
|
|
11
|
+
class Environment < T::Enum
|
|
12
|
+
enums do
|
|
13
|
+
PRODUCTION = new('production')
|
|
14
|
+
STAGING = new('staging')
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EventType < T::Enum
|
|
12
|
+
enums do
|
|
13
|
+
GPU_START = new('gpu_start')
|
|
14
|
+
GPU_END = new('gpu_end')
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
# Fields
|
|
11
|
+
class Fields < T::Enum
|
|
12
|
+
enums do
|
|
13
|
+
FULL = new('full')
|
|
14
|
+
MINIMAL = new('minimal')
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Files < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
|
16
|
+
|
|
17
|
+
field :hash, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('hash') } }
|
|
18
|
+
|
|
19
|
+
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
sig { params(name: ::String, hash: T.nilable(::String), url: T.nilable(::String)).void }
|
|
23
|
+
def initialize(name: nil, hash: nil, url: nil)
|
|
24
|
+
@name = name
|
|
25
|
+
@hash = hash
|
|
26
|
+
@url = url
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
# Error when fetching the API Key with code
|
|
11
|
+
class GetAuthResponseRequestIdComfyuiResponseResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :error, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('error') } }
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
sig { params(error: ::String).void }
|
|
19
|
+
def initialize(error: nil)
|
|
20
|
+
@error = error
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
# The API key is not yet ready
|
|
11
|
+
class GetAuthResponseRequestIdComfyuiResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :message, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('message') } }
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
sig { params(message: ::String).void }
|
|
19
|
+
def initialize(message: nil)
|
|
20
|
+
@message = message
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetAuthResponseRequestIdRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :request_id, ::String, { 'path_param': { 'field_name': 'request_id', 'style': 'simple', 'explode': false } }
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
sig { params(request_id: ::String).void }
|
|
19
|
+
def initialize(request_id: nil)
|
|
20
|
+
@request_id = request_id
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetAuthResponseRequestIdResponse < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# HTTP response content type for this operation
|
|
15
|
+
field :content_type, ::String
|
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
17
|
+
field :raw_response, ::Faraday::Response
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# The returned API Key
|
|
21
|
+
field :two_hundred_application_json_object, T.nilable(::OpenApiSDK::Operations::GetAuthResponseRequestIdResponseBody)
|
|
22
|
+
# The API key is not yet ready
|
|
23
|
+
field :two_hundred_and_one_application_json_object, T.nilable(::OpenApiSDK::Operations::GetAuthResponseRequestIdComfyuiResponseBody)
|
|
24
|
+
# Invalid or expired token
|
|
25
|
+
field :four_hundred_and_one_text_plain_res, T.nilable(::String)
|
|
26
|
+
# Error when fetching the API Key with code
|
|
27
|
+
field :five_hundred_application_json_object, T.nilable(::OpenApiSDK::Operations::GetAuthResponseRequestIdComfyuiResponseResponseBody)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, two_hundred_application_json_object: T.nilable(::OpenApiSDK::Operations::GetAuthResponseRequestIdResponseBody), two_hundred_and_one_application_json_object: T.nilable(::OpenApiSDK::Operations::GetAuthResponseRequestIdComfyuiResponseBody), four_hundred_and_one_text_plain_res: T.nilable(::String), five_hundred_application_json_object: T.nilable(::OpenApiSDK::Operations::GetAuthResponseRequestIdComfyuiResponseResponseBody)).void }
|
|
31
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_object: nil, two_hundred_and_one_application_json_object: nil, four_hundred_and_one_text_plain_res: nil, five_hundred_application_json_object: nil)
|
|
32
|
+
@content_type = content_type
|
|
33
|
+
@raw_response = raw_response
|
|
34
|
+
@status_code = status_code
|
|
35
|
+
@two_hundred_application_json_object = two_hundred_application_json_object
|
|
36
|
+
@two_hundred_and_one_application_json_object = two_hundred_and_one_application_json_object
|
|
37
|
+
@four_hundred_and_one_text_plain_res = four_hundred_and_one_text_plain_res
|
|
38
|
+
@five_hundred_application_json_object = five_hundred_application_json_object
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
# The returned API Key
|
|
11
|
+
class GetAuthResponseRequestIdResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :api_key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('api_key') } }
|
|
16
|
+
|
|
17
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(api_key: ::String, name: ::String).void }
|
|
21
|
+
def initialize(api_key: nil, name: nil)
|
|
22
|
+
@api_key = api_key
|
|
23
|
+
@name = name
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetDeploymentComfyuiResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def initialize; end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetDeploymentIdInputsRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
sig { params(id: ::String).void }
|
|
19
|
+
def initialize(id: nil)
|
|
20
|
+
@id = id
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetDeploymentIdInputsResponse < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# HTTP response content type for this operation
|
|
15
|
+
field :content_type, ::String
|
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
17
|
+
field :raw_response, ::Faraday::Response
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Error when uploading the workflow
|
|
21
|
+
field :object, T.nilable(::OpenApiSDK::Operations::GetDeploymentIdInputsResponseBody)
|
|
22
|
+
# Invalid or expired token
|
|
23
|
+
field :res, T.nilable(::String)
|
|
24
|
+
# Retrieve the output
|
|
25
|
+
field :response_bodies, T.nilable(T::Array[::OpenApiSDK::Operations::ResponseBody])
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(::OpenApiSDK::Operations::GetDeploymentIdInputsResponseBody), res: T.nilable(::String), response_bodies: T.nilable(T::Array[::OpenApiSDK::Operations::ResponseBody])).void }
|
|
29
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil, res: nil, response_bodies: nil)
|
|
30
|
+
@content_type = content_type
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@status_code = status_code
|
|
33
|
+
@object = object
|
|
34
|
+
@res = res
|
|
35
|
+
@response_bodies = response_bodies
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
# Error when uploading the workflow
|
|
11
|
+
class GetDeploymentIdInputsResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :error, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('error') } }
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
sig { params(error: ::String).void }
|
|
19
|
+
def initialize(error: nil)
|
|
20
|
+
@error = error
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetDeploymentRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :environment, T.nilable(::OpenApiSDK::Operations::Environment), { 'query_param': { 'field_name': 'environment', 'style': 'form', 'explode': true } }
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
sig { params(environment: T.nilable(::OpenApiSDK::Operations::Environment)).void }
|
|
19
|
+
def initialize(environment: nil)
|
|
20
|
+
@environment = environment
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|