Skip to content

Commit e42a2ca

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.295.2
1 parent a8f16ac commit e42a2ca

File tree

12 files changed

+136
-12
lines changed

12 files changed

+136
-12
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f5719c92-1297-4aa0-bc5f-37116859d1e3
33
management:
4-
docChecksum: f85cf38fea71c78f79ca43b23b176863
4+
docChecksum: c1d828d0e8ecf8fac6bec9e95f0ca086
55
docVersion: 0.4.0 .
6-
speakeasyVersion: 1.294.0
7-
generationVersion: 2.333.3
8-
releaseVersion: 4.2.2
9-
configChecksum: b3fe3c1c00775005672e7673106727ae
6+
speakeasyVersion: 1.295.2
7+
generationVersion: 2.335.5
8+
releaseVersion: 4.2.3
9+
configChecksum: 5f53313e0596121963ad8c8594f9c900
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby
@@ -166,6 +166,7 @@ generatedFiles:
166166
- lib/speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb
167167
- lib/speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb
168168
- lib/speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb
169+
- lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb
169170
- lib/speakeasy_client_sdk/models/operations/getorganizationusage_response.rb
170171
- lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb
171172
- lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb
@@ -331,6 +332,7 @@ generatedFiles:
331332
- docs/models/operations/githubcheckaccessresponse.md
332333
- docs/models/operations/githubconfiguretargetresponse.md
333334
- docs/models/operations/githubtriggeractionresponse.md
335+
- docs/models/operations/createfreetrialresponse.md
334336
- docs/models/operations/getorganizationusageresponse.md
335337
- docs/models/operations/getorganizationsresponse.md
336338
- docs/models/operations/getchangesreportsignedurlrequest.md

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
speakeasy_client_sdk_ruby (4.2.2)
4+
speakeasy_client_sdk_ruby (4.2.3)
55
faraday
66
faraday-multipart
77
rack

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ end
105105

106106
### [Organizations](docs/sdks/organizations/README.md)
107107

108+
* [create_free_trial](docs/sdks/organizations/README.md#create_free_trial) - Create a free trial for an organization
108109
* [get_organization_usage](docs/sdks/organizations/README.md#get_organization_usage) - Get billing usage summary for a particular organization
109110
* [get_organizations](docs/sdks/organizations/README.md#get_organizations) - Get organizations for a user
110111

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,4 +898,14 @@ Based on:
898898
### Generated
899899
- [ruby v4.2.2] .
900900
### Releases
901-
- [Ruby Gems v4.2.2] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.2 - .
901+
- [Ruby Gems v4.2.2] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.2 - .
902+
903+
## 2024-05-24 00:03:45
904+
### Changes
905+
Based on:
906+
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
907+
- Speakeasy CLI 1.295.2 (2.335.5) https://github.com/speakeasy-api/speakeasy
908+
### Generated
909+
- [ruby v4.2.3] .
910+
### Releases
911+
- [Ruby Gems v4.2.3] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.3 - .
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateFreeTrialResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
8+
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `error` | [T.nilable(::SpeakeasyClientSDK::Shared::Error)](../../models/shared/error.md) | :heavy_minus_sign: | Default error response |
10+
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
11+
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

docs/sdks/organizations/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,42 @@
33

44
### Available Operations
55

6+
* [create_free_trial](#create_free_trial) - Create a free trial for an organization
67
* [get_organization_usage](#get_organization_usage) - Get billing usage summary for a particular organization
78
* [get_organizations](#get_organizations) - Get organizations for a user
89

10+
## create_free_trial
11+
12+
Creates a free trial for an organization
13+
14+
### Example Usage
15+
16+
```ruby
17+
require 'speakeasy_client_sdk_ruby'
18+
19+
20+
s = ::SpeakeasyClientSDK::SDK.new
21+
s.config_security(
22+
::SpeakeasyClientSDK::Shared::Security.new(
23+
api_key: "<YOUR_API_KEY_HERE>",
24+
)
25+
)
26+
27+
28+
res = s.organizations.create_free_trial()
29+
30+
if res.status_code == 200
31+
# handle response
32+
end
33+
34+
```
35+
36+
37+
### Response
38+
39+
**[T.nilable(::SpeakeasyClientSDK::Operations::CreateFreeTrialResponse)](../../models/operations/createfreetrialresponse.md)**
40+
41+
942
## get_organization_usage
1043

1144
Returns a billing usage summary by target languages for a particular organization

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
ruby:
13-
version: 4.2.2
13+
version: 4.2.3
1414
author: Speakeasy
1515
description: Ruby Client SDK Generated by Speakeasy
1616
imports:

lib/speakeasy_client_sdk/models/operations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ module Operations
8787
autoload :GithubCheckAccessResponse, 'speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb'
8888
autoload :GithubConfigureTargetResponse, 'speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb'
8989
autoload :GithubTriggerActionResponse, 'speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb'
90+
autoload :CreateFreeTrialResponse, 'speakeasy_client_sdk/models/operations/createfreetrial_response.rb'
9091
autoload :GetOrganizationUsageResponse, 'speakeasy_client_sdk/models/operations/getorganizationusage_response.rb'
9192
autoload :GetOrganizationsResponse, 'speakeasy_client_sdk/models/operations/getorganizations_response.rb'
9293
autoload :GetChangesReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb'
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

lib/speakeasy_client_sdk/organizations.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,39 @@ def initialize(sdk_config)
1919
end
2020

2121

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+
2255
sig { returns(::SpeakeasyClientSDK::Operations::GetOrganizationUsageResponse) }
2356
def get_organization_usage
2457
# get_organization_usage - Get billing usage summary for a particular organization

lib/speakeasy_client_sdk/sdkconfiguration.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def initialize(client, security, server_url, server, globals)
4141
@globals = globals.nil? ? {} : globals
4242
@language = 'ruby'
4343
@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'
4747
end
4848

4949
sig { returns([String, T::Hash[Symbol, String]]) }

speakeasy_client_sdk_ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
44

55
Gem::Specification.new do |s|
66
s.name = 'speakeasy_client_sdk_ruby'
7-
s.version = '4.2.2'
7+
s.version = '4.2.3'
88
s.platform = Gem::Platform::RUBY
99
s.licenses = ['Apache-2.0']
1010
s.summary = ''

0 commit comments

Comments
 (0)