speakeasy_client_sdk_ruby 4.0.2 → 4.0.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: 2314fb32b4721c7e785bb127695051eed53d546fc1e3453bd91dd4730f5e6af7
4
- data.tar.gz: e1cfc315ae20214f8ad4ea3f249d3427a28a43e0095a72cf43af5aae0e321711
3
+ metadata.gz: 7fd0cfc7efa81b1a6ccd1779bcf59b0d4ca8355467a5ec9640377ee783173267
4
+ data.tar.gz: ae97e6eb7509b59b1c112db0930d19399f987fcdab1e90d855397f66d9c86445
5
5
  SHA512:
6
- metadata.gz: 745162e2efb1105c2fe433abca93cc08abb92c0ef7994dad0098c42d32d925eea5d04e4f87a6efb0b796892bd7594e40bdd4b52ae41867ea8de3057ec5eea55a
7
- data.tar.gz: d981a9982518e41bdaccaa69c21eb3fab314809a0c1f2f6487d1f34363c4f95f51fe1d000fb42ae0e294cb13452afe44fed26acadae5ce9119986cbd85adea98
6
+ metadata.gz: 45cc1be5023ebd1022bebf9c7aebfda6fe9a3e027f656a9050c1412ef597503551a221360c6a09a8fca107f253080674edf9dd027adfa2f1f01a9530dd9d990d
7
+ data.tar.gz: 4cf648d0529ceba2bce7ca9b8a4634ffd78dba23da75f1b3f41f2ccaa5eaa8868f8d92ac94092ec3f84d7cc08d0de01fccba576347cf7f807e95d0acfaabccf1
@@ -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
@@ -14,10 +14,13 @@ module SpeakeasyClientSDK
14
14
 
15
15
  field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
16
16
 
17
+ field :generation_access_unlimited, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_access_unlimited') } }
17
18
 
18
- sig { params(workspace_id: ::String).void }
19
- def initialize(workspace_id: nil)
19
+
20
+ sig { params(workspace_id: ::String, generation_access_unlimited: T.nilable(T::Boolean)).void }
21
+ def initialize(workspace_id: nil, generation_access_unlimited: nil)
20
22
  @workspace_id = workspace_id
23
+ @generation_access_unlimited = generation_access_unlimited
21
24
  end
22
25
  end
23
26
  end
@@ -16,6 +16,7 @@ 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'
19
20
  autoload :ApiKeyDetails, 'speakeasy_client_sdk/models/shared/apikeydetails.rb'
20
21
  autoload :UnboundedRequest, 'speakeasy_client_sdk/models/shared/unboundedrequest.rb'
21
22
  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.3'
45
+ @gen_version = '2.258.0'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.0.3 2.258.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.0.2
4
+ version: 4.0.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-02-09 00:00:00.000000000 Z
11
+ date: 2024-02-15 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,7 @@ 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
221
224
  - lib/speakeasy_client_sdk/models/shared/api.rb
222
225
  - lib/speakeasy_client_sdk/models/shared/api_input.rb
223
226
  - lib/speakeasy_client_sdk/models/shared/apiendpoint.rb