speakeasy_client_sdk_ruby 2.2.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{sdk → speakeasy_client_sdk}/apiendpoints.rb +48 -39
  3. data/lib/{sdk → speakeasy_client_sdk}/apis.rb +37 -30
  4. data/lib/{sdk → speakeasy_client_sdk}/embeds.rb +17 -13
  5. data/lib/{sdk → speakeasy_client_sdk}/metadata.rb +19 -15
  6. data/lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb +27 -0
  7. data/lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb +33 -0
  8. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb +30 -0
  9. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
  10. data/lib/speakeasy_client_sdk/models/operations/deleteschema_request.rb +30 -0
  11. data/lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb +33 -0
  12. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb +33 -0
  13. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb +33 -0
  14. data/lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb +27 -0
  15. data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +39 -0
  16. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb +30 -0
  17. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +39 -0
  18. data/lib/speakeasy_client_sdk/models/operations/file.rb +27 -0
  19. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb +30 -0
  20. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb +36 -0
  21. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_request.rb +27 -0
  22. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_response.rb +36 -0
  23. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb +30 -0
  24. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb +36 -0
  25. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb +27 -0
  26. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb +36 -0
  27. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb +30 -0
  28. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb +36 -0
  29. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb +24 -0
  30. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb +36 -0
  31. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb +24 -0
  32. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +36 -0
  33. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb +30 -0
  34. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +36 -0
  35. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb +27 -0
  36. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +36 -0
  37. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_request.rb +30 -0
  38. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb +36 -0
  39. data/lib/speakeasy_client_sdk/models/operations/getapis_request.rb +27 -0
  40. data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +36 -0
  41. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb +30 -0
  42. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb +36 -0
  43. data/lib/{sdk/models/operations/getplugins.rb → speakeasy_client_sdk/models/operations/getplugins_response.rb} +7 -9
  44. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb +24 -0
  45. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb +36 -0
  46. data/lib/speakeasy_client_sdk/models/operations/getschema_request.rb +27 -0
  47. data/lib/speakeasy_client_sdk/models/operations/getschema_response.rb +36 -0
  48. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb +33 -0
  49. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_response.rb +36 -0
  50. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_request.rb +30 -0
  51. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb +36 -0
  52. data/lib/speakeasy_client_sdk/models/operations/getschemas_request.rb +27 -0
  53. data/lib/speakeasy_client_sdk/models/operations/getschemas_response.rb +36 -0
  54. data/lib/{sdk/models/operations/getvalidembedaccesstokens.rb → speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb} +7 -9
  55. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb +27 -0
  56. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +36 -0
  57. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb +30 -0
  58. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb +36 -0
  59. data/lib/speakeasy_client_sdk/models/operations/op.rb +24 -0
  60. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +24 -0
  61. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +36 -0
  62. data/lib/speakeasy_client_sdk/models/operations/queryparam_op.rb +24 -0
  63. data/lib/speakeasy_client_sdk/models/operations/registerschema_request.rb +30 -0
  64. data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +24 -0
  65. data/lib/speakeasy_client_sdk/models/operations/registerschema_response.rb +33 -0
  66. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb +24 -0
  67. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +33 -0
  68. data/lib/speakeasy_client_sdk/models/operations/runplugin_request.rb +27 -0
  69. data/lib/speakeasy_client_sdk/models/operations/runplugin_response.rb +36 -0
  70. data/lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb +27 -0
  71. data/lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb +36 -0
  72. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb +33 -0
  73. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb +36 -0
  74. data/lib/{sdk/models/operations/upsertplugin.rb → speakeasy_client_sdk/models/operations/upsertplugin_response.rb} +7 -10
  75. data/lib/{sdk/models/operations/validateapikey.rb → speakeasy_client_sdk/models/operations/validateapikey_response.rb} +6 -8
  76. data/lib/speakeasy_client_sdk/models/operations.rb +79 -0
  77. data/lib/{sdk → speakeasy_client_sdk}/models/shared/api.rb +9 -10
  78. data/lib/{sdk → speakeasy_client_sdk}/models/shared/api_input.rb +6 -7
  79. data/lib/speakeasy_client_sdk/models/shared/apiendpoint.rb +54 -0
  80. data/lib/{sdk → speakeasy_client_sdk}/models/shared/apiendpoint_input.rb +8 -9
  81. data/lib/speakeasy_client_sdk/models/shared/boundedrequest.rb +63 -0
  82. data/lib/{sdk → speakeasy_client_sdk}/models/shared/embedaccesstokenresponse.rb +3 -4
  83. data/lib/speakeasy_client_sdk/models/shared/embedtoken.rb +51 -0
  84. data/lib/{sdk → speakeasy_client_sdk}/models/shared/error.rb +4 -5
  85. data/lib/{sdk → speakeasy_client_sdk}/models/shared/filter.rb +5 -6
  86. data/lib/{sdk → speakeasy_client_sdk}/models/shared/filters.rb +6 -7
  87. data/lib/{sdk → speakeasy_client_sdk}/models/shared/generateopenapispecdiff.rb +4 -5
  88. data/lib/speakeasy_client_sdk/models/shared/plugin.rb +42 -0
  89. data/lib/{sdk → speakeasy_client_sdk}/models/shared/requestmetadata.rb +4 -5
  90. data/lib/speakeasy_client_sdk/models/shared/schema.rb +39 -0
  91. data/lib/speakeasy_client_sdk/models/shared/schemadiff.rb +30 -0
  92. data/lib/{sdk → speakeasy_client_sdk}/models/shared/security.rb +3 -4
  93. data/lib/{sdk → speakeasy_client_sdk}/models/shared/unboundedrequest.rb +7 -8
  94. data/lib/speakeasy_client_sdk/models/shared/valuechange.rb +27 -0
  95. data/lib/speakeasy_client_sdk/models/shared/versionmetadata.rb +39 -0
  96. data/lib/{sdk → speakeasy_client_sdk}/models/shared/versionmetadata_input.rb +4 -5
  97. data/lib/speakeasy_client_sdk/models/shared.rb +29 -0
  98. data/lib/{sdk → speakeasy_client_sdk}/plugins.rb +18 -14
  99. data/lib/{sdk → speakeasy_client_sdk}/requests.rb +19 -15
  100. data/lib/{sdk → speakeasy_client_sdk}/schemas.rb +46 -37
  101. data/lib/{sdk → speakeasy_client_sdk}/sdk.rb +3 -3
  102. data/lib/{sdk → speakeasy_client_sdk}/sdkconfiguration.rb +5 -5
  103. data/lib/{sdk → speakeasy_client_sdk}/utils/utils.rb +2 -2
  104. data/lib/speakeasy_client_sdk_ruby.rb +13 -66
  105. metadata +105 -67
  106. data/lib/sdk/models/operations/deleteapi.rb +0 -52
  107. data/lib/sdk/models/operations/deleteapiendpoint.rb +0 -55
  108. data/lib/sdk/models/operations/deleteschema.rb +0 -55
  109. data/lib/sdk/models/operations/deleteversionmetadata.rb +0 -58
  110. data/lib/sdk/models/operations/downloadschema.rb +0 -58
  111. data/lib/sdk/models/operations/downloadschemarevision.rb +0 -61
  112. data/lib/sdk/models/operations/findapiendpoint.rb +0 -59
  113. data/lib/sdk/models/operations/generateopenapispec.rb +0 -56
  114. data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +0 -59
  115. data/lib/sdk/models/operations/generatepostmancollection.rb +0 -55
  116. data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +0 -58
  117. data/lib/sdk/models/operations/generaterequestpostmancollection.rb +0 -52
  118. data/lib/sdk/models/operations/getallapiendpoints.rb +0 -52
  119. data/lib/sdk/models/operations/getallapiversions.rb +0 -72
  120. data/lib/sdk/models/operations/getallforversionapiendpoints.rb +0 -55
  121. data/lib/sdk/models/operations/getapiendpoint.rb +0 -59
  122. data/lib/sdk/models/operations/getapis.rb +0 -69
  123. data/lib/sdk/models/operations/getembedaccesstoken.rb +0 -60
  124. data/lib/sdk/models/operations/getrequestfromeventlog.rb +0 -53
  125. data/lib/sdk/models/operations/getschema.rb +0 -56
  126. data/lib/sdk/models/operations/getschemadiff.rb +0 -62
  127. data/lib/sdk/models/operations/getschemarevision.rb +0 -59
  128. data/lib/sdk/models/operations/getschemas.rb +0 -55
  129. data/lib/sdk/models/operations/getversionmetadata.rb +0 -55
  130. data/lib/sdk/models/operations/insertversionmetadata.rb +0 -59
  131. data/lib/sdk/models/operations/queryeventlog.rb +0 -53
  132. data/lib/sdk/models/operations/registerschema.rb +0 -86
  133. data/lib/sdk/models/operations/revokeembedaccesstoken.rb +0 -49
  134. data/lib/sdk/models/operations/runplugin.rb +0 -56
  135. data/lib/sdk/models/operations/upsertapi.rb +0 -56
  136. data/lib/sdk/models/operations/upsertapiendpoint.rb +0 -62
  137. data/lib/sdk/models/shared/apiendpoint.rb +0 -55
  138. data/lib/sdk/models/shared/boundedrequest.rb +0 -64
  139. data/lib/sdk/models/shared/embedtoken.rb +0 -52
  140. data/lib/sdk/models/shared/plugin.rb +0 -43
  141. data/lib/sdk/models/shared/schema.rb +0 -40
  142. data/lib/sdk/models/shared/schemadiff.rb +0 -48
  143. data/lib/sdk/models/shared/versionmetadata.rb +0 -40
  144. /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
- sig { params(request: T.nilable(Operations::GetEmbedAccessTokenRequest)).returns(Utils::FieldAugmented) }
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
- sig { params(request: T.nilable(Operations::RevokeEmbedAccessTokenRequest)).returns(Utils::FieldAugmented) }
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
- sig { params(request: T.nilable(Operations::DeleteVersionMetadataRequest)).returns(Utils::FieldAugmented) }
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
- sig { params(request: T.nilable(Operations::GetVersionMetadataRequest)).returns(Utils::FieldAugmented) }
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
- sig { params(request: Operations::InsertVersionMetadataRequest).returns(Utils::FieldAugmented) }
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