Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.295.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed May 24, 2024
1 parent a8f16ac commit e42a2ca
Show file tree
Hide file tree
Showing 12 changed files with 136 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f5719c92-1297-4aa0-bc5f-37116859d1e3
management:
docChecksum: f85cf38fea71c78f79ca43b23b176863
docChecksum: c1d828d0e8ecf8fac6bec9e95f0ca086
docVersion: 0.4.0 .
speakeasyVersion: 1.294.0
generationVersion: 2.333.3
releaseVersion: 4.2.2
configChecksum: b3fe3c1c00775005672e7673106727ae
speakeasyVersion: 1.295.2
generationVersion: 2.335.5
releaseVersion: 4.2.3
configChecksum: 5f53313e0596121963ad8c8594f9c900
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-ruby
Expand Down Expand Up @@ -166,6 +166,7 @@ generatedFiles:
- lib/speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb
- lib/speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb
- lib/speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb
- lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb
- lib/speakeasy_client_sdk/models/operations/getorganizationusage_response.rb
- lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb
- lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb
Expand Down Expand Up @@ -331,6 +332,7 @@ generatedFiles:
- docs/models/operations/githubcheckaccessresponse.md
- docs/models/operations/githubconfiguretargetresponse.md
- docs/models/operations/githubtriggeractionresponse.md
- docs/models/operations/createfreetrialresponse.md
- docs/models/operations/getorganizationusageresponse.md
- docs/models/operations/getorganizationsresponse.md
- docs/models/operations/getchangesreportsignedurlrequest.md
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
speakeasy_client_sdk_ruby (4.2.2)
speakeasy_client_sdk_ruby (4.2.3)
faraday
faraday-multipart
rack
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ end

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

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

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -898,4 +898,14 @@ Based on:
### Generated
- [ruby v4.2.2] .
### Releases
- [Ruby Gems v4.2.2] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.2 - .
- [Ruby Gems v4.2.2] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.2 - .

## 2024-05-24 00:03:45
### Changes
Based on:
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.295.2 (2.335.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v4.2.3] .
### Releases
- [Ruby Gems v4.2.3] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.3 - .
11 changes: 11 additions & 0 deletions docs/models/operations/createfreetrialresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CreateFreeTrialResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [T.nilable(::SpeakeasyClientSDK::Shared::Error)](../../models/shared/error.md) | :heavy_minus_sign: | Default error response |
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
33 changes: 33 additions & 0 deletions docs/sdks/organizations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,42 @@

### Available Operations

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

## create_free_trial

Creates a free trial for an organization

### Example Usage

```ruby
require 'speakeasy_client_sdk_ruby'


s = ::SpeakeasyClientSDK::SDK.new
s.config_security(
::SpeakeasyClientSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)


res = s.organizations.create_free_trial()

if res.status_code == 200
# handle response
end

```


### Response

**[T.nilable(::SpeakeasyClientSDK::Operations::CreateFreeTrialResponse)](../../models/operations/createfreetrialresponse.md)**


## get_organization_usage

Returns a billing usage summary by target languages for a particular organization
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
ruby:
version: 4.2.2
version: 4.2.3
author: Speakeasy
description: Ruby Client SDK Generated by Speakeasy
imports:
Expand Down
1 change: 1 addition & 0 deletions lib/speakeasy_client_sdk/models/operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ module Operations
autoload :GithubCheckAccessResponse, 'speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb'
autoload :GithubConfigureTargetResponse, 'speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb'
autoload :GithubTriggerActionResponse, 'speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb'
autoload :CreateFreeTrialResponse, 'speakeasy_client_sdk/models/operations/createfreetrial_response.rb'
autoload :GetOrganizationUsageResponse, 'speakeasy_client_sdk/models/operations/getorganizationusage_response.rb'
autoload :GetOrganizationsResponse, 'speakeasy_client_sdk/models/operations/getorganizations_response.rb'
autoload :GetChangesReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module SpeakeasyClientSDK
module Operations


class CreateFreeTrialResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
extend T::Sig

# HTTP response content type for this operation
field :content_type, ::String
# Raw HTTP response; suitable for custom response parsing
field :raw_response, ::Faraday::Response
# HTTP response status code for this operation
field :status_code, ::Integer
# Default error response
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)


sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
@content_type = content_type
@raw_response = raw_response
@status_code = status_code
@error = error
end
end
end
end
33 changes: 33 additions & 0 deletions lib/speakeasy_client_sdk/organizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,39 @@ def initialize(sdk_config)
end


sig { returns(::SpeakeasyClientSDK::Operations::CreateFreeTrialResponse) }
def create_free_trial
# create_free_trial - Create a free trial for an organization
# Creates a free trial for an organization
url, params = @sdk_configuration.get_server_details
base_url = Utils.template_url(url, params)
url = "#{base_url}/v1/organization/free_trial"
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = @sdk_configuration.user_agent

r = @sdk_configuration.client.post(url) do |req|
req.headers = headers
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
end

content_type = r.headers.fetch('Content-Type', 'application/octet-stream')

res = ::SpeakeasyClientSDK::Operations::CreateFreeTrialResponse.new(
status_code: r.status, content_type: content_type, raw_response: r
)
if r.status == 200
else

if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
res.error = out
end
end
res
end


sig { returns(::SpeakeasyClientSDK::Operations::GetOrganizationUsageResponse) }
def get_organization_usage
# get_organization_usage - Get billing usage summary for a particular organization
Expand Down
6 changes: 3 additions & 3 deletions lib/speakeasy_client_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def initialize(client, security, server_url, server, globals)
@globals = globals.nil? ? {} : globals
@language = 'ruby'
@openapi_doc_version = '0.4.0 .'
@sdk_version = '4.2.2'
@gen_version = '2.333.3'
@user_agent = 'speakeasy-sdk/ruby 4.2.2 2.333.3 0.4.0 . speakeasy_client_sdk_ruby'
@sdk_version = '4.2.3'
@gen_version = '2.335.5'
@user_agent = 'speakeasy-sdk/ruby 4.2.3 2.335.5 0.4.0 . speakeasy_client_sdk_ruby'
end

sig { returns([String, T::Hash[Symbol, String]]) }
Expand Down
2 changes: 1 addition & 1 deletion speakeasy_client_sdk_ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)

Gem::Specification.new do |s|
s.name = 'speakeasy_client_sdk_ruby'
s.version = '4.2.2'
s.version = '4.2.3'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down

0 comments on commit e42a2ca

Please sign in to comment.