speakeasy_client_sdk_ruby 4.0.2 → 4.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2314fb32b4721c7e785bb127695051eed53d546fc1e3453bd91dd4730f5e6af7
4
- data.tar.gz: e1cfc315ae20214f8ad4ea3f249d3427a28a43e0095a72cf43af5aae0e321711
3
+ metadata.gz: 44a858b1211d85cbf93e6ea1d3d1ade3324685bfdffbd47a61280417fa251d07
4
+ data.tar.gz: 179e08d1bb3f6de3d68181d8d68a57e9d315851af0c26e21c050f5b62757fdc6
5
5
  SHA512:
6
- metadata.gz: 745162e2efb1105c2fe433abca93cc08abb92c0ef7994dad0098c42d32d925eea5d04e4f87a6efb0b796892bd7594e40bdd4b52ae41867ea8de3057ec5eea55a
7
- data.tar.gz: d981a9982518e41bdaccaa69c21eb3fab314809a0c1f2f6487d1f34363c4f95f51fe1d000fb42ae0e294cb13452afe44fed26acadae5ce9119986cbd85adea98
6
+ metadata.gz: 34c65d514707101e3cb1bd21f8fd9e89d1f54bcb9e8e4f15a2efc9232a71c301a9f5e69a89e4bf756710b6850b9fde8eb506e692ac0fe2ee0c539a14eb84dd94
7
+ data.tar.gz: 12e1c3c98dbf565930a898405c1ab4e3f48e38e511d654a71d195cb82ce01e1da0029e30fb9493d8ef3841d30d661f72dafc3265831cc423e08de7ecabf6d4d2
@@ -19,6 +19,44 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceAccessRequest)).returns(Utils::FieldAugmented) }
23
+ def get_workspace_access(request)
24
+ # get_workspace_access - Get access allowances for a particular workspace
25
+ # Checks if generation is permitted for a particular run of the CLI
26
+ url, params = @sdk_configuration.get_server_details
27
+ base_url = Utils.template_url(url, params)
28
+ url = "#{base_url}/v1/workspace/access"
29
+ headers = {}
30
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetWorkspaceAccessRequest, request, @sdk_configuration.globals)
31
+ headers['Accept'] = 'application/json'
32
+ headers['user-agent'] = @sdk_configuration.user_agent
33
+
34
+ r = @sdk_configuration.client.get(url) do |req|
35
+ req.headers = headers
36
+ req.params = query_params
37
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
38
+ end
39
+
40
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
41
+
42
+ res = ::SpeakeasyClientSDK::Operations::GetWorkspaceAccessResponse.new(
43
+ status_code: r.status, content_type: content_type, raw_response: r
44
+ )
45
+ if r.status == 200
46
+ if Utils.match_content_type(content_type, 'application/json')
47
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::AccessDetails)
48
+ res.access_details = out
49
+ end
50
+ elsif r.status >= 500 && r.status < 600
51
+ if Utils.match_content_type(content_type, 'application/json')
52
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
53
+ res.error = out
54
+ end
55
+ end
56
+ res
57
+ end
58
+
59
+
22
60
  sig { returns(::SpeakeasyClientSDK::Utils::FieldAugmented) }
23
61
  def validate_api_key
24
62
  # validate_api_key - Validate the current api key.
@@ -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 GetWorkspaceAccessRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Unique identifier of the generation target.
15
+ field :gen_lock_id, T.nilable(::String), { 'query_param': { 'field_name': 'genLockId', 'style': 'form', 'explode': true } }
16
+
17
+
18
+ sig { params(gen_lock_id: T.nilable(::String)).void }
19
+ def initialize(gen_lock_id: nil)
20
+ @gen_lock_id = gen_lock_id
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 GetWorkspaceAccessResponse < ::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 :access_details, T.nilable(::SpeakeasyClientSDK::Shared::AccessDetails)
22
+
23
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, access_details: T.nilable(::SpeakeasyClientSDK::Shared::AccessDetails), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, access_details: nil, error: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @access_details = access_details
32
+ @error = error
33
+ end
34
+ end
35
+ end
36
+ end
@@ -59,6 +59,8 @@ 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 :GetWorkspaceAccessRequest, 'speakeasy_client_sdk/models/operations/getworkspaceaccess_request.rb'
63
+ autoload :GetWorkspaceAccessResponse, 'speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb'
62
64
  autoload :ValidateApiKeyResponse, 'speakeasy_client_sdk/models/operations/validateapikey_response.rb'
63
65
  autoload :GenerateRequestPostmanCollectionRequest, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb'
64
66
  autoload :GenerateRequestPostmanCollectionResponse, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb'
@@ -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 AccessDetails < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :generation_allowed, T::Boolean, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_allowed') } }
16
+
17
+
18
+ sig { params(generation_allowed: T::Boolean).void }
19
+ def initialize(generation_allowed: nil)
20
+ @generation_allowed = generation_allowed
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,20 @@
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 AccountType < T::Enum
12
+ enums do
13
+ FREE = new('free')
14
+ SCALE_UP = new('scale-up')
15
+ ENTERPRISE = new('enterprise')
16
+ end
17
+ end
18
+
19
+ end
20
+ end
@@ -12,12 +12,18 @@ module SpeakeasyClientSDK
12
12
  extend T::Sig
13
13
 
14
14
 
15
+ field :account_type, ::SpeakeasyClientSDK::Shared::AccountType, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('account_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::AccountType, false) } }
16
+
15
17
  field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
16
18
 
19
+ field :generation_access_unlimited, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_access_unlimited') } }
20
+
17
21
 
18
- sig { params(workspace_id: ::String).void }
19
- def initialize(workspace_id: nil)
22
+ sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, workspace_id: ::String, generation_access_unlimited: T.nilable(T::Boolean)).void }
23
+ def initialize(account_type: nil, workspace_id: nil, generation_access_unlimited: nil)
24
+ @account_type = account_type
20
25
  @workspace_id = workspace_id
26
+ @generation_access_unlimited = generation_access_unlimited
21
27
  end
22
28
  end
23
29
  end
@@ -16,6 +16,8 @@ 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 :AccessDetails, 'speakeasy_client_sdk/models/shared/accessdetails.rb'
20
+ autoload :AccountType, 'speakeasy_client_sdk/models/shared/account_type.rb'
19
21
  autoload :ApiKeyDetails, 'speakeasy_client_sdk/models/shared/apikeydetails.rb'
20
22
  autoload :UnboundedRequest, 'speakeasy_client_sdk/models/shared/unboundedrequest.rb'
21
23
  autoload :BoundedRequest, 'speakeasy_client_sdk/models/shared/boundedrequest.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.0.2'
45
- @gen_version = '2.250.22'
46
- @user_agent = 'speakeasy-sdk/ruby 4.0.2 2.250.22 0.4.0 speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.0.4'
45
+ @gen_version = '2.262.2'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.0.4 2.262.2 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.0.2
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-09 00:00:00.000000000 Z
11
+ date: 2024-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -199,6 +199,8 @@ files:
199
199
  - lib/speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb
200
200
  - lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb
201
201
  - lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb
202
+ - lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_request.rb
203
+ - lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb
202
204
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
203
205
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
204
206
  - lib/speakeasy_client_sdk/models/operations/op.rb
@@ -218,6 +220,8 @@ files:
218
220
  - lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb
219
221
  - lib/speakeasy_client_sdk/models/operations/validateapikey_response.rb
220
222
  - lib/speakeasy_client_sdk/models/shared.rb
223
+ - lib/speakeasy_client_sdk/models/shared/accessdetails.rb
224
+ - lib/speakeasy_client_sdk/models/shared/account_type.rb
221
225
  - lib/speakeasy_client_sdk/models/shared/api.rb
222
226
  - lib/speakeasy_client_sdk/models/shared/api_input.rb
223
227
  - lib/speakeasy_client_sdk/models/shared/apiendpoint.rb
@@ -248,13 +252,13 @@ files:
248
252
  - lib/speakeasy_client_sdk/utils/metadata_fields.rb
249
253
  - lib/speakeasy_client_sdk/utils/utils.rb
250
254
  - lib/speakeasy_client_sdk_ruby.rb
251
- homepage: https://github.com/speakeasy-api/openapi-generation
255
+ homepage: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
252
256
  licenses:
253
257
  - Apache-2.0
254
258
  metadata:
255
- homepage_uri: https://github.com/speakeasy-api/openapi-generation
256
- documentation_uri: https://github.com/speakeasy-api/openapi-generation
257
- source_code_uri: https://github.com/speakeasy-api/openapi-generation
259
+ homepage_uri: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
260
+ documentation_uri: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
261
+ source_code_uri: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
258
262
  post_install_message:
259
263
  rdoc_options: []
260
264
  require_paths: