speakeasy_client_sdk_ruby 4.2.22 → 4.2.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/apiendpoints.rb +66 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/apis.rb +134 -109
- data/lib/{speakeasy_client_sdk → open_api_sdk}/artifacts.rb +129 -150
- data/lib/{speakeasy_client_sdk → open_api_sdk}/auth.rb +53 -46
- data/lib/{speakeasy_client_sdk → open_api_sdk}/embeds.rb +36 -29
- data/lib/{speakeasy_client_sdk → open_api_sdk}/events.rb +111 -54
- data/lib/{speakeasy_client_sdk → open_api_sdk}/github.rb +139 -127
- data/lib/{speakeasy_client_sdk → open_api_sdk}/metadata.rb +63 -48
- data/lib/{speakeasy_client_sdk/models/operations/checkaccess_request.rb → open_api_sdk/models/operations/checkgithubaccess_request.rb} +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/deleteapi_response.rb → open_api_sdk/models/operations/checkgithubaccess_response.rb} +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/create_requestbody.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/create_response.rb +4 -4
- data/lib/open_api_sdk/models/operations/createfreetrial_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/createorganization_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/createworkspace_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/createworkspacetoken_request.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/deleteschema_response.rb → open_api_sdk/models/operations/createworkspacetoken_response.rb} +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteapi_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deleteapi_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteapiendpoint_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteschema_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deleteschema_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteversionmetadata_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/triggeraction_response.rb → open_api_sdk/models/operations/deleteversionmetadata_response.rb} +4 -4
- data/lib/open_api_sdk/models/operations/deleteworkspacetoken_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/deleteworkspacetoken_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/downloadschema_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/downloadschema_response.rb +39 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/downloadschemarevision_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/downloadschemarevision_response.rb +39 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/file.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/findapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/findapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispec_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispec_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispecforapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispecforapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollection_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollection_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollectionforapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollectionforapiendpoint_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generaterequestpostmancollection_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generaterequestpostmancollection_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getaccesstoken_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getaccesstoken_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiendpoints_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiendpoints_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiversions_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiversions_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallforversionapiendpoints_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallforversionapiendpoints_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapis_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapis_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getblob_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getblob_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_signedaccess.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getembedaccesstoken_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getembedaccesstoken_response.rb +5 -5
- data/lib/{speakeasy_client_sdk/models/operations/getaction_request.rb → open_api_sdk/models/operations/getgithubaction_request.rb} +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/getaction_response.rb → open_api_sdk/models/operations/getgithubaction_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_signedaccess.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getmanifest_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getmanifest_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getnamespaces_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganization_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganization_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganizations_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganizationusage_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrequestfromeventlog_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrequestfromeventlog_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrevisions_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrevisions_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschema_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/getschemarevision_response.rb → open_api_sdk/models/operations/getschema_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemadiff_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemadiff_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemarevision_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/getschema_response.rb → open_api_sdk/models/operations/getschemarevision_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemas_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getschemas_response.rb +36 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/gettags_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/gettags_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getuser_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getvalidembedaccesstokens_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getversionmetadata_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getversionmetadata_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspace_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceaccess_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceaccess_response.rb +4 -4
- data/lib/{speakeasy_client_sdk/models/operations/getoassummary_response.rb → open_api_sdk/models/operations/getworkspacebycontext_response.rb} +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceeventsbytarget_request.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceeventsbytarget_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacefeatureflags_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacefeatureflags_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/getworkspaces_response.rb +36 -0
- data/lib/{speakeasy_client_sdk/models/operations/getworkspace_request.rb → open_api_sdk/models/operations/getworkspacesettings_request.rb} +4 -4
- data/lib/open_api_sdk/models/operations/getworkspacesettings_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/getworkspacetargets_request.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacetargets_response.rb +5 -5
- data/lib/{speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb → open_api_sdk/models/operations/getworkspacetargetsdeprecated_request.rb} +7 -7
- data/lib/{speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb → open_api_sdk/models/operations/getworkspacetargetsdeprecated_response.rb} +9 -6
- data/lib/open_api_sdk/models/operations/getworkspaceteam_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/getworkspaceteam_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/getworkspacetokens_request.rb +24 -0
- data/lib/{speakeasy_client_sdk/models/operations/getschemas_response.rb → open_api_sdk/models/operations/getworkspacetokens_response.rb} +8 -8
- data/lib/{speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb → open_api_sdk/models/operations/githubcheckpublishingprs_request.rb} +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb → open_api_sdk/models/operations/githubcheckpublishingprs_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/githubcheckpublishingsecrets_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/githubcheckpublishingsecrets_response.rb +5 -5
- data/lib/{speakeasy_client_sdk/models/operations/configurecodesamples_response.rb → open_api_sdk/models/operations/githubconfigurecodesamples_response.rb} +5 -5
- data/lib/open_api_sdk/models/operations/githubconfiguremintlifyrepo_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/githubconfiguretarget_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/githubstorepublishingsecrets_response.rb +33 -0
- data/lib/{speakeasy_client_sdk/models/operations/checkaccess_response.rb → open_api_sdk/models/operations/githubtriggeraction_response.rb} +4 -4
- data/lib/open_api_sdk/models/operations/grantuseraccesstoworkspace_request.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/configuremintlifyrepo_response.rb → open_api_sdk/models/operations/grantuseraccesstoworkspace_response.rb} +8 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/insertversionmetadata_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/insertversionmetadata_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/op.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/posttags_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/posttags_response.rb +4 -4
- data/lib/open_api_sdk/models/operations/postworkspaceevents_request.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/postworkspaceevents_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/preflight_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/queryeventlog_request.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/queryeventlog_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/queryparam_op.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/registerschema_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/registerschema_requestbody.rb +4 -4
- data/lib/open_api_sdk/models/operations/registerschema_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/revokeembedaccesstoken_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/registerschema_response.rb → open_api_sdk/models/operations/revokeembedaccesstoken_response.rb} +4 -4
- data/lib/open_api_sdk/models/operations/revokeuseraccesstoworkspace_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/revokeuseraccesstoworkspace_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/schema.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/searchworkspaceevents_request.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/searchworkspaceevents_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggest_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggest_response.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggestopenapi_request.rb +4 -4
- data/lib/open_api_sdk/models/operations/suggestopenapi_requestbody.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/suggestopenapiregistry_response.rb → open_api_sdk/models/operations/suggestopenapi_response.rb} +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggestopenapiregistry_request.rb +4 -4
- data/lib/{speakeasy_client_sdk/models/operations/suggestopenapi_response.rb → open_api_sdk/models/operations/suggestopenapiregistry_response.rb} +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspacedetails_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/updateworkspacedetails_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/updateworkspacesettings_request.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/configuretarget_response.rb → open_api_sdk/models/operations/updateworkspacesettings_response.rb} +4 -4
- data/lib/{speakeasy_client_sdk/models/operations/registerschema_file.rb → open_api_sdk/models/operations/uploadreport_file.rb} +2 -2
- data/lib/open_api_sdk/models/operations/uploadreport_requestbody.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/uploadreport_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/uploadreport_uploadedreport.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapi_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapi_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapiendpoint_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/validateapikey_response.rb +5 -5
- data/lib/open_api_sdk/models/operations.rb +166 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accessdetails.rb +6 -6
- data/lib/open_api_sdk/models/shared/accesstoken.rb +36 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accesstoken_user.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accounttype.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/addtags.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/annotations.rb +14 -14
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/api.rb +10 -10
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/api_input.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apiendpoint.rb +13 -13
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apiendpoint_input.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apikeydetails.rb +11 -11
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/auth.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/boundedrequest.rb +17 -17
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/claims.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/clievent.rb +81 -81
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/diagnostic.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/embedaccesstokenresponse.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/embedtoken.rb +12 -12
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/error.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/featureflag.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/filter.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/filters.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/generate_bump_type.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/generateopenapispecdiff.rb +4 -4
- data/lib/open_api_sdk/models/shared/getnamespacesresponse.rb +24 -0
- data/lib/open_api_sdk/models/shared/getrevisionsresponse.rb +27 -0
- data/lib/open_api_sdk/models/shared/gettagsresponse.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfigurecodesamplesrequest.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfigurecodesamplesresponse.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfiguremintlifyreporequest.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfiguretargetrequest.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubgetactionresponse.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubmissingpublishingsecretsresponse.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubpublishingprresponse.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubstorepublishingsecretsrequest.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubtriggeractionrequest.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/interactiontype.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/level.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/license.rb +3 -3
- data/lib/open_api_sdk/models/shared/manifest.rb +36 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/namespace.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/oasinfo.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/oasoperation.rb +9 -9
- data/lib/open_api_sdk/models/shared/oassummary.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/openapi_diff_bump_type.rb +1 -1
- data/lib/open_api_sdk/models/shared/organization.rb +45 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/organizationusage.rb +9 -9
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/organizationusageresponse.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/preflightrequest.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/preflighttoken.rb +3 -3
- data/lib/open_api_sdk/models/shared/relationship.rb +27 -0
- data/lib/open_api_sdk/models/shared/report.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/requestmetadata.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/revision.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/schema.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/schemadiff.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/security.rb +7 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/shorturl.rb +4 -4
- data/lib/open_api_sdk/models/shared/ssometadata.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/suggestion_type.rb +1 -1
- data/lib/open_api_sdk/models/shared/suggestoptsold.rb +27 -0
- data/lib/open_api_sdk/models/shared/suggestrequestbody.rb +30 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/suggestrequestbody_suggestion_type.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/tag.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/targetsdk.rb +52 -40
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/type.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/unboundedrequest.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/user.rb +19 -19
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/v2descriptor.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/valuechange.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/versionmetadata.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/versionmetadata_input.rb +4 -4
- data/lib/open_api_sdk/models/shared/workflowdocument.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/workspace.rb +12 -12
- data/lib/open_api_sdk/models/shared/workspaceandorganization.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspacefeatureflagresponse.rb +24 -0
- data/lib/open_api_sdk/models/shared/workspaceinviteresponse.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspaces.rb +33 -0
- data/lib/open_api_sdk/models/shared/workspacesettings.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspaceteamresponse.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspacetoken.rb +48 -0
- data/lib/open_api_sdk/models/shared.rb +90 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/organizations.rb +94 -48
- data/lib/{speakeasy_client_sdk → open_api_sdk}/reports.rb +50 -42
- data/lib/{speakeasy_client_sdk → open_api_sdk}/requests.rb +58 -49
- data/lib/{speakeasy_client_sdk → open_api_sdk}/schemas.rb +157 -119
- data/lib/{speakeasy_client_sdk → open_api_sdk}/sdkconfiguration.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/shorturls.rb +5 -5
- data/lib/{speakeasy_client_sdk/sdk.rb → open_api_sdk/speakeasyclientsdk.rb} +10 -9
- data/lib/{speakeasy_client_sdk/apiendpoints.rb → open_api_sdk/speakeasyclientsdk_apiendpoints.rb} +138 -145
- data/lib/{speakeasy_client_sdk → open_api_sdk}/suggest.rb +38 -21
- data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/metadata_fields.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/utils.rb +1 -1
- data/lib/open_api_sdk/workspaces.rb +654 -0
- data/lib/speakeasy_client_sdk_ruby.rb +24 -23
- metadata +263 -233
- data/lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +0 -39
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +0 -39
- data/lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +0 -24
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations.rb +0 -144
- data/lib/speakeasy_client_sdk/models/shared/accesstoken.rb +0 -36
- data/lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/manifest.rb +0 -36
- data/lib/speakeasy_client_sdk/models/shared/oassummary.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/organization.rb +0 -45
- data/lib/speakeasy_client_sdk/models/shared/report.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/suggestoptsold.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/suggestrequestbody.rb +0 -30
- data/lib/speakeasy_client_sdk/models/shared/workflowdocument.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/workspacefeatureflagresponse.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/workspaces.rb +0 -33
- data/lib/speakeasy_client_sdk/models/shared.rb +0 -83
- data/lib/speakeasy_client_sdk/workspaces.rb +0 -105
- /data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/t.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f5927380a6ad793886453e7f778b41fdab43d1322527e0f2541756806eab40b
|
4
|
+
data.tar.gz: ae1497fd7a37c39d3224a0521c3b0630933922815ede71c53ec885e9aa83d90f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d2e7573e03a33dde35027213bd26aa34f3b4cbf49949a7a7aaf7b3337d4fb3577b33327db0de16441b7a04b361889a6871891e0e20761336f4731a3402ec1f
|
7
|
+
data.tar.gz: 6bc07d991c90867e104ba33a61242f1c80d3ecfab7c57cee5621371f3aca8225e21cd262e23dcb13854403dd8a96ac2282f61943e4db6a0f77e3d353571d420c
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). 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 Apiendpoints
|
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(api_id: ::String).returns(::OpenApiSDK::Operations::GetAllApiEndpointsResponse) }
|
23
|
+
def list(api_id)
|
24
|
+
# list - Get all Api endpoints for a particular apiID.
|
25
|
+
request = ::OpenApiSDK::Operations::GetAllApiEndpointsRequest.new(
|
26
|
+
|
27
|
+
api_id: api_id
|
28
|
+
)
|
29
|
+
url, params = @sdk_configuration.get_server_details
|
30
|
+
base_url = Utils.template_url(url, params)
|
31
|
+
url = Utils.generate_url(
|
32
|
+
::OpenApiSDK::Operations::GetAllApiEndpointsRequest,
|
33
|
+
base_url,
|
34
|
+
'/v1/apis/{apiID}/api_endpoints',
|
35
|
+
request,
|
36
|
+
@sdk_configuration.globals
|
37
|
+
)
|
38
|
+
headers = {}
|
39
|
+
headers['Accept'] = 'application/json'
|
40
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
41
|
+
|
42
|
+
r = @sdk_configuration.client.get(url) do |req|
|
43
|
+
req.headers = headers
|
44
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
45
|
+
end
|
46
|
+
|
47
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
48
|
+
|
49
|
+
res = ::OpenApiSDK::Operations::GetAllApiEndpointsResponse.new(
|
50
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
51
|
+
)
|
52
|
+
if r.status >= 200 && r.status < 300
|
53
|
+
if Utils.match_content_type(content_type, 'application/json')
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::ApiEndpoint])
|
55
|
+
res.api_endpoints = out
|
56
|
+
end
|
57
|
+
elsif r.status >= 400 && r.status < 500
|
58
|
+
if Utils.match_content_type(content_type, 'application/json')
|
59
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
60
|
+
res.error = out
|
61
|
+
end
|
62
|
+
end
|
63
|
+
res
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -7,7 +7,7 @@ require 'faraday'
|
|
7
7
|
require 'faraday/multipart'
|
8
8
|
require 'sorbet-runtime'
|
9
9
|
|
10
|
-
module
|
10
|
+
module OpenApiSDK
|
11
11
|
extend T::Sig
|
12
12
|
class Apis
|
13
13
|
extend T::Sig
|
@@ -19,38 +19,43 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(
|
23
|
-
def
|
24
|
-
#
|
25
|
-
#
|
22
|
+
sig { params(op: T.nilable(::OpenApiSDK::Operations::Op), metadata: T.nilable(T::Hash[Symbol, T::Array[::String]])).returns(::OpenApiSDK::Operations::GetApisResponse) }
|
23
|
+
def get_all(op = nil, metadata = nil)
|
24
|
+
# get_all - Get a list of Apis for a given workspace
|
25
|
+
# Get a list of all Apis and their versions for a given workspace.
|
26
|
+
# Supports filtering the APIs based on metadata attributes.
|
27
|
+
request = ::OpenApiSDK::Operations::GetApisRequest.new(
|
28
|
+
|
29
|
+
op: op,
|
30
|
+
metadata: metadata
|
31
|
+
)
|
26
32
|
url, params = @sdk_configuration.get_server_details
|
27
33
|
base_url = Utils.template_url(url, params)
|
28
|
-
url =
|
29
|
-
::SpeakeasyClientSDK::Operations::DeleteApiRequest,
|
30
|
-
base_url,
|
31
|
-
'/v1/apis/{apiID}/version/{versionID}',
|
32
|
-
request,
|
33
|
-
@sdk_configuration.globals
|
34
|
-
)
|
34
|
+
url = "#{base_url}/v1/apis"
|
35
35
|
headers = {}
|
36
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetApisRequest, request, @sdk_configuration.globals)
|
36
37
|
headers['Accept'] = 'application/json'
|
37
38
|
headers['user-agent'] = @sdk_configuration.user_agent
|
38
39
|
|
39
|
-
r = @sdk_configuration.client.
|
40
|
+
r = @sdk_configuration.client.get(url) do |req|
|
40
41
|
req.headers = headers
|
42
|
+
req.params = query_params
|
41
43
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
42
44
|
end
|
43
45
|
|
44
46
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
45
47
|
|
46
|
-
res = ::
|
48
|
+
res = ::OpenApiSDK::Operations::GetApisResponse.new(
|
47
49
|
status_code: r.status, content_type: content_type, raw_response: r
|
48
50
|
)
|
49
|
-
if r.status
|
50
|
-
|
51
|
-
|
51
|
+
if r.status >= 200 && r.status < 300
|
52
|
+
if Utils.match_content_type(content_type, 'application/json')
|
53
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::Api])
|
54
|
+
res.apis = out
|
55
|
+
end
|
56
|
+
elsif r.status >= 400 && r.status < 500
|
52
57
|
if Utils.match_content_type(content_type, 'application/json')
|
53
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
58
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
54
59
|
res.error = out
|
55
60
|
end
|
56
61
|
end
|
@@ -58,43 +63,50 @@ module SpeakeasyClientSDK
|
|
58
63
|
end
|
59
64
|
|
60
65
|
|
61
|
-
sig { params(
|
62
|
-
def
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
+
sig { params(api_id: ::String, op: T.nilable(::OpenApiSDK::Operations::QueryParamOp), metadata: T.nilable(T::Hash[Symbol, T::Array[::String]])).returns(::OpenApiSDK::Operations::GetAllApiVersionsResponse) }
|
67
|
+
def get_all_versions(api_id, op = nil, metadata = nil)
|
68
|
+
# get_all_versions - Get all Api versions for a particular ApiEndpoint.
|
69
|
+
# Get all Api versions for a particular ApiEndpoint.
|
70
|
+
# Supports filtering the versions based on metadata attributes.
|
71
|
+
request = ::OpenApiSDK::Operations::GetAllApiVersionsRequest.new(
|
72
|
+
|
73
|
+
api_id: api_id,
|
74
|
+
op: op,
|
75
|
+
metadata: metadata
|
76
|
+
)
|
66
77
|
url, params = @sdk_configuration.get_server_details
|
67
78
|
base_url = Utils.template_url(url, params)
|
68
79
|
url = Utils.generate_url(
|
69
|
-
::
|
80
|
+
::OpenApiSDK::Operations::GetAllApiVersionsRequest,
|
70
81
|
base_url,
|
71
|
-
'/v1/apis/{apiID}
|
82
|
+
'/v1/apis/{apiID}',
|
72
83
|
request,
|
73
84
|
@sdk_configuration.globals
|
74
85
|
)
|
75
86
|
headers = {}
|
87
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetAllApiVersionsRequest, request, @sdk_configuration.globals)
|
76
88
|
headers['Accept'] = 'application/json'
|
77
89
|
headers['user-agent'] = @sdk_configuration.user_agent
|
78
90
|
|
79
91
|
r = @sdk_configuration.client.get(url) do |req|
|
80
92
|
req.headers = headers
|
93
|
+
req.params = query_params
|
81
94
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
82
95
|
end
|
83
96
|
|
84
97
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
85
98
|
|
86
|
-
res = ::
|
99
|
+
res = ::OpenApiSDK::Operations::GetAllApiVersionsResponse.new(
|
87
100
|
status_code: r.status, content_type: content_type, raw_response: r
|
88
101
|
)
|
89
|
-
if r.status
|
102
|
+
if r.status >= 200 && r.status < 300
|
90
103
|
if Utils.match_content_type(content_type, 'application/json')
|
91
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
92
|
-
res.
|
104
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::Api])
|
105
|
+
res.apis = out
|
93
106
|
end
|
94
|
-
|
95
|
-
|
107
|
+
elsif r.status >= 400 && r.status < 500
|
96
108
|
if Utils.match_content_type(content_type, 'application/json')
|
97
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
109
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
98
110
|
res.error = out
|
99
111
|
end
|
100
112
|
end
|
@@ -102,40 +114,57 @@ module SpeakeasyClientSDK
|
|
102
114
|
end
|
103
115
|
|
104
116
|
|
105
|
-
sig { params(
|
106
|
-
def
|
107
|
-
#
|
108
|
-
#
|
117
|
+
sig { params(api_id: ::String, api: ::OpenApiSDK::Shared::ApiInput).returns(::OpenApiSDK::Operations::UpsertApiResponse) }
|
118
|
+
def upsert(api_id, api)
|
119
|
+
# upsert - Upsert an Api
|
120
|
+
# Upsert an Api. If the Api does not exist, it will be created.
|
121
|
+
# If the Api exists, it will be updated.
|
122
|
+
request = ::OpenApiSDK::Operations::UpsertApiRequest.new(
|
123
|
+
|
124
|
+
api_id: api_id,
|
125
|
+
api: api
|
126
|
+
)
|
109
127
|
url, params = @sdk_configuration.get_server_details
|
110
128
|
base_url = Utils.template_url(url, params)
|
111
129
|
url = Utils.generate_url(
|
112
|
-
::
|
130
|
+
::OpenApiSDK::Operations::UpsertApiRequest,
|
113
131
|
base_url,
|
114
|
-
'/v1/apis/{apiID}
|
132
|
+
'/v1/apis/{apiID}',
|
115
133
|
request,
|
116
134
|
@sdk_configuration.globals
|
117
135
|
)
|
118
136
|
headers = {}
|
119
|
-
|
137
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :api, :json)
|
138
|
+
headers['content-type'] = req_content_type
|
139
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
140
|
+
headers['Accept'] = 'application/json'
|
120
141
|
headers['user-agent'] = @sdk_configuration.user_agent
|
121
142
|
|
122
|
-
r = @sdk_configuration.client.
|
143
|
+
r = @sdk_configuration.client.put(url) do |req|
|
123
144
|
req.headers = headers
|
124
145
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
146
|
+
if form
|
147
|
+
req.body = Utils.encode_form(form)
|
148
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
149
|
+
req.body = URI.encode_www_form(data)
|
150
|
+
else
|
151
|
+
req.body = data
|
152
|
+
end
|
125
153
|
end
|
126
154
|
|
127
155
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
128
156
|
|
129
|
-
res = ::
|
157
|
+
res = ::OpenApiSDK::Operations::UpsertApiResponse.new(
|
130
158
|
status_code: r.status, content_type: content_type, raw_response: r
|
131
159
|
)
|
132
|
-
if r.status
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
160
|
+
if r.status >= 200 && r.status < 300
|
161
|
+
if Utils.match_content_type(content_type, 'application/json')
|
162
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Api)
|
163
|
+
res.api = out
|
164
|
+
end
|
165
|
+
elsif r.status >= 400 && r.status < 500
|
137
166
|
if Utils.match_content_type(content_type, 'application/json')
|
138
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
167
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
139
168
|
res.error = out
|
140
169
|
end
|
141
170
|
end
|
@@ -143,45 +172,42 @@ module SpeakeasyClientSDK
|
|
143
172
|
end
|
144
173
|
|
145
174
|
|
146
|
-
sig { params(
|
147
|
-
def
|
148
|
-
#
|
149
|
-
#
|
150
|
-
|
175
|
+
sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::DeleteApiResponse) }
|
176
|
+
def delete(api_id, version_id)
|
177
|
+
# delete - Delete an Api.
|
178
|
+
# Delete a particular version of an Api. The will also delete all associated ApiEndpoints, Metadata, Schemas & Request Logs (if using a Postgres datastore).
|
179
|
+
request = ::OpenApiSDK::Operations::DeleteApiRequest.new(
|
180
|
+
|
181
|
+
api_id: api_id,
|
182
|
+
version_id: version_id
|
183
|
+
)
|
151
184
|
url, params = @sdk_configuration.get_server_details
|
152
185
|
base_url = Utils.template_url(url, params)
|
153
186
|
url = Utils.generate_url(
|
154
|
-
::
|
187
|
+
::OpenApiSDK::Operations::DeleteApiRequest,
|
155
188
|
base_url,
|
156
|
-
'/v1/apis/{apiID}',
|
189
|
+
'/v1/apis/{apiID}/version/{versionID}',
|
157
190
|
request,
|
158
191
|
@sdk_configuration.globals
|
159
192
|
)
|
160
193
|
headers = {}
|
161
|
-
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetAllApiVersionsRequest, request, @sdk_configuration.globals)
|
162
194
|
headers['Accept'] = 'application/json'
|
163
195
|
headers['user-agent'] = @sdk_configuration.user_agent
|
164
196
|
|
165
|
-
r = @sdk_configuration.client.
|
197
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
166
198
|
req.headers = headers
|
167
|
-
req.params = query_params
|
168
199
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
169
200
|
end
|
170
201
|
|
171
202
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
172
203
|
|
173
|
-
res = ::
|
204
|
+
res = ::OpenApiSDK::Operations::DeleteApiResponse.new(
|
174
205
|
status_code: r.status, content_type: content_type, raw_response: r
|
175
206
|
)
|
176
|
-
if r.status
|
177
|
-
|
178
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::Api])
|
179
|
-
res.apis = out
|
180
|
-
end
|
181
|
-
else
|
182
|
-
|
207
|
+
if r.status >= 200 && r.status < 300
|
208
|
+
elsif r.status >= 400 && r.status < 500
|
183
209
|
if Utils.match_content_type(content_type, 'application/json')
|
184
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
210
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
185
211
|
res.error = out
|
186
212
|
end
|
187
213
|
end
|
@@ -189,39 +215,47 @@ module SpeakeasyClientSDK
|
|
189
215
|
end
|
190
216
|
|
191
217
|
|
192
|
-
sig { params(
|
193
|
-
def
|
194
|
-
#
|
195
|
-
#
|
196
|
-
#
|
218
|
+
sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::GenerateOpenApiSpecResponse) }
|
219
|
+
def generate_open_api(api_id, version_id)
|
220
|
+
# generate_open_api - Generate an OpenAPI specification for a particular Api.
|
221
|
+
# This endpoint will generate any missing operations in any registered OpenAPI document if the operation does not already exist in the document.
|
222
|
+
# Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
|
223
|
+
request = ::OpenApiSDK::Operations::GenerateOpenApiSpecRequest.new(
|
224
|
+
|
225
|
+
api_id: api_id,
|
226
|
+
version_id: version_id
|
227
|
+
)
|
197
228
|
url, params = @sdk_configuration.get_server_details
|
198
229
|
base_url = Utils.template_url(url, params)
|
199
|
-
url =
|
230
|
+
url = Utils.generate_url(
|
231
|
+
::OpenApiSDK::Operations::GenerateOpenApiSpecRequest,
|
232
|
+
base_url,
|
233
|
+
'/v1/apis/{apiID}/version/{versionID}/generate/openapi',
|
234
|
+
request,
|
235
|
+
@sdk_configuration.globals
|
236
|
+
)
|
200
237
|
headers = {}
|
201
|
-
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetApisRequest, request, @sdk_configuration.globals)
|
202
238
|
headers['Accept'] = 'application/json'
|
203
239
|
headers['user-agent'] = @sdk_configuration.user_agent
|
204
240
|
|
205
241
|
r = @sdk_configuration.client.get(url) do |req|
|
206
242
|
req.headers = headers
|
207
|
-
req.params = query_params
|
208
243
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
209
244
|
end
|
210
245
|
|
211
246
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
212
247
|
|
213
|
-
res = ::
|
248
|
+
res = ::OpenApiSDK::Operations::GenerateOpenApiSpecResponse.new(
|
214
249
|
status_code: r.status, content_type: content_type, raw_response: r
|
215
250
|
)
|
216
|
-
if r.status
|
251
|
+
if r.status >= 200 && r.status < 300
|
217
252
|
if Utils.match_content_type(content_type, 'application/json')
|
218
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
219
|
-
res.
|
253
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GenerateOpenApiSpecDiff)
|
254
|
+
res.generate_open_api_spec_diff = out
|
220
255
|
end
|
221
|
-
|
222
|
-
|
256
|
+
elsif r.status >= 400 && r.status < 500
|
223
257
|
if Utils.match_content_type(content_type, 'application/json')
|
224
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
258
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
225
259
|
res.error = out
|
226
260
|
end
|
227
261
|
end
|
@@ -229,53 +263,44 @@ module SpeakeasyClientSDK
|
|
229
263
|
end
|
230
264
|
|
231
265
|
|
232
|
-
sig { params(
|
233
|
-
def
|
234
|
-
#
|
235
|
-
#
|
236
|
-
|
266
|
+
sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::GeneratePostmanCollectionResponse) }
|
267
|
+
def generate_postman(api_id, version_id)
|
268
|
+
# generate_postman - Generate a Postman collection for a particular Api.
|
269
|
+
# Generates a postman collection containing all endpoints for a particular API. Includes variables produced for any path/query/header parameters included in the OpenAPI document.
|
270
|
+
request = ::OpenApiSDK::Operations::GeneratePostmanCollectionRequest.new(
|
271
|
+
|
272
|
+
api_id: api_id,
|
273
|
+
version_id: version_id
|
274
|
+
)
|
237
275
|
url, params = @sdk_configuration.get_server_details
|
238
276
|
base_url = Utils.template_url(url, params)
|
239
277
|
url = Utils.generate_url(
|
240
|
-
::
|
278
|
+
::OpenApiSDK::Operations::GeneratePostmanCollectionRequest,
|
241
279
|
base_url,
|
242
|
-
'/v1/apis/{apiID}',
|
280
|
+
'/v1/apis/{apiID}/version/{versionID}/generate/postman',
|
243
281
|
request,
|
244
282
|
@sdk_configuration.globals
|
245
283
|
)
|
246
284
|
headers = {}
|
247
|
-
|
248
|
-
headers['content-type'] = req_content_type
|
249
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
250
|
-
headers['Accept'] = 'application/json'
|
285
|
+
headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
|
251
286
|
headers['user-agent'] = @sdk_configuration.user_agent
|
252
287
|
|
253
|
-
r = @sdk_configuration.client.
|
288
|
+
r = @sdk_configuration.client.get(url) do |req|
|
254
289
|
req.headers = headers
|
255
290
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
256
|
-
if form
|
257
|
-
req.body = Utils.encode_form(form)
|
258
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
259
|
-
req.body = URI.encode_www_form(data)
|
260
|
-
else
|
261
|
-
req.body = data
|
262
|
-
end
|
263
291
|
end
|
264
292
|
|
265
293
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
266
294
|
|
267
|
-
res = ::
|
295
|
+
res = ::OpenApiSDK::Operations::GeneratePostmanCollectionResponse.new(
|
268
296
|
status_code: r.status, content_type: content_type, raw_response: r
|
269
297
|
)
|
270
|
-
if r.status
|
271
|
-
if Utils.match_content_type(content_type, 'application/
|
272
|
-
|
273
|
-
|
274
|
-
end
|
275
|
-
else
|
276
|
-
|
298
|
+
if r.status >= 200 && r.status < 300
|
299
|
+
res.postman_collection = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
300
|
+
|
301
|
+
elsif r.status >= 400 && r.status < 500
|
277
302
|
if Utils.match_content_type(content_type, 'application/json')
|
278
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
303
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
279
304
|
res.error = out
|
280
305
|
end
|
281
306
|
end
|