Skip to content

Commit

Permalink
Merge pull request #95 from dubinc/speakeasy-sdk-regen-1741220880
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.76
  • Loading branch information
devkiran authored Mar 7, 2025
2 parents e0afb81 + 010f863 commit 10b94e9
Show file tree
Hide file tree
Showing 36 changed files with 438 additions and 533 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: 5a2dd83e-da98-455b-8ef9-0100a914efdf
management:
docChecksum: 7d12cd211b08ee0e5d9a48c3e7a01812
docChecksum: 2ce50b8b514248f8824b7ba29f83b819
docVersion: 0.0.1
speakeasyVersion: 1.509.1
generationVersion: 2.539.1
releaseVersion: 0.2.2-alpha.75
configChecksum: 404fa88f9d65791ad2fb135dc7d34aab
speakeasyVersion: 1.513.2
generationVersion: 2.545.2
releaseVersion: 0.2.2-alpha.76
configChecksum: 724cda658f823b26bbbb1ec8e6dc6e98
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
features:
ruby:
core: 3.5.3
core: 3.5.4
deprecations: 2.81.2
examples: 2.81.5
flattening: 2.81.1
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
ruby:
version: 0.2.2-alpha.75
version: 0.2.2-alpha.76
author: Dub
description: Ruby Client SDK Generated by Speakeasy
flattenGlobalSecurity: false
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.509.1
speakeasyVersion: 1.513.2
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:c2a6cafd7356b24ab4e2b2ec6fb69f9228296f936d4770bc3f47dbd68a6ea728
sourceBlobDigest: sha256:801e94947f41ed448f426fa0996e8f84a12226d2d653c8edba0540ea13ebd922
sourceRevisionDigest: sha256:ebb12473a1d5f535d42cb7892bdf1dc420d33272645008cfae0621bcd0fd1a87
sourceBlobDigest: sha256:cce96dc2031a049b65d585a5824a37f06966c682d18c32895ae912e0343ebcb0
tags:
- latest
- speakeasy-sdk-regen-1741134471
- speakeasy-sdk-regen-1741220880
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:c2a6cafd7356b24ab4e2b2ec6fb69f9228296f936d4770bc3f47dbd68a6ea728
sourceBlobDigest: sha256:801e94947f41ed448f426fa0996e8f84a12226d2d653c8edba0540ea13ebd922
sourceRevisionDigest: sha256:ebb12473a1d5f535d42cb7892bdf1dc420d33272645008cfae0621bcd0fd1a87
sourceBlobDigest: sha256:cce96dc2031a049b65d585a5824a37f06966c682d18c32895ae912e0343ebcb0
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:bac1a5c05560494664af3fc6b34966f8ab410447f321dcbb6bcdd68b8758c490
codeSamplesRevisionDigest: sha256:919d1661d14f40ebc3a6a02d2ae17967e0176356300fd3b9a9e44d02bbaf35df
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
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:
dub (0.2.2.pre.alpha.75)
dub (0.2.2.pre.alpha.76)
faraday
faraday-multipart
rack
Expand Down
81 changes: 55 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Dub.co API: Dub is link management infrastructure for companies to create market
<!-- $toc-max-depth=2 -->
* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Authentication](#authentication)
* [Available Resources and Operations](#available-resources-and-operations)
* [Server Selection](#server-selection)
* [Development](#development)
Expand All @@ -47,14 +48,11 @@ gem install dub
```ruby
require 'dub'


s = ::OpenApiSDK::Dub.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
)
)

s = ::OpenApiSDK::Dub.new(
security: ::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
),
)

req = ::OpenApiSDK::Operations::CreateLinkRequestBody.new(
url: "https://google.com",
Expand All @@ -63,7 +61,7 @@ req = ::OpenApiSDK::Operations::CreateLinkRequestBody.new(
"clux0rgak00011...",
],
)

res = s.links.create(req)

if ! res.link_schema.nil?
Expand All @@ -77,14 +75,11 @@ end
```ruby
require 'dub'


s = ::OpenApiSDK::Dub.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
)
)

s = ::OpenApiSDK::Dub.new(
security: ::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
),
)

req = ::OpenApiSDK::Operations::UpsertLinkRequestBody.new(
url: "https://google.com",
Expand All @@ -93,7 +88,7 @@ req = ::OpenApiSDK::Operations::UpsertLinkRequestBody.new(
"clux0rgak00011...",
],
)

res = s.links.upsert(req)

if ! res.link_schema.nil?
Expand All @@ -103,6 +98,44 @@ end
```
<!-- End SDK Example Usage [usage] -->

<!-- Start Authentication [security] -->
## Authentication

### Per-Client Security Schemes

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ------- | ---- | ----------- |
| `token` | http | HTTP Bearer |

You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
```ruby
require 'dub'

s = ::OpenApiSDK::Dub.new(
security: ::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
),
)

req = ::OpenApiSDK::Operations::CreateLinkRequestBody.new(
url: "https://google.com",
external_id: "123456",
tag_ids: [
"clux0rgak00011...",
],
)

res = s.links.create(req)

if ! res.link_schema.nil?
# handle response
end

```
<!-- End Authentication [security] -->

<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations

Expand Down Expand Up @@ -202,16 +235,12 @@ The default server can be overridden globally by passing a URL to the `server_ur
```ruby
require 'dub'


s = ::OpenApiSDK::Dub.new(
server_url: "https://api.dub.co",
security: ::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
),
)
s.config_security(
::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
)
)


req = ::OpenApiSDK::Operations::CreateLinkRequestBody.new(
url: "https://google.com",
Expand All @@ -220,7 +249,7 @@ req = ::OpenApiSDK::Operations::CreateLinkRequestBody.new(
"clux0rgak00011...",
],
)

res = s.links.create(req)

if ! res.link_schema.nil?
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 v0.2.2-alpha.75] .
### Releases
- [Ruby Gems v0.2.2-alpha.75] https://rubygems.org/gems/dub/versions/0.2.2-alpha.75 - .
- [Ruby Gems v0.2.2-alpha.75] https://rubygems.org/gems/dub/versions/0.2.2-alpha.75 - .

## 2025-03-07 00:27:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.513.2 (2.545.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.76] .
### Releases
- [Ruby Gems v0.2.2-alpha.76] https://rubygems.org/gems/dub/versions/0.2.2-alpha.76 - .
30 changes: 12 additions & 18 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
```ruby
require 'dub'


s = ::OpenApiSDK::Dub.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
)
)

s = ::OpenApiSDK::Dub.new(
security: ::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
),
)

req = ::OpenApiSDK::Operations::CreateLinkRequestBody.new(
url: "https://google.com",
Expand All @@ -18,7 +15,7 @@ req = ::OpenApiSDK::Operations::CreateLinkRequestBody.new(
"clux0rgak00011...",
],
)

res = s.links.create(req)

if ! res.link_schema.nil?
Expand All @@ -30,14 +27,11 @@ end
```ruby
require 'dub'


s = ::OpenApiSDK::Dub.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
)
)

s = ::OpenApiSDK::Dub.new(
security: ::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
),
)

req = ::OpenApiSDK::Operations::UpsertLinkRequestBody.new(
url: "https://google.com",
Expand All @@ -46,7 +40,7 @@ req = ::OpenApiSDK::Operations::UpsertLinkRequestBody.new(
"clux0rgak00011...",
],
)

res = s.links.upsert(req)

if ! res.link_schema.nil?
Expand Down
Loading

0 comments on commit 10b94e9

Please sign in to comment.