speakeasy_client_sdk_ruby 4.1.2 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/artifacts.rb +136 -3
  3. data/lib/speakeasy_client_sdk/models/operations/getblob_request.rb +33 -0
  4. data/lib/speakeasy_client_sdk/models/operations/getblob_response.rb +36 -0
  5. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb +24 -0
  6. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb +33 -0
  7. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb +24 -0
  8. data/lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb +33 -0
  9. data/lib/speakeasy_client_sdk/models/operations/getmanifest_response.rb +36 -0
  10. data/lib/speakeasy_client_sdk/models/operations/getrevisions_request.rb +4 -4
  11. data/lib/speakeasy_client_sdk/models/operations/gettags_request.rb +24 -0
  12. data/lib/speakeasy_client_sdk/models/operations/gettags_response.rb +36 -0
  13. data/lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb +1 -1
  14. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb +1 -1
  15. data/lib/speakeasy_client_sdk/models/operations/registerschema_file.rb +27 -0
  16. data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +2 -2
  17. data/lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb +27 -0
  18. data/lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb +33 -0
  19. data/lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb +24 -0
  20. data/lib/speakeasy_client_sdk/models/operations.rb +14 -1
  21. data/lib/speakeasy_client_sdk/models/shared/accesstoken_account_type.rb +20 -0
  22. data/lib/speakeasy_client_sdk/models/shared/annotations.rb +63 -0
  23. data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +5 -2
  24. data/lib/speakeasy_client_sdk/models/shared/feature_flags.rb +18 -0
  25. data/lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb +24 -0
  26. data/lib/speakeasy_client_sdk/models/shared/manifest.rb +36 -0
  27. data/lib/speakeasy_client_sdk/models/shared/namespace.rb +6 -3
  28. data/lib/speakeasy_client_sdk/models/shared/preflightrequest.rb +24 -0
  29. data/lib/speakeasy_client_sdk/models/shared/preflighttoken.rb +4 -4
  30. data/lib/speakeasy_client_sdk/models/shared/report.rb +24 -0
  31. data/lib/speakeasy_client_sdk/models/shared/revision.rb +8 -5
  32. data/lib/speakeasy_client_sdk/models/shared/tag.rb +33 -0
  33. data/lib/speakeasy_client_sdk/models/shared/type.rb +19 -0
  34. data/lib/speakeasy_client_sdk/models/shared/v2descriptor.rb +33 -0
  35. data/lib/speakeasy_client_sdk/models/shared/workspaces.rb +15 -2
  36. data/lib/speakeasy_client_sdk/models/shared.rb +10 -0
  37. data/lib/speakeasy_client_sdk/reports.rb +97 -0
  38. data/lib/speakeasy_client_sdk/sdk.rb +2 -1
  39. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
  40. data/lib/speakeasy_client_sdk_ruby.rb +1 -0
  41. metadata +26 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6761be29416e86d14e886b68bfb9abf4feaa868bf5c976d2730031b5354891d
4
- data.tar.gz: c365c6a36114f9b10448780992b4db0f919f03ccd868cf5fb756c92c12d8f690
3
+ metadata.gz: 2972d37e1ac886b59f969f6ef16dae783432112940d77abb282f361ecf1dd62e
4
+ data.tar.gz: 807eb705202c5895b8095a9f0bf5d66725b1677295d2640b8bc47cdf7feaabcb
5
5
  SHA512:
