speakeasy_client_sdk_ruby 4.1.1 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/artifacts.rb +270 -0
  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/getmanifest_request.rb +33 -0
  6. data/lib/speakeasy_client_sdk/models/operations/getmanifest_response.rb +36 -0
  7. data/lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb +36 -0
  8. data/lib/speakeasy_client_sdk/models/operations/getrevisions_request.rb +27 -0
  9. data/lib/speakeasy_client_sdk/models/operations/getrevisions_response.rb +36 -0
  10. data/lib/speakeasy_client_sdk/models/operations/gettags_request.rb +24 -0
  11. data/lib/speakeasy_client_sdk/models/operations/gettags_response.rb +36 -0
  12. data/lib/speakeasy_client_sdk/models/operations/preflight_response.rb +36 -0
  13. data/lib/speakeasy_client_sdk/models/operations.rb +10 -0
  14. data/lib/speakeasy_client_sdk/models/shared/annotations.rb +63 -0
  15. data/lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb +24 -0
  16. data/lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb +27 -0
  17. data/lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb +24 -0
  18. data/lib/speakeasy_client_sdk/models/shared/manifest.rb +36 -0
  19. data/lib/speakeasy_client_sdk/models/shared/namespace.rb +33 -0
  20. data/lib/speakeasy_client_sdk/models/shared/preflightrequest.rb +24 -0
  21. data/lib/speakeasy_client_sdk/models/shared/preflighttoken.rb +24 -0
  22. data/lib/speakeasy_client_sdk/models/shared/revision.rb +36 -0
  23. data/lib/speakeasy_client_sdk/models/shared/tag.rb +36 -0
  24. data/lib/speakeasy_client_sdk/models/shared/v2descriptor.rb +33 -0
  25. data/lib/speakeasy_client_sdk/models/shared.rb +11 -0
  26. data/lib/speakeasy_client_sdk/sdk.rb +2 -1
  27. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
  28. data/lib/speakeasy_client_sdk_ruby.rb +1 -0
  29. metadata +24 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e98bd350d43ad536f3385c9d01edece6afd608261e67604ebbc5734cf2c782d1
4
- data.tar.gz: 3e0576bd02642af38e4e753910add629c2f2a71c5a206836f8770ae73da58e8b
3
+ metadata.gz: 87755a80fb67c002f7fa746acbb8fb3bf1db8c3e976ec9036bde770823127aa8
4
+ data.tar.gz: 9cc70738a102faea7743736d9c7cdbc74a65000a7ccb6d71537b6b03b2cdf6ef
5
5
  SHA512:
