speakeasy_client_sdk_ruby 4.2.15 → 4.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/apiendpoints.rb +1 -1
  3. data/lib/speakeasy_client_sdk/apis.rb +1 -1
  4. data/lib/speakeasy_client_sdk/artifacts.rb +1 -1
  5. data/lib/speakeasy_client_sdk/auth.rb +1 -1
  6. data/lib/speakeasy_client_sdk/embeds.rb +1 -1
  7. data/lib/speakeasy_client_sdk/events.rb +1 -1
  8. data/lib/speakeasy_client_sdk/github.rb +1 -1
  9. data/lib/speakeasy_client_sdk/metadata.rb +1 -1
  10. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_request.rb +1 -1
  11. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_requestbody.rb +1 -1
  12. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_response.rb +1 -1
  13. data/lib/speakeasy_client_sdk/models/operations/checkaccess_request.rb +1 -1
  14. data/lib/speakeasy_client_sdk/models/operations/checkaccess_response.rb +1 -1
  15. data/lib/speakeasy_client_sdk/models/operations/configurecodesamples_response.rb +1 -1
  16. data/lib/speakeasy_client_sdk/models/operations/configuremintlifyrepo_response.rb +1 -1
  17. data/lib/speakeasy_client_sdk/models/operations/configuretarget_response.rb +1 -1
  18. data/lib/speakeasy_client_sdk/models/operations/create_requestbody.rb +1 -1
  19. data/lib/speakeasy_client_sdk/models/operations/create_response.rb +1 -1
  20. data/lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb +1 -1
  21. data/lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb +1 -1
  22. data/lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb +1 -1
  23. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb +1 -1
  24. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +1 -1
  25. data/lib/speakeasy_client_sdk/models/operations/deleteschema_request.rb +1 -1
  26. data/lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb +1 -1
  27. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb +1 -1
  28. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb +1 -1
  29. data/lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb +1 -1
  30. data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +1 -1
  31. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb +1 -1
  32. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +1 -1
  33. data/lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb +1 -1
  34. data/lib/speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb +1 -1
  35. data/lib/speakeasy_client_sdk/models/operations/file.rb +1 -1
  36. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb +1 -1
  37. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb +1 -1
  38. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_request.rb +1 -1
  39. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_response.rb +1 -1
  40. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb +1 -1
  41. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb +1 -1
  42. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb +1 -1
  43. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb +1 -1
  44. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb +1 -1
  45. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb +1 -1
  46. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb +1 -1
  47. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb +1 -1
  48. data/lib/speakeasy_client_sdk/models/operations/getaccesstoken_request.rb +1 -1
  49. data/lib/speakeasy_client_sdk/models/operations/getaccesstoken_response.rb +1 -1
  50. data/lib/speakeasy_client_sdk/models/operations/getaction_request.rb +1 -1
  51. data/lib/speakeasy_client_sdk/models/operations/getaction_response.rb +1 -1
  52. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb +1 -1
  53. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +1 -1
  54. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb +1 -1
  55. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +1 -1
  56. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb +1 -1
  57. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +1 -1
  58. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_request.rb +1 -1
  59. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb +1 -1
  60. data/lib/speakeasy_client_sdk/models/operations/getapis_request.rb +1 -1
  61. data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +1 -1
  62. data/lib/speakeasy_client_sdk/models/operations/getblob_request.rb +1 -1
  63. data/lib/speakeasy_client_sdk/models/operations/getblob_response.rb +1 -1
  64. data/lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb +1 -1
  65. data/lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_response.rb +1 -1
  66. data/lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_signedaccess.rb +1 -1
  67. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb +1 -1
  68. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb +1 -1
  69. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb +1 -1
  70. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb +1 -1
  71. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb +1 -1
  72. data/lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb +1 -1
  73. data/lib/speakeasy_client_sdk/models/operations/getmanifest_response.rb +1 -1
  74. data/lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb +1 -1
  75. data/lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb +1 -1
  76. data/lib/speakeasy_client_sdk/models/operations/getoassummary_response.rb +1 -1
  77. data/lib/speakeasy_client_sdk/models/operations/getorganization_request.rb +24 -0
  78. data/lib/speakeasy_client_sdk/models/operations/getorganization_response.rb +36 -0
  79. data/lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb +1 -1
  80. data/lib/speakeasy_client_sdk/models/operations/getorganizationusage_response.rb +1 -1
  81. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb +1 -1
  82. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb +1 -1
  83. data/lib/speakeasy_client_sdk/models/operations/getrevisions_request.rb +1 -1
  84. data/lib/speakeasy_client_sdk/models/operations/getrevisions_response.rb +1 -1
  85. data/lib/speakeasy_client_sdk/models/operations/getschema_request.rb +1 -1
  86. data/lib/speakeasy_client_sdk/models/operations/getschema_response.rb +1 -1
  87. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb +1 -1
  88. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_response.rb +1 -1
  89. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_request.rb +1 -1
  90. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb +1 -1
  91. data/lib/speakeasy_client_sdk/models/operations/getschemas_request.rb +1 -1
  92. data/lib/speakeasy_client_sdk/models/operations/getschemas_response.rb +1 -1
  93. data/lib/speakeasy_client_sdk/models/operations/gettags_request.rb +1 -1
  94. data/lib/speakeasy_client_sdk/models/operations/gettags_response.rb +1 -1
  95. data/lib/speakeasy_client_sdk/models/operations/getuser_response.rb +1 -1
  96. data/lib/speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb +1 -1
  97. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb +1 -1
  98. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +1 -1
  99. data/lib/speakeasy_client_sdk/models/operations/getworkspace_request.rb +24 -0
  100. data/lib/speakeasy_client_sdk/models/operations/getworkspace_response.rb +36 -0
  101. data/lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_request.rb +1 -1
  102. data/lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb +1 -1
  103. data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_request.rb +1 -1
  104. data/lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_response.rb +1 -1
  105. data/lib/speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb +1 -1
  106. data/lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb +1 -1
  107. data/lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb +1 -1
  108. data/lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_response.rb +1 -1
  109. data/lib/speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb +1 -1
  110. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb +1 -1
  111. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb +1 -1
  112. data/lib/speakeasy_client_sdk/models/operations/op.rb +1 -1
  113. data/lib/speakeasy_client_sdk/models/operations/posttags_request.rb +1 -1
  114. data/lib/speakeasy_client_sdk/models/operations/posttags_response.rb +1 -1
  115. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +1 -1
  116. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb +1 -1
  117. data/lib/speakeasy_client_sdk/models/operations/preflight_response.rb +1 -1
  118. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +1 -1
  119. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +1 -1
  120. data/lib/speakeasy_client_sdk/models/operations/queryparam_op.rb +1 -1
  121. data/lib/speakeasy_client_sdk/models/operations/registerschema_file.rb +1 -1
  122. data/lib/speakeasy_client_sdk/models/operations/registerschema_request.rb +1 -1
  123. data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +1 -1
  124. data/lib/speakeasy_client_sdk/models/operations/registerschema_response.rb +1 -1
  125. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb +1 -1
  126. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +1 -1
  127. data/lib/speakeasy_client_sdk/models/operations/schema.rb +1 -1
  128. data/lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_request.rb +1 -1
  129. data/lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_response.rb +1 -1
  130. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_request.rb +1 -1
  131. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_requestbody.rb +1 -1
  132. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_response.rb +1 -1
  133. data/lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_request.rb +1 -1
  134. data/lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_response.rb +1 -1
  135. data/lib/speakeasy_client_sdk/models/operations/triggeraction_response.rb +1 -1
  136. data/lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb +1 -1
  137. data/lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb +1 -1
  138. data/lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb +1 -1
  139. data/lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb +1 -1
  140. data/lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb +1 -1
  141. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb +1 -1
  142. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb +1 -1
  143. data/lib/speakeasy_client_sdk/models/operations/validateapikey_response.rb +1 -1
  144. data/lib/speakeasy_client_sdk/models/operations.rb +5 -1
  145. data/lib/speakeasy_client_sdk/models/shared/accessdetails.rb +1 -1
  146. data/lib/speakeasy_client_sdk/models/shared/accesstoken.rb +1 -1
  147. data/lib/speakeasy_client_sdk/models/shared/accesstoken_account_type.rb +1 -1
  148. data/lib/speakeasy_client_sdk/models/shared/accesstoken_user.rb +1 -1
  149. data/lib/speakeasy_client_sdk/models/shared/account_type.rb +1 -1
  150. data/lib/speakeasy_client_sdk/models/shared/addtags.rb +1 -1
  151. data/lib/speakeasy_client_sdk/models/shared/annotations.rb +1 -1
  152. data/lib/speakeasy_client_sdk/models/shared/api.rb +1 -1
  153. data/lib/speakeasy_client_sdk/models/shared/api_input.rb +1 -1
  154. data/lib/speakeasy_client_sdk/models/shared/apiendpoint.rb +1 -1
  155. data/lib/speakeasy_client_sdk/models/shared/apiendpoint_input.rb +1 -1
  156. data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +1 -1
  157. data/lib/speakeasy_client_sdk/models/shared/auth.rb +1 -1
  158. data/lib/speakeasy_client_sdk/models/shared/boundedrequest.rb +1 -1
  159. data/lib/speakeasy_client_sdk/models/shared/claims.rb +1 -1
  160. data/lib/speakeasy_client_sdk/models/shared/clievent.rb +1 -1
  161. data/lib/speakeasy_client_sdk/models/shared/depth_style.rb +1 -1
  162. data/lib/speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb +1 -1
  163. data/lib/speakeasy_client_sdk/models/shared/embedtoken.rb +1 -1
  164. data/lib/speakeasy_client_sdk/models/shared/error.rb +1 -1
  165. data/lib/speakeasy_client_sdk/models/shared/featureflag.rb +1 -1
  166. data/lib/speakeasy_client_sdk/models/shared/filter.rb +1 -1
  167. data/lib/speakeasy_client_sdk/models/shared/filters.rb +1 -1
  168. data/lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb +1 -1
  169. data/lib/speakeasy_client_sdk/models/shared/generateopenapispecdiff.rb +1 -1
  170. data/lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb +1 -1
  171. data/lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb +1 -1
  172. data/lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb +1 -1
  173. data/lib/speakeasy_client_sdk/models/shared/githubconfigurecodesamplesrequest.rb +1 -1
  174. data/lib/speakeasy_client_sdk/models/shared/githubconfigurecodesamplesresponse.rb +1 -1
  175. data/lib/speakeasy_client_sdk/models/shared/githubconfiguremintlifyreporequest.rb +1 -1
  176. data/lib/speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb +1 -1
  177. data/lib/speakeasy_client_sdk/models/shared/githubgetactionresponse.rb +1 -1
  178. data/lib/speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb +1 -1
  179. data/lib/speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb +1 -1
  180. data/lib/speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb +1 -1
  181. data/lib/speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb +1 -1
  182. data/lib/speakeasy_client_sdk/models/shared/interactiontype.rb +1 -1
  183. data/lib/speakeasy_client_sdk/models/shared/level.rb +1 -1
  184. data/lib/speakeasy_client_sdk/models/shared/license.rb +1 -1
  185. data/lib/speakeasy_client_sdk/models/shared/manifest.rb +1 -1
  186. data/lib/speakeasy_client_sdk/models/shared/namespace.rb +1 -1
  187. data/lib/speakeasy_client_sdk/models/shared/oasinfo.rb +1 -1
  188. data/lib/speakeasy_client_sdk/models/shared/oasoperation.rb +1 -1
  189. data/lib/speakeasy_client_sdk/models/shared/oassummary.rb +1 -1
  190. data/lib/speakeasy_client_sdk/models/shared/openapi_diff_bump_type.rb +1 -1
  191. data/lib/speakeasy_client_sdk/models/shared/organization.rb +6 -3
  192. data/lib/speakeasy_client_sdk/models/shared/organization_account_type.rb +1 -1
  193. data/lib/speakeasy_client_sdk/models/shared/organizationusage.rb +1 -1
  194. data/lib/speakeasy_client_sdk/models/shared/organizationusageresponse.rb +1 -1
  195. data/lib/speakeasy_client_sdk/models/shared/preflightrequest.rb +1 -1
  196. data/lib/speakeasy_client_sdk/models/shared/preflighttoken.rb +1 -1
  197. data/lib/speakeasy_client_sdk/models/shared/report.rb +1 -1
  198. data/lib/speakeasy_client_sdk/models/shared/requestmetadata.rb +1 -1
  199. data/lib/speakeasy_client_sdk/models/shared/revision.rb +1 -1
  200. data/lib/speakeasy_client_sdk/models/shared/schema.rb +1 -1
  201. data/lib/speakeasy_client_sdk/models/shared/schemadiff.rb +1 -1
  202. data/lib/speakeasy_client_sdk/models/shared/security.rb +1 -1
  203. data/lib/speakeasy_client_sdk/models/shared/shorturl.rb +1 -1
  204. data/lib/speakeasy_client_sdk/models/shared/style.rb +1 -1
  205. data/lib/speakeasy_client_sdk/models/shared/suggestedoperationids.rb +1 -1
  206. data/lib/speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb +1 -1
  207. data/lib/speakeasy_client_sdk/models/shared/tag.rb +1 -1
  208. data/lib/speakeasy_client_sdk/models/shared/targetsdk.rb +1 -1
  209. data/lib/speakeasy_client_sdk/models/shared/type.rb +1 -1
  210. data/lib/speakeasy_client_sdk/models/shared/unboundedrequest.rb +1 -1
  211. data/lib/speakeasy_client_sdk/models/shared/user.rb +1 -1
  212. data/lib/speakeasy_client_sdk/models/shared/v2descriptor.rb +1 -1
  213. data/lib/speakeasy_client_sdk/models/shared/valuechange.rb +1 -1
  214. data/lib/speakeasy_client_sdk/models/shared/versionmetadata.rb +1 -1
  215. data/lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb +1 -1
  216. data/lib/speakeasy_client_sdk/models/shared/workflowdocument.rb +1 -1
  217. data/lib/speakeasy_client_sdk/models/shared/workspace.rb +51 -0
  218. data/lib/speakeasy_client_sdk/models/shared/workspaces.rb +1 -1
  219. data/lib/speakeasy_client_sdk/models/shared.rb +4 -3
  220. data/lib/speakeasy_client_sdk/organizations.rb +44 -1
  221. data/lib/speakeasy_client_sdk/reports.rb +1 -1
  222. data/lib/speakeasy_client_sdk/requests.rb +1 -1
  223. data/lib/speakeasy_client_sdk/schemas.rb +1 -1
  224. data/lib/speakeasy_client_sdk/sdk.rb +3 -2
  225. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +4 -4
  226. data/lib/speakeasy_client_sdk/shorturls.rb +1 -1
  227. data/lib/speakeasy_client_sdk/suggest.rb +1 -1
  228. data/lib/speakeasy_client_sdk/utils/metadata_fields.rb +1 -1
  229. data/lib/speakeasy_client_sdk/utils/t.rb +1 -1
  230. data/lib/speakeasy_client_sdk/utils/utils.rb +1 -1
  231. data/lib/speakeasy_client_sdk/workspaces.rb +64 -0
  232. data/lib/speakeasy_client_sdk_ruby.rb +2 -1
  233. metadata +8 -2
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -52,6 +52,49 @@ module SpeakeasyClientSDK
52
52
  end
