speakeasy_client_sdk_ruby 4.1.2 → 4.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6761be29416e86d14e886b68bfb9abf4feaa868bf5c976d2730031b5354891d
4
- data.tar.gz: c365c6a36114f9b10448780992b4db0f919f03ccd868cf5fb756c92c12d8f690
3
+ metadata.gz: 87755a80fb67c002f7fa746acbb8fb3bf1db8c3e976ec9036bde770823127aa8
4
+ data.tar.gz: 9cc70738a102faea7743736d9c7cdbc74a65000a7ccb6d71537b6b03b2cdf6ef
5
5
  SHA512:
6
- metadata.gz: 0a1386bb3d831936a9ac8ce0cf555dafa84b33304e6c01cb30155be38b3069e3d1071e7d664cab951154c5354f091fceff23e58b1d677c14637d018e85a31b79
7
- data.tar.gz: 02b432d85adabbfa843d46f433bfaa449b62021d59e652544f5c41125e7787ff60b905b95b4846e8c6215ac33109ba18fe33063569b17b523e3ce0c4ec503764
6
+ metadata.gz: 107f389b470354f5ba91455b90f35817dd2ea319bb0bf5c219fae680b1a34549e81bd2eb7e6273b8217843b6792e59c91ffc4c27b3190bba3307efbd7c348018
7
+ data.tar.gz: 06d237845a8b8dfad8a34046198540d020ffc55ef4e021468fcf69c14ae30b989379e1c9f3b733331b9f60f204d8bb8251067c0e7eed003c6b8bf7272ca5d918
@@ -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,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
@@ -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
@@ -59,9 +59,15 @@ 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'
62
66
  autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/operations/getnamespaces_response.rb'
63
67
  autoload :GetRevisionsRequest, 'speakeasy_client_sdk/models/operations/getrevisions_request.rb'
64
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'
65
71
  autoload :PreflightResponse, 'speakeasy_client_sdk/models/operations/preflight_response.rb'
66
72
  autoload :GetAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getaccesstoken_request.rb'
67
73
  autoload :GetAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getaccesstoken_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 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
@@ -13,16 +13,19 @@ module SpeakeasyClientSDK
13
13
 
14
14
 
15
15
  field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
- # A human readable name for the namespace.
16
+ # {organization_slug}/{workspace_slug}/{namespace_name}
17
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') } }
18
20
 
19
21
  field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
20
22
 
21
23
 
22
- sig { params(created_at: ::DateTime, id: ::String, updated_at: ::DateTime).void }
23
- def initialize(created_at: nil, id: nil, updated_at: nil)
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)
24
26
  @created_at = created_at
25
27
  @id = id
28
+ @name = name
26
29
  @updated_at = updated_at
27
30
  end
28
31
  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
@@ -12,12 +12,12 @@ module SpeakeasyClientSDK
12
12
  extend T::Sig
13
13
 
14
14
 
15
- field :access_token, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }
15
+ field :auth_token, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('auth_token') } }
16
16
 
17
17
 
18
- sig { params(access_token: ::String).void }
19
- def initialize(access_token: nil)
20
- @access_token = access_token
18
+ sig { params(auth_token: T.nilable(::String)).void }
19
+ def initialize(auth_token: nil)
20
+ @auth_token = auth_token
21
21
  end
22
22
  end
23
23
  end
@@ -16,18 +16,18 @@ module SpeakeasyClientSDK
16
16
  # aka digest
17
17
  field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
18
18
 
19
- field :namespace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_id') } }
19
+ field :namespace_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_name') } }
20
20
 
21
21
  field :tags, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('tags') } }
22
22
 
23
23
  field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
24
24
 
25
25
 
26
- sig { params(created_at: ::DateTime, id: ::String, namespace_id: ::String, tags: T::Array[::String], updated_at: ::DateTime).void }
27
- def initialize(created_at: nil, id: nil, namespace_id: nil, tags: nil, updated_at: nil)
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
28
  @created_at = created_at
29
29
  @id = id
30
- @namespace_id = namespace_id
30
+ @namespace_name = namespace_name
31
31
  @tags = tags
32
32
  @updated_at = updated_at