6
- metadata.gz: 1406c49484be2f0d0350bb894bba4aaa6d8b78736a34eaec2485bbd7338c14dce8ce8cf74514d5ca6f27dc2cc00bba7ba5c0a98c5d0e82cb2717e39c0f50d265
7
- data.tar.gz: 67adaa567b00b47323fb920b36b500014325f41339309d2ee4819531b28ba001d03a68bd4089415527346fe3dadcb0e1bcbbf7633db7b5d96ded641cc33c3d15
6
+ metadata.gz: 107f389b470354f5ba91455b90f35817dd2ea319bb0bf5c219fae680b1a34549e81bd2eb7e6273b8217843b6792e59c91ffc4c27b3190bba3307efbd7c348018
7
+ data.tar.gz: 06d237845a8b8dfad8a34046198540d020ffc55ef4e021468fcf69c14ae30b989379e1c9f3b733331b9f60f204d8bb8251067c0e7eed003c6b8bf7272ca5d918
@@ -0,0 +1,270 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). 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 Artifacts
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::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
+
104
+ sig { returns(::SpeakeasyClientSDK::Operations::GetNamespacesResponse) }
105
+ def get_namespaces
106
+ # get_namespaces - Each namespace contains many revisions.
107
+ url, params = @sdk_configuration.get_server_details
108
+ base_url = Utils.template_url(url, params)
109
+ url = "#{base_url}/v1/artifacts/namespaces"
110
+ headers = {}
111
+ headers['Accept'] = 'application/json'
112
+ headers['user-agent'] = @sdk_configuration.user_agent
113
+
114
+ r = @sdk_configuration.client.get(url) do |req|
115
+ req.headers = headers
116
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
117
+ end
118
+
119
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
120
+
121
+ res = ::SpeakeasyClientSDK::Operations::GetNamespacesResponse.new(
122
+ status_code: r.status, content_type: content_type, raw_response: r
123
+ )
124
+ if r.status == 200
125
+ if Utils.match_content_type(content_type, 'application/json')
126
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GetNamespacesResponse)
127
+ res.get_namespaces_response = out
128
+ end
129
+ else
130
+
131
+ if Utils.match_content_type(content_type, 'application/json')
132
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
133
+ res.error = out
134
+ end
135
+ end
136
+ res
137
+ end
138
+
139
+
140
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetRevisionsRequest)).returns(::SpeakeasyClientSDK::Operations::GetRevisionsResponse) }
141
+ def get_revisions(request)
142
+
143
+ url, params = @sdk_configuration.get_server_details
144
+ base_url = Utils.template_url(url, params)
145
+ url = Utils.generate_url(
146
+ ::SpeakeasyClientSDK::Operations::GetRevisionsRequest,
147
+ base_url,
148
+ '/v1/artifacts/namespaces/{namespace_name}/revisions',
149
+ request,
150
+ @sdk_configuration.globals
151
+ )
152
+ headers = {}
153
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetRevisionsRequest, request, @sdk_configuration.globals)
154
+ headers['Accept'] = 'application/json'
155
+ headers['user-agent'] = @sdk_configuration.user_agent
156
+
157
+ r = @sdk_configuration.client.get(url) do |req|
158
+ req.headers = headers
159
+ req.params = query_params
160
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
161
+ end
162
+
163
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
164
+
165
+ res = ::SpeakeasyClientSDK::Operations::GetRevisionsResponse.new(
166
+ status_code: r.status, content_type: content_type, raw_response: r
167
+ )
168
+ if r.status == 200
169
+ if Utils.match_content_type(content_type, 'application/json')
170
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GetRevisionsResponse)
171
+ res.get_revisions_response = out
172
+ end
173
+ else
174
+
175
+ if Utils.match_content_type(content_type, 'application/json')
176
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
177
+ res.error = out
178
+ end
179
+ end
180
+ res
181
+ end
182
+
183
+
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)
228
+ # preflight - Get access token for communicating with OCI distribution endpoints
229
+ url, params = @sdk_configuration.get_server_details
230
+ base_url = Utils.template_url(url, params)
231
+ url = "#{base_url}/v1/artifacts/preflight"
232
+ headers = {}
233
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
234
+ headers['content-type'] = req_content_type
235
+ headers['Accept'] = 'application/json'
236
+ headers['user-agent'] = @sdk_configuration.user_agent
237
+
238
+ r = @sdk_configuration.client.post(url) do |req|
239
+ req.headers = headers
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
248
+ end
249
+
250
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
251
+
252
+ res = ::SpeakeasyClientSDK::Operations::PreflightResponse.new(
253
+ status_code: r.status, content_type: content_type, raw_response: r
254
+ )
255
+ if r.status == 200
256
+ if Utils.match_content_type(content_type, 'application/json')
257
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::PreflightToken)
258
+ res.preflight_token = out
259
+ end
260
+ else
261
+
262
+ if Utils.match_content_type(content_type, 'application/json')
263
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
264
+ res.error = out
265
+ end
266
+ end
267
+ res
268
+ end
269
+ end
270
+ 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 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,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
+
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
@@ -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 GetNamespacesResponse < ::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_namespaces_response, T.nilable(::SpeakeasyClientSDK::Shared::GetNamespacesResponse)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), get_namespaces_response: T.nilable(::SpeakeasyClientSDK::Shared::GetNamespacesResponse)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, get_namespaces_response: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @get_namespaces_response = get_namespaces_response
33
+ end
34
+ end
35
+ end
36
+ 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 GetRevisionsRequest < ::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
+ # Token to retrieve the next page of results
17
+ field :next_page_token, T.nilable(::String), { 'query_param': { 'field_name': 'next_page_token', 'style': 'form', 'explode': true } }
18
+
19
+
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
+ @next_page_token = next_page_token
24
+ end
25
+ end
26
+ end
27
+ 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 GetRevisionsResponse < ::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_revisions_response, T.nilable(::SpeakeasyClientSDK::Shared::GetRevisionsResponse)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), get_revisions_response: T.nilable(::SpeakeasyClientSDK::Shared::GetRevisionsResponse)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, get_revisions_response: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @get_revisions_response = get_revisions_response
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 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
@@ -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 PreflightResponse < ::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 :preflight_token, T.nilable(::SpeakeasyClientSDK::Shared::PreflightToken)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), preflight_token: T.nilable(::SpeakeasyClientSDK::Shared::PreflightToken)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, preflight_token: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @preflight_token = preflight_token
33
+ end
34
+ end
35
+ end
36
+ end
@@ -59,6 +59,16 @@ module SpeakeasyClientSDK
59
59
  autoload :RegisterSchemaRequestBody, 'speakeasy_client_sdk/models/operations/registerschema_requestbody.rb'
60
60
  autoload :RegisterSchemaRequest, 'speakeasy_client_sdk/models/operations/registerschema_request.rb'
61
61
  autoload :RegisterSchemaResponse, 'speakeasy_client_sdk/models/operations/registerschema_response.rb'
62
+ autoload :GetBlobRequest, 'speakeasy_client_sdk/models/operations/getblob_request.rb'
63
+ autoload :GetBlobResponse, 'speakeasy_client_sdk/models/operations/getblob_response.rb'
64
+ autoload :GetManifestRequest, 'speakeasy_client_sdk/models/operations/getmanifest_request.rb'
65
+ autoload :GetManifestResponse, 'speakeasy_client_sdk/models/operations/getmanifest_response.rb'
66
+ autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/operations/getnamespaces_response.rb'
67
+ autoload :GetRevisionsRequest, 'speakeasy_client_sdk/models/operations/getrevisions_request.rb'
68
+ autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/operations/getrevisions_response.rb'
69
+ autoload :GetTagsRequest, 'speakeasy_client_sdk/models/operations/gettags_request.rb'
70
+ autoload :GetTagsResponse, 'speakeasy_client_sdk/models/operations/gettags_response.rb'
71
+ autoload :PreflightResponse, 'speakeasy_client_sdk/models/operations/preflight_response.rb'
62
72
  autoload :GetAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getaccesstoken_request.rb'
63
73
  autoload :GetAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getaccesstoken_response.rb'
64
74
  autoload :GetUserResponse, 'speakeasy_client_sdk/models/operations/getuser_response.rb'