6
- metadata.gz: 0a1386bb3d831936a9ac8ce0cf555dafa84b33304e6c01cb30155be38b3069e3d1071e7d664cab951154c5354f091fceff23e58b1d677c14637d018e85a31b79
7
- data.tar.gz: 02b432d85adabbfa843d46f433bfaa449b62021d59e652544f5c41125e7787ff60b905b95b4846e8c6215ac33109ba18fe33063569b17b523e3ce0c4ec503764
6
+ metadata.gz: df06b280a9aefb66c69bf5f58f967a71c80ad5a5f8837975b235305cdf481db1a63e5f68d488647205b2639bafbc53fdce7eecbae3268f3100e9d8ead431079e
7
+ data.tar.gz: 9d214ecf787d57b1f3f76c6e22f42560a90b654a1cf5c6bc052a67eae7dae9a792d8d291da73af60a31874868824582ae2cb67aba598601837716de273c14422
@@ -19,6 +19,88 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetBlobRequest)).returns(::SpeakeasyClientSDK::Operations::GetBlobResponse) }
23
+ def get_blob(request)
24
+ # get_blob - Get blob for a particular digest
25
+ url, params = @sdk_configuration.get_server_details
26
+ base_url = Utils.template_url(url, params)
27
+ url = Utils.generate_url(
28
+ ::SpeakeasyClientSDK::Operations::GetBlobRequest,
29
+ base_url,
30
+ '/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}',
31
+ request,
32
+ @sdk_configuration.globals
33
+ )
34
+ headers = {}
35
+ headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
36
+ headers['user-agent'] = @sdk_configuration.user_agent
37
+
38
+ r = @sdk_configuration.client.get(url) do |req|
39
+ req.headers = headers
40
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
41
+ end
42
+
43
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
44
+
45
+ res = ::SpeakeasyClientSDK::Operations::GetBlobResponse.new(
46
+ status_code: r.status, content_type: content_type, raw_response: r
47
+ )
48
+ if r.status == 200
49
+ res.blob = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
50
+
51
+ else
52
+
53
+ if Utils.match_content_type(content_type, 'application/json')
54
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
55
+ res.error = out
56
+ end
57
+ end
58
+ res
59
+ end
60
+
61
+
62
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetManifestRequest)).returns(::SpeakeasyClientSDK::Operations::GetManifestResponse) }
63
+ def get_manifest(request)
64
+ # get_manifest - Get manifest for a particular reference
65
+ url, params = @sdk_configuration.get_server_details
66
+ base_url = Utils.template_url(url, params)
67
+ url = Utils.generate_url(
68
+ ::SpeakeasyClientSDK::Operations::GetManifestRequest,
69
+ base_url,
70
+ '/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}',
71
+ request,
72
+ @sdk_configuration.globals
73
+ )
74
+ headers = {}
75
+ headers['Accept'] = 'application/json;q=1, application/vnd.oci.image.manifest.v1+json;q=0'
76
+ headers['user-agent'] = @sdk_configuration.user_agent
77
+
78
+ r = @sdk_configuration.client.get(url) do |req|
79
+ req.headers = headers
80
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
81
+ end
82
+
83
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
84
+
85
+ res = ::SpeakeasyClientSDK::Operations::GetManifestResponse.new(
86
+ status_code: r.status, content_type: content_type, raw_response: r
87
+ )
88
+ if r.status == 200
89
+ if Utils.match_content_type(content_type, 'application/vnd.oci.image.manifest.v1+json')
90
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Manifest)
91
+ res.manifest = out
92
+ end
93
+ else
94
+
95
+ if Utils.match_content_type(content_type, 'application/json')
96
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
97
+ res.error = out
98
+ end
99
+ end
100
+ res
101
+ end
102
+
103
+
22
104
  sig { returns(::SpeakeasyClientSDK::Operations::GetNamespacesResponse) }
23
105
  def get_namespaces
24
106
  # get_namespaces - Each namespace contains many revisions.
@@ -63,7 +145,7 @@ module SpeakeasyClientSDK
63
145
  url = Utils.generate_url(
64
146
  ::SpeakeasyClientSDK::Operations::GetRevisionsRequest,
65
147
  base_url,
66
- '/v1/artifacts/namespaces/{namespace_id}/revisions',
148
+ '/v1/artifacts/namespaces/{namespace_name}/revisions',
67
149
  request,
68
150
  @sdk_configuration.globals
69
151
  )
@@ -99,19 +181,70 @@ module SpeakeasyClientSDK
99
181
  end
100
182
 
101
183
 
102
- sig { returns(::SpeakeasyClientSDK::Operations::PreflightResponse) }
103
- def preflight
184
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetTagsRequest)).returns(::SpeakeasyClientSDK::Operations::GetTagsResponse) }
185
+ def get_tags(request)
186
+
187
+ url, params = @sdk_configuration.get_server_details
188
+ base_url = Utils.template_url(url, params)
189
+ url = Utils.generate_url(
190
+ ::SpeakeasyClientSDK::Operations::GetTagsRequest,
191
+ base_url,
192
+ '/v1/artifacts/namespaces/{namespace_name}/tags',
193
+ request,
194
+ @sdk_configuration.globals
195
+ )
196
+ headers = {}
197
+ headers['Accept'] = 'application/json'
198
+ headers['user-agent'] = @sdk_configuration.user_agent
199
+
200
+ r = @sdk_configuration.client.get(url) do |req|
201
+ req.headers = headers
202
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
203
+ end
204
+
205
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
206
+
207
+ res = ::SpeakeasyClientSDK::Operations::GetTagsResponse.new(
208
+ status_code: r.status, content_type: content_type, raw_response: r
209
+ )
210
+ if r.status == 200
211
+ if Utils.match_content_type(content_type, 'application/json')
212
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GetTagsResponse)
213
+ res.get_tags_response = out
214
+ end
215
+ else
216
+
217
+ if Utils.match_content_type(content_type, 'application/json')
218
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
219
+ res.error = out
220
+ end
221
+ end
222
+ res
223
+ end
224
+
225
+
226
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Shared::PreflightRequest)).returns(::SpeakeasyClientSDK::Operations::PreflightResponse) }
227
+ def preflight(request)
104
228
  # preflight - Get access token for communicating with OCI distribution endpoints
