dub 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/domains.rb +0 -177
- data/lib/open_api_sdk/links.rb +85 -0
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/{transferdomain_response.rb → bulkupdatelinks_response.rb} +6 -6
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +10 -5
- data/lib/open_api_sdk/models/operations/data.rb +83 -0
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +24 -0
- data/lib/open_api_sdk/models/operations/{transferdomain_request.rb → updatetag_request.rb} +7 -7
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +32 -0
- data/lib/open_api_sdk/models/operations/{setprimarydomain_response.rb → updatetag_response.rb} +6 -6
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +60 -0
- data/lib/open_api_sdk/models/operations.rb +9 -5
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- data/lib/open_api_sdk/tags.rb +93 -0
- data/lib/open_api_sdk/workspaces.rb +82 -0
- metadata +11 -7
- data/lib/open_api_sdk/models/operations/setprimarydomain_request.rb +0 -30
- data/lib/open_api_sdk/models/operations/transferdomain_requestbody.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3975702865ea143cf56d7280d88cf0fc0012147949fb3abb71e4d91473f0ed24
|
4
|
+
data.tar.gz: d2a14b6200284af600a437ece8d51fa1ff239ee6d9e252025f64ed99defdaf30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f5e8eb2502c8efafd64cb32236001d2e67a4c08726831950bb352e23b95bcfdbafb5de85ea9b6a3d0dfe5dc723372d8ce27001e4fef742f5ee83df63171f83
|
7
|
+
data.tar.gz: 21d7013298bfebebe6e425e0bb2899130ac871a94cd6c28f8dd88b4840f7a0fb16e9eb2e022d8673e317a0e2d3a5bb9e164f2b427469149a7568a25c89e7d7e3
|
data/lib/open_api_sdk/domains.rb
CHANGED
@@ -359,182 +359,5 @@ module OpenApiSDK
|
|
359
359
|
end
|
360
360
|
res
|
361
361
|
end
|
362
|
-
|
363
|
-
|
364
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::SetPrimaryDomainRequest)).returns(::OpenApiSDK::Operations::SetPrimaryDomainResponse) }
|
365
|
-
def set_primary(request)
|
366
|
-
# set_primary - Set a domain as primary
|
367
|
-
# Set a domain as primary for the authenticated workspace.
|
368
|
-
url, params = @sdk_configuration.get_server_details
|
369
|
-
base_url = Utils.template_url(url, params)
|
370
|
-
url = Utils.generate_url(
|
371
|
-
::OpenApiSDK::Operations::SetPrimaryDomainRequest,
|
372
|
-
base_url,
|
373
|
-
'/domains/{slug}/primary',
|
374
|
-
request,
|
375
|
-
@sdk_configuration.globals
|
376
|
-
)
|
377
|
-
headers = {}
|
378
|
-
query_params = Utils.get_query_params(::OpenApiSDK::Operations::SetPrimaryDomainRequest, request, @sdk_configuration.globals)
|
379
|
-
headers['Accept'] = 'application/json'
|
380
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
381
|
-
|
382
|
-
r = @sdk_configuration.client.post(url) do |req|
|
383
|
-
req.headers = headers
|
384
|
-
req.params = query_params
|
385
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
386
|
-
end
|
387
|
-
|
388
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
389
|
-
|
390
|
-
res = ::OpenApiSDK::Operations::SetPrimaryDomainResponse.new(
|
391
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
392
|
-
)
|
393
|
-
if r.status == 200
|
394
|
-
if Utils.match_content_type(content_type, 'application/json')
|
395
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::DomainSchema)
|
396
|
-
res.domain_schema = out
|
397
|
-
end
|
398
|
-
elsif r.status == 400
|
399
|
-
if Utils.match_content_type(content_type, 'application/json')
|
400
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
401
|
-
res.bad_request = out
|
402
|
-
end
|
403
|
-
elsif r.status == 401
|
404
|
-
if Utils.match_content_type(content_type, 'application/json')
|
405
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
406
|
-
res.unauthorized = out
|
407
|
-
end
|
408
|
-
elsif r.status == 403
|
409
|
-
if Utils.match_content_type(content_type, 'application/json')
|
410
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
411
|
-
res.forbidden = out
|
412
|
-
end
|
413
|
-
elsif r.status == 404
|
414
|
-
if Utils.match_content_type(content_type, 'application/json')
|
415
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
416
|
-
res.not_found = out
|
417
|
-
end
|
418
|
-
elsif r.status == 409
|
419
|
-
if Utils.match_content_type(content_type, 'application/json')
|
420
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
421
|
-
res.conflict = out
|
422
|
-
end
|
423
|
-
elsif r.status == 410
|
424
|
-
if Utils.match_content_type(content_type, 'application/json')
|
425
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
426
|
-
res.invite_expired = out
|
427
|
-
end
|
428
|
-
elsif r.status == 422
|
429
|
-
if Utils.match_content_type(content_type, 'application/json')
|
430
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
431
|
-
res.unprocessable_entity = out
|
432
|
-
end
|
433
|
-
elsif r.status == 429
|
434
|
-
if Utils.match_content_type(content_type, 'application/json')
|
435
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
436
|
-
res.rate_limit_exceeded = out
|
437
|
-
end
|
438
|
-
elsif r.status == 500
|
439
|
-
if Utils.match_content_type(content_type, 'application/json')
|
440
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
441
|
-
res.internal_server_error = out
|
442
|
-
end
|
443
|
-
end
|
444
|
-
res
|
445
|
-
end
|
446
|
-
|
447
|
-
|
448
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::TransferDomainRequest)).returns(::OpenApiSDK::Operations::TransferDomainResponse) }
|
449
|
-
def transfer(request)
|
450
|
-
# transfer - Transfer a domain
|
451
|
-
# Transfer a domain to another workspace within the authenticated account.
|
452
|
-
url, params = @sdk_configuration.get_server_details
|
453
|
-
base_url = Utils.template_url(url, params)
|
454
|
-
url = Utils.generate_url(
|
455
|
-
::OpenApiSDK::Operations::TransferDomainRequest,
|
456
|
-
base_url,
|
457
|
-
'/domains/{slug}/transfer',
|
458
|
-
request,
|
459
|
-
@sdk_configuration.globals
|
460
|
-
)
|
461
|
-
headers = {}
|
462
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
463
|
-
headers['content-type'] = req_content_type
|
464
|
-
query_params = Utils.get_query_params(::OpenApiSDK::Operations::TransferDomainRequest, request, @sdk_configuration.globals)
|
465
|
-
headers['Accept'] = 'application/json'
|
466
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
467
|
-
|
468
|
-
r = @sdk_configuration.client.post(url) do |req|
|
469
|
-
req.headers = headers
|
470
|
-
req.params = query_params
|
471
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
472
|
-
if form
|
473
|
-
req.body = Utils.encode_form(form)
|
474
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
475
|
-
req.body = URI.encode_www_form(data)
|
476
|
-
else
|
477
|
-
req.body = data
|
478
|
-
end
|
479
|
-
end
|
480
|
-
|
481
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
482
|
-
|
483
|
-
res = ::OpenApiSDK::Operations::TransferDomainResponse.new(
|
484
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
485
|
-
)
|
486
|
-
if r.status == 200
|
487
|
-
if Utils.match_content_type(content_type, 'application/json')
|
488
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::DomainSchema)
|
489
|
-
res.domain_schema = out
|
490
|
-
end
|
491
|
-
elsif r.status == 400
|
492
|
-
if Utils.match_content_type(content_type, 'application/json')
|
493
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
494
|
-
res.bad_request = out
|
495
|
-
end
|
496
|
-
elsif r.status == 401
|
497
|
-
if Utils.match_content_type(content_type, 'application/json')
|
498
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
499
|
-
res.unauthorized = out
|
500
|
-
end
|
501
|
-
elsif r.status == 403
|
502
|
-
if Utils.match_content_type(content_type, 'application/json')
|
503
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
504
|
-
res.forbidden = out
|
505
|
-
end
|
506
|
-
elsif r.status == 404
|
507
|
-
if Utils.match_content_type(content_type, 'application/json')
|
508
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
509
|
-
res.not_found = out
|
510
|
-
end
|
511
|
-
elsif r.status == 409
|
512
|
-
if Utils.match_content_type(content_type, 'application/json')
|
513
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
514
|
-
res.conflict = out
|
515
|
-
end
|
516
|
-
elsif r.status == 410
|
517
|
-
if Utils.match_content_type(content_type, 'application/json')
|
518
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
519
|
-
res.invite_expired = out
|
520
|
-
end
|
521
|
-
elsif r.status == 422
|
522
|
-
if Utils.match_content_type(content_type, 'application/json')
|
523
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
524
|
-
res.unprocessable_entity = out
|
525
|
-
end
|
526
|
-
elsif r.status == 429
|
527
|
-
if Utils.match_content_type(content_type, 'application/json')
|
528
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
529
|
-
res.rate_limit_exceeded = out
|
530
|
-
end
|
531
|
-
elsif r.status == 500
|
532
|
-
if Utils.match_content_type(content_type, 'application/json')
|
533
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
534
|
-
res.internal_server_error = out
|
535
|
-
end
|
536
|
-
end
|
537
|
-
res
|
538
|
-
end
|
539
362
|
end
|
540
363
|
end
|
data/lib/open_api_sdk/links.rb
CHANGED
@@ -604,6 +604,91 @@ module OpenApiSDK
|
|
604
604
|
end
|
605
605
|
|
606
606
|
|
607
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::BulkUpdateLinksRequestBody)).returns(::OpenApiSDK::Operations::BulkUpdateLinksResponse) }
|
608
|
+
def update_many(request)
|
609
|
+
# update_many - Bulk update links
|
610
|
+
# Bulk update up to 100 links with the same data for the authenticated workspace.
|
611
|
+
url, params = @sdk_configuration.get_server_details
|
612
|
+
base_url = Utils.template_url(url, params)
|
613
|
+
url = "#{base_url}/links/bulk"
|
614
|
+
headers = {}
|
615
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
616
|
+
headers['content-type'] = req_content_type
|
617
|
+
headers['Accept'] = 'application/json'
|
618
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
619
|
+
|
620
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
621
|
+
req.headers = headers
|
622
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
623
|
+
if form
|
624
|
+
req.body = Utils.encode_form(form)
|
625
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
626
|
+
req.body = URI.encode_www_form(data)
|
627
|
+
else
|
628
|
+
req.body = data
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
632
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
633
|
+
|
634
|
+
res = ::OpenApiSDK::Operations::BulkUpdateLinksResponse.new(
|
635
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
636
|
+
)
|
637
|
+
if r.status == 200
|
638
|
+
if Utils.match_content_type(content_type, 'application/json')
|
639
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::LinkSchema])
|
640
|
+
res.link_schemas = out
|
641
|
+
end
|
642
|
+
elsif r.status == 400
|
643
|
+
if Utils.match_content_type(content_type, 'application/json')
|
644
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
645
|
+
res.bad_request = out
|
646
|
+
end
|
647
|
+
elsif r.status == 401
|
648
|
+
if Utils.match_content_type(content_type, 'application/json')
|
649
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
650
|
+
res.unauthorized = out
|
651
|
+
end
|
652
|
+
elsif r.status == 403
|
653
|
+
if Utils.match_content_type(content_type, 'application/json')
|
654
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
655
|
+
res.forbidden = out
|
656
|
+
end
|
657
|
+
elsif r.status == 404
|
658
|
+
if Utils.match_content_type(content_type, 'application/json')
|
659
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
660
|
+
res.not_found = out
|
661
|
+
end
|
662
|
+
elsif r.status == 409
|
663
|
+
if Utils.match_content_type(content_type, 'application/json')
|
664
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
665
|
+
res.conflict = out
|
666
|
+
end
|
667
|
+
elsif r.status == 410
|
668
|
+
if Utils.match_content_type(content_type, 'application/json')
|
669
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
670
|
+
res.invite_expired = out
|
671
|
+
end
|
672
|
+
elsif r.status == 422
|
673
|
+
if Utils.match_content_type(content_type, 'application/json')
|
674
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
675
|
+
res.unprocessable_entity = out
|
676
|
+
end
|
677
|
+
elsif r.status == 429
|
678
|
+
if Utils.match_content_type(content_type, 'application/json')
|
679
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
680
|
+
res.rate_limit_exceeded = out
|
681
|
+
end
|
682
|
+
elsif r.status == 500
|
683
|
+
if Utils.match_content_type(content_type, 'application/json')
|
684
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
685
|
+
res.internal_server_error = out
|
686
|
+
end
|
687
|
+
end
|
688
|
+
res
|
689
|
+
end
|
690
|
+
|
691
|
+
|
607
692
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpsertLinkRequest)).returns(::OpenApiSDK::Operations::UpsertLinkResponse) }
|
608
693
|
def upsert(request)
|
609
694
|
# upsert - Upsert a link
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class BulkUpdateLinksRequestBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::OpenApiSDK::Operations::Data, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :link_ids, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkIds') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(data: ::OpenApiSDK::Operations::Data, link_ids: T::Array[::String]).void }
|
21
|
+
def initialize(data: nil, link_ids: nil)
|
22
|
+
@data = data
|
23
|
+
@link_ids = link_ids
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/open_api_sdk/models/operations/{transferdomain_response.rb → bulkupdatelinks_response.rb}
RENAMED
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class BulkUpdateLinksResponse < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -21,14 +21,14 @@ module OpenApiSDK
|
|
21
21
|
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
22
|
# This response is sent when a request conflicts with the current state of the server.
|
23
23
|
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
-
# The domain transfer initiated
|
25
|
-
field :domain_schema, T.nilable(::OpenApiSDK::Shared::DomainSchema)
|
26
24
|
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
27
25
|
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
28
26
|
# The server has encountered a situation it does not know how to handle.
|
29
27
|
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
30
28
|
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
31
29
|
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
+
# The updated links
|
31
|
+
field :link_schemas, T.nilable(T::Array[::OpenApiSDK::Shared::LinkSchema])
|
32
32
|
# The server cannot find the requested resource.
|
33
33
|
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
34
34
|
# The user has sent too many requests in a given amount of time ("rate limiting")
|
@@ -39,17 +39,17 @@ module OpenApiSDK
|
|
39
39
|
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
40
|
|
41
41
|
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict),
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil,
|
42
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), link_schemas: T.nilable(T::Array[::OpenApiSDK::Shared::LinkSchema]), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
|
43
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, link_schemas: nil, not_found: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
44
|
@content_type = content_type
|
45
45
|
@raw_response = raw_response
|
46
46
|
@status_code = status_code
|
47
47
|
@bad_request = bad_request
|
48
48
|
@conflict = conflict
|
49
|
-
@domain_schema = domain_schema
|
50
49
|
@forbidden = forbidden
|
51
50
|
@internal_server_error = internal_server_error
|
52
51
|
@invite_expired = invite_expired
|
52
|
+
@link_schemas = link_schemas
|
53
53
|
@not_found = not_found
|
54
54
|
@rate_limit_exceeded = rate_limit_exceeded
|
55
55
|
@unauthorized = unauthorized
|
@@ -11,16 +11,21 @@ module OpenApiSDK
|
|
11
11
|
class CreateTagRequestBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The name of the tag to create.
|
15
|
-
field :tag, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }
|
16
14
|
# The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
|
17
15
|
field :color, T.nilable(::OpenApiSDK::Operations::Color), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('color'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::Color, true) } }
|
16
|
+
# The name of the tag to create.
|
17
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
18
|
+
# The name of the tag to create.
|
19
|
+
#
|
20
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
21
|
+
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }
|
18
22
|
|
19
23
|
|
20
|
-
sig { params(
|
21
|
-
def initialize(
|
22
|
-
@tag = tag
|
24
|
+
sig { params(color: T.nilable(::OpenApiSDK::Operations::Color), name: T.nilable(::String), tag: T.nilable(::String)).void }
|
25
|
+
def initialize(color: nil, name: nil, tag: nil)
|
23
26
|
@color = color
|
27
|
+
@name = name
|
28
|
+
@tag = tag
|
24
29
|
end
|
25
30
|
end
|
26
31
|
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class Data < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The Android destination URL for the short link for Android device targeting.
|
15
|
+
field :android, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('android') } }
|
16
|
+
# Whether the short link is archived.
|
17
|
+
field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
18
|
+
# The comments for the short link.
|
19
|
+
field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
20
|
+
# The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
21
|
+
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
22
|
+
# Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
|
23
|
+
field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
24
|
+
# The URL to redirect to when the short link has expired.
|
25
|
+
field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
|
26
|
+
# The date and time when the short link will expire at.
|
27
|
+
field :expires_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
|
28
|
+
# Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
|
29
|
+
field :geo, T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
|
30
|
+
# The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
31
|
+
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
32
|
+
# The iOS destination URL for the short link for iOS device targeting.
|
33
|
+
field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
|
34
|
+
# The password required to access the destination URL of the short link.
|
35
|
+
field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
|
36
|
+
# Whether the short link uses Custom Social Media Cards feature.
|
37
|
+
field :proxy, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
|
38
|
+
# Whether the short link's stats are publicly accessible.
|
39
|
+
field :public_stats, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats') } }
|
40
|
+
# Whether the short link uses link cloaking.
|
41
|
+
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
42
|
+
# The unique ID of the tag assigned to the short link. This field is deprecated – use `tagIds` instead.
|
43
|
+
#
|
44
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
45
|
+
field :tag_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|
46
|
+
# The unique IDs of the tags assigned to the short link.
|
47
|
+
field :tag_ids, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagIds') } }
|
48
|
+
# The unique name of the tags assigned to the short link (case insensitive).
|
49
|
+
field :tag_names, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagNames') } }
|
50
|
+
# The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
51
|
+
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
52
|
+
# Whether to track conversions for the short link.
|
53
|
+
field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
|
54
|
+
# The destination URL of the short link.
|
55
|
+
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
56
|
+
|
57
|
+
|
58
|
+
sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), password: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
59
|
+
def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, geo: nil, image: nil, ios: nil, password: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil, url: nil)
|
60
|
+
@android = android
|
61
|
+
@archived = archived
|
62
|
+
@comments = comments
|
63
|
+
@description = description
|
64
|
+
@do_index = do_index
|
65
|
+
@expired_url = expired_url
|
66
|
+
@expires_at = expires_at
|
67
|
+
@geo = geo
|
68
|
+
@image = image
|
69
|
+
@ios = ios
|
70
|
+
@password = password
|
71
|
+
@proxy = proxy
|
72
|
+
@public_stats = public_stats
|
73
|
+
@rewrite = rewrite
|
74
|
+
@tag_id = tag_id
|
75
|
+
@tag_ids = tag_ids
|
76
|
+
@tag_names = tag_names
|
77
|
+
@title = title
|
78
|
+
@track_conversion = track_conversion
|
79
|
+
@url = url
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# UpdateTagColor - The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
|
11
|
+
class UpdateTagColor < T::Enum
|
12
|
+
enums do
|
13
|
+
RED = new('red')
|
14
|
+
YELLOW = new('yellow')
|
15
|
+
GREEN = new('green')
|
16
|
+
BLUE = new('blue')
|
17
|
+
PURPLE = new('purple')
|
18
|
+
PINK = new('pink')
|
19
|
+
BROWN = new('brown')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -8,22 +8,22 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class UpdateTagRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The
|
15
|
-
field :
|
14
|
+
# The ID of the tag
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
16
|
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
17
17
|
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
18
18
|
|
19
|
-
field :request_body, T.nilable(::OpenApiSDK::Operations::
|
19
|
+
field :request_body, T.nilable(::OpenApiSDK::Operations::UpdateTagRequestBody), { 'request': { 'media_type': 'application/json' } }
|
20
20
|
# The ID of the workspace.
|
21
21
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
22
22
|
|
23
23
|
|
24
|
-
sig { params(
|
25
|
-
def initialize(
|
26
|
-
@
|
24
|
+
sig { params(id: ::String, project_slug: T.nilable(::String), request_body: T.nilable(::OpenApiSDK::Operations::UpdateTagRequestBody), workspace_id: T.nilable(::String)).void }
|
25
|
+
def initialize(id: nil, project_slug: nil, request_body: nil, workspace_id: nil)
|
26
|
+
@id = id
|
27
27
|
@project_slug = project_slug
|
28
28
|
@request_body = request_body
|
29
29
|
@workspace_id = workspace_id
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class UpdateTagRequestBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
|
15
|
+
field :color, T.nilable(::OpenApiSDK::Operations::UpdateTagColor), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('color'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateTagColor, true) } }
|
16
|
+
# The name of the tag to create.
|
17
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
18
|
+
# The name of the tag to create.
|
19
|
+
#
|
20
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
21
|
+
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tag') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(color: T.nilable(::OpenApiSDK::Operations::UpdateTagColor), name: T.nilable(::String), tag: T.nilable(::String)).void }
|
25
|
+
def initialize(color: nil, name: nil, tag: nil)
|
26
|
+
@color = color
|
27
|
+
@name = name
|
28
|
+
@tag = tag
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/open_api_sdk/models/operations/{setprimarydomain_response.rb → updatetag_response.rb}
RENAMED
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class UpdateTagResponse < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -21,8 +21,6 @@ module OpenApiSDK
|
|
21
21
|
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
22
|
# This response is sent when a request conflicts with the current state of the server.
|
23
23
|
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
-
# The domain was set as primary
|
25
|
-
field :domain_schema, T.nilable(::OpenApiSDK::Shared::DomainSchema)
|
26
24
|
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
27
25
|
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
28
26
|
# The server has encountered a situation it does not know how to handle.
|
@@ -33,25 +31,27 @@ module OpenApiSDK
|
|
33
31
|
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
34
32
|
# The user has sent too many requests in a given amount of time ("rate limiting")
|
35
33
|
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
+
# The updated tag.
|
35
|
+
field :tag_schema, T.nilable(::OpenApiSDK::Shared::TagSchema)
|
36
36
|
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
37
37
|
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
38
38
|
# The request was well-formed but was unable to be followed due to semantic errors.
|
39
39
|
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
40
|
|
41
41
|
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict),
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil,
|
42
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), tag_schema: T.nilable(::OpenApiSDK::Shared::TagSchema), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
|
43
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, rate_limit_exceeded: nil, tag_schema: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
44
|
@content_type = content_type
|
45
45
|
@raw_response = raw_response
|
46
46
|
@status_code = status_code
|
47
47
|
@bad_request = bad_request
|
48
48
|
@conflict = conflict
|
49
|
-
@domain_schema = domain_schema
|
50
49
|
@forbidden = forbidden
|
51
50
|
@internal_server_error = internal_server_error
|
52
51
|
@invite_expired = invite_expired
|
53
52
|
@not_found = not_found
|
54
53
|
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
+
@tag_schema = tag_schema
|
55
55
|
@unauthorized = unauthorized
|
56
56
|
@unprocessable_entity = unprocessable_entity
|
57
57
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class UpdateWorkspaceRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The ID or slug of the workspace.
|
15
|
+
field :id_or_slug, ::String, { 'path_param': { 'field_name': 'idOrSlug', 'style': 'simple', 'explode': false } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(id_or_slug: ::String).void }
|
19
|
+
def initialize(id_or_slug: nil)
|
20
|
+
@id_or_slug = id_or_slug
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class UpdateWorkspaceResponse < ::OpenApiSDK::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
|
+
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
21
|
+
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
+
# This response is sent when a request conflicts with the current state of the server.
|
23
|
+
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
+
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
25
|
+
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
26
|
+
# The server has encountered a situation it does not know how to handle.
|
27
|
+
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
|
+
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
|
+
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
+
# The server cannot find the requested resource.
|
31
|
+
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
|
+
# The user has sent too many requests in a given amount of time ("rate limiting")
|
33
|
+
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
+
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
35
|
+
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
36
|
+
# The request was well-formed but was unable to be followed due to semantic errors.
|
37
|
+
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
38
|
+
# The updated workspace.
|
39
|
+
field :workspace_schema, T.nilable(::OpenApiSDK::Shared::WorkspaceSchema)
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity), workspace_schema: T.nilable(::OpenApiSDK::Shared::WorkspaceSchema)).void }
|
43
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil, workspace_schema: nil)
|
44
|
+
@content_type = content_type
|
45
|
+
@raw_response = raw_response
|
46
|
+
@status_code = status_code
|
47
|
+
@bad_request = bad_request
|
48
|
+
@conflict = conflict
|
49
|
+
@forbidden = forbidden
|
50
|
+
@internal_server_error = internal_server_error
|
51
|
+
@invite_expired = invite_expired
|
52
|
+
@not_found = not_found
|
53
|
+
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
+
@unauthorized = unauthorized
|
55
|
+
@unprocessable_entity = unprocessable_entity
|
56
|
+
@workspace_schema = workspace_schema
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -24,6 +24,9 @@ module OpenApiSDK
|
|
24
24
|
autoload :RequestBody, 'open_api_sdk/models/operations/requestbody.rb'
|
25
25
|
autoload :BulkCreateLinksRequest, 'open_api_sdk/models/operations/bulkcreatelinks_request.rb'
|
26
26
|
autoload :BulkCreateLinksResponse, 'open_api_sdk/models/operations/bulkcreatelinks_response.rb'
|
27
|
+
autoload :Data, 'open_api_sdk/models/operations/data.rb'
|
28
|
+
autoload :BulkUpdateLinksRequestBody, 'open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb'
|
29
|
+
autoload :BulkUpdateLinksResponse, 'open_api_sdk/models/operations/bulkupdatelinks_response.rb'
|
27
30
|
autoload :UpsertLinkRequestBody, 'open_api_sdk/models/operations/upsertlink_requestbody.rb'
|
28
31
|
autoload :UpsertLinkRequest, 'open_api_sdk/models/operations/upsertlink_request.rb'
|
29
32
|
autoload :UpsertLinkResponse, 'open_api_sdk/models/operations/upsertlink_response.rb'
|
@@ -37,12 +40,18 @@ module OpenApiSDK
|
|
37
40
|
autoload :RetrieveAnalyticsResponse, 'open_api_sdk/models/operations/retrieveanalytics_response.rb'
|
38
41
|
autoload :GetWorkspaceRequest, 'open_api_sdk/models/operations/getworkspace_request.rb'
|
39
42
|
autoload :GetWorkspaceResponse, 'open_api_sdk/models/operations/getworkspace_response.rb'
|
43
|
+
autoload :UpdateWorkspaceRequest, 'open_api_sdk/models/operations/updateworkspace_request.rb'
|
44
|
+
autoload :UpdateWorkspaceResponse, 'open_api_sdk/models/operations/updateworkspace_response.rb'
|
40
45
|
autoload :GetTagsRequest, 'open_api_sdk/models/operations/gettags_request.rb'
|
41
46
|
autoload :GetTagsResponse, 'open_api_sdk/models/operations/gettags_response.rb'
|
42
47
|
autoload :Color, 'open_api_sdk/models/operations/color.rb'
|
43
48
|
autoload :CreateTagRequestBody, 'open_api_sdk/models/operations/createtag_requestbody.rb'
|
44
49
|
autoload :CreateTagRequest, 'open_api_sdk/models/operations/createtag_request.rb'
|
45
50
|
autoload :CreateTagResponse, 'open_api_sdk/models/operations/createtag_response.rb'
|
51
|
+
autoload :UpdateTagColor, 'open_api_sdk/models/operations/updatetag_color.rb'
|
52
|
+
autoload :UpdateTagRequestBody, 'open_api_sdk/models/operations/updatetag_requestbody.rb'
|
53
|
+
autoload :UpdateTagRequest, 'open_api_sdk/models/operations/updatetag_request.rb'
|
54
|
+
autoload :UpdateTagResponse, 'open_api_sdk/models/operations/updatetag_response.rb'
|
46
55
|
autoload :ListDomainsRequest, 'open_api_sdk/models/operations/listdomains_request.rb'
|
47
56
|
autoload :ListDomainsResponse, 'open_api_sdk/models/operations/listdomains_response.rb'
|
48
57
|
autoload :CreateDomainRequestBody, 'open_api_sdk/models/operations/createdomain_requestbody.rb'
|
@@ -54,11 +63,6 @@ module OpenApiSDK
|
|
54
63
|
autoload :UpdateDomainRequestBody, 'open_api_sdk/models/operations/updatedomain_requestbody.rb'
|
55
64
|
autoload :UpdateDomainRequest, 'open_api_sdk/models/operations/updatedomain_request.rb'
|
56
65
|
autoload :UpdateDomainResponse, 'open_api_sdk/models/operations/updatedomain_response.rb'
|
57
|
-
autoload :SetPrimaryDomainRequest, 'open_api_sdk/models/operations/setprimarydomain_request.rb'
|
58
|
-
autoload :SetPrimaryDomainResponse, 'open_api_sdk/models/operations/setprimarydomain_response.rb'
|
59
|
-
autoload :TransferDomainRequestBody, 'open_api_sdk/models/operations/transferdomain_requestbody.rb'
|
60
|
-
autoload :TransferDomainRequest, 'open_api_sdk/models/operations/transferdomain_request.rb'
|
61
|
-
autoload :TransferDomainResponse, 'open_api_sdk/models/operations/transferdomain_response.rb'
|
62
66
|
autoload :TrackLeadRequestBody, 'open_api_sdk/models/operations/tracklead_requestbody.rb'
|
63
67
|
autoload :TrackLeadRequest, 'open_api_sdk/models/operations/tracklead_request.rb'
|
64
68
|
autoload :TrackLeadResponseBody, 'open_api_sdk/models/operations/tracklead_responsebody.rb'
|
@@ -40,9 +40,9 @@ module OpenApiSDK
|
|
40
40
|
@globals = globals.nil? ? {} : globals
|
41
41
|
@language = 'ruby'
|
42
42
|
@openapi_doc_version = '0.0.1'
|
43
|
-
@sdk_version = '0.1.
|
44
|
-
@gen_version = '2.
|
45
|
-
@user_agent = 'speakeasy-sdk/ruby 0.1.
|
43
|
+
@sdk_version = '0.1.2'
|
44
|
+
@gen_version = '2.359.0'
|
45
|
+
@user_agent = 'speakeasy-sdk/ruby 0.1.2 2.359.0 0.0.1 dub'
|
46
46
|
end
|
47
47
|
|
48
48
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/open_api_sdk/tags.rb
CHANGED
@@ -182,5 +182,98 @@ module OpenApiSDK
|
|
182
182
|
end
|
183
183
|
res
|
184
184
|
end
|
185
|
+
|
186
|
+
|
187
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateTagRequest)).returns(::OpenApiSDK::Operations::UpdateTagResponse) }
|
188
|
+
def update(request)
|
189
|
+
# update - Update a tag
|
190
|
+
# Update a tag in the workspace.
|
191
|
+
url, params = @sdk_configuration.get_server_details
|
192
|
+
base_url = Utils.template_url(url, params)
|
193
|
+
url = Utils.generate_url(
|
194
|
+
::OpenApiSDK::Operations::UpdateTagRequest,
|
195
|
+
base_url,
|
196
|
+
'/tags/{id}',
|
197
|
+
request,
|
198
|
+
@sdk_configuration.globals
|
199
|
+
)
|
200
|
+
headers = {}
|
201
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
202
|
+
headers['content-type'] = req_content_type
|
203
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::UpdateTagRequest, request, @sdk_configuration.globals)
|
204
|
+
headers['Accept'] = 'application/json'
|
205
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
206
|
+
|
207
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
208
|
+
req.headers = headers
|
209
|
+
req.params = query_params
|
210
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
211
|
+
if form
|
212
|
+
req.body = Utils.encode_form(form)
|
213
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
214
|
+
req.body = URI.encode_www_form(data)
|
215
|
+
else
|
216
|
+
req.body = data
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
221
|
+
|
222
|
+
res = ::OpenApiSDK::Operations::UpdateTagResponse.new(
|
223
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
224
|
+
)
|
225
|
+
if r.status == 200
|
226
|
+
if Utils.match_content_type(content_type, 'application/json')
|
227
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::TagSchema)
|
228
|
+
res.tag_schema = out
|
229
|
+
end
|
230
|
+
elsif r.status == 400
|
231
|
+
if Utils.match_content_type(content_type, 'application/json')
|
232
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
233
|
+
res.bad_request = out
|
234
|
+
end
|
235
|
+
elsif r.status == 401
|
236
|
+
if Utils.match_content_type(content_type, 'application/json')
|
237
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
238
|
+
res.unauthorized = out
|
239
|
+
end
|
240
|
+
elsif r.status == 403
|
241
|
+
if Utils.match_content_type(content_type, 'application/json')
|
242
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
243
|
+
res.forbidden = out
|
244
|
+
end
|
245
|
+
elsif r.status == 404
|
246
|
+
if Utils.match_content_type(content_type, 'application/json')
|
247
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
248
|
+
res.not_found = out
|
249
|
+
end
|
250
|
+
elsif r.status == 409
|
251
|
+
if Utils.match_content_type(content_type, 'application/json')
|
252
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
253
|
+
res.conflict = out
|
254
|
+
end
|
255
|
+
elsif r.status == 410
|
256
|
+
if Utils.match_content_type(content_type, 'application/json')
|
257
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
258
|
+
res.invite_expired = out
|
259
|
+
end
|
260
|
+
elsif r.status == 422
|
261
|
+
if Utils.match_content_type(content_type, 'application/json')
|
262
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
263
|
+
res.unprocessable_entity = out
|
264
|
+
end
|
265
|
+
elsif r.status == 429
|
266
|
+
if Utils.match_content_type(content_type, 'application/json')
|
267
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
268
|
+
res.rate_limit_exceeded = out
|
269
|
+
end
|
270
|
+
elsif r.status == 500
|
271
|
+
if Utils.match_content_type(content_type, 'application/json')
|
272
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
273
|
+
res.internal_server_error = out
|
274
|
+
end
|
275
|
+
end
|
276
|
+
res
|
277
|
+
end
|
185
278
|
end
|
186
279
|
end
|
@@ -99,5 +99,87 @@ module OpenApiSDK
|
|
99
99
|
end
|
100
100
|
res
|
101
101
|
end
|
102
|
+
|
103
|
+
|
104
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateWorkspaceRequest)).returns(::OpenApiSDK::Operations::UpdateWorkspaceResponse) }
|
105
|
+
def update(request)
|
106
|
+
# update - Update a workspace
|
107
|
+
# Update a workspace by ID or slug.
|
108
|
+
url, params = @sdk_configuration.get_server_details
|
109
|
+
base_url = Utils.template_url(url, params)
|
110
|
+
url = Utils.generate_url(
|
111
|
+
::OpenApiSDK::Operations::UpdateWorkspaceRequest,
|
112
|
+
base_url,
|
113
|
+
'/workspaces/{idOrSlug}',
|
114
|
+
request,
|
115
|
+
@sdk_configuration.globals
|
116
|
+
)
|
117
|
+
headers = {}
|
118
|
+
headers['Accept'] = 'application/json'
|
119
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
120
|
+
|
121
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
122
|
+
req.headers = headers
|
123
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
124
|
+
end
|
125
|
+
|
126
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
127
|
+
|
128
|
+
res = ::OpenApiSDK::Operations::UpdateWorkspaceResponse.new(
|
129
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
130
|
+
)
|
131
|
+
if r.status == 200
|
132
|
+
if Utils.match_content_type(content_type, 'application/json')
|
133
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::WorkspaceSchema)
|
134
|
+
res.workspace_schema = out
|
135
|
+
end
|
136
|
+
elsif r.status == 400
|
137
|
+
if Utils.match_content_type(content_type, 'application/json')
|
138
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
139
|
+
res.bad_request = out
|
140
|
+
end
|
141
|
+
elsif r.status == 401
|
142
|
+
if Utils.match_content_type(content_type, 'application/json')
|
143
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
144
|
+
res.unauthorized = out
|
145
|
+
end
|
146
|
+
elsif r.status == 403
|
147
|
+
if Utils.match_content_type(content_type, 'application/json')
|
148
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
149
|
+
res.forbidden = out
|
150
|
+
end
|
151
|
+
elsif r.status == 404
|
152
|
+
if Utils.match_content_type(content_type, 'application/json')
|
153
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
154
|
+
res.not_found = out
|
155
|
+
end
|
156
|
+
elsif r.status == 409
|
157
|
+
if Utils.match_content_type(content_type, 'application/json')
|
158
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
159
|
+
res.conflict = out
|
160
|
+
end
|
161
|
+
elsif r.status == 410
|
162
|
+
if Utils.match_content_type(content_type, 'application/json')
|
163
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
164
|
+
res.invite_expired = out
|
165
|
+
end
|
166
|
+
elsif r.status == 422
|
167
|
+
if Utils.match_content_type(content_type, 'application/json')
|
168
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
169
|
+
res.unprocessable_entity = out
|
170
|
+
end
|
171
|
+
elsif r.status == 429
|
172
|
+
if Utils.match_content_type(content_type, 'application/json')
|
173
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
174
|
+
res.rate_limit_exceeded = out
|
175
|
+
end
|
176
|
+
elsif r.status == 500
|
177
|
+
if Utils.match_content_type(content_type, 'application/json')
|
178
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
179
|
+
res.internal_server_error = out
|
180
|
+
end
|
181
|
+
end
|
182
|
+
res
|
183
|
+
end
|
102
184
|
end
|
103
185
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -151,6 +151,8 @@ files:
|
|
151
151
|
- lib/open_api_sdk/models/operations.rb
|
152
152
|
- lib/open_api_sdk/models/operations/bulkcreatelinks_request.rb
|
153
153
|
- lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb
|
154
|
+
- lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb
|
155
|
+
- lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb
|
154
156
|
- lib/open_api_sdk/models/operations/color.rb
|
155
157
|
- lib/open_api_sdk/models/operations/createdomain_request.rb
|
156
158
|
- lib/open_api_sdk/models/operations/createdomain_requestbody.rb
|
@@ -161,6 +163,7 @@ files:
|
|
161
163
|
- lib/open_api_sdk/models/operations/createtag_request.rb
|
162
164
|
- lib/open_api_sdk/models/operations/createtag_requestbody.rb
|
163
165
|
- lib/open_api_sdk/models/operations/createtag_response.rb
|
166
|
+
- lib/open_api_sdk/models/operations/data.rb
|
164
167
|
- lib/open_api_sdk/models/operations/deletedomain_request.rb
|
165
168
|
- lib/open_api_sdk/models/operations/deletedomain_response.rb
|
166
169
|
- lib/open_api_sdk/models/operations/deletedomain_responsebody.rb
|
@@ -192,8 +195,6 @@ files:
|
|
192
195
|
- lib/open_api_sdk/models/operations/requestbody.rb
|
193
196
|
- lib/open_api_sdk/models/operations/retrieveanalytics_request.rb
|
194
197
|
- lib/open_api_sdk/models/operations/retrieveanalytics_response.rb
|
195
|
-
- lib/open_api_sdk/models/operations/setprimarydomain_request.rb
|
196
|
-
- lib/open_api_sdk/models/operations/setprimarydomain_response.rb
|
197
198
|
- lib/open_api_sdk/models/operations/sort.rb
|
198
199
|
- lib/open_api_sdk/models/operations/trackcustomer_request.rb
|
199
200
|
- lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb
|
@@ -207,15 +208,18 @@ files:
|
|
207
208
|
- lib/open_api_sdk/models/operations/tracksale_requestbody.rb
|
208
209
|
- lib/open_api_sdk/models/operations/tracksale_response.rb
|
209
210
|
- lib/open_api_sdk/models/operations/tracksale_responsebody.rb
|
210
|
-
- lib/open_api_sdk/models/operations/transferdomain_request.rb
|
211
|
-
- lib/open_api_sdk/models/operations/transferdomain_requestbody.rb
|
212
|
-
- lib/open_api_sdk/models/operations/transferdomain_response.rb
|
213
211
|
- lib/open_api_sdk/models/operations/updatedomain_request.rb
|
214
212
|
- lib/open_api_sdk/models/operations/updatedomain_requestbody.rb
|
215
213
|
- lib/open_api_sdk/models/operations/updatedomain_response.rb
|
216
214
|
- lib/open_api_sdk/models/operations/updatelink_request.rb
|
217
215
|
- lib/open_api_sdk/models/operations/updatelink_requestbody.rb
|
218
216
|
- lib/open_api_sdk/models/operations/updatelink_response.rb
|
217
|
+
- lib/open_api_sdk/models/operations/updatetag_color.rb
|
218
|
+
- lib/open_api_sdk/models/operations/updatetag_request.rb
|
219
|
+
- lib/open_api_sdk/models/operations/updatetag_requestbody.rb
|
220
|
+
- lib/open_api_sdk/models/operations/updatetag_response.rb
|
221
|
+
- lib/open_api_sdk/models/operations/updateworkspace_request.rb
|
222
|
+
- lib/open_api_sdk/models/operations/updateworkspace_response.rb
|
219
223
|
- lib/open_api_sdk/models/operations/upsertlink_request.rb
|
220
224
|
- lib/open_api_sdk/models/operations/upsertlink_requestbody.rb
|
221
225
|
- lib/open_api_sdk/models/operations/upsertlink_response.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module OpenApiSDK
|
8
|
-
module Operations
|
9
|
-
|
10
|
-
|
11
|
-
class SetPrimaryDomainRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The domain name.
|
15
|
-
field :slug, ::String, { 'path_param': { 'field_name': 'slug', 'style': 'simple', 'explode': false } }
|
16
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
17
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
18
|
-
# The ID of the workspace.
|
19
|
-
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(slug: ::String, project_slug: T.nilable(::String), workspace_id: T.nilable(::String)).void }
|
23
|
-
def initialize(slug: nil, project_slug: nil, workspace_id: nil)
|
24
|
-
@slug = slug
|
25
|
-
@project_slug = project_slug
|
26
|
-
@workspace_id = workspace_id
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module OpenApiSDK
|
8
|
-
module Operations
|
9
|
-
|
10
|
-
|
11
|
-
class TransferDomainRequestBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The ID of the new workspace to transfer the domain to.
|
15
|
-
field :new_workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('newWorkspaceId') } }
|
16
|
-
|
17
|
-
|
18
|
-
sig { params(new_workspace_id: ::String).void }
|
19
|
-
def initialize(new_workspace_id: nil)
|
20
|
-
@new_workspace_id = new_workspace_id
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|