33
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 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,11 +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'
19
22
  autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/shared/getnamespacesresponse.rb'
20
23
  autoload :Namespace, 'speakeasy_client_sdk/models/shared/namespace.rb'
21
24
  autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/shared/getrevisionsresponse.rb'
22
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'
23
28
  autoload :PreflightToken, 'speakeasy_client_sdk/models/shared/preflighttoken.rb'
29
+ autoload :PreflightRequest, 'speakeasy_client_sdk/models/shared/preflightrequest.rb'
24
30
  autoload :Claims, 'speakeasy_client_sdk/models/shared/claims.rb'
25
31
  autoload :AccessTokenUser, 'speakeasy_client_sdk/models/shared/accesstoken_user.rb'
26
32
  autoload :Workspaces, 'speakeasy_client_sdk/models/shared/workspaces.rb'
@@ -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.2'
45
- @gen_version = '2.304.1'
46
- @user_agent = 'speakeasy-sdk/ruby 4.1.2 2.304.1 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]]) }
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.2
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-12 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
@@ -187,8 +187,12 @@ files:
187
187
  - lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb
188
188
  - lib/speakeasy_client_sdk/models/operations/getapis_request.rb
189
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
190
192
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb
191
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
192
196
  - lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb
193
197
  - lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb
194
198
  - lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb
@@ -203,6 +207,8 @@ files:
203
207
  - lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb
204
208
  - lib/speakeasy_client_sdk/models/operations/getschemas_request.rb
205
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
206
212
  - lib/speakeasy_client_sdk/models/operations/getuser_response.rb
207
213
  - lib/speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb
208
214
  - lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb
@@ -237,6 +243,7 @@ files:
237
243
  - lib/speakeasy_client_sdk/models/shared/accesstoken.rb
238
244
  - lib/speakeasy_client_sdk/models/shared/accesstoken_user.rb
239
245
  - lib/speakeasy_client_sdk/models/shared/account_type.rb
246
+ - lib/speakeasy_client_sdk/models/shared/annotations.rb
240
247
  - lib/speakeasy_client_sdk/models/shared/api.rb
241
248
  - lib/speakeasy_client_sdk/models/shared/api_input.rb
242
249
  - lib/speakeasy_client_sdk/models/shared/apiendpoint.rb
@@ -254,20 +261,25 @@ files:
254
261
  - lib/speakeasy_client_sdk/models/shared/generateopenapispecdiff.rb
255
262
  - lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb
256
263
  - lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb
264
+ - lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb
257
265
  - lib/speakeasy_client_sdk/models/shared/interactiontype.rb
258
266
  - lib/speakeasy_client_sdk/models/shared/level.rb
267
+ - lib/speakeasy_client_sdk/models/shared/manifest.rb
259
268
  - lib/speakeasy_client_sdk/models/shared/namespace.rb
260
269
  - lib/speakeasy_client_sdk/models/shared/organization.rb
261
270
  - lib/speakeasy_client_sdk/models/shared/organization_account_type.rb
271
+ - lib/speakeasy_client_sdk/models/shared/preflightrequest.rb
262
272
  - lib/speakeasy_client_sdk/models/shared/preflighttoken.rb
263
273
  - lib/speakeasy_client_sdk/models/shared/requestmetadata.rb
264
274
  - lib/speakeasy_client_sdk/models/shared/revision.rb
265
275
  - lib/speakeasy_client_sdk/models/shared/schema.rb
266
276
  - lib/speakeasy_client_sdk/models/shared/schemadiff.rb
267
277
  - lib/speakeasy_client_sdk/models/shared/security.rb
278
+ - lib/speakeasy_client_sdk/models/shared/tag.rb
268
279
  - lib/speakeasy_client_sdk/models/shared/targetsdk.rb
269
280
  - lib/speakeasy_client_sdk/models/shared/unboundedrequest.rb
270
281
  - lib/speakeasy_client_sdk/models/shared/user.rb
282
+ - lib/speakeasy_client_sdk/models/shared/v2descriptor.rb
271
283
  - lib/speakeasy_client_sdk/models/shared/valuechange.rb
272
284
  - lib/speakeasy_client_sdk/models/shared/versionmetadata.rb
273
285
  - lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb