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 ApiApiDnsRecordsDeleteRequest
- func (r ApiApiDnsRecordsDeleteRequest) Environment(environment string) ApiApiDnsRecordsDeleteRequest
- func (r ApiApiDnsRecordsDeleteRequest) Execute() (*_nethttp.Response, GenericOpenAPIError)
- func (r ApiApiDnsRecordsDeleteRequest) Name(name string) ApiApiDnsRecordsDeleteRequest
- func (r ApiApiDnsRecordsDeleteRequest) Provider(provider string) ApiApiDnsRecordsDeleteRequest
- func (r ApiApiDnsRecordsDeleteRequest) RecordType(recordType RecordType) ApiApiDnsRecordsDeleteRequest
- func (r ApiApiDnsRecordsDeleteRequest) RequestBody(requestBody map[string]string) ApiApiDnsRecordsDeleteRequest
- func (r ApiApiDnsRecordsDeleteRequest) Zone(zone string) ApiApiDnsRecordsDeleteRequest
- type ApiApiDnsRecordsGetRequest
- func (r ApiApiDnsRecordsGetRequest) Environment(environment string) ApiApiDnsRecordsGetRequest
- func (r ApiApiDnsRecordsGetRequest) Execute() ([]Record, *_nethttp.Response, GenericOpenAPIError)
- func (r ApiApiDnsRecordsGetRequest) Name(name string) ApiApiDnsRecordsGetRequest
- func (r ApiApiDnsRecordsGetRequest) PageSize(pageSize int32) ApiApiDnsRecordsGetRequest
- func (r ApiApiDnsRecordsGetRequest) PageToken(pageToken string) ApiApiDnsRecordsGetRequest
- func (r ApiApiDnsRecordsGetRequest) Provider(provider string) ApiApiDnsRecordsGetRequest
- func (r ApiApiDnsRecordsGetRequest) RecordType(recordType RecordType) ApiApiDnsRecordsGetRequest
- func (r ApiApiDnsRecordsGetRequest) Zone(zone string) ApiApiDnsRecordsGetRequest
- type ApiApiDnsRecordsPostRequest
- type ApiApiDnsZonesGetRequest
- func (r ApiApiDnsZonesGetRequest) Environment(environment string) ApiApiDnsZonesGetRequest
- func (r ApiApiDnsZonesGetRequest) Execute() ([]Zone, *_nethttp.Response, GenericOpenAPIError)
- func (r ApiApiDnsZonesGetRequest) PageSize(pageSize int32) ApiApiDnsZonesGetRequest
- func (r ApiApiDnsZonesGetRequest) PageToken(pageToken string) ApiApiDnsZonesGetRequest
- func (r ApiApiDnsZonesGetRequest) Provider(provider string) ApiApiDnsZonesGetRequest
- type ApiApiDnsZonesPostRequest
- type ApiApiDnsZonesZoneDeleteRequest
- type ApiApiDnsZonesZoneGetRequest
- 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) GetEnvironment() string
- func (o *CreateRecordRequestModel) GetEnvironmentOk() (*string, bool)
- func (o *CreateRecordRequestModel) GetName() string
- func (o *CreateRecordRequestModel) GetNameOk() (*string, bool)
- func (o *CreateRecordRequestModel) GetProvider() string
- func (o *CreateRecordRequestModel) GetProviderOk() (*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) HasEnvironment() 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) SetEnvironment(v string)
- func (o *CreateRecordRequestModel) SetEnvironmentNil()
- func (o *CreateRecordRequestModel) SetName(v string)
- func (o *CreateRecordRequestModel) SetProvider(v string)
- func (o *CreateRecordRequestModel) SetTtl(v int32)
- func (o *CreateRecordRequestModel) SetType(v RecordType)
- func (o *CreateRecordRequestModel) SetZone(v string)
- func (o *CreateRecordRequestModel) UnsetEnvironment()
- type CreateZoneRequestModel
- func (o *CreateZoneRequestModel) GetEnvironment() string
- func (o *CreateZoneRequestModel) GetEnvironmentOk() (*string, bool)
- func (o *CreateZoneRequestModel) GetName() string
- func (o *CreateZoneRequestModel) GetNameOk() (*string, bool)
- func (o *CreateZoneRequestModel) GetProvider() string
- func (o *CreateZoneRequestModel) GetProviderOk() (*string, bool)
- func (o *CreateZoneRequestModel) HasEnvironment() bool
- func (o CreateZoneRequestModel) MarshalJSON() ([]byte, error)
- func (o *CreateZoneRequestModel) SetEnvironment(v string)
- func (o *CreateZoneRequestModel) SetEnvironmentNil()
- func (o *CreateZoneRequestModel) SetName(v string)
- func (o *CreateZoneRequestModel) SetProvider(v string)
- func (o *CreateZoneRequestModel) UnsetEnvironment()
- type GenericOpenAPIError
- 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() string
- func (o *Record) GetClassOk() (*string, 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 string)
- 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 RecordClass
- type RecordType
- type RecordsApi
- type RecordsApiService
- func (a *RecordsApiService) ApiDnsRecordsDelete(ctx _context.Context) ApiApiDnsRecordsDeleteRequest
- func (a *RecordsApiService) ApiDnsRecordsDeleteExecute(r ApiApiDnsRecordsDeleteRequest) (*_nethttp.Response, GenericOpenAPIError)
- func (a *RecordsApiService) ApiDnsRecordsGet(ctx _context.Context) ApiApiDnsRecordsGetRequest
- func (a *RecordsApiService) ApiDnsRecordsGetExecute(r ApiApiDnsRecordsGetRequest) ([]Record, *_nethttp.Response, GenericOpenAPIError)
- func (a *RecordsApiService) ApiDnsRecordsPost(ctx _context.Context) ApiApiDnsRecordsPostRequest
- func (a *RecordsApiService) ApiDnsRecordsPostExecute(r ApiApiDnsRecordsPostRequest) (Record, *_nethttp.Response, GenericOpenAPIError)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type Zone
- type ZonesApi
- type ZonesApiService
- func (a *ZonesApiService) ApiDnsZonesGet(ctx _context.Context) ApiApiDnsZonesGetRequest
- func (a *ZonesApiService) ApiDnsZonesGetExecute(r ApiApiDnsZonesGetRequest) ([]Zone, *_nethttp.Response, GenericOpenAPIError)
- func (a *ZonesApiService) ApiDnsZonesPost(ctx _context.Context) ApiApiDnsZonesPostRequest
- func (a *ZonesApiService) ApiDnsZonesPostExecute(r ApiApiDnsZonesPostRequest) (Zone, *_nethttp.Response, GenericOpenAPIError)
- func (a *ZonesApiService) ApiDnsZonesZoneDelete(ctx _context.Context, zone string) ApiApiDnsZonesZoneDeleteRequest
- func (a *ZonesApiService) ApiDnsZonesZoneDeleteExecute(r ApiApiDnsZonesZoneDeleteRequest) (*_nethttp.Response, GenericOpenAPIError)
- func (a *ZonesApiService) ApiDnsZonesZoneGet(ctx _context.Context, zone string) ApiApiDnsZonesZoneGetRequest
- func (a *ZonesApiService) ApiDnsZonesZoneGetExecute(r ApiApiDnsZonesZoneGetRequest) (Zone, *_nethttp.Response, GenericOpenAPIError)
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 { RecordsApi RecordsApi ZonesApi ZonesApi // contains filtered or unexported fields }
APIClient manages communication with the Pinto - 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 APIResonse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ApiApiDnsRecordsDeleteRequest ¶
type ApiApiDnsRecordsDeleteRequest struct { ApiService RecordsApi // contains filtered or unexported fields }
func (ApiApiDnsRecordsDeleteRequest) Environment ¶
func (r ApiApiDnsRecordsDeleteRequest) Environment(environment string) ApiApiDnsRecordsDeleteRequest
func (ApiApiDnsRecordsDeleteRequest) Execute ¶
func (r ApiApiDnsRecordsDeleteRequest) Execute() (*_nethttp.Response, GenericOpenAPIError)
func (ApiApiDnsRecordsDeleteRequest) Name ¶
func (r ApiApiDnsRecordsDeleteRequest) Name(name string) ApiApiDnsRecordsDeleteRequest
func (ApiApiDnsRecordsDeleteRequest) Provider ¶
func (r ApiApiDnsRecordsDeleteRequest) Provider(provider string) ApiApiDnsRecordsDeleteRequest
func (ApiApiDnsRecordsDeleteRequest) RecordType ¶
func (r ApiApiDnsRecordsDeleteRequest) RecordType(recordType RecordType) ApiApiDnsRecordsDeleteRequest
func (ApiApiDnsRecordsDeleteRequest) RequestBody ¶
func (r ApiApiDnsRecordsDeleteRequest) RequestBody(requestBody map[string]string) ApiApiDnsRecordsDeleteRequest
func (ApiApiDnsRecordsDeleteRequest) Zone ¶
func (r ApiApiDnsRecordsDeleteRequest) Zone(zone string) ApiApiDnsRecordsDeleteRequest
type ApiApiDnsRecordsGetRequest ¶
type ApiApiDnsRecordsGetRequest struct { ApiService RecordsApi // contains filtered or unexported fields }
func (ApiApiDnsRecordsGetRequest) Environment ¶
func (r ApiApiDnsRecordsGetRequest) Environment(environment string) ApiApiDnsRecordsGetRequest
func (ApiApiDnsRecordsGetRequest) Execute ¶
func (r ApiApiDnsRecordsGetRequest) Execute() ([]Record, *_nethttp.Response, GenericOpenAPIError)
func (ApiApiDnsRecordsGetRequest) Name ¶
func (r ApiApiDnsRecordsGetRequest) Name(name string) ApiApiDnsRecordsGetRequest
func (ApiApiDnsRecordsGetRequest) PageSize ¶
func (r ApiApiDnsRecordsGetRequest) PageSize(pageSize int32) ApiApiDnsRecordsGetRequest
func (ApiApiDnsRecordsGetRequest) PageToken ¶
func (r ApiApiDnsRecordsGetRequest) PageToken(pageToken string) ApiApiDnsRecordsGetRequest
func (ApiApiDnsRecordsGetRequest) Provider ¶
func (r ApiApiDnsRecordsGetRequest) Provider(provider string) ApiApiDnsRecordsGetRequest
func (ApiApiDnsRecordsGetRequest) RecordType ¶
func (r ApiApiDnsRecordsGetRequest) RecordType(recordType RecordType) ApiApiDnsRecordsGetRequest
func (ApiApiDnsRecordsGetRequest) Zone ¶
func (r ApiApiDnsRecordsGetRequest) Zone(zone string) ApiApiDnsRecordsGetRequest
type ApiApiDnsRecordsPostRequest ¶
type ApiApiDnsRecordsPostRequest struct { ApiService RecordsApi // contains filtered or unexported fields }
func (ApiApiDnsRecordsPostRequest) CreateRecordRequestModel ¶
func (r ApiApiDnsRecordsPostRequest) CreateRecordRequestModel(createRecordRequestModel CreateRecordRequestModel) ApiApiDnsRecordsPostRequest
func (ApiApiDnsRecordsPostRequest) Execute ¶
func (r ApiApiDnsRecordsPostRequest) Execute() (Record, *_nethttp.Response, GenericOpenAPIError)
type ApiApiDnsZonesGetRequest ¶
type ApiApiDnsZonesGetRequest struct { ApiService ZonesApi // contains filtered or unexported fields }
func (ApiApiDnsZonesGetRequest) Environment ¶
func (r ApiApiDnsZonesGetRequest) Environment(environment string) ApiApiDnsZonesGetRequest
func (ApiApiDnsZonesGetRequest) Execute ¶
func (r ApiApiDnsZonesGetRequest) Execute() ([]Zone, *_nethttp.Response, GenericOpenAPIError)
func (ApiApiDnsZonesGetRequest) PageSize ¶
func (r ApiApiDnsZonesGetRequest) PageSize(pageSize int32) ApiApiDnsZonesGetRequest
func (ApiApiDnsZonesGetRequest) PageToken ¶
func (r ApiApiDnsZonesGetRequest) PageToken(pageToken string) ApiApiDnsZonesGetRequest
func (ApiApiDnsZonesGetRequest) Provider ¶
func (r ApiApiDnsZonesGetRequest) Provider(provider string) ApiApiDnsZonesGetRequest
type ApiApiDnsZonesPostRequest ¶
type ApiApiDnsZonesPostRequest struct { ApiService ZonesApi // contains filtered or unexported fields }
func (ApiApiDnsZonesPostRequest) CreateZoneRequestModel ¶
func (r ApiApiDnsZonesPostRequest) CreateZoneRequestModel(createZoneRequestModel CreateZoneRequestModel) ApiApiDnsZonesPostRequest
func (ApiApiDnsZonesPostRequest) Execute ¶
func (r ApiApiDnsZonesPostRequest) Execute() (Zone, *_nethttp.Response, GenericOpenAPIError)
type ApiApiDnsZonesZoneDeleteRequest ¶
type ApiApiDnsZonesZoneDeleteRequest struct { ApiService ZonesApi // contains filtered or unexported fields }
func (ApiApiDnsZonesZoneDeleteRequest) Environment ¶
func (r ApiApiDnsZonesZoneDeleteRequest) Environment(environment string) ApiApiDnsZonesZoneDeleteRequest
func (ApiApiDnsZonesZoneDeleteRequest) Execute ¶
func (r ApiApiDnsZonesZoneDeleteRequest) Execute() (*_nethttp.Response, GenericOpenAPIError)
func (ApiApiDnsZonesZoneDeleteRequest) Provider ¶
func (r ApiApiDnsZonesZoneDeleteRequest) Provider(provider string) ApiApiDnsZonesZoneDeleteRequest
type ApiApiDnsZonesZoneGetRequest ¶
type ApiApiDnsZonesZoneGetRequest struct { ApiService ZonesApi // contains filtered or unexported fields }
func (ApiApiDnsZonesZoneGetRequest) Environment ¶
func (r ApiApiDnsZonesZoneGetRequest) Environment(environment string) ApiApiDnsZonesZoneGetRequest
func (ApiApiDnsZonesZoneGetRequest) Execute ¶
func (r ApiApiDnsZonesZoneGetRequest) Execute() (Zone, *_nethttp.Response, GenericOpenAPIError)
func (ApiApiDnsZonesZoneGetRequest) Provider ¶
func (r ApiApiDnsZonesZoneGetRequest) Provider(provider string) ApiApiDnsZonesZoneGetRequest
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 { Provider string `json:"provider"` Environment NullableString `json:"environment,omitempty"` Zone string `json:"zone"` Name string `json:"name"` Class *RecordClass `json:"class,omitempty"` Type RecordType `json:"type"` Data string `json:"data"` Ttl *int32 `json:"ttl,omitempty"` }
CreateRecordRequestModel struct for CreateRecordRequestModel
func NewCreateRecordRequestModel ¶
func NewCreateRecordRequestModel(provider string, 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) GetEnvironment ¶
func (o *CreateRecordRequestModel) GetEnvironment() string
GetEnvironment returns the Environment field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateRecordRequestModel) GetEnvironmentOk ¶
func (o *CreateRecordRequestModel) 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. NOTE: If the value is an explicit nil, `nil, true` will be returned
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) GetProvider ¶
func (o *CreateRecordRequestModel) GetProvider() string
GetProvider returns the Provider field value
func (*CreateRecordRequestModel) GetProviderOk ¶
func (o *CreateRecordRequestModel) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider 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) HasEnvironment ¶
func (o *CreateRecordRequestModel) HasEnvironment() bool
HasEnvironment 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) SetEnvironment ¶
func (o *CreateRecordRequestModel) SetEnvironment(v string)
SetEnvironment gets a reference to the given NullableString and assigns it to the Environment field.
func (*CreateRecordRequestModel) SetEnvironmentNil ¶
func (o *CreateRecordRequestModel) SetEnvironmentNil()
SetEnvironmentNil sets the value for Environment to be an explicit nil
func (*CreateRecordRequestModel) SetName ¶
func (o *CreateRecordRequestModel) SetName(v string)
SetName sets field value
func (*CreateRecordRequestModel) SetProvider ¶
func (o *CreateRecordRequestModel) SetProvider(v string)
SetProvider 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
func (*CreateRecordRequestModel) UnsetEnvironment ¶
func (o *CreateRecordRequestModel) UnsetEnvironment()
UnsetEnvironment ensures that no value is present for Environment, not even an explicit nil
type CreateZoneRequestModel ¶
type CreateZoneRequestModel struct { Provider string `json:"provider"` Environment NullableString `json:"environment,omitempty"` Name string `json:"name"` }
CreateZoneRequestModel struct for CreateZoneRequestModel
func NewCreateZoneRequestModel ¶
func NewCreateZoneRequestModel(provider string, 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) GetEnvironment ¶
func (o *CreateZoneRequestModel) GetEnvironment() string
GetEnvironment returns the Environment field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CreateZoneRequestModel) GetEnvironmentOk ¶
func (o *CreateZoneRequestModel) 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. NOTE: If the value is an explicit nil, `nil, true` will be returned
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) GetProvider ¶
func (o *CreateZoneRequestModel) GetProvider() string
GetProvider returns the Provider field value
func (*CreateZoneRequestModel) GetProviderOk ¶
func (o *CreateZoneRequestModel) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.
func (*CreateZoneRequestModel) HasEnvironment ¶
func (o *CreateZoneRequestModel) HasEnvironment() bool
HasEnvironment returns a boolean if a field has been set.
func (CreateZoneRequestModel) MarshalJSON ¶
func (o CreateZoneRequestModel) MarshalJSON() ([]byte, error)
func (*CreateZoneRequestModel) SetEnvironment ¶
func (o *CreateZoneRequestModel) SetEnvironment(v string)
SetEnvironment gets a reference to the given NullableString and assigns it to the Environment field.
func (*CreateZoneRequestModel) SetEnvironmentNil ¶
func (o *CreateZoneRequestModel) SetEnvironmentNil()
SetEnvironmentNil sets the value for Environment to be an explicit nil
func (*CreateZoneRequestModel) SetName ¶
func (o *CreateZoneRequestModel) SetName(v string)
SetName sets field value
func (*CreateZoneRequestModel) SetProvider ¶
func (o *CreateZoneRequestModel) SetProvider(v string)
SetProvider sets field value
func (*CreateZoneRequestModel) UnsetEnvironment ¶
func (o *CreateZoneRequestModel) UnsetEnvironment()
UnsetEnvironment ensures that no value is present for Environment, not even an explicit nil
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 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 string `json:"class"` Ttl *int32 `json:"ttl,omitempty"` Data string `json:"data"` }
Record struct for Record
func NewRecord ¶
func NewRecord(name string, type_ RecordType, class string, 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) GetClassOk ¶
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 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 ( IN RecordClass = "IN" CS RecordClass = "CS" CH RecordClass = "CH" HS RecordClass = "HS" )
List of RecordClass
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 ( A RecordType = "A" NS RecordType = "NS" CNAME RecordType = "CNAME" SOA RecordType = "SOA" PTR RecordType = "PTR" MX RecordType = "MX" TXT RecordType = "TXT" SRV RecordType = "SRV" AAAA RecordType = "AAAA" SPF RecordType = "SPF" )
List of RecordType
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 RecordsApi ¶
type RecordsApi interface { /* * ApiDnsRecordsDelete 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 ApiApiDnsRecordsDeleteRequest */ ApiDnsRecordsDelete(ctx _context.Context) ApiApiDnsRecordsDeleteRequest /* * ApiDnsRecordsDeleteExecute executes the request */ ApiDnsRecordsDeleteExecute(r ApiApiDnsRecordsDeleteRequest) (*_nethttp.Response, GenericOpenAPIError) /* * ApiDnsRecordsGet 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 ApiApiDnsRecordsGetRequest */ ApiDnsRecordsGet(ctx _context.Context) ApiApiDnsRecordsGetRequest /* * ApiDnsRecordsGetExecute executes the request * @return []Record */ ApiDnsRecordsGetExecute(r ApiApiDnsRecordsGetRequest) ([]Record, *_nethttp.Response, GenericOpenAPIError) /* * ApiDnsRecordsPost 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 ApiApiDnsRecordsPostRequest */ ApiDnsRecordsPost(ctx _context.Context) ApiApiDnsRecordsPostRequest /* * ApiDnsRecordsPostExecute executes the request * @return Record */ ApiDnsRecordsPostExecute(r ApiApiDnsRecordsPostRequest) (Record, *_nethttp.Response, GenericOpenAPIError) }
type RecordsApiService ¶
type RecordsApiService service
RecordsApiService RecordsApi service
func (*RecordsApiService) ApiDnsRecordsDelete ¶
func (a *RecordsApiService) ApiDnsRecordsDelete(ctx _context.Context) ApiApiDnsRecordsDeleteRequest
* ApiDnsRecordsDelete 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 ApiApiDnsRecordsDeleteRequest
func (*RecordsApiService) ApiDnsRecordsDeleteExecute ¶
func (a *RecordsApiService) ApiDnsRecordsDeleteExecute(r ApiApiDnsRecordsDeleteRequest) (*_nethttp.Response, GenericOpenAPIError)
* Execute executes the request
func (*RecordsApiService) ApiDnsRecordsGet ¶
func (a *RecordsApiService) ApiDnsRecordsGet(ctx _context.Context) ApiApiDnsRecordsGetRequest
* ApiDnsRecordsGet 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 ApiApiDnsRecordsGetRequest
func (*RecordsApiService) ApiDnsRecordsGetExecute ¶
func (a *RecordsApiService) ApiDnsRecordsGetExecute(r ApiApiDnsRecordsGetRequest) ([]Record, *_nethttp.Response, GenericOpenAPIError)
* Execute executes the request * @return []Record
func (*RecordsApiService) ApiDnsRecordsPost ¶
func (a *RecordsApiService) ApiDnsRecordsPost(ctx _context.Context) ApiApiDnsRecordsPostRequest
* ApiDnsRecordsPost 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 ApiApiDnsRecordsPostRequest
func (*RecordsApiService) ApiDnsRecordsPostExecute ¶
func (a *RecordsApiService) ApiDnsRecordsPostExecute(r ApiApiDnsRecordsPostRequest) (Record, *_nethttp.Response, GenericOpenAPIError)
* Execute executes the request * @return Record
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 ZonesApi ¶
type ZonesApi interface { /* * ApiDnsZonesGet 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 ApiApiDnsZonesGetRequest */ ApiDnsZonesGet(ctx _context.Context) ApiApiDnsZonesGetRequest /* * ApiDnsZonesGetExecute executes the request * @return []Zone */ ApiDnsZonesGetExecute(r ApiApiDnsZonesGetRequest) ([]Zone, *_nethttp.Response, GenericOpenAPIError) /* * ApiDnsZonesPost Creates a new DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiApiDnsZonesPostRequest */ ApiDnsZonesPost(ctx _context.Context) ApiApiDnsZonesPostRequest /* * ApiDnsZonesPostExecute executes the request * @return Zone */ ApiDnsZonesPostExecute(r ApiApiDnsZonesPostRequest) (Zone, *_nethttp.Response, GenericOpenAPIError) /* * ApiDnsZonesZoneDelete 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(). * @param zone Name of the DNS zone to delete * @return ApiApiDnsZonesZoneDeleteRequest */ ApiDnsZonesZoneDelete(ctx _context.Context, zone string) ApiApiDnsZonesZoneDeleteRequest /* * ApiDnsZonesZoneDeleteExecute executes the request */ ApiDnsZonesZoneDeleteExecute(r ApiApiDnsZonesZoneDeleteRequest) (*_nethttp.Response, GenericOpenAPIError) /* * ApiDnsZonesZoneGet 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 Name of the DNS zone to load * @return ApiApiDnsZonesZoneGetRequest */ ApiDnsZonesZoneGet(ctx _context.Context, zone string) ApiApiDnsZonesZoneGetRequest /* * ApiDnsZonesZoneGetExecute executes the request * @return Zone */ ApiDnsZonesZoneGetExecute(r ApiApiDnsZonesZoneGetRequest) (Zone, *_nethttp.Response, GenericOpenAPIError) }
type ZonesApiService ¶
type ZonesApiService service
ZonesApiService ZonesApi service
func (*ZonesApiService) ApiDnsZonesGet ¶
func (a *ZonesApiService) ApiDnsZonesGet(ctx _context.Context) ApiApiDnsZonesGetRequest
* ApiDnsZonesGet 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 ApiApiDnsZonesGetRequest
func (*ZonesApiService) ApiDnsZonesGetExecute ¶
func (a *ZonesApiService) ApiDnsZonesGetExecute(r ApiApiDnsZonesGetRequest) ([]Zone, *_nethttp.Response, GenericOpenAPIError)
* Execute executes the request * @return []Zone
func (*ZonesApiService) ApiDnsZonesPost ¶
func (a *ZonesApiService) ApiDnsZonesPost(ctx _context.Context) ApiApiDnsZonesPostRequest
* ApiDnsZonesPost Creates a new DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiApiDnsZonesPostRequest
func (*ZonesApiService) ApiDnsZonesPostExecute ¶
func (a *ZonesApiService) ApiDnsZonesPostExecute(r ApiApiDnsZonesPostRequest) (Zone, *_nethttp.Response, GenericOpenAPIError)
* Execute executes the request * @return Zone
func (*ZonesApiService) ApiDnsZonesZoneDelete ¶
func (a *ZonesApiService) ApiDnsZonesZoneDelete(ctx _context.Context, zone string) ApiApiDnsZonesZoneDeleteRequest
* ApiDnsZonesZoneDelete 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(). * @param zone Name of the DNS zone to delete * @return ApiApiDnsZonesZoneDeleteRequest
func (*ZonesApiService) ApiDnsZonesZoneDeleteExecute ¶
func (a *ZonesApiService) ApiDnsZonesZoneDeleteExecute(r ApiApiDnsZonesZoneDeleteRequest) (*_nethttp.Response, GenericOpenAPIError)
* Execute executes the request
func (*ZonesApiService) ApiDnsZonesZoneGet ¶
func (a *ZonesApiService) ApiDnsZonesZoneGet(ctx _context.Context, zone string) ApiApiDnsZonesZoneGetRequest
* ApiDnsZonesZoneGet 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 Name of the DNS zone to load * @return ApiApiDnsZonesZoneGetRequest
func (*ZonesApiService) ApiDnsZonesZoneGetExecute ¶
func (a *ZonesApiService) ApiDnsZonesZoneGetExecute(r ApiApiDnsZonesZoneGetRequest) (Zone, *_nethttp.Response, GenericOpenAPIError)
* Execute executes the request * @return Zone