53
53
 
54
54
 
55
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetOrganizationRequest)).returns(::SpeakeasyClientSDK::Operations::GetOrganizationResponse) }
56
+ def get_organization(request)
57
+ # get_organization - Get organization
58
+ # Get information about a particular organization.
59
+ url, params = @sdk_configuration.get_server_details
60
+ base_url = Utils.template_url(url, params)
61
+ url = Utils.generate_url(
62
+ ::SpeakeasyClientSDK::Operations::GetOrganizationRequest,
63
+ base_url,
64
+ '/v1/organization/{organizationID}',
65
+ request,
66
+ @sdk_configuration.globals
67
+ )
68
+ headers = {}
69
+ headers['Accept'] = 'application/json'
70
+ headers['user-agent'] = @sdk_configuration.user_agent
71
+
72
+ r = @sdk_configuration.client.get(url) do |req|
73
+ req.headers = headers
74
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
75
+ end
76
+
77
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
78
+
79
+ res = ::SpeakeasyClientSDK::Operations::GetOrganizationResponse.new(
80
+ status_code: r.status, content_type: content_type, raw_response: r
81
+ )
82
+ if r.status == 200
83
+ if Utils.match_content_type(content_type, 'application/json')
84
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Organization)
85
+ res.organization = out
86
+ end
87
+ else
88
+
89
+ if Utils.match_content_type(content_type, 'application/json')
90
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
91
+ res.error = out
92
+ end
93
+ end
94
+ res
95
+ end
96
+
97
+
55
98
  sig { returns(::SpeakeasyClientSDK::Operations::GetOrganizationUsageResponse) }