105
229
  url, params = @sdk_configuration.get_server_details
106
230
  base_url = Utils.template_url(url, params)
107
231
  url = "#{base_url}/v1/artifacts/preflight"
108
232
  headers = {}
233
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
234
+ headers['content-type'] = req_content_type
109
235
  headers['Accept'] = 'application/json'
110
236
  headers['user-agent'] = @sdk_configuration.user_agent
111
237
 
112
238
  r = @sdk_configuration.client.post(url) do |req|
113
239
  req.headers = headers
114
240
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
241
+ if form
242
+ req.body = Utils.encode_form(form)
243
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
244
+ req.body = URI.encode_www_form(data)
245
+ else
246
+ req.body = data
247
+ end
115
248
  end
116
249
 
117
250
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
@@ -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 GetBlobRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :digest, ::String, { 'path_param': { 'field_name': 'digest', 'style': 'simple', 'explode': false } }
16
+
17
+ field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
18
+
19
+ field :organization_slug, ::String, { 'path_param': { 'field_name': 'organization_slug', 'style': 'simple', 'explode': false } }
20
+
21
+ field :workspace_slug, ::String, { 'path_param': { 'field_name': 'workspace_slug', 'style': 'simple', 'explode': false } }
22
+
23
+
24
+ sig { params(digest: ::String, namespace_name: ::String, organization_slug: ::String, workspace_slug: ::String).void }
25
+ def initialize(digest: nil, namespace_name: nil, organization_slug: nil, workspace_slug: nil)
26
+ @digest = digest
27
+ @namespace_name = namespace_name
28
+ @organization_slug = organization_slug
29
+ @workspace_slug = workspace_slug
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetBlobResponse < ::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 :blob, T.nilable(::String)
22
+ # Default error response
23
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, blob: T.nilable(::String), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, blob: nil, error: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @blob = blob
32
+ @error = error
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetLintingReportSignedUrlRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The checksum of the document to retrieve the signed access url for.
15
+ field :document_checksum, ::String, { 'path_param': { 'field_name': 'documentChecksum', 'style': 'simple', 'explode': false } }
16
+
17
+
18
+ sig { params(document_checksum: ::String).void }
19
+ def initialize(document_checksum: nil)
20
+ @document_checksum = document_checksum
21
+ end
22
+ end
23
+ end
24
+ 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 GetLintingReportSignedUrlResponse < ::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 :signed_access, T.nilable(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlSignedAccess)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, signed_access: T.nilable(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlSignedAccess)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, signed_access: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @signed_access = signed_access
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+ # OK
11
+ class GetLintingReportSignedUrlSignedAccess < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :url, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('url') } }
16
+
17
+
18
+ sig { params(url: ::String).void }
19
+ def initialize(url: nil)
20
+ @url = url
21
+ end
22
+ end
23
+ end
24
+ 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 GetManifestRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
16
+
17
+ field :organization_slug, ::String, { 'path_param': { 'field_name': 'organization_slug', 'style': 'simple', 'explode': false } }
18
+ # Tag or digest
19
+ field :revision_reference, ::String, { 'path_param': { 'field_name': 'revision_reference', 'style': 'simple', 'explode': false } }
20
+
21
+ field :workspace_slug, ::String, { 'path_param': { 'field_name': 'workspace_slug', 'style': 'simple', 'explode': false } }
22
+
23
+
24
+ sig { params(namespace_name: ::String, organization_slug: ::String, revision_reference: ::String, workspace_slug: ::String).void }
25
+ def initialize(namespace_name: nil, organization_slug: nil, revision_reference: nil, workspace_slug: nil)
26
+ @namespace_name = namespace_name
27
+ @organization_slug = organization_slug
28
+ @revision_reference = revision_reference
29
+ @workspace_slug = workspace_slug
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetManifestResponse < ::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
+ # OK
23
+ field :manifest, T.nilable(::SpeakeasyClientSDK::Shared::Manifest)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), manifest: T.nilable(::SpeakeasyClientSDK::Shared::Manifest)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, manifest: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @manifest = manifest
33
+ end
34
+ end
35
+ end
36
+ end
@@ -12,14 +12,14 @@ module SpeakeasyClientSDK
12
12
  extend T::Sig
13
13
 
14
14
 
15
- field :namespace_id, ::String, { 'path_param': { 'field_name': 'namespace_id', 'style': 'simple', 'explode': false } }
15
+ field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
16
16
  # Token to retrieve the next page of results
17
17
  field :next_page_token, T.nilable(::String), { 'query_param': { 'field_name': 'next_page_token', 'style': 'form', 'explode': true } }
18
18
 
19
19
 
20
- sig { params(namespace_id: ::String, next_page_token: T.nilable(::String)).void }
21
- def initialize(namespace_id: nil, next_page_token: nil)
22
- @namespace_id = namespace_id
20
+ sig { params(namespace_name: ::String, next_page_token: T.nilable(::String)).void }
21
+ def initialize(namespace_name: nil, next_page_token: nil)
22
+ @namespace_name = namespace_name
23
23
  @next_page_token = next_page_token
24
24
  end
25
25
  end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetTagsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
16
+
17
+
18
+ sig { params(namespace_name: ::String).void }
19
+ def initialize(namespace_name: nil)
20
+ @namespace_name = namespace_name
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetTagsResponse < ::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
+ # OK
23
+ field :get_tags_response, T.nilable(::SpeakeasyClientSDK::Shared::GetTagsResponse)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), get_tags_response: T.nilable(::SpeakeasyClientSDK::Shared::GetTagsResponse)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, get_tags_response: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @get_tags_response = get_tags_response
33
+ end
34
+ end
35
+ end
36
+ end
@@ -17,7 +17,7 @@ module SpeakeasyClientSDK
17
17
  field :raw_response, ::Faraday::Response
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
-
20
+ # Error
21
21
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
22
  # Success
23
23
  field :target_sdk_list, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
@@ -17,7 +17,7 @@ module SpeakeasyClientSDK
17
17
  field :raw_response, ::Faraday::Response
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
-
20
+ # Error
21
21
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
22
 
23
23
 
@@ -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 RegisterSchemaFile < ::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
@@ -12,10 +12,10 @@ module SpeakeasyClientSDK
12
12
  extend T::Sig
13
13
 
14
14
 
15
- field :file, ::SpeakeasyClientSDK::Operations::File, { 'multipart_form': { 'file': true } }
15
+ field :file, ::SpeakeasyClientSDK::Operations::RegisterSchemaFile, { 'multipart_form': { 'file': true } }
16
16
 
17
17
 
18
- sig { params(file: ::SpeakeasyClientSDK::Operations::File).void }
18
+ sig { params(file: ::SpeakeasyClientSDK::Operations::RegisterSchemaFile).void }
19
19
  def initialize(file: nil)
20
20
  @file = file
21
21
  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
+ # The report file to upload provided as a multipart/form-data file segment.
11
+ class UploadReportRequestBody < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :data, ::SpeakeasyClientSDK::Shared::Report, { 'multipart_form': { 'field_name': 'data', 'json': true } }
16
+
17
+ field :file, ::SpeakeasyClientSDK::Operations::File, { 'multipart_form': { 'file': true } }
18
+
19
+
20
+ sig { params(data: ::SpeakeasyClientSDK::Shared::Report, file: ::SpeakeasyClientSDK::Operations::File).void }
21
+ def initialize(data: nil, file: nil)
22
+ @data = data
23
+ @file = file
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 UploadReportResponse < ::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 :uploaded_report, T.nilable(::SpeakeasyClientSDK::Operations::UploadReportUploadedReport)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, uploaded_report: T.nilable(::SpeakeasyClientSDK::Operations::UploadReportUploadedReport)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, uploaded_report: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @uploaded_report = uploaded_report
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+ # OK
11
+ class UploadReportUploadedReport < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :url, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('url') } }
16
+
17
+
18
+ sig { params(url: ::String).void }
19
+ def initialize(url: nil)
20
+ @url = url
21
+ end
22
+ end
23
+ end
24
+ end