Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AccessOptions
- func (o *AccessOptions) GetCredentialsId() string
- func (o *AccessOptions) GetCredentialsIdOk() (*string, bool)
- func (o *AccessOptions) GetEnvironment() string
- func (o *AccessOptions) GetEnvironmentOk() (*string, bool)
- func (o *AccessOptions) GetProvider() string
- func (o *AccessOptions) GetProviderOk() (*string, bool)
- func (o *AccessOptions) HasCredentialsId() bool
- func (o *AccessOptions) HasEnvironment() bool
- func (o *AccessOptions) HasProvider() bool
- func (o AccessOptions) MarshalJSON() ([]byte, error)
- func (o *AccessOptions) SetCredentialsId(v string)
- func (o *AccessOptions) SetEnvironment(v string)
- func (o *AccessOptions) SetProvider(v string)
- type ApiDnsApiRecordsDeleteRequest
- func (r ApiDnsApiRecordsDeleteRequest) Execute() (*_nethttp.Response, error)
- func (r ApiDnsApiRecordsDeleteRequest) Name(name string) ApiDnsApiRecordsDeleteRequest
- func (r ApiDnsApiRecordsDeleteRequest) RecordType(recordType RecordType) ApiDnsApiRecordsDeleteRequest
- func (r ApiDnsApiRecordsDeleteRequest) XApiOptions(xApiOptions string) ApiDnsApiRecordsDeleteRequest
- func (r ApiDnsApiRecordsDeleteRequest) Zone(zone string) ApiDnsApiRecordsDeleteRequest
- type ApiDnsApiRecordsGetRequest
- func (r ApiDnsApiRecordsGetRequest) Execute() ([]Record, *_nethttp.Response, error)
- func (r ApiDnsApiRecordsGetRequest) Name(name string) ApiDnsApiRecordsGetRequest
- func (r ApiDnsApiRecordsGetRequest) RecordType(recordType RecordType) ApiDnsApiRecordsGetRequest
- func (r ApiDnsApiRecordsGetRequest) XApiOptions(xApiOptions string) ApiDnsApiRecordsGetRequest
- func (r ApiDnsApiRecordsGetRequest) Zone(zone string) ApiDnsApiRecordsGetRequest
- type ApiDnsApiRecordsPostRequest
- func (r ApiDnsApiRecordsPostRequest) CreateRecordRequestModel(createRecordRequestModel CreateRecordRequestModel) ApiDnsApiRecordsPostRequest
- func (r ApiDnsApiRecordsPostRequest) Execute() (Record, *_nethttp.Response, error)
- func (r ApiDnsApiRecordsPostRequest) XApiOptions(xApiOptions string) ApiDnsApiRecordsPostRequest
- type ApiDnsApiZonesDeleteRequest
- type ApiDnsApiZonesGetRequest
- type ApiDnsApiZonesPostRequest
- func (r ApiDnsApiZonesPostRequest) CreateZoneRequestModel(createZoneRequestModel CreateZoneRequestModel) ApiDnsApiZonesPostRequest
- func (r ApiDnsApiZonesPostRequest) Execute() (Zone, *_nethttp.Response, error)
- func (r ApiDnsApiZonesPostRequest) XApiOptions(xApiOptions string) ApiDnsApiZonesPostRequest
- type ApiDnsApiZonesZoneGetRequest
- type ApiOptions
- func (o *ApiOptions) GetAccessOptions() AccessOptions
- func (o *ApiOptions) GetAccessOptionsOk() (*AccessOptions, bool)
- func (o *ApiOptions) GetMeta() map[string]string
- func (o *ApiOptions) GetMetaOk() (*map[string]string, bool)
- func (o *ApiOptions) HasAccessOptions() bool
- func (o *ApiOptions) HasMeta() bool
- func (o ApiOptions) MarshalJSON() ([]byte, error)
- func (o *ApiOptions) SetAccessOptions(v AccessOptions)
- func (o *ApiOptions) SetMeta(v map[string]string)
- type BasicAuth
- type Configuration
- type CreateRecordRequestModel
- func (o *CreateRecordRequestModel) GetClass() RecordClass
- func (o *CreateRecordRequestModel) GetClassOk() (*RecordClass, bool)
- func (o *CreateRecordRequestModel) GetData() string
- func (o *CreateRecordRequestModel) GetDataOk() (*string, bool)
- func (o *CreateRecordRequestModel) GetName() string
- func (o *CreateRecordRequestModel) GetNameOk() (*string, bool)
- func (o *CreateRecordRequestModel) GetTtl() int32
- func (o *CreateRecordRequestModel) GetTtlOk() (*int32, bool)
- func (o *CreateRecordRequestModel) GetType() RecordType
- func (o *CreateRecordRequestModel) GetTypeOk() (*RecordType, bool)
- func (o *CreateRecordRequestModel) GetZone() string
- func (o *CreateRecordRequestModel) GetZoneOk() (*string, bool)
- func (o *CreateRecordRequestModel) HasClass() bool
- func (o *CreateRecordRequestModel) HasTtl() bool
- func (o CreateRecordRequestModel) MarshalJSON() ([]byte, error)
- func (o *CreateRecordRequestModel) SetClass(v RecordClass)
- func (o *CreateRecordRequestModel) SetData(v string)
- func (o *CreateRecordRequestModel) SetName(v string)
- func (o *CreateRecordRequestModel) SetTtl(v int32)
- func (o *CreateRecordRequestModel) SetType(v RecordType)
- func (o *CreateRecordRequestModel) SetZone(v string)
- type CreateZoneRequestModel
- type GenericOpenAPIError
- type NullableAccessOptions
- func (v NullableAccessOptions) Get() *AccessOptions
- func (v NullableAccessOptions) IsSet() bool
- func (v NullableAccessOptions) MarshalJSON() ([]byte, error)
- func (v *NullableAccessOptions) Set(val *AccessOptions)
- func (v *NullableAccessOptions) UnmarshalJSON(src []byte) error
- func (v *NullableAccessOptions) Unset()
- type NullableApiOptions
- type NullableBool
- type NullableCreateRecordRequestModel
- func (v NullableCreateRecordRequestModel) Get() *CreateRecordRequestModel
- func (v NullableCreateRecordRequestModel) IsSet() bool
- func (v NullableCreateRecordRequestModel) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRecordRequestModel) Set(val *CreateRecordRequestModel)
- func (v *NullableCreateRecordRequestModel) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRecordRequestModel) Unset()
- type NullableCreateZoneRequestModel
- func (v NullableCreateZoneRequestModel) Get() *CreateZoneRequestModel
- func (v NullableCreateZoneRequestModel) IsSet() bool
- func (v NullableCreateZoneRequestModel) MarshalJSON() ([]byte, error)
- func (v *NullableCreateZoneRequestModel) Set(val *CreateZoneRequestModel)
- func (v *NullableCreateZoneRequestModel) UnmarshalJSON(src []byte) error
- func (v *NullableCreateZoneRequestModel) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableRecord
- type NullableRecordClass
- func (v NullableRecordClass) Get() *RecordClass
- func (v NullableRecordClass) IsSet() bool
- func (v NullableRecordClass) MarshalJSON() ([]byte, error)
- func (v *NullableRecordClass) Set(val *RecordClass)
- func (v *NullableRecordClass) UnmarshalJSON(src []byte) error
- func (v *NullableRecordClass) Unset()
- type NullableRecordType
- type NullableString
- type NullableTime
- type NullableZone
- type Record
- func (o *Record) GetClass() RecordClass
- func (o *Record) GetClassOk() (*RecordClass, bool)
- func (o *Record) GetData() string
- func (o *Record) GetDataOk() (*string, bool)
- func (o *Record) GetName() string
- func (o *Record) GetNameOk() (*string, bool)
- func (o *Record) GetTtl() int32
- func (o *Record) GetTtlOk() (*int32, bool)
- func (o *Record) GetType() RecordType
- func (o *Record) GetTypeOk() (*RecordType, bool)
- func (o *Record) HasTtl() bool
- func (o Record) MarshalJSON() ([]byte, error)
- func (o *Record) SetClass(v RecordClass)
- func (o *Record) SetData(v string)
- func (o *Record) SetName(v string)
- func (o *Record) SetTtl(v int32)
- func (o *Record) SetType(v RecordType)
- type RecordApi
- type RecordApiService
- func (a *RecordApiService) DnsApiRecordsDelete(ctx _context.Context) ApiDnsApiRecordsDeleteRequest
- func (a *RecordApiService) DnsApiRecordsDeleteExecute(r ApiDnsApiRecordsDeleteRequest) (*_nethttp.Response, error)
- func (a *RecordApiService) DnsApiRecordsGet(ctx _context.Context) ApiDnsApiRecordsGetRequest
- func (a *RecordApiService) DnsApiRecordsGetExecute(r ApiDnsApiRecordsGetRequest) ([]Record, *_nethttp.Response, error)
- func (a *RecordApiService) DnsApiRecordsPost(ctx _context.Context) ApiDnsApiRecordsPostRequest
- func (a *RecordApiService) DnsApiRecordsPostExecute(r ApiDnsApiRecordsPostRequest) (Record, *_nethttp.Response, error)
- type RecordClass
- type RecordType
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type Zone
- type ZoneApi
- type ZoneApiService
- func (a *ZoneApiService) DnsApiZonesDelete(ctx _context.Context) ApiDnsApiZonesDeleteRequest
- func (a *ZoneApiService) DnsApiZonesDeleteExecute(r ApiDnsApiZonesDeleteRequest) (*_nethttp.Response, error)
- func (a *ZoneApiService) DnsApiZonesGet(ctx _context.Context) ApiDnsApiZonesGetRequest
- func (a *ZoneApiService) DnsApiZonesGetExecute(r ApiDnsApiZonesGetRequest) ([]Zone, *_nethttp.Response, error)
- func (a *ZoneApiService) DnsApiZonesPost(ctx _context.Context) ApiDnsApiZonesPostRequest
- func (a *ZoneApiService) DnsApiZonesPostExecute(r ApiDnsApiZonesPostRequest) (Zone, *_nethttp.Response, error)
- func (a *ZoneApiService) DnsApiZonesZoneGet(ctx _context.Context, zone string) ApiDnsApiZonesZoneGetRequest
- func (a *ZoneApiService) DnsApiZonesZoneGetExecute(r ApiDnsApiZonesZoneGetRequest) (Zone, *_nethttp.Response, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKeys takes a string apikey as authentication for the request ContextAPIKeys = contextKey("apiKeys") // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. ContextHttpSignatureAuth = contextKey("httpsignature") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { RecordApi RecordApi ZoneApi ZoneApi // contains filtered or unexported fields }
APIClient manages communication with the Fava - OpenApi Gateway - DNS API vv1 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type AccessOptions ¶ added in v0.4.0
type AccessOptions struct { Provider *string `json:"provider,omitempty"` Environment *string `json:"environment,omitempty"` CredentialsId *string `json:"credentials_id,omitempty"` }
AccessOptions struct for AccessOptions
func NewAccessOptions ¶ added in v0.4.0
func NewAccessOptions() *AccessOptions
NewAccessOptions instantiates a new AccessOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewAccessOptionsWithDefaults ¶ added in v0.4.0
func NewAccessOptionsWithDefaults() *AccessOptions
NewAccessOptionsWithDefaults instantiates a new AccessOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*AccessOptions) GetCredentialsId ¶ added in v0.4.0
func (o *AccessOptions) GetCredentialsId() string
GetCredentialsId returns the CredentialsId field value if set, zero value otherwise.
func (*AccessOptions) GetCredentialsIdOk ¶ added in v0.4.0
func (o *AccessOptions) GetCredentialsIdOk() (*string, bool)
GetCredentialsIdOk returns a tuple with the CredentialsId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AccessOptions) GetEnvironment ¶ added in v0.4.0
func (o *AccessOptions) GetEnvironment() string
GetEnvironment returns the Environment field value if set, zero value otherwise.
func (*AccessOptions) GetEnvironmentOk ¶ added in v0.4.0
func (o *AccessOptions) GetEnvironmentOk() (*string, bool)
GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AccessOptions) GetProvider ¶ added in v0.4.0
func (o *AccessOptions) GetProvider() string
GetProvider returns the Provider field value if set, zero value otherwise.
func (*AccessOptions) GetProviderOk ¶ added in v0.4.0
func (o *AccessOptions) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AccessOptions) HasCredentialsId ¶ added in v0.4.0
func (o *AccessOptions) HasCredentialsId() bool
HasCredentialsId returns a boolean if a field has been set.
func (*AccessOptions) HasEnvironment ¶ added in v0.4.0
func (o *AccessOptions) HasEnvironment() bool
HasEnvironment returns a boolean if a field has been set.
func (*AccessOptions) HasProvider ¶ added in v0.4.0
func (o *AccessOptions) HasProvider() bool
HasProvider returns a boolean if a field has been set.
func (AccessOptions) MarshalJSON ¶ added in v0.4.0
func (o AccessOptions) MarshalJSON() ([]byte, error)
func (*AccessOptions) SetCredentialsId ¶ added in v0.4.0
func (o *AccessOptions) SetCredentialsId(v string)
SetCredentialsId gets a reference to the given string and assigns it to the CredentialsId field.
func (*AccessOptions) SetEnvironment ¶ added in v0.4.0
func (o *AccessOptions) SetEnvironment(v string)
SetEnvironment gets a reference to the given string and assigns it to the Environment field.
func (*AccessOptions) SetProvider ¶ added in v0.4.0
func (o *AccessOptions) SetProvider(v string)
SetProvider gets a reference to the given string and assigns it to the Provider field.
type ApiDnsApiRecordsDeleteRequest ¶ added in v0.4.0
type ApiDnsApiRecordsDeleteRequest struct { ApiService RecordApi // contains filtered or unexported fields }
func (ApiDnsApiRecordsDeleteRequest) Execute ¶ added in v0.4.0
func (r ApiDnsApiRecordsDeleteRequest) Execute() (*_nethttp.Response, error)
func (ApiDnsApiRecordsDeleteRequest) Name ¶ added in v0.4.0
func (r ApiDnsApiRecordsDeleteRequest) Name(name string) ApiDnsApiRecordsDeleteRequest
func (ApiDnsApiRecordsDeleteRequest) RecordType ¶ added in v0.4.0
func (r ApiDnsApiRecordsDeleteRequest) RecordType(recordType RecordType) ApiDnsApiRecordsDeleteRequest
func (ApiDnsApiRecordsDeleteRequest) XApiOptions ¶ added in v0.4.0
func (r ApiDnsApiRecordsDeleteRequest) XApiOptions(xApiOptions string) ApiDnsApiRecordsDeleteRequest
func (ApiDnsApiRecordsDeleteRequest) Zone ¶ added in v0.4.0
func (r ApiDnsApiRecordsDeleteRequest) Zone(zone string) ApiDnsApiRecordsDeleteRequest
type ApiDnsApiRecordsGetRequest ¶ added in v0.4.0
type ApiDnsApiRecordsGetRequest struct { ApiService RecordApi // contains filtered or unexported fields }
func (ApiDnsApiRecordsGetRequest) Execute ¶ added in v0.4.0
func (r ApiDnsApiRecordsGetRequest) Execute() ([]Record, *_nethttp.Response, error)
func (ApiDnsApiRecordsGetRequest) Name ¶ added in v0.4.0
func (r ApiDnsApiRecordsGetRequest) Name(name string) ApiDnsApiRecordsGetRequest
func (ApiDnsApiRecordsGetRequest) RecordType ¶ added in v0.4.0
func (r ApiDnsApiRecordsGetRequest) RecordType(recordType RecordType) ApiDnsApiRecordsGetRequest
func (ApiDnsApiRecordsGetRequest) XApiOptions ¶ added in v0.4.0
func (r ApiDnsApiRecordsGetRequest) XApiOptions(xApiOptions string) ApiDnsApiRecordsGetRequest
func (ApiDnsApiRecordsGetRequest) Zone ¶ added in v0.4.0
func (r ApiDnsApiRecordsGetRequest) Zone(zone string) ApiDnsApiRecordsGetRequest
type ApiDnsApiRecordsPostRequest ¶ added in v0.4.0
type ApiDnsApiRecordsPostRequest struct { ApiService RecordApi // contains filtered or unexported fields }
func (ApiDnsApiRecordsPostRequest) CreateRecordRequestModel ¶ added in v0.4.0
func (r ApiDnsApiRecordsPostRequest) CreateRecordRequestModel(createRecordRequestModel CreateRecordRequestModel) ApiDnsApiRecordsPostRequest
func (ApiDnsApiRecordsPostRequest) Execute ¶ added in v0.4.0
func (r ApiDnsApiRecordsPostRequest) Execute() (Record, *_nethttp.Response, error)
func (ApiDnsApiRecordsPostRequest) XApiOptions ¶ added in v0.4.0
func (r ApiDnsApiRecordsPostRequest) XApiOptions(xApiOptions string) ApiDnsApiRecordsPostRequest
type ApiDnsApiZonesDeleteRequest ¶ added in v0.4.0
type ApiDnsApiZonesDeleteRequest struct { ApiService ZoneApi // contains filtered or unexported fields }
func (ApiDnsApiZonesDeleteRequest) Execute ¶ added in v0.4.0
func (r ApiDnsApiZonesDeleteRequest) Execute() (*_nethttp.Response, error)
func (ApiDnsApiZonesDeleteRequest) Name ¶ added in v0.4.0
func (r ApiDnsApiZonesDeleteRequest) Name(name string) ApiDnsApiZonesDeleteRequest
func (ApiDnsApiZonesDeleteRequest) XApiOptions ¶ added in v0.4.0
func (r ApiDnsApiZonesDeleteRequest) XApiOptions(xApiOptions string) ApiDnsApiZonesDeleteRequest
type ApiDnsApiZonesGetRequest ¶ added in v0.4.0
type ApiDnsApiZonesGetRequest struct { ApiService ZoneApi // contains filtered or unexported fields }
func (ApiDnsApiZonesGetRequest) Execute ¶ added in v0.4.0
func (r ApiDnsApiZonesGetRequest) Execute() ([]Zone, *_nethttp.Response, error)
func (ApiDnsApiZonesGetRequest) XApiOptions ¶ added in v0.4.0
func (r ApiDnsApiZonesGetRequest) XApiOptions(xApiOptions string) ApiDnsApiZonesGetRequest
type ApiDnsApiZonesPostRequest ¶ added in v0.4.0
type ApiDnsApiZonesPostRequest struct { ApiService ZoneApi // contains filtered or unexported fields }
func (ApiDnsApiZonesPostRequest) CreateZoneRequestModel ¶ added in v0.4.0
func (r ApiDnsApiZonesPostRequest) CreateZoneRequestModel(createZoneRequestModel CreateZoneRequestModel) ApiDnsApiZonesPostRequest
func (ApiDnsApiZonesPostRequest) Execute ¶ added in v0.4.0
func (r ApiDnsApiZonesPostRequest) Execute() (Zone, *_nethttp.Response, error)
func (ApiDnsApiZonesPostRequest) XApiOptions ¶ added in v0.4.0
func (r ApiDnsApiZonesPostRequest) XApiOptions(xApiOptions string) ApiDnsApiZonesPostRequest
type ApiDnsApiZonesZoneGetRequest ¶ added in v0.4.0
type ApiDnsApiZonesZoneGetRequest struct { ApiService ZoneApi // contains filtered or unexported fields }
func (ApiDnsApiZonesZoneGetRequest) Execute ¶ added in v0.4.0
func (r ApiDnsApiZonesZoneGetRequest) Execute() (Zone, *_nethttp.Response, error)
func (ApiDnsApiZonesZoneGetRequest) XApiOptions ¶ added in v0.4.0
func (r ApiDnsApiZonesZoneGetRequest) XApiOptions(xApiOptions string) ApiDnsApiZonesZoneGetRequest
type ApiOptions ¶ added in v0.4.0
type ApiOptions struct { AccessOptions *AccessOptions `json:"access_options,omitempty"` Meta *map[string]string `json:"meta,omitempty"` }
ApiOptions struct for ApiOptions
func NewApiOptions ¶ added in v0.4.0
func NewApiOptions() *ApiOptions
NewApiOptions instantiates a new ApiOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApiOptionsWithDefaults ¶ added in v0.4.0
func NewApiOptionsWithDefaults() *ApiOptions
NewApiOptionsWithDefaults instantiates a new ApiOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ApiOptions) GetAccessOptions ¶ added in v0.4.0
func (o *ApiOptions) GetAccessOptions() AccessOptions
GetAccessOptions returns the AccessOptions field value if set, zero value otherwise.
func (*ApiOptions) GetAccessOptionsOk ¶ added in v0.4.0
func (o *ApiOptions) GetAccessOptionsOk() (*AccessOptions, bool)
GetAccessOptionsOk returns a tuple with the AccessOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ApiOptions) GetMeta ¶ added in v0.4.0
func (o *ApiOptions) GetMeta() map[string]string
GetMeta returns the Meta field value if set, zero value otherwise.
func (*ApiOptions) GetMetaOk ¶ added in v0.4.0
func (o *ApiOptions) GetMetaOk() (*map[string]string, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ApiOptions) HasAccessOptions ¶ added in v0.4.0
func (o *ApiOptions) HasAccessOptions() bool
HasAccessOptions returns a boolean if a field has been set.
func (*ApiOptions) HasMeta ¶ added in v0.4.0
func (o *ApiOptions) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (ApiOptions) MarshalJSON ¶ added in v0.4.0
func (o ApiOptions) MarshalJSON() ([]byte, error)
func (*ApiOptions) SetAccessOptions ¶ added in v0.4.0
func (o *ApiOptions) SetAccessOptions(v AccessOptions)
SetAccessOptions gets a reference to the given AccessOptions and assigns it to the AccessOptions field.
func (*ApiOptions) SetMeta ¶ added in v0.4.0
func (o *ApiOptions) SetMeta(v map[string]string)
SetMeta gets a reference to the given map[string]string and assigns it to the Meta field.
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type CreateRecordRequestModel ¶
type CreateRecordRequestModel struct { // Name of the DNS zone to create a record for. Zone string `json:"zone"` // Name of the DNS record to create. Name string `json:"name"` Class *RecordClass `json:"class,omitempty"` Type RecordType `json:"type"` // The data of the record to create, Data string `json:"data"` // The time to live of the record to create. Ttl *int32 `json:"ttl,omitempty"` }
CreateRecordRequestModel struct for CreateRecordRequestModel
func NewCreateRecordRequestModel ¶
func NewCreateRecordRequestModel(zone string, name string, type_ RecordType, data string) *CreateRecordRequestModel
NewCreateRecordRequestModel instantiates a new CreateRecordRequestModel object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateRecordRequestModelWithDefaults ¶
func NewCreateRecordRequestModelWithDefaults() *CreateRecordRequestModel
NewCreateRecordRequestModelWithDefaults instantiates a new CreateRecordRequestModel object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*CreateRecordRequestModel) GetClass ¶
func (o *CreateRecordRequestModel) GetClass() RecordClass
GetClass returns the Class field value if set, zero value otherwise.
func (*CreateRecordRequestModel) GetClassOk ¶
func (o *CreateRecordRequestModel) GetClassOk() (*RecordClass, bool)
GetClassOk returns a tuple with the Class field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateRecordRequestModel) GetData ¶
func (o *CreateRecordRequestModel) GetData() string
GetData returns the Data field value
func (*CreateRecordRequestModel) GetDataOk ¶
func (o *CreateRecordRequestModel) GetDataOk() (*string, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*CreateRecordRequestModel) GetName ¶
func (o *CreateRecordRequestModel) GetName() string
GetName returns the Name field value
func (*CreateRecordRequestModel) GetNameOk ¶
func (o *CreateRecordRequestModel) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*CreateRecordRequestModel) GetTtl ¶
func (o *CreateRecordRequestModel) GetTtl() int32
GetTtl returns the Ttl field value if set, zero value otherwise.
func (*CreateRecordRequestModel) GetTtlOk ¶
func (o *CreateRecordRequestModel) GetTtlOk() (*int32, bool)
GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateRecordRequestModel) GetType ¶
func (o *CreateRecordRequestModel) GetType() RecordType
GetType returns the Type field value
func (*CreateRecordRequestModel) GetTypeOk ¶
func (o *CreateRecordRequestModel) GetTypeOk() (*RecordType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*CreateRecordRequestModel) GetZone ¶
func (o *CreateRecordRequestModel) GetZone() string
GetZone returns the Zone field value
func (*CreateRecordRequestModel) GetZoneOk ¶
func (o *CreateRecordRequestModel) GetZoneOk() (*string, bool)
GetZoneOk returns a tuple with the Zone field value and a boolean to check if the value has been set.
func (*CreateRecordRequestModel) HasClass ¶
func (o *CreateRecordRequestModel) HasClass() bool
HasClass returns a boolean if a field has been set.
func (*CreateRecordRequestModel) HasTtl ¶
func (o *CreateRecordRequestModel) HasTtl() bool
HasTtl returns a boolean if a field has been set.
func (CreateRecordRequestModel) MarshalJSON ¶
func (o CreateRecordRequestModel) MarshalJSON() ([]byte, error)
func (*CreateRecordRequestModel) SetClass ¶
func (o *CreateRecordRequestModel) SetClass(v RecordClass)
SetClass gets a reference to the given RecordClass and assigns it to the Class field.
func (*CreateRecordRequestModel) SetData ¶
func (o *CreateRecordRequestModel) SetData(v string)
SetData sets field value
func (*CreateRecordRequestModel) SetName ¶
func (o *CreateRecordRequestModel) SetName(v string)
SetName sets field value
func (*CreateRecordRequestModel) SetTtl ¶
func (o *CreateRecordRequestModel) SetTtl(v int32)
SetTtl gets a reference to the given int32 and assigns it to the Ttl field.
func (*CreateRecordRequestModel) SetType ¶
func (o *CreateRecordRequestModel) SetType(v RecordType)
SetType sets field value
func (*CreateRecordRequestModel) SetZone ¶
func (o *CreateRecordRequestModel) SetZone(v string)
SetZone sets field value
type CreateZoneRequestModel ¶
type CreateZoneRequestModel struct { // Name of the DNS zone to create. Name string `json:"name"` }
CreateZoneRequestModel struct for CreateZoneRequestModel
func NewCreateZoneRequestModel ¶
func NewCreateZoneRequestModel(name string) *CreateZoneRequestModel
NewCreateZoneRequestModel instantiates a new CreateZoneRequestModel object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateZoneRequestModelWithDefaults ¶
func NewCreateZoneRequestModelWithDefaults() *CreateZoneRequestModel
NewCreateZoneRequestModelWithDefaults instantiates a new CreateZoneRequestModel object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*CreateZoneRequestModel) GetName ¶
func (o *CreateZoneRequestModel) GetName() string
GetName returns the Name field value
func (*CreateZoneRequestModel) GetNameOk ¶
func (o *CreateZoneRequestModel) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (CreateZoneRequestModel) MarshalJSON ¶
func (o CreateZoneRequestModel) MarshalJSON() ([]byte, error)
func (*CreateZoneRequestModel) SetName ¶
func (o *CreateZoneRequestModel) SetName(v string)
SetName sets field value
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type NullableAccessOptions ¶ added in v0.4.0
type NullableAccessOptions struct {
// contains filtered or unexported fields
}
func NewNullableAccessOptions ¶ added in v0.4.0
func NewNullableAccessOptions(val *AccessOptions) *NullableAccessOptions
func (NullableAccessOptions) Get ¶ added in v0.4.0
func (v NullableAccessOptions) Get() *AccessOptions
func (NullableAccessOptions) IsSet ¶ added in v0.4.0
func (v NullableAccessOptions) IsSet() bool
func (NullableAccessOptions) MarshalJSON ¶ added in v0.4.0
func (v NullableAccessOptions) MarshalJSON() ([]byte, error)
func (*NullableAccessOptions) Set ¶ added in v0.4.0
func (v *NullableAccessOptions) Set(val *AccessOptions)
func (*NullableAccessOptions) UnmarshalJSON ¶ added in v0.4.0
func (v *NullableAccessOptions) UnmarshalJSON(src []byte) error
func (*NullableAccessOptions) Unset ¶ added in v0.4.0
func (v *NullableAccessOptions) Unset()
type NullableApiOptions ¶ added in v0.4.0
type NullableApiOptions struct {
// contains filtered or unexported fields
}
func NewNullableApiOptions ¶ added in v0.4.0
func NewNullableApiOptions(val *ApiOptions) *NullableApiOptions
func (NullableApiOptions) Get ¶ added in v0.4.0
func (v NullableApiOptions) Get() *ApiOptions
func (NullableApiOptions) IsSet ¶ added in v0.4.0
func (v NullableApiOptions) IsSet() bool
func (NullableApiOptions) MarshalJSON ¶ added in v0.4.0
func (v NullableApiOptions) MarshalJSON() ([]byte, error)
func (*NullableApiOptions) Set ¶ added in v0.4.0
func (v *NullableApiOptions) Set(val *ApiOptions)
func (*NullableApiOptions) UnmarshalJSON ¶ added in v0.4.0
func (v *NullableApiOptions) UnmarshalJSON(src []byte) error
func (*NullableApiOptions) Unset ¶ added in v0.4.0
func (v *NullableApiOptions) Unset()
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableCreateRecordRequestModel ¶
type NullableCreateRecordRequestModel struct {
// contains filtered or unexported fields
}
func NewNullableCreateRecordRequestModel ¶
func NewNullableCreateRecordRequestModel(val *CreateRecordRequestModel) *NullableCreateRecordRequestModel
func (NullableCreateRecordRequestModel) Get ¶
func (v NullableCreateRecordRequestModel) Get() *CreateRecordRequestModel
func (NullableCreateRecordRequestModel) IsSet ¶
func (v NullableCreateRecordRequestModel) IsSet() bool
func (NullableCreateRecordRequestModel) MarshalJSON ¶
func (v NullableCreateRecordRequestModel) MarshalJSON() ([]byte, error)
func (*NullableCreateRecordRequestModel) Set ¶
func (v *NullableCreateRecordRequestModel) Set(val *CreateRecordRequestModel)
func (*NullableCreateRecordRequestModel) UnmarshalJSON ¶
func (v *NullableCreateRecordRequestModel) UnmarshalJSON(src []byte) error
func (*NullableCreateRecordRequestModel) Unset ¶
func (v *NullableCreateRecordRequestModel) Unset()
type NullableCreateZoneRequestModel ¶
type NullableCreateZoneRequestModel struct {
// contains filtered or unexported fields
}
func NewNullableCreateZoneRequestModel ¶
func NewNullableCreateZoneRequestModel(val *CreateZoneRequestModel) *NullableCreateZoneRequestModel
func (NullableCreateZoneRequestModel) Get ¶
func (v NullableCreateZoneRequestModel) Get() *CreateZoneRequestModel
func (NullableCreateZoneRequestModel) IsSet ¶
func (v NullableCreateZoneRequestModel) IsSet() bool
func (NullableCreateZoneRequestModel) MarshalJSON ¶
func (v NullableCreateZoneRequestModel) MarshalJSON() ([]byte, error)
func (*NullableCreateZoneRequestModel) Set ¶
func (v *NullableCreateZoneRequestModel) Set(val *CreateZoneRequestModel)
func (*NullableCreateZoneRequestModel) UnmarshalJSON ¶
func (v *NullableCreateZoneRequestModel) UnmarshalJSON(src []byte) error
func (*NullableCreateZoneRequestModel) Unset ¶
func (v *NullableCreateZoneRequestModel) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableRecord ¶
type NullableRecord struct {
// contains filtered or unexported fields
}
func NewNullableRecord ¶
func NewNullableRecord(val *Record) *NullableRecord
func (NullableRecord) Get ¶
func (v NullableRecord) Get() *Record
func (NullableRecord) IsSet ¶
func (v NullableRecord) IsSet() bool
func (NullableRecord) MarshalJSON ¶
func (v NullableRecord) MarshalJSON() ([]byte, error)
func (*NullableRecord) Set ¶
func (v *NullableRecord) Set(val *Record)
func (*NullableRecord) UnmarshalJSON ¶
func (v *NullableRecord) UnmarshalJSON(src []byte) error
func (*NullableRecord) Unset ¶
func (v *NullableRecord) Unset()
type NullableRecordClass ¶
type NullableRecordClass struct {
// contains filtered or unexported fields
}
func NewNullableRecordClass ¶
func NewNullableRecordClass(val *RecordClass) *NullableRecordClass
func (NullableRecordClass) Get ¶
func (v NullableRecordClass) Get() *RecordClass
func (NullableRecordClass) IsSet ¶
func (v NullableRecordClass) IsSet() bool
func (NullableRecordClass) MarshalJSON ¶
func (v NullableRecordClass) MarshalJSON() ([]byte, error)
func (*NullableRecordClass) Set ¶
func (v *NullableRecordClass) Set(val *RecordClass)
func (*NullableRecordClass) UnmarshalJSON ¶
func (v *NullableRecordClass) UnmarshalJSON(src []byte) error
func (*NullableRecordClass) Unset ¶
func (v *NullableRecordClass) Unset()
type NullableRecordType ¶
type NullableRecordType struct {
// contains filtered or unexported fields
}
func NewNullableRecordType ¶
func NewNullableRecordType(val *RecordType) *NullableRecordType
func (NullableRecordType) Get ¶
func (v NullableRecordType) Get() *RecordType
func (NullableRecordType) IsSet ¶
func (v NullableRecordType) IsSet() bool
func (NullableRecordType) MarshalJSON ¶
func (v NullableRecordType) MarshalJSON() ([]byte, error)
func (*NullableRecordType) Set ¶
func (v *NullableRecordType) Set(val *RecordType)
func (*NullableRecordType) UnmarshalJSON ¶
func (v *NullableRecordType) UnmarshalJSON(src []byte) error
func (*NullableRecordType) Unset ¶
func (v *NullableRecordType) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type NullableZone ¶
type NullableZone struct {
// contains filtered or unexported fields
}
func NewNullableZone ¶
func NewNullableZone(val *Zone) *NullableZone
func (NullableZone) Get ¶
func (v NullableZone) Get() *Zone
func (NullableZone) IsSet ¶
func (v NullableZone) IsSet() bool
func (NullableZone) MarshalJSON ¶
func (v NullableZone) MarshalJSON() ([]byte, error)
func (*NullableZone) Set ¶
func (v *NullableZone) Set(val *Zone)
func (*NullableZone) UnmarshalJSON ¶
func (v *NullableZone) UnmarshalJSON(src []byte) error
func (*NullableZone) Unset ¶
func (v *NullableZone) Unset()
type Record ¶
type Record struct { Name string `json:"name"` Type RecordType `json:"type"` Class RecordClass `json:"class"` Ttl *int32 `json:"ttl,omitempty"` Data string `json:"data"` }
Record struct for Record
func NewRecord ¶
func NewRecord(name string, type_ RecordType, class RecordClass, data string) *Record
NewRecord instantiates a new Record object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRecordWithDefaults ¶
func NewRecordWithDefaults() *Record
NewRecordWithDefaults instantiates a new Record object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Record) GetClass ¶
func (o *Record) GetClass() RecordClass
GetClass returns the Class field value
func (*Record) GetClassOk ¶
func (o *Record) GetClassOk() (*RecordClass, bool)
GetClassOk returns a tuple with the Class field value and a boolean to check if the value has been set.
func (*Record) GetDataOk ¶
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*Record) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Record) GetTtlOk ¶
GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Record) GetTypeOk ¶
func (o *Record) GetTypeOk() (*RecordType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (Record) MarshalJSON ¶
type RecordApi ¶ added in v0.4.0
type RecordApi interface { /* * DnsApiRecordsDelete Deletes records which match the specified criterias * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsDeleteRequest */ DnsApiRecordsDelete(ctx _context.Context) ApiDnsApiRecordsDeleteRequest /* * DnsApiRecordsDeleteExecute executes the request */ DnsApiRecordsDeleteExecute(r ApiDnsApiRecordsDeleteRequest) (*_nethttp.Response, error) /* * DnsApiRecordsGet Retrieves the DNS zone's resource records * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsGetRequest */ DnsApiRecordsGet(ctx _context.Context) ApiDnsApiRecordsGetRequest /* * DnsApiRecordsGetExecute executes the request * @return []Record */ DnsApiRecordsGetExecute(r ApiDnsApiRecordsGetRequest) ([]Record, *_nethttp.Response, error) /* * DnsApiRecordsPost Creates a new DNS resource record * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsPostRequest */ DnsApiRecordsPost(ctx _context.Context) ApiDnsApiRecordsPostRequest /* * DnsApiRecordsPostExecute executes the request * @return Record */ DnsApiRecordsPostExecute(r ApiDnsApiRecordsPostRequest) (Record, *_nethttp.Response, error) }
type RecordApiService ¶ added in v0.4.0
type RecordApiService service
RecordApiService RecordApi service
func (*RecordApiService) DnsApiRecordsDelete ¶ added in v0.4.0
func (a *RecordApiService) DnsApiRecordsDelete(ctx _context.Context) ApiDnsApiRecordsDeleteRequest
* DnsApiRecordsDelete Deletes records which match the specified criterias * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsDeleteRequest
func (*RecordApiService) DnsApiRecordsDeleteExecute ¶ added in v0.4.0
func (a *RecordApiService) DnsApiRecordsDeleteExecute(r ApiDnsApiRecordsDeleteRequest) (*_nethttp.Response, error)
* Execute executes the request
func (*RecordApiService) DnsApiRecordsGet ¶ added in v0.4.0
func (a *RecordApiService) DnsApiRecordsGet(ctx _context.Context) ApiDnsApiRecordsGetRequest
* DnsApiRecordsGet Retrieves the DNS zone's resource records * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsGetRequest
func (*RecordApiService) DnsApiRecordsGetExecute ¶ added in v0.4.0
func (a *RecordApiService) DnsApiRecordsGetExecute(r ApiDnsApiRecordsGetRequest) ([]Record, *_nethttp.Response, error)
* Execute executes the request * @return []Record
func (*RecordApiService) DnsApiRecordsPost ¶ added in v0.4.0
func (a *RecordApiService) DnsApiRecordsPost(ctx _context.Context) ApiDnsApiRecordsPostRequest
* DnsApiRecordsPost Creates a new DNS resource record * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsPostRequest
func (*RecordApiService) DnsApiRecordsPostExecute ¶ added in v0.4.0
func (a *RecordApiService) DnsApiRecordsPostExecute(r ApiDnsApiRecordsPostRequest) (Record, *_nethttp.Response, error)
* Execute executes the request * @return Record
type RecordClass ¶
type RecordClass string
RecordClass Resource record classes as defined in <see href=\"https://tools.ietf.org/html/rfc1035#section-3.2.4\">rfc1035</see>
const ( RECORDCLASS_IN RecordClass = "IN" RECORDCLASS_CS RecordClass = "CS" RECORDCLASS_CH RecordClass = "CH" RECORDCLASS_HS RecordClass = "HS" )
List of RecordClass
func NewRecordClassFromValue ¶
func NewRecordClassFromValue(v string) (*RecordClass, error)
NewRecordClassFromValue returns a pointer to a valid RecordClass for the value passed as argument, or an error if the value passed is not allowed by the enum
func (RecordClass) IsValid ¶
func (v RecordClass) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (RecordClass) Ptr ¶
func (v RecordClass) Ptr() *RecordClass
Ptr returns reference to RecordClass value
func (*RecordClass) UnmarshalJSON ¶
func (v *RecordClass) UnmarshalJSON(src []byte) error
type RecordType ¶
type RecordType string
RecordType Resource record types as defined in <see href=\"https://tools.ietf.org/html/rfc1035#section-3.2.2\">rfc1035</see>
const ( RECORDTYPE_A RecordType = "A" RECORDTYPE_NS RecordType = "NS" RECORDTYPE_CNAME RecordType = "CNAME" RECORDTYPE_SOA RecordType = "SOA" RECORDTYPE_PTR RecordType = "PTR" RECORDTYPE_MX RecordType = "MX" RECORDTYPE_TXT RecordType = "TXT" RECORDTYPE_SRV RecordType = "SRV" RECORDTYPE_AAAA RecordType = "AAAA" RECORDTYPE_SPF RecordType = "SPF" )
List of RecordType
func NewRecordTypeFromValue ¶
func NewRecordTypeFromValue(v string) (*RecordType, error)
NewRecordTypeFromValue returns a pointer to a valid RecordType for the value passed as argument, or an error if the value passed is not allowed by the enum
func (RecordType) IsValid ¶
func (v RecordType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (RecordType) Ptr ¶
func (v RecordType) Ptr() *RecordType
Ptr returns reference to RecordType value
func (*RecordType) UnmarshalJSON ¶
func (v *RecordType) UnmarshalJSON(src []byte) error
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type Zone ¶
type Zone struct {
Name string `json:"name"`
}
Zone struct for Zone
func NewZone ¶
NewZone instantiates a new Zone object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewZoneWithDefaults ¶
func NewZoneWithDefaults() *Zone
NewZoneWithDefaults instantiates a new Zone object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Zone) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (Zone) MarshalJSON ¶
type ZoneApi ¶ added in v0.4.0
type ZoneApi interface { /* * DnsApiZonesDelete Deletes a DNS zone from the passed provider * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesDeleteRequest */ DnsApiZonesDelete(ctx _context.Context) ApiDnsApiZonesDeleteRequest /* * DnsApiZonesDeleteExecute executes the request */ DnsApiZonesDeleteExecute(r ApiDnsApiZonesDeleteRequest) (*_nethttp.Response, error) /* * DnsApiZonesGet Retrieves the DNS zones assigned to the account * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesGetRequest */ DnsApiZonesGet(ctx _context.Context) ApiDnsApiZonesGetRequest /* * DnsApiZonesGetExecute executes the request * @return []Zone */ DnsApiZonesGetExecute(r ApiDnsApiZonesGetRequest) ([]Zone, *_nethttp.Response, error) /* * DnsApiZonesPost Creates a new DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesPostRequest */ DnsApiZonesPost(ctx _context.Context) ApiDnsApiZonesPostRequest /* * DnsApiZonesPostExecute executes the request * @return Zone */ DnsApiZonesPostExecute(r ApiDnsApiZonesPostRequest) (Zone, *_nethttp.Response, error) /* * DnsApiZonesZoneGet Loads the specified DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zone The name of the zone to query. * @return ApiDnsApiZonesZoneGetRequest */ DnsApiZonesZoneGet(ctx _context.Context, zone string) ApiDnsApiZonesZoneGetRequest /* * DnsApiZonesZoneGetExecute executes the request * @return Zone */ DnsApiZonesZoneGetExecute(r ApiDnsApiZonesZoneGetRequest) (Zone, *_nethttp.Response, error) }
type ZoneApiService ¶ added in v0.4.0
type ZoneApiService service
ZoneApiService ZoneApi service
func (*ZoneApiService) DnsApiZonesDelete ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesDelete(ctx _context.Context) ApiDnsApiZonesDeleteRequest
* DnsApiZonesDelete Deletes a DNS zone from the passed provider * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesDeleteRequest
func (*ZoneApiService) DnsApiZonesDeleteExecute ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesDeleteExecute(r ApiDnsApiZonesDeleteRequest) (*_nethttp.Response, error)
* Execute executes the request
func (*ZoneApiService) DnsApiZonesGet ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesGet(ctx _context.Context) ApiDnsApiZonesGetRequest
* DnsApiZonesGet Retrieves the DNS zones assigned to the account * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesGetRequest
func (*ZoneApiService) DnsApiZonesGetExecute ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesGetExecute(r ApiDnsApiZonesGetRequest) ([]Zone, *_nethttp.Response, error)
* Execute executes the request * @return []Zone
func (*ZoneApiService) DnsApiZonesPost ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesPost(ctx _context.Context) ApiDnsApiZonesPostRequest
* DnsApiZonesPost Creates a new DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesPostRequest
func (*ZoneApiService) DnsApiZonesPostExecute ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesPostExecute(r ApiDnsApiZonesPostRequest) (Zone, *_nethttp.Response, error)
* Execute executes the request * @return Zone
func (*ZoneApiService) DnsApiZonesZoneGet ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesZoneGet(ctx _context.Context, zone string) ApiDnsApiZonesZoneGetRequest
* DnsApiZonesZoneGet Loads the specified DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zone The name of the zone to query. * @return ApiDnsApiZonesZoneGetRequest
func (*ZoneApiService) DnsApiZonesZoneGetExecute ¶ added in v0.4.0
func (a *ZoneApiService) DnsApiZonesZoneGetExecute(r ApiDnsApiZonesZoneGetRequest) (Zone, *_nethttp.Response, error)
* Execute executes the request * @return Zone