56
99
  def get_organization_usage
57
100
  # get_organization_usage - Get billing usage summary for a particular organization
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -13,7 +13,7 @@ module SpeakeasyClientSDK
13
13
  class SDK
14
14
  extend T::Sig
15
15
 
16
- attr_accessor :apis, :api_endpoints, :metadata, :schemas, :artifacts, :auth, :requests, :github, :organizations, :reports, :short_ur_ls, :suggest, :embeds, :events
16
+ attr_accessor :apis, :api_endpoints, :metadata, :schemas, :artifacts, :auth, :requests, :github, :organizations, :reports, :short_ur_ls, :suggest, :embeds, :workspaces, :events
17
17
 
18
18
  sig do
19
19
  params(client: Faraday::Request,
@@ -102,6 +102,7 @@ module SpeakeasyClientSDK
102
102
  @short_ur_ls = ShortURLs.new(@sdk_configuration)
103
103
  @suggest = Suggest.new(@sdk_configuration)
104
104
  @embeds = Embeds.new(@sdk_configuration)
105
+ @workspaces = Workspaces.new(@sdk_configuration)
105
106
  @events = Events.new(@sdk_configuration)
106
107
  end
107
108
  end
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
41
41
  @globals = globals.nil? ? {} : globals
42
42
  @language = 'ruby'
43
43
  @openapi_doc_version = '0.4.0 .'
44
- @sdk_version = '4.2.15'
45
- @gen_version = '2.379.3'
46
- @user_agent = 'speakeasy-sdk/ruby 4.2.15 2.379.3 0.4.0 . speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.2.16'
45
+ @gen_version = '2.379.6'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.2.16 2.379.6 0.4.0 . speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -0,0 +1,64 @@
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 SpeakeasyClientSDK
11
+ extend T::Sig
12
+ class Workspaces
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(::SpeakeasyClientSDK::Operations::GetWorkspaceRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceResponse) }
23
+ def get_workspace(request)
24
+ # get_workspace - Get workspace
25
+ # Get information about a particular workspace.
26
+ url, params = @sdk_configuration.get_server_details
27
+ base_url = Utils.template_url(url, params)
28
+ url = Utils.generate_url(
29
+ ::SpeakeasyClientSDK::Operations::GetWorkspaceRequest,
30
+ base_url,
31
+ '/v1/workspace/{workspaceID}',
32
+ request,
33
+ @sdk_configuration.globals
34
+ )
35
+ headers = {}
36
+ headers['Accept'] = 'application/json'
37
+ headers['user-agent'] = @sdk_configuration.user_agent
38
+
39
+ r = @sdk_configuration.client.get(url) do |req|
40
+ req.headers = headers
41
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
42
+ end
43
+
44
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
45
+
46
+ res = ::SpeakeasyClientSDK::Operations::GetWorkspaceResponse.new(
47
+ status_code: r.status, content_type: content_type, raw_response: r
48
+ )
49
+ if r.status == 200
50
+ if Utils.match_content_type(content_type, 'application/json')
51
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Workspace)
52
+ res.workspace = out
53
+ end
54
+ else
55
+
56
+ if Utils.match_content_type(content_type, 'application/json')
57
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
58
+ res.error = out
59
+ end
60
+ end
61
+ res
62
+ end
63
+ end
64
+ end
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -20,6 +20,7 @@ module SpeakeasyClientSDK
20
20
  autoload :ShortURLs, 'speakeasy_client_sdk/shorturls'
21
21
  autoload :Suggest, 'speakeasy_client_sdk/suggest'
22
22
  autoload :Embeds, 'speakeasy_client_sdk/embeds'
23
+ autoload :Workspaces, 'speakeasy_client_sdk/workspaces'
23
24
  autoload :Events, 'speakeasy_client_sdk/events'
24
25
  end
25
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakeasy_client_sdk_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.15
4
+ version: 4.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-26 00:00:00.000000000 Z
11
+ date: 2024-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -218,6 +218,8 @@ files:
218
218
  - lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb
219
219
  - lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb
220
220
  - lib/speakeasy_client_sdk/models/operations/getoassummary_response.rb
221
+ - lib/speakeasy_client_sdk/models/operations/getorganization_request.rb
222
+ - lib/speakeasy_client_sdk/models/operations/getorganization_response.rb
221
223
  - lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb
222
224
  - lib/speakeasy_client_sdk/models/operations/getorganizationusage_response.rb
223
225
  - lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb
@@ -238,6 +240,8 @@ files:
238
240
  - lib/speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb
239
241
  - lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb
240
242
  - lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb
243
+ - lib/speakeasy_client_sdk/models/operations/getworkspace_request.rb
244
+ - lib/speakeasy_client_sdk/models/operations/getworkspace_response.rb
241
245
  - lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_request.rb
242
246
  - lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb
243
247
  - lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_request.rb
@@ -354,6 +358,7 @@ files:
354
358
  - lib/speakeasy_client_sdk/models/shared/versionmetadata.rb
355
359
  - lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb
356
360
  - lib/speakeasy_client_sdk/models/shared/workflowdocument.rb
361
+ - lib/speakeasy_client_sdk/models/shared/workspace.rb
357
362
  - lib/speakeasy_client_sdk/models/shared/workspaces.rb
358
363
  - lib/speakeasy_client_sdk/organizations.rb
359
364
  - lib/speakeasy_client_sdk/reports.rb
@@ -366,6 +371,7 @@ files:
366
371
  - lib/speakeasy_client_sdk/utils/metadata_fields.rb
367
372
  - lib/speakeasy_client_sdk/utils/t.rb
368
373
  - lib/speakeasy_client_sdk/utils/utils.rb
374
+ - lib/speakeasy_client_sdk/workspaces.rb
369
375
  - lib/speakeasy_client_sdk_ruby.rb
370
376
  homepage: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
371
377
  licenses: