speakeasy_client_sdk_ruby 2.2.2 → 3.0.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/lib/{sdk → speakeasy_client_sdk}/apiendpoints.rb +48 -39
- data/lib/{sdk → speakeasy_client_sdk}/apis.rb +37 -30
- data/lib/{sdk → speakeasy_client_sdk}/embeds.rb +17 -13
- data/lib/{sdk → speakeasy_client_sdk}/metadata.rb +19 -15
- data/lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteschema_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +39 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +39 -0
- data/lib/speakeasy_client_sdk/models/operations/file.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getapis_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb +36 -0
- data/lib/{sdk/models/operations/getplugins.rb → speakeasy_client_sdk/models/operations/getplugins_response.rb} +7 -9
- data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschema_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getschema_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemadiff_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemarevision_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemas_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemas_response.rb +36 -0
- data/lib/{sdk/models/operations/getvalidembedaccesstokens.rb → speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb} +7 -9
- data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/op.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/queryparam_op.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/runplugin_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/runplugin_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb +36 -0
- data/lib/{sdk/models/operations/upsertplugin.rb → speakeasy_client_sdk/models/operations/upsertplugin_response.rb} +7 -10
- data/lib/{sdk/models/operations/validateapikey.rb → speakeasy_client_sdk/models/operations/validateapikey_response.rb} +6 -8
- data/lib/speakeasy_client_sdk/models/operations.rb +79 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/api.rb +9 -10
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/api_input.rb +6 -7
- data/lib/speakeasy_client_sdk/models/shared/apiendpoint.rb +54 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/apiendpoint_input.rb +8 -9
- data/lib/speakeasy_client_sdk/models/shared/boundedrequest.rb +63 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/embedaccesstokenresponse.rb +3 -4
- data/lib/speakeasy_client_sdk/models/shared/embedtoken.rb +51 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/error.rb +4 -5
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/filter.rb +5 -6
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/filters.rb +6 -7
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/generateopenapispecdiff.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared/plugin.rb +42 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/requestmetadata.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared/schema.rb +39 -0
- data/lib/speakeasy_client_sdk/models/shared/schemadiff.rb +30 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/security.rb +3 -4
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/unboundedrequest.rb +7 -8
- data/lib/speakeasy_client_sdk/models/shared/valuechange.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared/versionmetadata.rb +39 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/versionmetadata_input.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared.rb +29 -0
- data/lib/{sdk → speakeasy_client_sdk}/plugins.rb +18 -14
- data/lib/{sdk → speakeasy_client_sdk}/requests.rb +19 -15
- data/lib/{sdk → speakeasy_client_sdk}/schemas.rb +46 -37
- data/lib/{sdk → speakeasy_client_sdk}/sdk.rb +3 -3
- data/lib/{sdk → speakeasy_client_sdk}/sdkconfiguration.rb +5 -5
- data/lib/{sdk → speakeasy_client_sdk}/utils/utils.rb +2 -2
- data/lib/speakeasy_client_sdk_ruby.rb +13 -66
- metadata +105 -67
- data/lib/sdk/models/operations/deleteapi.rb +0 -52
- data/lib/sdk/models/operations/deleteapiendpoint.rb +0 -55
- data/lib/sdk/models/operations/deleteschema.rb +0 -55
- data/lib/sdk/models/operations/deleteversionmetadata.rb +0 -58
- data/lib/sdk/models/operations/downloadschema.rb +0 -58
- data/lib/sdk/models/operations/downloadschemarevision.rb +0 -61
- data/lib/sdk/models/operations/findapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/generateopenapispec.rb +0 -56
- data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/generatepostmancollection.rb +0 -55
- data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +0 -58
- data/lib/sdk/models/operations/generaterequestpostmancollection.rb +0 -52
- data/lib/sdk/models/operations/getallapiendpoints.rb +0 -52
- data/lib/sdk/models/operations/getallapiversions.rb +0 -72
- data/lib/sdk/models/operations/getallforversionapiendpoints.rb +0 -55
- data/lib/sdk/models/operations/getapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/getapis.rb +0 -69
- data/lib/sdk/models/operations/getembedaccesstoken.rb +0 -60
- data/lib/sdk/models/operations/getrequestfromeventlog.rb +0 -53
- data/lib/sdk/models/operations/getschema.rb +0 -56
- data/lib/sdk/models/operations/getschemadiff.rb +0 -62
- data/lib/sdk/models/operations/getschemarevision.rb +0 -59
- data/lib/sdk/models/operations/getschemas.rb +0 -55
- data/lib/sdk/models/operations/getversionmetadata.rb +0 -55
- data/lib/sdk/models/operations/insertversionmetadata.rb +0 -59
- data/lib/sdk/models/operations/queryeventlog.rb +0 -53
- data/lib/sdk/models/operations/registerschema.rb +0 -86
- data/lib/sdk/models/operations/revokeembedaccesstoken.rb +0 -49
- data/lib/sdk/models/operations/runplugin.rb +0 -56
- data/lib/sdk/models/operations/upsertapi.rb +0 -56
- data/lib/sdk/models/operations/upsertapiendpoint.rb +0 -62
- data/lib/sdk/models/shared/apiendpoint.rb +0 -55
- data/lib/sdk/models/shared/boundedrequest.rb +0 -64
- data/lib/sdk/models/shared/embedtoken.rb +0 -52
- data/lib/sdk/models/shared/plugin.rb +0 -43
- data/lib/sdk/models/shared/schema.rb +0 -40
- data/lib/sdk/models/shared/schemadiff.rb +0 -48
- data/lib/sdk/models/shared/versionmetadata.rb +0 -40
- /data/lib/{sdk → speakeasy_client_sdk}/utils/metadata_fields.rb +0 -0
|
@@ -10,14 +10,16 @@ require 'sorbet-runtime'
|
|
|
10
10
|
module SpeakeasyClientSDK
|
|
11
11
|
extend T::Sig
|
|
12
12
|
class Embeds
|
|
13
|
-
# REST APIs for managing embeds
|
|
14
13
|
extend T::Sig
|
|
14
|
+
# REST APIs for managing embeds
|
|
15
|
+
|
|
15
16
|
sig { params(sdk_config: SDKConfiguration).void }
|
|
16
17
|
def initialize(sdk_config)
|
|
17
18
|
@sdk_configuration = sdk_config
|
|
18
19
|
end
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetEmbedAccessTokenRequest)).returns(Utils::FieldAugmented) }
|
|
21
23
|
def get_embed_access_token(request)
|
|
22
24
|
# get_embed_access_token - Get an embed access token for the current workspace.
|
|
23
25
|
# Returns an embed access token for the current workspace. This can be used to authenticate access to externally embedded content.
|
|
@@ -26,7 +28,7 @@ module SpeakeasyClientSDK
|
|
|
26
28
|
base_url = Utils.template_url(url, params)
|
|
27
29
|
url = "#{base_url}/v1/workspace/embed-access-token"
|
|
28
30
|
headers = {}
|
|
29
|
-
query_params = Utils.get_query_params(Operations::GetEmbedAccessTokenRequest, request)
|
|
31
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetEmbedAccessTokenRequest, request)
|
|
30
32
|
headers['Accept'] = 'application/json'
|
|
31
33
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
32
34
|
|
|
@@ -38,24 +40,25 @@ module SpeakeasyClientSDK
|
|
|
38
40
|
|
|
39
41
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
40
42
|
|
|
41
|
-
res = Operations::GetEmbedAccessTokenResponse.new(
|
|
43
|
+
res = ::SpeakeasyClientSDK::Operations::GetEmbedAccessTokenResponse.new(
|
|
42
44
|
status_code: r.status, content_type: content_type, raw_response: r
|
|
43
45
|
)
|
|
44
46
|
if r.status == 200
|
|
45
47
|
if Utils.match_content_type(content_type, 'application/json')
|
|
46
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::EmbedAccessTokenResponse)
|
|
48
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::EmbedAccessTokenResponse)
|
|
47
49
|
res.embed_access_token_response = out
|
|
48
50
|
end
|
|
49
51
|
else
|
|
50
52
|
|
|
51
53
|
if Utils.match_content_type(content_type, 'application/json')
|
|
52
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
|
53
55
|
res.error = out
|
|
54
56
|
end
|
|
55
57
|
end
|
|
56
58
|
res
|
|
57
59
|
end
|
|
58
60
|
|
|
61
|
+
|
|
59
62
|
sig { returns(::SpeakeasyClientSDK::Utils::FieldAugmented) }
|
|
60
63
|
def get_valid_embed_access_tokens
|
|
61
64
|
# get_valid_embed_access_tokens - Get all valid embed access tokens for the current workspace.
|
|
@@ -73,31 +76,32 @@ module SpeakeasyClientSDK
|
|
|
73
76
|
|
|
74
77
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
75
78
|
|
|
76
|
-
res = Operations::GetValidEmbedAccessTokensResponse.new(
|
|
79
|
+
res = ::SpeakeasyClientSDK::Operations::GetValidEmbedAccessTokensResponse.new(
|
|
77
80
|
status_code: r.status, content_type: content_type, raw_response: r
|
|
78
81
|
)
|
|
79
82
|
if r.status == 200
|
|
80
83
|
if Utils.match_content_type(content_type, 'application/json')
|
|
81
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::EmbedToken])
|
|
84
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::EmbedToken])
|
|
82
85
|
res.classes = out
|
|
83
86
|
end
|
|
84
87
|
else
|
|
85
88
|
|
|
86
89
|
if Utils.match_content_type(content_type, 'application/json')
|
|
87
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
|
90
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
|
88
91
|
res.error = out
|
|
89
92
|
end
|
|
90
93
|
end
|
|
91
94
|
res
|
|
92
95
|
end
|
|
93
96
|
|
|
94
|
-
|
|
97
|
+
|
|
98
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::RevokeEmbedAccessTokenRequest)).returns(Utils::FieldAugmented) }
|
|
95
99
|
def revoke_embed_access_token(request)
|
|
96
100
|
# revoke_embed_access_token - Revoke an embed access EmbedToken.
|
|
97
101
|
url, params = @sdk_configuration.get_server_details
|
|
98
102
|
base_url = Utils.template_url(url, params)
|
|
99
103
|
url = Utils.generate_url(
|
|
100
|
-
Operations::RevokeEmbedAccessTokenRequest,
|
|
104
|
+
::SpeakeasyClientSDK::Operations::RevokeEmbedAccessTokenRequest,
|
|
101
105
|
base_url,
|
|
102
106
|
'/v1/workspace/embed-access-tokens/{tokenID}',
|
|
103
107
|
request
|
|
@@ -113,14 +117,14 @@ module SpeakeasyClientSDK
|
|
|
113
117
|
|
|
114
118
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
115
119
|
|
|
116
|
-
res = Operations::RevokeEmbedAccessTokenResponse.new(
|
|
120
|
+
res = ::SpeakeasyClientSDK::Operations::RevokeEmbedAccessTokenResponse.new(
|
|
117
121
|
status_code: r.status, content_type: content_type, raw_response: r
|
|
118
122
|
)
|
|
119
123
|
if r.status == 200
|
|
120
124
|
else
|
|
121
125
|
|
|
122
126
|
if Utils.match_content_type(content_type, 'application/json')
|
|
123
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
|
127
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
|
124
128
|
res.error = out
|
|
125
129
|
end
|
|
126
130
|
end
|
|
@@ -10,20 +10,22 @@ require 'sorbet-runtime'
|
|
|
10
10
|
module SpeakeasyClientSDK
|
|
11
11
|
extend T::Sig
|
|
12
12
|
class Metadata
|
|
13
|
-
# REST APIs for managing Version Metadata entities
|
|
14
13
|
extend T::Sig
|
|
14
|
+
# REST APIs for managing Version Metadata entities
|
|
15
|
+
|
|
15
16
|
sig { params(sdk_config: SDKConfiguration).void }
|
|
16
17
|
def initialize(sdk_config)
|
|
17
18
|
@sdk_configuration = sdk_config
|
|
18
19
|
end
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::DeleteVersionMetadataRequest)).returns(Utils::FieldAugmented) }
|
|
21
23
|
def delete_version_metadata(request)
|
|
22
24
|
# delete_version_metadata - Delete metadata for a particular apiID and versionID.
|
|
23
25
|
url, params = @sdk_configuration.get_server_details
|
|
24
26
|
base_url = Utils.template_url(url, params)
|
|
25
27
|
url = Utils.generate_url(
|
|
26
|
-
Operations::DeleteVersionMetadataRequest,
|
|
28
|
+
::SpeakeasyClientSDK::Operations::DeleteVersionMetadataRequest,
|
|
27
29
|
base_url,
|
|
28
30
|
'/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}',
|
|
29
31
|
request
|
|
@@ -39,27 +41,28 @@ module SpeakeasyClientSDK
|
|
|
39
41
|
|
|
40
42
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
41
43
|
|
|
42
|
-
res = Operations::DeleteVersionMetadataResponse.new(
|
|
44
|
+
res = ::SpeakeasyClientSDK::Operations::DeleteVersionMetadataResponse.new(
|
|
43
45
|
status_code: r.status, content_type: content_type, raw_response: r
|
|
44
46
|
)
|
|
45
47
|
if r.status == 200
|
|
46
48
|
else
|
|
47
49
|
|
|
48
50
|
if Utils.match_content_type(content_type, 'application/json')
|
|
49
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
|
51
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
|
50
52
|
res.error = out
|
|
51
53
|
end
|
|
52
54
|
end
|
|
53
55
|
res
|
|
54
56
|
end
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
|
|
59
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetVersionMetadataRequest)).returns(Utils::FieldAugmented) }
|
|
57
60
|
def get_version_metadata(request)
|
|
58
61
|
# get_version_metadata - Get all metadata for a particular apiID and versionID.
|
|
59
62
|
url, params = @sdk_configuration.get_server_details
|
|
60
63
|
base_url = Utils.template_url(url, params)
|
|
61
64
|
url = Utils.generate_url(
|
|
62
|
-
Operations::GetVersionMetadataRequest,
|
|
65
|
+
::SpeakeasyClientSDK::Operations::GetVersionMetadataRequest,
|
|
63
66
|
base_url,
|
|
64
67
|
'/v1/apis/{apiID}/version/{versionID}/metadata',
|
|
65
68
|
request
|
|
@@ -75,31 +78,32 @@ module SpeakeasyClientSDK
|
|
|
75
78
|
|
|
76
79
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
77
80
|
|
|
78
|
-
res = Operations::GetVersionMetadataResponse.new(
|
|
81
|
+
res = ::SpeakeasyClientSDK::Operations::GetVersionMetadataResponse.new(
|
|
79
82
|
status_code: r.status, content_type: content_type, raw_response: r
|
|
80
83
|
)
|
|
81
84
|
if r.status == 200
|
|
82
85
|
if Utils.match_content_type(content_type, 'application/json')
|
|
83
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::VersionMetadata])
|
|
86
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::VersionMetadata])
|
|
84
87
|
res.classes = out
|
|
85
88
|
end
|
|
86
89
|
else
|
|
87
90
|
|
|
88
91
|
if Utils.match_content_type(content_type, 'application/json')
|
|
89
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
|
92
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
|
90
93
|
res.error = out
|
|
91
94
|
end
|
|
92
95
|
end
|
|
93
96
|
res
|
|
94
97
|
end
|
|
95
98
|
|
|
96
|
-
|
|
99
|
+
|
|
100
|
+
sig { params(request: ::SpeakeasyClientSDK::Operations::InsertVersionMetadataRequest).returns(Utils::FieldAugmented) }
|
|
97
101
|
def insert_version_metadata(request)
|
|
98
102
|
# insert_version_metadata - Insert metadata for a particular apiID and versionID.
|
|
99
103
|
url, params = @sdk_configuration.get_server_details
|
|
100
104
|
base_url = Utils.template_url(url, params)
|
|
101
105
|
url = Utils.generate_url(
|
|
102
|
-
Operations::InsertVersionMetadataRequest,
|
|
106
|
+
::SpeakeasyClientSDK::Operations::InsertVersionMetadataRequest,
|
|
103
107
|
base_url,
|
|
104
108
|
'/v1/apis/{apiID}/version/{versionID}/metadata',
|
|
105
109
|
request
|
|
@@ -125,18 +129,18 @@ module SpeakeasyClientSDK
|
|
|
125
129
|
|
|
126
130
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
127
131
|
|
|
128
|
-
res = Operations::InsertVersionMetadataResponse.new(
|
|
132
|
+
res = ::SpeakeasyClientSDK::Operations::InsertVersionMetadataResponse.new(
|
|
129
133
|
status_code: r.status, content_type: content_type, raw_response: r
|
|
130
134
|
)
|
|
131
135
|
if r.status == 200
|
|
132
136
|
if Utils.match_content_type(content_type, 'application/json')
|
|
133
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::VersionMetadata)
|
|
137
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::VersionMetadata)
|
|
134
138
|
res.version_metadata = out
|
|
135
139
|
end
|
|
136
140
|
else
|
|
137
141
|
|
|
138
142
|
if Utils.match_content_type(content_type, 'application/json')
|
|
139
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
|
143
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
|
140
144
|
res.error = out
|
|
141
145
|
end
|
|
142
146
|
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteApiRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# The ID of the Api to delete.
|
|
15
|
+
field :api_id, ::String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
|
16
|
+
# The version ID of the Api to delete.
|
|
17
|
+
field :version_id, ::String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(api_id: ::String, version_id: ::String).void }
|
|
21
|
+
def initialize(api_id: nil, version_id: nil)
|
|
22
|
+
@api_id = api_id
|
|
23
|
+
@version_id = version_id
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteApiResponse < ::SpeakeasyClientSDK::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
|
+
# Default error response
|
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
|
|
26
|
+
@content_type = content_type
|
|
27
|
+
@raw_response = raw_response
|
|
28
|
+
@status_code = status_code
|
|
29
|
+
@error = error
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteApiEndpointRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# The ID of the ApiEndpoint to delete.
|
|
15
|
+
field :api_endpoint_id, ::String, { 'path_param': { 'field_name': 'apiEndpointID', 'style': 'simple', 'explode': false } }
|
|
16
|
+
# The ID of the Api the ApiEndpoint belongs to.
|
|
17
|
+
field :api_id, ::String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# The version ID of the Api the ApiEndpoint belongs to.
|
|
19
|
+
field :version_id, ::String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
sig { params(api_endpoint_id: ::String, api_id: ::String, version_id: ::String).void }
|
|
23
|
+
def initialize(api_endpoint_id: nil, api_id: nil, version_id: nil)
|
|
24
|
+
@api_endpoint_id = api_endpoint_id
|
|
25
|
+
@api_id = api_id
|
|
26
|
+
@version_id = version_id
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteApiEndpointResponse < ::SpeakeasyClientSDK::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
|
+
# Default error response
|
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
|
|
26
|
+
@content_type = content_type
|
|
27
|
+
@raw_response = raw_response
|
|
28
|
+
@status_code = status_code
|
|
29
|
+
@error = error
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteSchemaRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# The ID of the Api to delete schemas for.
|
|
15
|
+
field :api_id, ::String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
|
16
|
+
# The revision ID of the schema to delete.
|
|
17
|
+
field :revision_id, ::String, { 'path_param': { 'field_name': 'revisionID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# The version ID of the Api to delete metadata for.
|
|
19
|
+
field :version_id, ::String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
sig { params(api_id: ::String, revision_id: ::String, version_id: ::String).void }
|
|
23
|
+
def initialize(api_id: nil, revision_id: nil, version_id: nil)
|
|
24
|
+
@api_id = api_id
|
|
25
|
+
@revision_id = revision_id
|
|
26
|
+
@version_id = version_id
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteSchemaResponse < ::SpeakeasyClientSDK::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
|
+
# Default error response
|
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
|
|
26
|
+
@content_type = content_type
|
|
27
|
+
@raw_response = raw_response
|
|
28
|
+
@status_code = status_code
|
|
29
|
+
@error = error
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteVersionMetadataRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# The ID of the Api to delete metadata for.
|
|
15
|
+
field :api_id, ::String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
|
16
|
+
# The key of the metadata to delete.
|
|
17
|
+
field :meta_key, ::String, { 'path_param': { 'field_name': 'metaKey', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# The value of the metadata to delete.
|
|
19
|
+
field :meta_value, ::String, { 'path_param': { 'field_name': 'metaValue', 'style': 'simple', 'explode': false } }
|
|
20
|
+
# The version ID of the Api to delete metadata for.
|
|
21
|
+
field :version_id, ::String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
sig { params(api_id: ::String, meta_key: ::String, meta_value: ::String, version_id: ::String).void }
|
|
25
|
+
def initialize(api_id: nil, meta_key: nil, meta_value: nil, version_id: nil)
|
|
26
|
+
@api_id = api_id
|
|
27
|
+
@meta_key = meta_key
|
|
28
|
+
@meta_value = meta_value
|
|
29
|
+
@version_id = version_id
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteVersionMetadataResponse < ::SpeakeasyClientSDK::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
|
+
# Default error response
|
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
|
|
26
|
+
@content_type = content_type
|
|
27
|
+
@raw_response = raw_response
|
|
28
|
+
@status_code = status_code
|
|
29
|
+
@error = error
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DownloadSchemaRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# The ID of the Api to download the schema for.
|
|
15
|
+
field :api_id, ::String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
|
16
|
+
# The version ID of the Api to delete metadata for.
|
|
17
|
+
field :version_id, ::String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(api_id: ::String, version_id: ::String).void }
|
|
21
|
+
def initialize(api_id: nil, version_id: nil)
|
|
22
|
+
@api_id = api_id
|
|
23
|
+
@version_id = version_id
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DownloadSchemaResponse < ::SpeakeasyClientSDK::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
|
+
# OK
|
|
21
|
+
field :two_hundred_application_json_schema, T.nilable(::String)
|
|
22
|
+
# OK
|
|
23
|
+
field :two_hundred_application_x_yaml_schema, T.nilable(::String)
|
|
24
|
+
# Default error response
|
|
25
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, two_hundred_application_json_schema: T.nilable(::String), two_hundred_application_x_yaml_schema: T.nilable(::String), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
|
29
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_schema: nil, two_hundred_application_x_yaml_schema: nil, error: nil)
|
|
30
|
+
@content_type = content_type
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@status_code = status_code
|
|
33
|
+
@two_hundred_application_json_schema = two_hundred_application_json_schema
|
|
34
|
+
@two_hundred_application_x_yaml_schema = two_hundred_application_x_yaml_schema
|
|
35
|
+
@error = error
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DownloadSchemaRevisionRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# The ID of the Api to retrieve schemas for.
|
|
15
|
+
field :api_id, ::String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
|
16
|
+
# The revision ID of the schema to retrieve.
|
|
17
|
+
field :revision_id, ::String, { 'path_param': { 'field_name': 'revisionID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# The version ID of the Api to delete metadata for.
|
|
19
|
+
field :version_id, ::String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
sig { params(api_id: ::String, revision_id: ::String, version_id: ::String).void }
|
|
23
|
+
def initialize(api_id: nil, revision_id: nil, version_id: nil)
|
|
24
|
+
@api_id = api_id
|
|
25
|
+
@revision_id = revision_id
|
|
26
|
+
@version_id = version_id
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DownloadSchemaRevisionResponse < ::SpeakeasyClientSDK::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
|
+
# OK
|
|
21
|
+
field :two_hundred_application_json_schema, T.nilable(::String)
|
|
22
|
+
# OK
|
|
23
|
+
field :two_hundred_application_x_yaml_schema, T.nilable(::String)
|
|
24
|
+
# Default error response
|
|
25
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, two_hundred_application_json_schema: T.nilable(::String), two_hundred_application_x_yaml_schema: T.nilable(::String), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
|
29
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_schema: nil, two_hundred_application_x_yaml_schema: nil, error: nil)
|
|
30
|
+
@content_type = content_type
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@status_code = status_code
|
|
33
|
+
@two_hundred_application_json_schema = two_hundred_application_json_schema
|
|
34
|
+
@two_hundred_application_x_yaml_schema = two_hundred_application_x_yaml_schema
|
|
35
|
+
@error = error
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
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 SpeakeasyClientSDK
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class File < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :content, ::String, { 'multipart_form': { 'content': true } }
|
|
16
|
+
|
|
17
|
+
field :file_name, ::String, { 'multipart_form': { 'field_name': 'file' } }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(content: ::String, file_name: ::String).void }
|
|
21
|
+
def initialize(content: nil, file_name: nil)
|
|
22
|
+
@content = content
|
|
23
|
+
@file_name = file_name
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|