Skip to content

Commit

Permalink
Merge pull request #50 from dubinc/speakeasy-sdk-regen-1731371140
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.31
  • Loading branch information
devkiran authored Nov 12, 2024
2 parents edfb7e1 + 2caf120 commit 72547ff
Show file tree
Hide file tree
Showing 25 changed files with 97 additions and 53 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: 82aaffb8b85f5d349c96f40e961bfb78
docChecksum: 34bf2c8628db0d6fa3a73fc90d888f0c
docVersion: 0.0.1
speakeasyVersion: 1.423.1
generationVersion: 2.442.11
releaseVersion: 0.2.2-alpha.30
configChecksum: 8639c4e6a19b2e1308d71b43f4b9a28d
speakeasyVersion: 1.438.1
generationVersion: 2.457.2
releaseVersion: 0.2.2-alpha.31
configChecksum: 1500c211f74e539a241d9486db2cebbf
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
features:
ruby:
core: 3.2.26
core: 3.3.0
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
ruby:
version: 0.2.2-alpha.30
version: 0.2.2-alpha.31
author: Dub
description: Ruby Client SDK Generated by Speakeasy
imports:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.423.1
speakeasyVersion: 1.438.1
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:cc479e738a667afb79ee9b568027159026b7911f11f4265c9f3360695ccaedad
sourceBlobDigest: sha256:f237c55e84a6bce494a60deb971a4f0ebfa150629236e9e3ebd80cd574eab3da
sourceRevisionDigest: sha256:38a4ba7ddf108888129468f0d82285e3f1157dcbeda6384fbe6b7819a8d171f2
sourceBlobDigest: sha256:a11010fb626e9e32fb495d600b5fffeecc8b8cc7493bf6202802461d25be157f
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:cc479e738a667afb79ee9b568027159026b7911f11f4265c9f3360695ccaedad
sourceBlobDigest: sha256:f237c55e84a6bce494a60deb971a4f0ebfa150629236e9e3ebd80cd574eab3da
sourceRevisionDigest: sha256:38a4ba7ddf108888129468f0d82285e3f1157dcbeda6384fbe6b7819a8d171f2
sourceBlobDigest: sha256:a11010fb626e9e32fb495d600b5fffeecc8b8cc7493bf6202802461d25be157f
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:bbc6920d8d8cc42aa3e4f11437bda066f9e1820e46cd98ca4dc76199569d49c7
codeSamplesRevisionDigest: sha256:3e27e1b2cfb98bb01f4ccbf4ee39763345befe851c776b3abc631fbfde4689cf
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 4 additions & 4 deletions 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.30)
dub (0.2.2.pre.alpha.31)
faraday
faraday-multipart
rack
Expand All @@ -26,7 +26,7 @@ GEM
logger (1.6.1)
minitest (5.22.2)
multipart-post (2.4.1)
net-http (0.4.1)
net-http (0.5.0)
uri
netrc (0.11.0)
parallel (1.24.0)
Expand Down Expand Up @@ -84,7 +84,7 @@ GEM
yard-sorbet
thor (1.3.0)
unicode-display_width (2.5.0)
uri (0.13.1)
uri (1.0.1)
yard (0.9.34)
yard-sorbet (0.8.1)
sorbet-runtime (>= 0.5)
Expand All @@ -97,7 +97,7 @@ PLATFORMS
DEPENDENCIES
dub!
minitest
rubocop
rubocop (~> 1.60.2)
sorbet-runtime
tapioca

Expand Down
52 changes: 34 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,23 @@ end
<details open>
<summary>Available methods</summary>

### [Analytics](docs/sdks/analytics/README.md)
### [analytics](docs/sdks/analytics/README.md)

