speakeasy_client_sdk_ruby 4.2.2 → 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: b6ade17c069e3e5b6a459e74cde9440f5c407e0681fc05faadb2c5583bad4ef5
4
- data.tar.gz: 57e4cdc788aad37c248dcc0c27da6990602906593431ec901d13d6842ad9174d
3
+ metadata.gz: d0a1b40735f2582220f71aa30e8b676b2c1ea4b7765f0f02d34f314929aa2529
4
+ data.tar.gz: 687dc18826fd5e4b3336703a2cc463fe7d6788a1cc776e15adc6a0afda1c348b
5
5
  SHA512:
6
- metadata.gz: f80eac070b9262dfc60b2beb21a088f636b01b1002149bb66dea6e0c66ca7de0473bb6d3953820a92c1400ade800aed8176d177624c6723dd14b7c836a7b1114
7
- data.tar.gz: 17b8e526a7f6506a3271c6b70ca10cd1f0c8cefacb1cc8611e0c2c1f1b88833a9a9bf12a93471bd3b18789b2a8de2105214fe1fc58bfc01c53afcae1a87bf725
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'
@@ -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.2'
45
- @gen_version = '2.333.3'
46
- @user_agent = 'speakeasy-sdk/ruby 4.2.2 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.2
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-21 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