speakeasy_client_sdk_ruby 4.2.1 → 4.2.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: aed64ea55ea5f163d699a477383658cb3fae1435a8757bfdeb3219fd0a130ed0
4
- data.tar.gz: ee19eb1f099b18fce1ab6e3391e8b6680d937c46078cdb08f9369a1e31c89fe1
3
+ metadata.gz: d0a1b40735f2582220f71aa30e8b676b2c1ea4b7765f0f02d34f314929aa2529
4
+ data.tar.gz: 687dc18826fd5e4b3336703a2cc463fe7d6788a1cc776e15adc6a0afda1c348b
5
5
  SHA512:
6
- metadata.gz: 87a91af14382aa5897f1f72d6ee8237d8d97ec0eeef4f71f00ca834c546a00196380089e8a244325189667b7a508aaa537e97c25129c38fd915aaa1247d067a5
7
- data.tar.gz: 8f668c12ea18926d76351f38edf5518fad4d510a4d42f8d6e729edc891826c93105b9a1801de7daa19b4c10e8e30d0320e6930891706cdd97a97403d77a1cd30
6
+ metadata.gz: 6a56e5ea0f10364b5aab625704280b34175b83cdacf7209c37c12637132df93300ee81020189dbaf5b43ea867ba74d74955f8f89b8c7d5438a8dca1e98862cfc
7
+ data.tar.gz: 78cbe2f78df1d6fc7c63075b16c8ae05299b360371736d4bbb3e37252de17da449354ff3acba30a5add09342bdd2bde0a5031afc8064a24dbafd54e1ef18f51c
@@ -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 CreateFreeTrialResponse < ::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
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @error = error
30
+ end
31
+ end
32
+ end
33
+ end
@@ -87,6 +87,7 @@ module SpeakeasyClientSDK
87
87
  autoload :GithubCheckAccessResponse, 'speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb'
88
88
  autoload :GithubConfigureTargetResponse, 'speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb'
89
89
  autoload :GithubTriggerActionResponse, 'speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb'
90
+ autoload :CreateFreeTrialResponse, 'speakeasy_client_sdk/models/operations/createfreetrial_response.rb'
90
91
  autoload :GetOrganizationUsageResponse, 'speakeasy_client_sdk/models/operations/getorganizationusage_response.rb'
91
92
  autoload :GetOrganizationsResponse, 'speakeasy_client_sdk/models/operations/getorganizations_response.rb'
92
93
  autoload :GetChangesReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb'
@@ -14,7 +14,7 @@ module SpeakeasyClientSDK
14
14
 
15
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
16
 
17
- field :enabled_features, T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('enabled_features') } }
17
+ field :enabled_features, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('enabled_features') } }
18
18
 
19
19
  field :org_slug, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org_slug') } }
20
20
 
@@ -27,7 +27,7 @@ module SpeakeasyClientSDK
27
27
  field :generation_access_unlimited, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_access_unlimited') } }
28
28
 
29
29
 
30
- sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, enabled_features: T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag], org_slug: ::String, workspace_id: ::String, workspace_slug: ::String, feature_flags: T.nilable(T::Array[::String]), generation_access_unlimited: T.nilable(T::Boolean)).void }
30
+ sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, enabled_features: T::Array[::String], org_slug: ::String, workspace_id: ::String, workspace_slug: ::String, feature_flags: T.nilable(T::Array[::String]), generation_access_unlimited: T.nilable(T::Boolean)).void }
31
31
  def initialize(account_type: nil, enabled_features: nil, org_slug: nil, workspace_id: nil, workspace_slug: nil, feature_flags: nil, generation_access_unlimited: nil)
32
32
  @account_type = account_type
33
33
  @enabled_features = enabled_features
@@ -19,6 +19,39 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
+ sig { returns(::SpeakeasyClientSDK::Operations::CreateFreeTrialResponse) }
23
+ def create_free_trial
24
+ # create_free_trial - Create a free trial for an organization
25
+ # Creates a free trial for an organization
26
+ url, params = @sdk_configuration.get_server_details
27
+ base_url = Utils.template_url(url, params)
28
+ url = "#{base_url}/v1/organization/free_trial"
29
+ headers = {}
30
+ headers['Accept'] = 'application/json'
31
+ headers['user-agent'] = @sdk_configuration.user_agent
32
+
33
+ r = @sdk_configuration.client.post(url) do |req|
34
+ req.headers = headers
35
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
36
+ end
37
+
38
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
39
+
40
+ res = ::SpeakeasyClientSDK::Operations::CreateFreeTrialResponse.new(
41
+ status_code: r.status, content_type: content_type, raw_response: r
42
+ )
43
+ if r.status == 200
44
+ else
45
+
46
+ if Utils.match_content_type(content_type, 'application/json')
47
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
48
+ res.error = out
49
+ end
50
+ end
51
+ res
52
+ end
53
+
54
+
22
55
  sig { returns(::SpeakeasyClientSDK::Operations::GetOrganizationUsageResponse) }
23
56
  def get_organization_usage
24
57
  # get_organization_usage - Get billing usage summary for a particular organization
@@ -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.2.1'
45
- @gen_version = '2.333.3'
46
- @user_agent = 'speakeasy-sdk/ruby 4.2.1 2.333.3 0.4.0 . speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.2.3'
45
+ @gen_version = '2.335.5'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.2.3 2.335.5 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.2.1
4
+ version: 4.2.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-05-18 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -151,6 +151,7 @@ files:
151
151
  - lib/speakeasy_client_sdk/github.rb
152
152
  - lib/speakeasy_client_sdk/metadata.rb
153
153
  - lib/speakeasy_client_sdk/models/operations.rb
154
+ - lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb
154
155
  - lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb
155
156
  - lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb
156
157
  - lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb