Documentation ¶
Overview ¶
Package resourcerecordsv1 : Operations and models for the ResourceRecordsV1 service Deprecated: This module is deprecated. For more detail https://github.com/IBM/networking-go-sdk/blob/master/DEPRECATION-NOTICE.md
Index ¶
- Constants
- func UnmarshalFirstHref(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalListResourceRecords(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalNextHref(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdata(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdataRdataARecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdataRdataAaaaRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdataRdataCnameRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdataRdataMxRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdataRdataPtrRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdataRdataSrvRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordInputRdataRdataTxtRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdata(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdataRdataARecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdataRdataAaaaRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdataRdataCnameRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdataRdataMxRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdataRdataPtrRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdataRdataSrvRecord(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceRecordUpdateInputRdataRdataTxtRecord(m map[string]json.RawMessage, result interface{}) (err error)
- type CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetDnszoneID(dnszoneID string) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetHeaders(param map[string]string) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetInstanceID(instanceID string) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetName(name string) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetProtocol(protocol string) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetRdata(rdata ResourceRecordInputRdataIntf) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetService(service string) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetTTL(ttl int64) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetType(typeVar string) *CreateResourceRecordOptions
- func (options *CreateResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *CreateResourceRecordOptions
- type DeleteResourceRecordOptions
- func (options *DeleteResourceRecordOptions) SetDnszoneID(dnszoneID string) *DeleteResourceRecordOptions
- func (options *DeleteResourceRecordOptions) SetHeaders(param map[string]string) *DeleteResourceRecordOptions
- func (options *DeleteResourceRecordOptions) SetInstanceID(instanceID string) *DeleteResourceRecordOptions
- func (options *DeleteResourceRecordOptions) SetRecordID(recordID string) *DeleteResourceRecordOptions
- func (options *DeleteResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *DeleteResourceRecordOptions
- type FirstHref
- type GetResourceRecordOptions
- func (options *GetResourceRecordOptions) SetDnszoneID(dnszoneID string) *GetResourceRecordOptions
- func (options *GetResourceRecordOptions) SetHeaders(param map[string]string) *GetResourceRecordOptions
- func (options *GetResourceRecordOptions) SetInstanceID(instanceID string) *GetResourceRecordOptions
- func (options *GetResourceRecordOptions) SetRecordID(recordID string) *GetResourceRecordOptions
- func (options *GetResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *GetResourceRecordOptions
- type ListResourceRecords
- type ListResourceRecordsOptions
- func (options *ListResourceRecordsOptions) SetDnszoneID(dnszoneID string) *ListResourceRecordsOptions
- func (options *ListResourceRecordsOptions) SetHeaders(param map[string]string) *ListResourceRecordsOptions
- func (options *ListResourceRecordsOptions) SetInstanceID(instanceID string) *ListResourceRecordsOptions
- func (options *ListResourceRecordsOptions) SetLimit(limit int64) *ListResourceRecordsOptions
- func (options *ListResourceRecordsOptions) SetOffset(offset int64) *ListResourceRecordsOptions
- func (options *ListResourceRecordsOptions) SetXCorrelationID(xCorrelationID string) *ListResourceRecordsOptions
- type NextHref
- type ResourceRecord
- type ResourceRecordInputRdata
- type ResourceRecordInputRdataIntf
- type ResourceRecordInputRdataRdataARecord
- type ResourceRecordInputRdataRdataAaaaRecord
- type ResourceRecordInputRdataRdataCnameRecord
- type ResourceRecordInputRdataRdataMxRecord
- type ResourceRecordInputRdataRdataPtrRecord
- type ResourceRecordInputRdataRdataSrvRecord
- type ResourceRecordInputRdataRdataTxtRecord
- type ResourceRecordUpdateInputRdata
- type ResourceRecordUpdateInputRdataIntf
- type ResourceRecordUpdateInputRdataRdataARecord
- type ResourceRecordUpdateInputRdataRdataAaaaRecord
- type ResourceRecordUpdateInputRdataRdataCnameRecord
- type ResourceRecordUpdateInputRdataRdataMxRecord
- type ResourceRecordUpdateInputRdataRdataPtrRecord
- type ResourceRecordUpdateInputRdataRdataSrvRecord
- type ResourceRecordUpdateInputRdataRdataTxtRecord
- type ResourceRecordsV1
- func (resourceRecords *ResourceRecordsV1) CreateResourceRecord(createResourceRecordOptions *CreateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)
- func (resourceRecords *ResourceRecordsV1) DeleteResourceRecord(deleteResourceRecordOptions *DeleteResourceRecordOptions) (response *core.DetailedResponse, err error)
- func (resourceRecords *ResourceRecordsV1) GetResourceRecord(getResourceRecordOptions *GetResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)
- func (resourceRecords *ResourceRecordsV1) ListResourceRecords(listResourceRecordsOptions *ListResourceRecordsOptions) (result *ListResourceRecords, response *core.DetailedResponse, err error)
- func (*ResourceRecordsV1) NewCreateResourceRecordOptions(instanceID string, dnszoneID string) *CreateResourceRecordOptions
- func (*ResourceRecordsV1) NewDeleteResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *DeleteResourceRecordOptions
- func (*ResourceRecordsV1) NewGetResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *GetResourceRecordOptions
- func (*ResourceRecordsV1) NewListResourceRecordsOptions(instanceID string, dnszoneID string) *ListResourceRecordsOptions
- func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataARecord(ip string) (model *ResourceRecordInputRdataRdataARecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataAaaaRecord(ip string) (model *ResourceRecordInputRdataRdataAaaaRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataCnameRecord(cname string) (model *ResourceRecordInputRdataRdataCnameRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataMxRecord(exchange string, preference int64) (model *ResourceRecordInputRdataRdataMxRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataPtrRecord(ptrdname string) (model *ResourceRecordInputRdataRdataPtrRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataSrvRecord(port int64, priority int64, target string, weight int64) (model *ResourceRecordInputRdataRdataSrvRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataTxtRecord(text string) (model *ResourceRecordInputRdataRdataTxtRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataARecord(ip string) (model *ResourceRecordUpdateInputRdataRdataARecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataAaaaRecord(ip string) (model *ResourceRecordUpdateInputRdataRdataAaaaRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataCnameRecord(cname string) (model *ResourceRecordUpdateInputRdataRdataCnameRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataMxRecord(exchange string, preference int64) (model *ResourceRecordUpdateInputRdataRdataMxRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataPtrRecord(ptrdname string) (model *ResourceRecordUpdateInputRdataRdataPtrRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataSrvRecord(port int64, priority int64, target string, weight int64) (model *ResourceRecordUpdateInputRdataRdataSrvRecord, err error)
- func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataTxtRecord(text string) (model *ResourceRecordUpdateInputRdataRdataTxtRecord, err error)
- func (*ResourceRecordsV1) NewUpdateResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *UpdateResourceRecordOptions
- func (resourceRecords *ResourceRecordsV1) SetServiceURL(url string) error
- func (resourceRecords *ResourceRecordsV1) UpdateResourceRecord(updateResourceRecordOptions *UpdateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)
- type ResourceRecordsV1Options
- type UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetDnszoneID(dnszoneID string) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetHeaders(param map[string]string) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetInstanceID(instanceID string) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetName(name string) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetProtocol(protocol string) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetRdata(rdata ResourceRecordUpdateInputRdataIntf) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetRecordID(recordID string) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetService(service string) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetTTL(ttl int64) *UpdateResourceRecordOptions
- func (options *UpdateResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *UpdateResourceRecordOptions
Constants ¶
const ( CreateResourceRecordOptions_Type_A = "A" CreateResourceRecordOptions_Type_Aaaa = "AAAA" CreateResourceRecordOptions_Type_Cname = "CNAME" CreateResourceRecordOptions_Type_Mx = "MX" CreateResourceRecordOptions_Type_Ptr = "PTR" CreateResourceRecordOptions_Type_Srv = "SRV" CreateResourceRecordOptions_Type_Txt = "TXT" )
Constants associated with the CreateResourceRecordOptions.Type property. Type of the resource record.
const ( ResourceRecord_Type_A = "A" ResourceRecord_Type_Aaaa = "AAAA" ResourceRecord_Type_Cname = "CNAME" ResourceRecord_Type_Mx = "MX" ResourceRecord_Type_Ptr = "PTR" ResourceRecord_Type_Srv = "SRV" ResourceRecord_Type_Txt = "TXT" )
Constants associated with the ResourceRecord.Type property. Type of the resource record.
const DefaultServiceName = "resource_records"
DefaultServiceName is the default key used to find external configuration information.
const DefaultServiceURL = "https://api.dns-svcs.cloud.ibm.com/v1"
DefaultServiceURL is the default URL to make service requests to.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalFirstHref ¶
func UnmarshalFirstHref(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalFirstHref unmarshals an instance of FirstHref from the specified map of raw messages.
func UnmarshalListResourceRecords ¶
func UnmarshalListResourceRecords(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalListResourceRecords unmarshals an instance of ListResourceRecords from the specified map of raw messages.
func UnmarshalNextHref ¶
func UnmarshalNextHref(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalNextHref unmarshals an instance of NextHref from the specified map of raw messages.
func UnmarshalResourceRecord ¶
func UnmarshalResourceRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecord unmarshals an instance of ResourceRecord from the specified map of raw messages.
func UnmarshalResourceRecordInputRdata ¶
func UnmarshalResourceRecordInputRdata(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdata unmarshals an instance of ResourceRecordInputRdata from the specified map of raw messages.
func UnmarshalResourceRecordInputRdataRdataARecord ¶
func UnmarshalResourceRecordInputRdataRdataARecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdataRdataARecord unmarshals an instance of ResourceRecordInputRdataRdataARecord from the specified map of raw messages.
func UnmarshalResourceRecordInputRdataRdataAaaaRecord ¶
func UnmarshalResourceRecordInputRdataRdataAaaaRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdataRdataAaaaRecord unmarshals an instance of ResourceRecordInputRdataRdataAaaaRecord from the specified map of raw messages.
func UnmarshalResourceRecordInputRdataRdataCnameRecord ¶
func UnmarshalResourceRecordInputRdataRdataCnameRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdataRdataCnameRecord unmarshals an instance of ResourceRecordInputRdataRdataCnameRecord from the specified map of raw messages.
func UnmarshalResourceRecordInputRdataRdataMxRecord ¶
func UnmarshalResourceRecordInputRdataRdataMxRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdataRdataMxRecord unmarshals an instance of ResourceRecordInputRdataRdataMxRecord from the specified map of raw messages.
func UnmarshalResourceRecordInputRdataRdataPtrRecord ¶
func UnmarshalResourceRecordInputRdataRdataPtrRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdataRdataPtrRecord unmarshals an instance of ResourceRecordInputRdataRdataPtrRecord from the specified map of raw messages.
func UnmarshalResourceRecordInputRdataRdataSrvRecord ¶
func UnmarshalResourceRecordInputRdataRdataSrvRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdataRdataSrvRecord unmarshals an instance of ResourceRecordInputRdataRdataSrvRecord from the specified map of raw messages.
func UnmarshalResourceRecordInputRdataRdataTxtRecord ¶
func UnmarshalResourceRecordInputRdataRdataTxtRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordInputRdataRdataTxtRecord unmarshals an instance of ResourceRecordInputRdataRdataTxtRecord from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdata ¶
func UnmarshalResourceRecordUpdateInputRdata(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdata unmarshals an instance of ResourceRecordUpdateInputRdata from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdataRdataARecord ¶
func UnmarshalResourceRecordUpdateInputRdataRdataARecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdataRdataARecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataARecord from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdataRdataAaaaRecord ¶
func UnmarshalResourceRecordUpdateInputRdataRdataAaaaRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdataRdataAaaaRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataAaaaRecord from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdataRdataCnameRecord ¶
func UnmarshalResourceRecordUpdateInputRdataRdataCnameRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdataRdataCnameRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataCnameRecord from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdataRdataMxRecord ¶
func UnmarshalResourceRecordUpdateInputRdataRdataMxRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdataRdataMxRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataMxRecord from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdataRdataPtrRecord ¶
func UnmarshalResourceRecordUpdateInputRdataRdataPtrRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdataRdataPtrRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataPtrRecord from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdataRdataSrvRecord ¶
func UnmarshalResourceRecordUpdateInputRdataRdataSrvRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdataRdataSrvRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataSrvRecord from the specified map of raw messages.
func UnmarshalResourceRecordUpdateInputRdataRdataTxtRecord ¶
func UnmarshalResourceRecordUpdateInputRdataRdataTxtRecord(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceRecordUpdateInputRdataRdataTxtRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataTxtRecord from the specified map of raw messages.
Types ¶
type CreateResourceRecordOptions ¶
type CreateResourceRecordOptions struct { // The unique identifier of a service instance. InstanceID *string `json:"instance_id" validate:"required"` // The unique identifier of a DNS zone. DnszoneID *string `json:"dnszone_id" validate:"required"` // Name of the resource record. Name *string `json:"name,omitempty"` // Type of the resource record. Type *string `json:"type,omitempty"` // Content of the resource record. Rdata ResourceRecordInputRdataIntf `json:"rdata,omitempty"` // Time to live in second. TTL *int64 `json:"ttl,omitempty"` // Only used for SRV record. Service *string `json:"service,omitempty"` // Only used for SRV record. Protocol *string `json:"protocol,omitempty"` // Uniquely identifying a request. XCorrelationID *string `json:"X-Correlation-ID,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
CreateResourceRecordOptions : The CreateResourceRecord options.
func (*CreateResourceRecordOptions) SetDnszoneID ¶
func (options *CreateResourceRecordOptions) SetDnszoneID(dnszoneID string) *CreateResourceRecordOptions
SetDnszoneID : Allow user to set DnszoneID
func (*CreateResourceRecordOptions) SetHeaders ¶
func (options *CreateResourceRecordOptions) SetHeaders(param map[string]string) *CreateResourceRecordOptions
SetHeaders : Allow user to set Headers
func (*CreateResourceRecordOptions) SetInstanceID ¶
func (options *CreateResourceRecordOptions) SetInstanceID(instanceID string) *CreateResourceRecordOptions
SetInstanceID : Allow user to set InstanceID
func (*CreateResourceRecordOptions) SetName ¶
func (options *CreateResourceRecordOptions) SetName(name string) *CreateResourceRecordOptions
SetName : Allow user to set Name
func (*CreateResourceRecordOptions) SetProtocol ¶
func (options *CreateResourceRecordOptions) SetProtocol(protocol string) *CreateResourceRecordOptions
SetProtocol : Allow user to set Protocol
func (*CreateResourceRecordOptions) SetRdata ¶
func (options *CreateResourceRecordOptions) SetRdata(rdata ResourceRecordInputRdataIntf) *CreateResourceRecordOptions
SetRdata : Allow user to set Rdata
func (*CreateResourceRecordOptions) SetService ¶
func (options *CreateResourceRecordOptions) SetService(service string) *CreateResourceRecordOptions
SetService : Allow user to set Service
func (*CreateResourceRecordOptions) SetTTL ¶
func (options *CreateResourceRecordOptions) SetTTL(ttl int64) *CreateResourceRecordOptions
SetTTL : Allow user to set TTL
func (*CreateResourceRecordOptions) SetType ¶
func (options *CreateResourceRecordOptions) SetType(typeVar string) *CreateResourceRecordOptions
SetType : Allow user to set Type
func (*CreateResourceRecordOptions) SetXCorrelationID ¶
func (options *CreateResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *CreateResourceRecordOptions
SetXCorrelationID : Allow user to set XCorrelationID
type DeleteResourceRecordOptions ¶
type DeleteResourceRecordOptions struct { // The unique identifier of a service instance. InstanceID *string `json:"instance_id" validate:"required"` // The unique identifier of a DNS zone. DnszoneID *string `json:"dnszone_id" validate:"required"` // The unique identifier of a resource record. RecordID *string `json:"record_id" validate:"required"` // Uniquely identifying a request. XCorrelationID *string `json:"X-Correlation-ID,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
DeleteResourceRecordOptions : The DeleteResourceRecord options.
func (*DeleteResourceRecordOptions) SetDnszoneID ¶
func (options *DeleteResourceRecordOptions) SetDnszoneID(dnszoneID string) *DeleteResourceRecordOptions
SetDnszoneID : Allow user to set DnszoneID
func (*DeleteResourceRecordOptions) SetHeaders ¶
func (options *DeleteResourceRecordOptions) SetHeaders(param map[string]string) *DeleteResourceRecordOptions
SetHeaders : Allow user to set Headers
func (*DeleteResourceRecordOptions) SetInstanceID ¶
func (options *DeleteResourceRecordOptions) SetInstanceID(instanceID string) *DeleteResourceRecordOptions
SetInstanceID : Allow user to set InstanceID
func (*DeleteResourceRecordOptions) SetRecordID ¶
func (options *DeleteResourceRecordOptions) SetRecordID(recordID string) *DeleteResourceRecordOptions
SetRecordID : Allow user to set RecordID
func (*DeleteResourceRecordOptions) SetXCorrelationID ¶
func (options *DeleteResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *DeleteResourceRecordOptions
SetXCorrelationID : Allow user to set XCorrelationID
type FirstHref ¶
type FirstHref struct { // href. Href *string `json:"href,omitempty"` }
FirstHref : href.
type GetResourceRecordOptions ¶
type GetResourceRecordOptions struct { // The unique identifier of a service instance. InstanceID *string `json:"instance_id" validate:"required"` // The unique identifier of a DNS zone. DnszoneID *string `json:"dnszone_id" validate:"required"` // The unique identifier of a resource record. RecordID *string `json:"record_id" validate:"required"` // Uniquely identifying a request. XCorrelationID *string `json:"X-Correlation-ID,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
GetResourceRecordOptions : The GetResourceRecord options.
func (*GetResourceRecordOptions) SetDnszoneID ¶
func (options *GetResourceRecordOptions) SetDnszoneID(dnszoneID string) *GetResourceRecordOptions
SetDnszoneID : Allow user to set DnszoneID
func (*GetResourceRecordOptions) SetHeaders ¶
func (options *GetResourceRecordOptions) SetHeaders(param map[string]string) *GetResourceRecordOptions
SetHeaders : Allow user to set Headers
func (*GetResourceRecordOptions) SetInstanceID ¶
func (options *GetResourceRecordOptions) SetInstanceID(instanceID string) *GetResourceRecordOptions
SetInstanceID : Allow user to set InstanceID
func (*GetResourceRecordOptions) SetRecordID ¶
func (options *GetResourceRecordOptions) SetRecordID(recordID string) *GetResourceRecordOptions
SetRecordID : Allow user to set RecordID
func (*GetResourceRecordOptions) SetXCorrelationID ¶
func (options *GetResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *GetResourceRecordOptions
SetXCorrelationID : Allow user to set XCorrelationID
type ListResourceRecords ¶
type ListResourceRecords struct { // An array of resource records. ResourceRecords []ResourceRecord `json:"resource_records" validate:"required"` // Specify how many resource records to skip over, the default value is 0. Offset *int64 `json:"offset" validate:"required"` // Specify how many resource records are returned, the default value is 20. Limit *int64 `json:"limit" validate:"required"` // Total number of resource records. TotalCount *int64 `json:"total_count" validate:"required"` // href. First *FirstHref `json:"first" validate:"required"` // href. Next *NextHref `json:"next,omitempty"` }
ListResourceRecords : List Resource Records response.
type ListResourceRecordsOptions ¶
type ListResourceRecordsOptions struct { // The unique identifier of a service instance. InstanceID *string `json:"instance_id" validate:"required"` // The unique identifier of a DNS zone. DnszoneID *string `json:"dnszone_id" validate:"required"` // Uniquely identifying a request. XCorrelationID *string `json:"X-Correlation-ID,omitempty"` // Specify how many resource records to skip over, the default value is 0. Offset *int64 `json:"offset,omitempty"` // Specify how many resource records are returned, the default value is 200. Limit *int64 `json:"limit,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
ListResourceRecordsOptions : The ListResourceRecords options.
func (*ListResourceRecordsOptions) SetDnszoneID ¶
func (options *ListResourceRecordsOptions) SetDnszoneID(dnszoneID string) *ListResourceRecordsOptions
SetDnszoneID : Allow user to set DnszoneID
func (*ListResourceRecordsOptions) SetHeaders ¶
func (options *ListResourceRecordsOptions) SetHeaders(param map[string]string) *ListResourceRecordsOptions
SetHeaders : Allow user to set Headers
func (*ListResourceRecordsOptions) SetInstanceID ¶
func (options *ListResourceRecordsOptions) SetInstanceID(instanceID string) *ListResourceRecordsOptions
SetInstanceID : Allow user to set InstanceID
func (*ListResourceRecordsOptions) SetLimit ¶
func (options *ListResourceRecordsOptions) SetLimit(limit int64) *ListResourceRecordsOptions
SetLimit : Allow user to set Limit
func (*ListResourceRecordsOptions) SetOffset ¶
func (options *ListResourceRecordsOptions) SetOffset(offset int64) *ListResourceRecordsOptions
SetOffset : Allow user to set Offset
func (*ListResourceRecordsOptions) SetXCorrelationID ¶
func (options *ListResourceRecordsOptions) SetXCorrelationID(xCorrelationID string) *ListResourceRecordsOptions
SetXCorrelationID : Allow user to set XCorrelationID
type NextHref ¶
type NextHref struct { // href. Href *string `json:"href,omitempty"` }
NextHref : href.
type ResourceRecord ¶
type ResourceRecord struct { // Identifier of the resource record. ID *string `json:"id,omitempty"` // the time when a resource record is created. CreatedOn *string `json:"created_on,omitempty"` // the recent time when a resource record is modified. ModifiedOn *string `json:"modified_on,omitempty"` // Name of the resource record. Name *string `json:"name,omitempty"` // Type of the resource record. Type *string `json:"type,omitempty"` // Time to live in second. TTL *int64 `json:"ttl,omitempty"` // Content of the resource record. Rdata interface{} `json:"rdata,omitempty"` // Only used for SRV record. Service *string `json:"service,omitempty"` // Only used for SRV record. Protocol *string `json:"protocol,omitempty"` }
ResourceRecord : Resource record details.
type ResourceRecordInputRdata ¶
type ResourceRecordInputRdata struct { // IPv4 address. Ip *string `json:"ip,omitempty"` // Canonical name. Cname *string `json:"cname,omitempty"` // Hostname of Exchange server. Exchange *string `json:"exchange,omitempty"` // Preference of the MX record. Preference *int64 `json:"preference,omitempty"` // Port number of the target server. Port *int64 `json:"port,omitempty"` // Priority of the SRV record. Priority *int64 `json:"priority,omitempty"` // Hostname of the target server. Target *string `json:"target,omitempty"` // Weight of distributing queries among multiple target servers. Weight *int64 `json:"weight,omitempty"` // Human readable text. Text *string `json:"text,omitempty"` // Hostname of the relevant A or AAAA record. Ptrdname *string `json:"ptrdname,omitempty"` }
ResourceRecordInputRdata : Content of the resource record. Models which "extend" this model: - ResourceRecordInputRdataRdataARecord - ResourceRecordInputRdataRdataAaaaRecord - ResourceRecordInputRdataRdataCnameRecord - ResourceRecordInputRdataRdataMxRecord - ResourceRecordInputRdataRdataSrvRecord - ResourceRecordInputRdataRdataTxtRecord - ResourceRecordInputRdataRdataPtrRecord
type ResourceRecordInputRdataIntf ¶
type ResourceRecordInputRdataIntf interface {
// contains filtered or unexported methods
}
type ResourceRecordInputRdataRdataARecord ¶
type ResourceRecordInputRdataRdataARecord struct { // IPv4 address. Ip *string `json:"ip" validate:"required"` }
ResourceRecordInputRdataRdataARecord : The content of type-A resource record. This model "extends" ResourceRecordInputRdata
type ResourceRecordInputRdataRdataAaaaRecord ¶
type ResourceRecordInputRdataRdataAaaaRecord struct { // IPv6 address. Ip *string `json:"ip" validate:"required"` }
ResourceRecordInputRdataRdataAaaaRecord : The content of type-AAAA resource record. This model "extends" ResourceRecordInputRdata
type ResourceRecordInputRdataRdataCnameRecord ¶
type ResourceRecordInputRdataRdataCnameRecord struct { // Canonical name. Cname *string `json:"cname" validate:"required"` }
ResourceRecordInputRdataRdataCnameRecord : The content of type-CNAME resource record. This model "extends" ResourceRecordInputRdata
type ResourceRecordInputRdataRdataMxRecord ¶
type ResourceRecordInputRdataRdataMxRecord struct { // Hostname of Exchange server. Exchange *string `json:"exchange" validate:"required"` // Preference of the MX record. Preference *int64 `json:"preference" validate:"required"` }
ResourceRecordInputRdataRdataMxRecord : The content of type-MX resource record. This model "extends" ResourceRecordInputRdata
type ResourceRecordInputRdataRdataPtrRecord ¶
type ResourceRecordInputRdataRdataPtrRecord struct { // Hostname of the relevant A or AAAA record. Ptrdname *string `json:"ptrdname" validate:"required"` }
ResourceRecordInputRdataRdataPtrRecord : The content of type-PTR resource record. This model "extends" ResourceRecordInputRdata
type ResourceRecordInputRdataRdataSrvRecord ¶
type ResourceRecordInputRdataRdataSrvRecord struct { // Port number of the target server. Port *int64 `json:"port" validate:"required"` // Priority of the SRV record. Priority *int64 `json:"priority" validate:"required"` // Hostname of the target server. Target *string `json:"target" validate:"required"` // Weight of distributing queries among multiple target servers. Weight *int64 `json:"weight" validate:"required"` }
ResourceRecordInputRdataRdataSrvRecord : The content of type-SRV resource record. This model "extends" ResourceRecordInputRdata
type ResourceRecordInputRdataRdataTxtRecord ¶
type ResourceRecordInputRdataRdataTxtRecord struct { // Human readable text. Text *string `json:"text" validate:"required"` }
ResourceRecordInputRdataRdataTxtRecord : The content of type-TXT resource record. This model "extends" ResourceRecordInputRdata
type ResourceRecordUpdateInputRdata ¶
type ResourceRecordUpdateInputRdata struct { // IPv4 address. Ip *string `json:"ip,omitempty"` // Canonical name. Cname *string `json:"cname,omitempty"` // Hostname of Exchange server. Exchange *string `json:"exchange,omitempty"` // Preference of the MX record. Preference *int64 `json:"preference,omitempty"` // Port number of the target server. Port *int64 `json:"port,omitempty"` // Priority of the SRV record. Priority *int64 `json:"priority,omitempty"` // Hostname of the target server. Target *string `json:"target,omitempty"` // Weight of distributing queries among multiple target servers. Weight *int64 `json:"weight,omitempty"` // Human readable text. Text *string `json:"text,omitempty"` // Hostname of the relevant A or AAAA record. Ptrdname *string `json:"ptrdname,omitempty"` }
ResourceRecordUpdateInputRdata : Content of the resource record. Models which "extend" this model: - ResourceRecordUpdateInputRdataRdataARecord - ResourceRecordUpdateInputRdataRdataAaaaRecord - ResourceRecordUpdateInputRdataRdataCnameRecord - ResourceRecordUpdateInputRdataRdataMxRecord - ResourceRecordUpdateInputRdataRdataSrvRecord - ResourceRecordUpdateInputRdataRdataTxtRecord - ResourceRecordUpdateInputRdataRdataPtrRecord
type ResourceRecordUpdateInputRdataIntf ¶
type ResourceRecordUpdateInputRdataIntf interface {
// contains filtered or unexported methods
}
type ResourceRecordUpdateInputRdataRdataARecord ¶
type ResourceRecordUpdateInputRdataRdataARecord struct { // IPv4 address. Ip *string `json:"ip" validate:"required"` }
ResourceRecordUpdateInputRdataRdataARecord : The content of type-A resource record. This model "extends" ResourceRecordUpdateInputRdata
type ResourceRecordUpdateInputRdataRdataAaaaRecord ¶
type ResourceRecordUpdateInputRdataRdataAaaaRecord struct { // IPv6 address. Ip *string `json:"ip" validate:"required"` }
ResourceRecordUpdateInputRdataRdataAaaaRecord : The content of type-AAAA resource record. This model "extends" ResourceRecordUpdateInputRdata
type ResourceRecordUpdateInputRdataRdataCnameRecord ¶
type ResourceRecordUpdateInputRdataRdataCnameRecord struct { // Canonical name. Cname *string `json:"cname" validate:"required"` }
ResourceRecordUpdateInputRdataRdataCnameRecord : The content of type-CNAME resource record. This model "extends" ResourceRecordUpdateInputRdata
type ResourceRecordUpdateInputRdataRdataMxRecord ¶
type ResourceRecordUpdateInputRdataRdataMxRecord struct { // Hostname of Exchange server. Exchange *string `json:"exchange" validate:"required"` // Preference of the MX record. Preference *int64 `json:"preference" validate:"required"` }
ResourceRecordUpdateInputRdataRdataMxRecord : The content of type-MX resource record. This model "extends" ResourceRecordUpdateInputRdata
type ResourceRecordUpdateInputRdataRdataPtrRecord ¶
type ResourceRecordUpdateInputRdataRdataPtrRecord struct { // Hostname of the relevant A or AAAA record. Ptrdname *string `json:"ptrdname" validate:"required"` }
ResourceRecordUpdateInputRdataRdataPtrRecord : The content of type-PTR resource record. This model "extends" ResourceRecordUpdateInputRdata
type ResourceRecordUpdateInputRdataRdataSrvRecord ¶
type ResourceRecordUpdateInputRdataRdataSrvRecord struct { // Port number of the target server. Port *int64 `json:"port" validate:"required"` // Priority of the SRV record. Priority *int64 `json:"priority" validate:"required"` // Hostname of the target server. Target *string `json:"target" validate:"required"` // Weight of distributing queries among multiple target servers. Weight *int64 `json:"weight" validate:"required"` }
ResourceRecordUpdateInputRdataRdataSrvRecord : The content of type-SRV resource record. This model "extends" ResourceRecordUpdateInputRdata
type ResourceRecordUpdateInputRdataRdataTxtRecord ¶
type ResourceRecordUpdateInputRdataRdataTxtRecord struct { // Human readable text. Text *string `json:"text" validate:"required"` }
ResourceRecordUpdateInputRdataRdataTxtRecord : The content of type-TXT resource record. This model "extends" ResourceRecordUpdateInputRdata
type ResourceRecordsV1 ¶
type ResourceRecordsV1 struct {
Service *core.BaseService
}
ResourceRecordsV1 : Resource Records
Version: 1.0.0
func NewResourceRecordsV1 ¶
func NewResourceRecordsV1(options *ResourceRecordsV1Options) (service *ResourceRecordsV1, err error)
NewResourceRecordsV1 : constructs an instance of ResourceRecordsV1 with passed in options.
func NewResourceRecordsV1UsingExternalConfig ¶
func NewResourceRecordsV1UsingExternalConfig(options *ResourceRecordsV1Options) (resourceRecords *ResourceRecordsV1, err error)
NewResourceRecordsV1UsingExternalConfig : constructs an instance of ResourceRecordsV1 with passed in options and external configuration.
func (*ResourceRecordsV1) CreateResourceRecord ¶
func (resourceRecords *ResourceRecordsV1) CreateResourceRecord(createResourceRecordOptions *CreateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)
CreateResourceRecord : Create a resource record Create a resource record for a given DNS zone.
func (*ResourceRecordsV1) DeleteResourceRecord ¶
func (resourceRecords *ResourceRecordsV1) DeleteResourceRecord(deleteResourceRecordOptions *DeleteResourceRecordOptions) (response *core.DetailedResponse, err error)
DeleteResourceRecord : Delete a resource record Delete a resource record.
func (*ResourceRecordsV1) GetResourceRecord ¶
func (resourceRecords *ResourceRecordsV1) GetResourceRecord(getResourceRecordOptions *GetResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)
GetResourceRecord : Get a resource record Get details of a resource record.
func (*ResourceRecordsV1) ListResourceRecords ¶
func (resourceRecords *ResourceRecordsV1) ListResourceRecords(listResourceRecordsOptions *ListResourceRecordsOptions) (result *ListResourceRecords, response *core.DetailedResponse, err error)
ListResourceRecords : List Resource Records List the Resource Records for a given DNS zone.
func (*ResourceRecordsV1) NewCreateResourceRecordOptions ¶
func (*ResourceRecordsV1) NewCreateResourceRecordOptions(instanceID string, dnszoneID string) *CreateResourceRecordOptions
NewCreateResourceRecordOptions : Instantiate CreateResourceRecordOptions
func (*ResourceRecordsV1) NewDeleteResourceRecordOptions ¶
func (*ResourceRecordsV1) NewDeleteResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *DeleteResourceRecordOptions
NewDeleteResourceRecordOptions : Instantiate DeleteResourceRecordOptions
func (*ResourceRecordsV1) NewGetResourceRecordOptions ¶
func (*ResourceRecordsV1) NewGetResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *GetResourceRecordOptions
NewGetResourceRecordOptions : Instantiate GetResourceRecordOptions
func (*ResourceRecordsV1) NewListResourceRecordsOptions ¶
func (*ResourceRecordsV1) NewListResourceRecordsOptions(instanceID string, dnszoneID string) *ListResourceRecordsOptions
NewListResourceRecordsOptions : Instantiate ListResourceRecordsOptions
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataARecord ¶
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataARecord(ip string) (model *ResourceRecordInputRdataRdataARecord, err error)
NewResourceRecordInputRdataRdataARecord : Instantiate ResourceRecordInputRdataRdataARecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataAaaaRecord ¶
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataAaaaRecord(ip string) (model *ResourceRecordInputRdataRdataAaaaRecord, err error)
NewResourceRecordInputRdataRdataAaaaRecord : Instantiate ResourceRecordInputRdataRdataAaaaRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataCnameRecord ¶
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataCnameRecord(cname string) (model *ResourceRecordInputRdataRdataCnameRecord, err error)
NewResourceRecordInputRdataRdataCnameRecord : Instantiate ResourceRecordInputRdataRdataCnameRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataMxRecord ¶
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataMxRecord(exchange string, preference int64) (model *ResourceRecordInputRdataRdataMxRecord, err error)
NewResourceRecordInputRdataRdataMxRecord : Instantiate ResourceRecordInputRdataRdataMxRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataPtrRecord ¶
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataPtrRecord(ptrdname string) (model *ResourceRecordInputRdataRdataPtrRecord, err error)
NewResourceRecordInputRdataRdataPtrRecord : Instantiate ResourceRecordInputRdataRdataPtrRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataSrvRecord ¶
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataSrvRecord(port int64, priority int64, target string, weight int64) (model *ResourceRecordInputRdataRdataSrvRecord, err error)
NewResourceRecordInputRdataRdataSrvRecord : Instantiate ResourceRecordInputRdataRdataSrvRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataTxtRecord ¶
func (*ResourceRecordsV1) NewResourceRecordInputRdataRdataTxtRecord(text string) (model *ResourceRecordInputRdataRdataTxtRecord, err error)
NewResourceRecordInputRdataRdataTxtRecord : Instantiate ResourceRecordInputRdataRdataTxtRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataARecord ¶
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataARecord(ip string) (model *ResourceRecordUpdateInputRdataRdataARecord, err error)
NewResourceRecordUpdateInputRdataRdataARecord : Instantiate ResourceRecordUpdateInputRdataRdataARecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataAaaaRecord ¶
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataAaaaRecord(ip string) (model *ResourceRecordUpdateInputRdataRdataAaaaRecord, err error)
NewResourceRecordUpdateInputRdataRdataAaaaRecord : Instantiate ResourceRecordUpdateInputRdataRdataAaaaRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataCnameRecord ¶
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataCnameRecord(cname string) (model *ResourceRecordUpdateInputRdataRdataCnameRecord, err error)
NewResourceRecordUpdateInputRdataRdataCnameRecord : Instantiate ResourceRecordUpdateInputRdataRdataCnameRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataMxRecord ¶
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataMxRecord(exchange string, preference int64) (model *ResourceRecordUpdateInputRdataRdataMxRecord, err error)
NewResourceRecordUpdateInputRdataRdataMxRecord : Instantiate ResourceRecordUpdateInputRdataRdataMxRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataPtrRecord ¶
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataPtrRecord(ptrdname string) (model *ResourceRecordUpdateInputRdataRdataPtrRecord, err error)
NewResourceRecordUpdateInputRdataRdataPtrRecord : Instantiate ResourceRecordUpdateInputRdataRdataPtrRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataSrvRecord ¶
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataSrvRecord(port int64, priority int64, target string, weight int64) (model *ResourceRecordUpdateInputRdataRdataSrvRecord, err error)
NewResourceRecordUpdateInputRdataRdataSrvRecord : Instantiate ResourceRecordUpdateInputRdataRdataSrvRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataTxtRecord ¶
func (*ResourceRecordsV1) NewResourceRecordUpdateInputRdataRdataTxtRecord(text string) (model *ResourceRecordUpdateInputRdataRdataTxtRecord, err error)
NewResourceRecordUpdateInputRdataRdataTxtRecord : Instantiate ResourceRecordUpdateInputRdataRdataTxtRecord (Generic Model Constructor)
func (*ResourceRecordsV1) NewUpdateResourceRecordOptions ¶
func (*ResourceRecordsV1) NewUpdateResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *UpdateResourceRecordOptions
NewUpdateResourceRecordOptions : Instantiate UpdateResourceRecordOptions
func (*ResourceRecordsV1) SetServiceURL ¶
func (resourceRecords *ResourceRecordsV1) SetServiceURL(url string) error
SetServiceURL sets the service URL
func (*ResourceRecordsV1) UpdateResourceRecord ¶
func (resourceRecords *ResourceRecordsV1) UpdateResourceRecord(updateResourceRecordOptions *UpdateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)
UpdateResourceRecord : Update the properties of a resource record Update the properties of a resource record.
type ResourceRecordsV1Options ¶
type ResourceRecordsV1Options struct { ServiceName string URL string Authenticator core.Authenticator }
ResourceRecordsV1Options : Service options
type UpdateResourceRecordOptions ¶
type UpdateResourceRecordOptions struct { // The unique identifier of a service instance. InstanceID *string `json:"instance_id" validate:"required"` // The unique identifier of a DNS zone. DnszoneID *string `json:"dnszone_id" validate:"required"` // The unique identifier of a resource record. RecordID *string `json:"record_id" validate:"required"` // Name of the resource record. Name *string `json:"name,omitempty"` // Content of the resource record. Rdata ResourceRecordUpdateInputRdataIntf `json:"rdata,omitempty"` // Time to live in second. TTL *int64 `json:"ttl,omitempty"` // Only used for SRV record. Service *string `json:"service,omitempty"` // Only used for SRV record. Protocol *string `json:"protocol,omitempty"` // Uniquely identifying a request. XCorrelationID *string `json:"X-Correlation-ID,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
UpdateResourceRecordOptions : The UpdateResourceRecord options.
func (*UpdateResourceRecordOptions) SetDnszoneID ¶
func (options *UpdateResourceRecordOptions) SetDnszoneID(dnszoneID string) *UpdateResourceRecordOptions
SetDnszoneID : Allow user to set DnszoneID
func (*UpdateResourceRecordOptions) SetHeaders ¶
func (options *UpdateResourceRecordOptions) SetHeaders(param map[string]string) *UpdateResourceRecordOptions
SetHeaders : Allow user to set Headers
func (*UpdateResourceRecordOptions) SetInstanceID ¶
func (options *UpdateResourceRecordOptions) SetInstanceID(instanceID string) *UpdateResourceRecordOptions
SetInstanceID : Allow user to set InstanceID
func (*UpdateResourceRecordOptions) SetName ¶
func (options *UpdateResourceRecordOptions) SetName(name string) *UpdateResourceRecordOptions
SetName : Allow user to set Name
func (*UpdateResourceRecordOptions) SetProtocol ¶
func (options *UpdateResourceRecordOptions) SetProtocol(protocol string) *UpdateResourceRecordOptions
SetProtocol : Allow user to set Protocol
func (*UpdateResourceRecordOptions) SetRdata ¶
func (options *UpdateResourceRecordOptions) SetRdata(rdata ResourceRecordUpdateInputRdataIntf) *UpdateResourceRecordOptions
SetRdata : Allow user to set Rdata
func (*UpdateResourceRecordOptions) SetRecordID ¶
func (options *UpdateResourceRecordOptions) SetRecordID(recordID string) *UpdateResourceRecordOptions
SetRecordID : Allow user to set RecordID
func (*UpdateResourceRecordOptions) SetService ¶
func (options *UpdateResourceRecordOptions) SetService(service string) *UpdateResourceRecordOptions
SetService : Allow user to set Service
func (*UpdateResourceRecordOptions) SetTTL ¶
func (options *UpdateResourceRecordOptions) SetTTL(ttl int64) *UpdateResourceRecordOptions
SetTTL : Allow user to set TTL
func (*UpdateResourceRecordOptions) SetXCorrelationID ¶
func (options *UpdateResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *UpdateResourceRecordOptions
SetXCorrelationID : Allow user to set XCorrelationID