Sha256: f5ecfdb7c21f103420dc4aea35c0b59c8f68f0910c6facfdb78a26734d162963
Contents?: true
Size: 1.72 KB
Versions: 17
Compression:
Stored size: 1.72 KB
Contents
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. # typed: true # frozen_string_literal: true module OpenApiSDK module Operations class CreateDomainRequestBody < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig # Name of the domain. field :slug, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } } # Whether to archive this domain. `false` will unarchive a previously archived domain. field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } } # Redirect users to a specific URL when any link under this domain has expired. field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } } # Redirect users to a specific URL when a link under this domain doesn't exist. field :not_found_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('notFoundUrl') } } # Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened. field :placeholder, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('placeholder') } } sig { params(slug: ::String, archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), not_found_url: T.nilable(::String), placeholder: T.nilable(::String)).void } def initialize(slug: nil, archived: nil, expired_url: nil, not_found_url: nil, placeholder: nil) @slug = slug @archived = archived @expired_url = expired_url @not_found_url = not_found_url @placeholder = placeholder end end end end
Version data entries
17 entries across 17 versions & 1 rubygems