* [retrieve](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.

### [Domains](docs/sdks/domains/README.md)
### [domains](docs/sdks/domains/README.md)

* [create](docs/sdks/domains/README.md#create) - Create a domain
* [list](docs/sdks/domains/README.md#list) - Retrieve a list of domains
* [update](docs/sdks/domains/README.md#update) - Update a domain
* [delete](docs/sdks/domains/README.md#delete) - Delete a domain


### [Events](docs/sdks/events/README.md)
### [events](docs/sdks/events/README.md)

* [list](docs/sdks/events/README.md#list) - Retrieve a list of events

### [Links](docs/sdks/links/README.md)
### [links](docs/sdks/links/README.md)

* [create](docs/sdks/links/README.md#create) - Create a new link
* [list](docs/sdks/links/README.md#list) - Retrieve a list of links
Expand All @@ -135,28 +135,28 @@ end
* [delete_many](docs/sdks/links/README.md#delete_many) - Bulk delete links
* [upsert](docs/sdks/links/README.md#upsert) - Upsert a link

### [Metatags](docs/sdks/metatags/README.md)
### [metatags](docs/sdks/metatags/README.md)

* [get](docs/sdks/metatags/README.md#get) - Retrieve the metatags for a URL

### [QRCodes](docs/sdks/qrcodes/README.md)
### [qr_codes](docs/sdks/qrcodes/README.md)

* [get](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code

### [Tags](docs/sdks/tags/README.md)
### [tags](docs/sdks/tags/README.md)

* [create](docs/sdks/tags/README.md#create) - Create a new tag
* [list](docs/sdks/tags/README.md#list) - Retrieve a list of tags
* [update](docs/sdks/tags/README.md#update) - Update a tag
* [delete](docs/sdks/tags/README.md#delete) - Delete a tag

### [Track](docs/sdks/track/README.md)
### [track](docs/sdks/track/README.md)

* [lead](docs/sdks/track/README.md#lead) - Track a lead
* [sale](docs/sdks/track/README.md#sale) - Track a sale
* [customer](docs/sdks/track/README.md#customer) - Track a customer

### [Workspaces](docs/sdks/workspaces/README.md)
### [workspaces](docs/sdks/workspaces/README.md)

* [get](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
* [update](docs/sdks/workspaces/README.md#update) - Update a workspace
Expand All @@ -167,22 +167,38 @@ end
<!-- Start Server Selection [server] -->
## Server Selection

## Server Selection

### Select Server by Index
### Override Server URL Per-Client

You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
The default server can also be overridden globally by passing a URL to the `server_url (String)` optional parameter when initializing the SDK client instance. For example:
```ruby
require 'dub'

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://api.dub.co` | None |

s = ::OpenApiSDK::Dub.new(
server_url: "https://api.dub.co",
)
s.config_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)

### Override Server URL Per-Client
if ! res.link_schema.nil?
# handle response
end

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
```
<!-- End Server Selection [server] -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,4 +448,14 @@ Based on:
### Generated
- [ruby v0.2.2-alpha.30] .
### Releases
- [Ruby Gems v0.2.2-alpha.30] https://rubygems.org/gems/dub/versions/0.2.2-alpha.30 - .
- [Ruby Gems v0.2.2-alpha.30] https://rubygems.org/gems/dub/versions/0.2.2-alpha.30 - .

## 2024-11-12 00:25:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.31] .
### Releases
- [Ruby Gems v0.2.2-alpha.31] https://rubygems.org/gems/dub/versions/0.2.2-alpha.31 - .
2 changes: 1 addition & 1 deletion docs/models/operations/getlinkscountrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned. |
| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | The tag ID to filter the links by. This field is deprecated – use `tagIds` instead. |
| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | Deprecated. Use `tagIds` instead. The tag ID to filter the links by. |
| `tag_ids` | *T.nilable(::Object)* | :heavy_minus_sign: | The tag IDs to filter the links by. |
| `tag_names` | *T.nilable(::Object)* | :heavy_minus_sign: | The unique name of the tags assigned to the short link (case insensitive). |
| `search` | *T.nilable(::String)* | :heavy_minus_sign: | The search term to filter the links by. The search term will be matched against the short link slug and the destination url. |
Expand Down
2 changes: 1 addition & 1 deletion docs/models/operations/getlinksrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned. | |
| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | The tag ID to filter the links by. This field is deprecated – use `tagIds` instead. | |
| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | Deprecated. Use `tagIds` instead. The tag ID to filter the links by. | |
| `tag_ids` | *T.nilable(::Object)* | :heavy_minus_sign: | The tag IDs to filter the links by. | |
| `tag_names` | *T.nilable(::Object)* | :heavy_minus_sign: | The unique name of the tags assigned to the short link (case insensitive). | |
| `search` | *T.nilable(::String)* | :heavy_minus_sign: | The search term to filter the links by. The search term will be matched against the short link slug and the destination url. | |
Expand Down
Loading

0 comments on commit 72547ff

Please sign in to comment.