@@ -0,0 +1,63 @@
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 Shared
9
+
10
+ # Annotations
11
+ class Annotations < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :org_opencontainers_image_authors, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.authors') } }
16
+
17
+ field :org_opencontainers_image_base_digest, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.base.digest') } }
18
+
19
+ field :org_opencontainers_image_base_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.base.name') } }
20
+
21
+ field :org_opencontainers_image_created, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.created') } }
22
+
23
+ field :org_opencontainers_image_description, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.description') } }
24
+
25
+ field :org_opencontainers_image_documentation, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.documentation') } }
26
+
27
+ field :org_opencontainers_image_licenses, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.licenses') } }
28
+
29
+ field :org_opencontainers_image_ref_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.ref.name') } }
30
+
31
+ field :org_opencontainers_image_revision, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.revision') } }
32
+
33
+ field :org_opencontainers_image_source, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.source') } }
34
+
35
+ field :org_opencontainers_image_title, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.title') } }
36
+
37
+ field :org_opencontainers_image_url, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.url') } }
38
+
39
+ field :org_opencontainers_image_vendor, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.vendor') } }
40
+
41
+ field :org_opencontainers_image_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org.opencontainers.image.version') } }
42
+
43
+
44
+ sig { params(org_opencontainers_image_authors: T.nilable(::String), org_opencontainers_image_base_digest: T.nilable(::String), org_opencontainers_image_base_name: T.nilable(::String), org_opencontainers_image_created: T.nilable(::String), org_opencontainers_image_description: T.nilable(::String), org_opencontainers_image_documentation: T.nilable(::String), org_opencontainers_image_licenses: T.nilable(::String), org_opencontainers_image_ref_name: T.nilable(::String), org_opencontainers_image_revision: T.nilable(::String), org_opencontainers_image_source: T.nilable(::String), org_opencontainers_image_title: T.nilable(::String), org_opencontainers_image_url: T.nilable(::String), org_opencontainers_image_vendor: T.nilable(::String), org_opencontainers_image_version: T.nilable(::String)).void }
45
+ def initialize(org_opencontainers_image_authors: nil, org_opencontainers_image_base_digest: nil, org_opencontainers_image_base_name: nil, org_opencontainers_image_created: nil, org_opencontainers_image_description: nil, org_opencontainers_image_documentation: nil, org_opencontainers_image_licenses: nil, org_opencontainers_image_ref_name: nil, org_opencontainers_image_revision: nil, org_opencontainers_image_source: nil, org_opencontainers_image_title: nil, org_opencontainers_image_url: nil, org_opencontainers_image_vendor: nil, org_opencontainers_image_version: nil)
46
+ @org_opencontainers_image_authors = org_opencontainers_image_authors
47
+ @org_opencontainers_image_base_digest = org_opencontainers_image_base_digest
48
+ @org_opencontainers_image_base_name = org_opencontainers_image_base_name
49
+ @org_opencontainers_image_created = org_opencontainers_image_created
50
+ @org_opencontainers_image_description = org_opencontainers_image_description
51
+ @org_opencontainers_image_documentation = org_opencontainers_image_documentation
52
+ @org_opencontainers_image_licenses = org_opencontainers_image_licenses
53
+ @org_opencontainers_image_ref_name = org_opencontainers_image_ref_name
54
+ @org_opencontainers_image_revision = org_opencontainers_image_revision
55
+ @org_opencontainers_image_source = org_opencontainers_image_source
56
+ @org_opencontainers_image_title = org_opencontainers_image_title
57
+ @org_opencontainers_image_url = org_opencontainers_image_url
58
+ @org_opencontainers_image_vendor = org_opencontainers_image_vendor
59
+ @org_opencontainers_image_version = org_opencontainers_image_version
60
+ end
61
+ end
62
+ end
63
+ 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 Shared
9
+
10
+
11
+ class GetNamespacesResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :items, T::Array[::SpeakeasyClientSDK::Shared::Namespace], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('items') } }
16
+
17
+
18
+ sig { params(items: T::Array[::SpeakeasyClientSDK::Shared::Namespace]).void }
19
+ def initialize(items: nil)
20
+ @items = items
21
+ end
22
+ end
23
+ end
24
+ 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 Shared
9
+
10
+
11
+ class GetRevisionsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :items, T::Array[::SpeakeasyClientSDK::Shared::Revision], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('items') } }
16
+
17
+ field :next_page_token, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('next_page_token') } }
18
+
19
+
20
+ sig { params(items: T::Array[::SpeakeasyClientSDK::Shared::Revision], next_page_token: ::String).void }
21
+ def initialize(items: nil, next_page_token: nil)
22
+ @items = items
23
+ @next_page_token = next_page_token
24
+ end
25
+ end
26
+ end
27
+ 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 Shared
9
+
10
+
11
+ class GetTagsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :items, T::Array[::SpeakeasyClientSDK::Shared::Tag], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('items') } }
16
+
17
+
18
+ sig { params(items: T::Array[::SpeakeasyClientSDK::Shared::Tag]).void }
19
+ def initialize(items: nil)
20
+ @items = items
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 Shared
9
+
10
+ # Returns the requested manifest file
11
+ class Manifest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Annotations
15
+ field :annotations, T.nilable(::SpeakeasyClientSDK::Shared::Annotations), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('annotations') } }
16
+ # Type of artifact
17
+ field :artifact_type, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('artifactType') } }
18
+ # List of V2 image layer information
19
+ field :layers, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::V2Descriptor]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('layers') } }
20
+ # Media type usually application/vnd.docker.distribution.manifest.v2+json if this is in the accept header
21
+ field :media_type, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('mediaType') } }
22
+ # Schema version
23
+ field :schema_version, T.nilable(::Integer), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('schemaVersion') } }
24
+
25
+
26
+ sig { params(annotations: T.nilable(::SpeakeasyClientSDK::Shared::Annotations), artifact_type: T.nilable(::String), layers: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::V2Descriptor]), media_type: T.nilable(::String), schema_version: T.nilable(::Integer)).void }
27
+ def initialize(annotations: nil, artifact_type: nil, layers: nil, media_type: nil, schema_version: nil)
28
+ @annotations = annotations
29
+ @artifact_type = artifact_type
30
+ @layers = layers
31
+ @media_type = media_type
32
+ @schema_version = schema_version
33
+ end
34
+ end
35
+ end
36
+ 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 Shared
9
+
10
+ # A namespace contains many revisions.
11
+ class Namespace < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+ # {organization_slug}/{workspace_slug}/{namespace_name}
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
18
+ # A human-readable name for the namespace.
19
+ field :name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('name') } }
20
+
21
+ field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
22
+
23
+
24
+ sig { params(created_at: ::DateTime, id: ::String, name: ::String, updated_at: ::DateTime).void }
25
+ def initialize(created_at: nil, id: nil, name: nil, updated_at: nil)
26
+ @created_at = created_at
27
+ @id = id
28
+ @name = name
29
+ @updated_at = updated_at
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 Shared
9
+
10
+
11
+ class PreflightRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :namespace_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_name') } }
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,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 Shared
9
+
10
+ # A PreflightToken is a token that allows access to the OCI distribution endpoints.
11
+ class PreflightToken < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :auth_token, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('auth_token') } }
16
+
17
+
18
+ sig { params(auth_token: T.nilable(::String)).void }
19
+ def initialize(auth_token: nil)
20
+ @auth_token = auth_token
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 Shared
9
+
10
+
11
+ class Revision < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+ # aka digest
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
18
+
19
+ field :namespace_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_name') } }
20
+
21
+ field :tags, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('tags') } }
22
+
23
+ field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
24
+
25
+
26
+ sig { params(created_at: ::DateTime, id: ::String, namespace_name: ::String, tags: T::Array[::String], updated_at: ::DateTime).void }
27
+ def initialize(created_at: nil, id: nil, namespace_name: nil, tags: nil, updated_at: nil)
28
+ @created_at = created_at
29
+ @id = id
30
+ @namespace_name = namespace_name
31
+ @tags = tags
32
+ @updated_at = updated_at
33
+ end
34
+ end
35
+ end
36
+ 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 Shared
9
+
10
+
11
+ class Tag < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+ # Human readable tag name
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
18
+
19
+ field :namespace_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_name') } }
20
+
21
+ field :revision_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_id') } }
22
+
23
+ field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
24
+
25
+
26
+ sig { params(created_at: ::DateTime, id: ::String, namespace_name: ::String, revision_id: ::String, updated_at: ::DateTime).void }
27
+ def initialize(created_at: nil, id: nil, namespace_name: nil, revision_id: nil, updated_at: nil)
28
+ @created_at = created_at
29
+ @id = id
30
+ @namespace_name = namespace_name
31
+ @revision_id = revision_id
32
+ @updated_at = updated_at
33
+ end
34
+ end
35
+ end
36
+ 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 Shared
9
+
10
+ # V2 descriptor
11
+ class V2Descriptor < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Annotations
15
+ field :annotations, T.nilable(::SpeakeasyClientSDK::Shared::Annotations), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('annotations') } }
16
+ # Digest
17
+ field :digest, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('digest') } }
18
+ # Media type
19
+ field :media_type, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('mediaType') } }
20
+ # Size
21
+ field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('size') } }
22
+
23
+
24
+ sig { params(annotations: T.nilable(::SpeakeasyClientSDK::Shared::Annotations), digest: T.nilable(::String), media_type: T.nilable(::String), size: T.nilable(::Integer)).void }
25
+ def initialize(annotations: nil, digest: nil, media_type: nil, size: nil)
26
+ @annotations = annotations
27
+ @digest = digest
28
+ @media_type = media_type
29
+ @size = size
30
+ end
31
+ end
32
+ end
33
+ end
@@ -16,6 +16,17 @@ module SpeakeasyClientSDK
16
16
  autoload :Schema, 'speakeasy_client_sdk/models/shared/schema.rb'
17
17
  autoload :ValueChange, 'speakeasy_client_sdk/models/shared/valuechange.rb'
18
18
  autoload :SchemaDiff, 'speakeasy_client_sdk/models/shared/schemadiff.rb'
19
+ autoload :Manifest, 'speakeasy_client_sdk/models/shared/manifest.rb'
20
+ autoload :V2Descriptor, 'speakeasy_client_sdk/models/shared/v2descriptor.rb'
21
+ autoload :Annotations, 'speakeasy_client_sdk/models/shared/annotations.rb'
22
+ autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/shared/getnamespacesresponse.rb'
23
+ autoload :Namespace, 'speakeasy_client_sdk/models/shared/namespace.rb'
24
+ autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/shared/getrevisionsresponse.rb'
25
+ autoload :Revision, 'speakeasy_client_sdk/models/shared/revision.rb'
26
+ autoload :GetTagsResponse, 'speakeasy_client_sdk/models/shared/gettagsresponse.rb'
27
+ autoload :Tag, 'speakeasy_client_sdk/models/shared/tag.rb'
28
+ autoload :PreflightToken, 'speakeasy_client_sdk/models/shared/preflighttoken.rb'
29
+ autoload :PreflightRequest, 'speakeasy_client_sdk/models/shared/preflightrequest.rb'
19
30
  autoload :Claims, 'speakeasy_client_sdk/models/shared/claims.rb'
