|
225 | 225 |
|
226 | 226 | * [batch_upsert_content](docs/sdks/lms/README.md#batch_upsert_content) - Batch Upsert Content |
227 | 227 | * [batch_upsert_course](docs/sdks/lms/README.md#batch_upsert_course) - Batch Upsert Course |
228 | | -* [create_content](docs/sdks/lms/README.md#create_content) - Create Content |
| 228 | +* [create_collection](docs/sdks/lms/README.md#create_collection) - Create Collection |
229 | 229 | * [create_user_completion](docs/sdks/lms/README.md#create_user_completion) - Create User Completion |
230 | | -* [delete_content](docs/sdks/lms/README.md#delete_content) - Delete Content |
231 | 230 | * [get_assignment](docs/sdks/lms/README.md#get_assignment) - Get Assignment |
232 | 231 | * [get_category](docs/sdks/lms/README.md#get_category) - Get Category |
233 | 232 | * [get_completion](docs/sdks/lms/README.md#get_completion) - Get Completion |
|
246 | 245 | * [list_user_assignments](docs/sdks/lms/README.md#list_user_assignments) - List User Assignments |
247 | 246 | * [list_user_completions](docs/sdks/lms/README.md#list_user_completions) - List User Completions |
248 | 247 | * [list_users](docs/sdks/lms/README.md#list_users) - List Users |
249 | | -* [update_content](docs/sdks/lms/README.md#update_content) - Update Content |
| 248 | +* [update_collection](docs/sdks/lms/README.md#update_collection) - Update Collection |
250 | 249 | * [upsert_content](docs/sdks/lms/README.md#upsert_content) - Upsert Content |
251 | 250 | * [upsert_course](docs/sdks/lms/README.md#upsert_course) - Upsert Course |
252 | 251 |
|
@@ -294,22 +293,31 @@ end |
294 | 293 | <!-- Start Server Selection [server] --> |
295 | 294 | ## Server Selection |
296 | 295 |
|
297 | | -## Server Selection |
298 | | - |
299 | | -### Select Server by Index |
300 | | - |
301 | | -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: |
| 296 | +### Override Server URL Per-Client |
302 | 297 |
|
303 | | -| # | Server | Variables | |
304 | | -| - | ------ | --------- | |
305 | | -| 0 | `https://api.stackone.com` | None | |
| 298 | +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: |
| 299 | +```ruby |
| 300 | +require 'stackone_client' |
306 | 301 |
|
307 | 302 |
|
| 303 | +s = ::StackOne::StackOne.new( |
| 304 | + server_url: "https://api.stackone.com", |
| 305 | + ) |
| 306 | +s.config_security( |
| 307 | + ::StackOne::Shared::Security.new( |
| 308 | + password: "", |
| 309 | + username: "", |
| 310 | + ) |
| 311 | +) |
308 | 312 |
|
| 313 | + |
| 314 | +res = s.accounts.delete_account(id="<id>") |
309 | 315 |
|
310 | | -### Override Server URL Per-Client |
| 316 | +if ! res.linked_account.nil? |
| 317 | + # handle response |
| 318 | +end |
311 | 319 |
|
312 | | -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: |
| 320 | +``` |
313 | 321 | <!-- End Server Selection [server] --> |
314 | 322 |
|
315 | 323 | <!-- Placeholder for Future Speakeasy SDK Sections --> |
|
0 commit comments