20
31
  autoload :AccessTokenUser, 'speakeasy_client_sdk/models/shared/accesstoken_user.rb'
21
32
  autoload :Workspaces, 'speakeasy_client_sdk/models/shared/workspaces.rb'
@@ -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, :auth, :requests, :organizations, :embeds, :events
16
+ attr_accessor :apis, :api_endpoints, :metadata, :schemas, :artifacts, :auth, :requests, :organizations, :embeds, :events
17
17
 
18
18
  sig do
19
19
  params(client: Faraday::Request,
@@ -93,6 +93,7 @@ module SpeakeasyClientSDK
93
93
  @api_endpoints = ApiEndpoints.new(@sdk_configuration)
94
94
  @metadata = Metadata.new(@sdk_configuration)
95
95
  @schemas = Schemas.new(@sdk_configuration)
96
+ @artifacts = Artifacts.new(@sdk_configuration)
96
97
  @auth = Auth.new(@sdk_configuration)
97
98
  @requests = Requests.new(@sdk_configuration)
98
99
  @organizations = Organizations.new(@sdk_configuration)
@@ -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.1.1'
45
- @gen_version = '2.301.0'
46
- @user_agent = 'speakeasy-sdk/ruby 4.1.1 2.301.0 0.4.0 speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.1.3'
45
+ @gen_version = '2.306.0'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.1.3 2.306.0 0.4.0 speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -11,6 +11,7 @@ module SpeakeasyClientSDK
11
11
  autoload :ApiEndpoints, 'speakeasy_client_sdk/apiendpoints'
12
12
  autoload :Metadata, 'speakeasy_client_sdk/metadata'
13
13
  autoload :Schemas, 'speakeasy_client_sdk/schemas'
14
+ autoload :Artifacts, 'speakeasy_client_sdk/artifacts'
14
15
  autoload :Auth, 'speakeasy_client_sdk/auth'
15
16
  autoload :Requests, 'speakeasy_client_sdk/requests'
16
17
  autoload :Organizations, 'speakeasy_client_sdk/organizations'
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.1.1
4
+ version: 4.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-09 00:00:00.000000000 Z
11
+ date: 2024-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -144,6 +144,7 @@ extra_rdoc_files: []
144
144
  files:
145
145
  - lib/speakeasy_client_sdk/apiendpoints.rb
146
146
  - lib/speakeasy_client_sdk/apis.rb
147
+ - lib/speakeasy_client_sdk/artifacts.rb
147
148
  - lib/speakeasy_client_sdk/auth.rb
148
149
  - lib/speakeasy_client_sdk/embeds.rb
149
150
  - lib/speakeasy_client_sdk/events.rb
@@ -186,11 +187,18 @@ files:
186
187
  - lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb
187
188
  - lib/speakeasy_client_sdk/models/operations/getapis_request.rb
188
189
  - lib/speakeasy_client_sdk/models/operations/getapis_response.rb
190
+ - lib/speakeasy_client_sdk/models/operations/getblob_request.rb
191
+ - lib/speakeasy_client_sdk/models/operations/getblob_response.rb
189
192
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb
190
193
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb
194
+ - lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb
195
+ - lib/speakeasy_client_sdk/models/operations/getmanifest_response.rb
196
+ - lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb
191
197
  - lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb
192
198
  - lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb
193
199
  - lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb
200
+ - lib/speakeasy_client_sdk/models/operations/getrevisions_request.rb
201
+ - lib/speakeasy_client_sdk/models/operations/getrevisions_response.rb
194
202
  - lib/speakeasy_client_sdk/models/operations/getschema_request.rb
195
203
  - lib/speakeasy_client_sdk/models/operations/getschema_response.rb
196
204
  - lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb
@@ -199,6 +207,8 @@ files:
199
207
  - lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb
200
208
  - lib/speakeasy_client_sdk/models/operations/getschemas_request.rb
201
209
  - lib/speakeasy_client_sdk/models/operations/getschemas_response.rb
210
+ - lib/speakeasy_client_sdk/models/operations/gettags_request.rb
211
+ - lib/speakeasy_client_sdk/models/operations/gettags_response.rb
202
212
  - lib/speakeasy_client_sdk/models/operations/getuser_response.rb
203
213
  - lib/speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb
204
214
  - lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb
@@ -214,6 +224,7 @@ files:
214
224
  - lib/speakeasy_client_sdk/models/operations/op.rb
215
225
  - lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb
216
226
  - lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb
227
+ - lib/speakeasy_client_sdk/models/operations/preflight_response.rb
217
228
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb
218
229
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb
219
230
  - lib/speakeasy_client_sdk/models/operations/queryparam_op.rb
@@ -232,6 +243,7 @@ files:
232
243
  - lib/speakeasy_client_sdk/models/shared/accesstoken.rb
233
244
  - lib/speakeasy_client_sdk/models/shared/accesstoken_user.rb
234
245
  - lib/speakeasy_client_sdk/models/shared/account_type.rb
246
+ - lib/speakeasy_client_sdk/models/shared/annotations.rb
235
247
  - lib/speakeasy_client_sdk/models/shared/api.rb
236
248
  - lib/speakeasy_client_sdk/models/shared/api_input.rb
237
249
  - lib/speakeasy_client_sdk/models/shared/apiendpoint.rb
@@ -247,17 +259,27 @@ files:
247
259
  - lib/speakeasy_client_sdk/models/shared/filters.rb
248
260
  - lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb
249
261
  - lib/speakeasy_client_sdk/models/shared/generateopenapispecdiff.rb
262
+ - lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb
263
+ - lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb
264
+ - lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb
250
265
  - lib/speakeasy_client_sdk/models/shared/interactiontype.rb
251
266
  - lib/speakeasy_client_sdk/models/shared/level.rb
267
+ - lib/speakeasy_client_sdk/models/shared/manifest.rb
268
+ - lib/speakeasy_client_sdk/models/shared/namespace.rb
252
269
  - lib/speakeasy_client_sdk/models/shared/organization.rb
253
270
  - lib/speakeasy_client_sdk/models/shared/organization_account_type.rb
271
+ - lib/speakeasy_client_sdk/models/shared/preflightrequest.rb
272
+ - lib/speakeasy_client_sdk/models/shared/preflighttoken.rb
254
273
  - lib/speakeasy_client_sdk/models/shared/requestmetadata.rb
274
+ - lib/speakeasy_client_sdk/models/shared/revision.rb
255
275
  - lib/speakeasy_client_sdk/models/shared/schema.rb
256
276
  - lib/speakeasy_client_sdk/models/shared/schemadiff.rb
257
277
  - lib/speakeasy_client_sdk/models/shared/security.rb
278
+ - lib/speakeasy_client_sdk/models/shared/tag.rb
258
279
  - lib/speakeasy_client_sdk/models/shared/targetsdk.rb
259
280
  - lib/speakeasy_client_sdk/models/shared/unboundedrequest.rb
260
281
  - lib/speakeasy_client_sdk/models/shared/user.rb
282
+ - lib/speakeasy_client_sdk/models/shared/v2descriptor.rb
261
283
  - lib/speakeasy_client_sdk/models/shared/valuechange.rb
262
284
  - lib/speakeasy_client_sdk/models/shared/versionmetadata.rb
263
285
  - lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb