complexgroup

package
v0.0.0-...-4a6d4ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package complexgroup implements the Azure ARM Complexgroup service API version 2016-02-29.

Test Infrastructure for AutoRest

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Complexgroup
	DefaultBaseURI = "http://localhost:3000"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type ArrayClient

type ArrayClient struct {
	BaseClient
}

ArrayClient is the test Infrastructure for AutoRest

func NewArrayClient

func NewArrayClient() ArrayClient

NewArrayClient creates an instance of the ArrayClient client.

func NewArrayClientWithBaseURI

func NewArrayClientWithBaseURI(baseURI string) ArrayClient

NewArrayClientWithBaseURI creates an instance of the ArrayClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ArrayClient) GetEmpty

func (client ArrayClient) GetEmpty(ctx context.Context) (result ArrayWrapper, err error)

GetEmpty get complex types with array property which is empty

func (ArrayClient) GetEmptyPreparer

func (client ArrayClient) GetEmptyPreparer(ctx context.Context) (*http.Request, error)

GetEmptyPreparer prepares the GetEmpty request.

func (ArrayClient) GetEmptyResponder

func (client ArrayClient) GetEmptyResponder(resp *http.Response) (result ArrayWrapper, err error)

GetEmptyResponder handles the response to the GetEmpty request. The method always closes the http.Response Body.

func (ArrayClient) GetEmptySender

func (client ArrayClient) GetEmptySender(req *http.Request) (*http.Response, error)

GetEmptySender sends the GetEmpty request. The method will close the http.Response Body if it receives an error.

func (ArrayClient) GetNotProvided

func (client ArrayClient) GetNotProvided(ctx context.Context) (result ArrayWrapper, err error)

GetNotProvided get complex types with array property while server doesn't provide a response payload

func (ArrayClient) GetNotProvidedPreparer

func (client ArrayClient) GetNotProvidedPreparer(ctx context.Context) (*http.Request, error)

GetNotProvidedPreparer prepares the GetNotProvided request.

func (ArrayClient) GetNotProvidedResponder

func (client ArrayClient) GetNotProvidedResponder(resp *http.Response) (result ArrayWrapper, err error)

GetNotProvidedResponder handles the response to the GetNotProvided request. The method always closes the http.Response Body.

func (ArrayClient) GetNotProvidedSender

func (client ArrayClient) GetNotProvidedSender(req *http.Request) (*http.Response, error)

GetNotProvidedSender sends the GetNotProvided request. The method will close the http.Response Body if it receives an error.

func (ArrayClient) GetValid

func (client ArrayClient) GetValid(ctx context.Context) (result ArrayWrapper, err error)

GetValid get complex types with array property

func (ArrayClient) GetValidPreparer

func (client ArrayClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (ArrayClient) GetValidResponder

func (client ArrayClient) GetValidResponder(resp *http.Response) (result ArrayWrapper, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (ArrayClient) GetValidSender

func (client ArrayClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

func (ArrayClient) PutEmpty

func (client ArrayClient) PutEmpty(ctx context.Context, complexBody ArrayWrapper) (result autorest.Response, err error)

PutEmpty put complex types with array property which is empty Parameters: complexBody - please put an empty array

func (ArrayClient) PutEmptyPreparer

func (client ArrayClient) PutEmptyPreparer(ctx context.Context, complexBody ArrayWrapper) (*http.Request, error)

PutEmptyPreparer prepares the PutEmpty request.

func (ArrayClient) PutEmptyResponder

func (client ArrayClient) PutEmptyResponder(resp *http.Response) (result autorest.Response, err error)

PutEmptyResponder handles the response to the PutEmpty request. The method always closes the http.Response Body.

func (ArrayClient) PutEmptySender

func (client ArrayClient) PutEmptySender(req *http.Request) (*http.Response, error)

PutEmptySender sends the PutEmpty request. The method will close the http.Response Body if it receives an error.

func (ArrayClient) PutValid

func (client ArrayClient) PutValid(ctx context.Context, complexBody ArrayWrapper) (result autorest.Response, err error)

PutValid put complex types with array property Parameters: complexBody - please put an array with 4 items: "1, 2, 3, 4", "", null, "&S#$(*Y", "The quick brown fox jumps over the lazy dog"

func (ArrayClient) PutValidPreparer

func (client ArrayClient) PutValidPreparer(ctx context.Context, complexBody ArrayWrapper) (*http.Request, error)

PutValidPreparer prepares the PutValid request.

func (ArrayClient) PutValidResponder

func (client ArrayClient) PutValidResponder(resp *http.Response) (result autorest.Response, err error)

PutValidResponder handles the response to the PutValid request. The method always closes the http.Response Body.

func (ArrayClient) PutValidSender

func (client ArrayClient) PutValidSender(req *http.Request) (*http.Response, error)

PutValidSender sends the PutValid request. The method will close the http.Response Body if it receives an error.

type ArrayWrapper

type ArrayWrapper struct {
	autorest.Response `json:"-"`
	Array             *[]string `json:"array,omitempty"`
}

ArrayWrapper ...

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Complexgroup.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Basic

type Basic struct {
	autorest.Response `json:"-"`
	// ID - Basic Id
	ID *int32 `json:"id,omitempty"`
	// Name - Name property with a very long description that does not fit on a single line and a line break.
	Name *string `json:"name,omitempty"`
	// Color - Possible values include: 'Cyan', 'Magenta', 'YELLOW', 'BlacK'
	Color CMYKColors `json:"color,omitempty"`
}

Basic ...

type BasicClient

type BasicClient struct {
	BaseClient
}

BasicClient is the test Infrastructure for AutoRest

func NewBasicClient

func NewBasicClient() BasicClient

NewBasicClient creates an instance of the BasicClient client.

func NewBasicClientWithBaseURI

func NewBasicClientWithBaseURI(baseURI string) BasicClient

NewBasicClientWithBaseURI creates an instance of the BasicClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BasicClient) GetEmpty

func (client BasicClient) GetEmpty(ctx context.Context) (result Basic, err error)

GetEmpty get a basic complex type that is empty

func (BasicClient) GetEmptyPreparer

func (client BasicClient) GetEmptyPreparer(ctx context.Context) (*http.Request, error)

GetEmptyPreparer prepares the GetEmpty request.

func (BasicClient) GetEmptyResponder

func (client BasicClient) GetEmptyResponder(resp *http.Response) (result Basic, err error)

GetEmptyResponder handles the response to the GetEmpty request. The method always closes the http.Response Body.

func (BasicClient) GetEmptySender

func (client BasicClient) GetEmptySender(req *http.Request) (*http.Response, error)

GetEmptySender sends the GetEmpty request. The method will close the http.Response Body if it receives an error.

func (BasicClient) GetInvalid

func (client BasicClient) GetInvalid(ctx context.Context) (result Basic, err error)

GetInvalid get a basic complex type that is invalid for the local strong type

func (BasicClient) GetInvalidPreparer

func (client BasicClient) GetInvalidPreparer(ctx context.Context) (*http.Request, error)

GetInvalidPreparer prepares the GetInvalid request.

func (BasicClient) GetInvalidResponder

func (client BasicClient) GetInvalidResponder(resp *http.Response) (result Basic, err error)

GetInvalidResponder handles the response to the GetInvalid request. The method always closes the http.Response Body.

func (BasicClient) GetInvalidSender

func (client BasicClient) GetInvalidSender(req *http.Request) (*http.Response, error)

GetInvalidSender sends the GetInvalid request. The method will close the http.Response Body if it receives an error.

func (BasicClient) GetNotProvided

func (client BasicClient) GetNotProvided(ctx context.Context) (result Basic, err error)

GetNotProvided get a basic complex type while the server doesn't provide a response payload

func (BasicClient) GetNotProvidedPreparer

func (client BasicClient) GetNotProvidedPreparer(ctx context.Context) (*http.Request, error)

GetNotProvidedPreparer prepares the GetNotProvided request.

func (BasicClient) GetNotProvidedResponder

func (client BasicClient) GetNotProvidedResponder(resp *http.Response) (result Basic, err error)

GetNotProvidedResponder handles the response to the GetNotProvided request. The method always closes the http.Response Body.

func (BasicClient) GetNotProvidedSender

func (client BasicClient) GetNotProvidedSender(req *http.Request) (*http.Response, error)

GetNotProvidedSender sends the GetNotProvided request. The method will close the http.Response Body if it receives an error.

func (BasicClient) GetNull

func (client BasicClient) GetNull(ctx context.Context) (result Basic, err error)

GetNull get a basic complex type whose properties are null

func (BasicClient) GetNullPreparer

func (client BasicClient) GetNullPreparer(ctx context.Context) (*http.Request, error)

GetNullPreparer prepares the GetNull request.

func (BasicClient) GetNullResponder

func (client BasicClient) GetNullResponder(resp *http.Response) (result Basic, err error)

GetNullResponder handles the response to the GetNull request. The method always closes the http.Response Body.

func (BasicClient) GetNullSender

func (client BasicClient) GetNullSender(req *http.Request) (*http.Response, error)

GetNullSender sends the GetNull request. The method will close the http.Response Body if it receives an error.

func (BasicClient) GetValid

func (client BasicClient) GetValid(ctx context.Context) (result Basic, err error)

GetValid get complex type {id: 2, name: 'abc', color: 'YELLOW'}

func (BasicClient) GetValidPreparer

func (client BasicClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (BasicClient) GetValidResponder

func (client BasicClient) GetValidResponder(resp *http.Response) (result Basic, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (BasicClient) GetValidSender

func (client BasicClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

func (BasicClient) PutValid

func (client BasicClient) PutValid(ctx context.Context, complexBody Basic) (result autorest.Response, err error)

PutValid please put {id: 2, name: 'abc', color: 'Magenta'} Parameters: complexBody - please put {id: 2, name: 'abc', color: 'Magenta'}

func (BasicClient) PutValidPreparer

func (client BasicClient) PutValidPreparer(ctx context.Context, complexBody Basic) (*http.Request, error)

PutValidPreparer prepares the PutValid request.

func (BasicClient) PutValidResponder

func (client BasicClient) PutValidResponder(resp *http.Response) (result autorest.Response, err error)

PutValidResponder handles the response to the PutValid request. The method always closes the http.Response Body.

func (BasicClient) PutValidSender

func (client BasicClient) PutValidSender(req *http.Request) (*http.Response, error)

PutValidSender sends the PutValid request. The method will close the http.Response Body if it receives an error.

type BasicDotFish

type BasicDotFish interface {
	AsDotSalmon() (*DotSalmon, bool)
	AsDotFish() (*DotFish, bool)
}

BasicDotFish ...

type BasicFish

type BasicFish interface {
	AsSalmon() (*Salmon, bool)
	AsBasicSalmon() (BasicSalmon, bool)
	AsSmartSalmon() (*SmartSalmon, bool)
	AsShark() (*Shark, bool)
	AsBasicShark() (BasicShark, bool)
	AsSawshark() (*Sawshark, bool)
	AsGoblinshark() (*Goblinshark, bool)
	AsCookiecuttershark() (*Cookiecuttershark, bool)
	AsFish() (*Fish, bool)
}

BasicFish ...

type BasicMyBaseType

type BasicMyBaseType interface {
	AsMyDerivedType() (*MyDerivedType, bool)
	AsMyBaseType() (*MyBaseType, bool)
}

BasicMyBaseType ...

type BasicSalmon

type BasicSalmon interface {
	AsSmartSalmon() (*SmartSalmon, bool)
	AsSalmon() (*Salmon, bool)
}

BasicSalmon ...

type BasicShark

type BasicShark interface {
	AsSawshark() (*Sawshark, bool)
	AsGoblinshark() (*Goblinshark, bool)
	AsCookiecuttershark() (*Cookiecuttershark, bool)
	AsShark() (*Shark, bool)
}

BasicShark ...

type BooleanWrapper

type BooleanWrapper struct {
	autorest.Response `json:"-"`
	FieldTrue         *bool `json:"field_true,omitempty"`
	FieldFalse        *bool `json:"field_false,omitempty"`
}

BooleanWrapper ...

type ByteWrapper

type ByteWrapper struct {
	autorest.Response `json:"-"`
	Field             *[]byte `json:"field,omitempty"`
}

ByteWrapper ...

type CMYKColors

type CMYKColors string

CMYKColors enumerates the values for cmyk colors.

const (
	// BlacK ...
	BlacK CMYKColors = "blacK"
	// Cyan ...
	Cyan CMYKColors = "cyan"
	// Magenta ...
	Magenta CMYKColors = "Magenta"
	// YELLOW ...
	YELLOW CMYKColors = "YELLOW"
)

func PossibleCMYKColorsValues

func PossibleCMYKColorsValues() []CMYKColors

PossibleCMYKColorsValues returns an array of possible values for the CMYKColors const type.

type Cat

type Cat struct {
	Color *string `json:"color,omitempty"`
	Hates *[]Dog  `json:"hates,omitempty"`
	ID    *int32  `json:"id,omitempty"`
	Name  *string `json:"name,omitempty"`
}

Cat ...

type Cookiecuttershark

type Cookiecuttershark struct {
	Age      *int32       `json:"age,omitempty"`
	Birthday *date.Time   `json:"birthday,omitempty"`
	Species  *string      `json:"species,omitempty"`
	Length   *float64     `json:"length,omitempty"`
	Siblings *[]BasicFish `json:"siblings,omitempty"`
	// Fishtype - Possible values include: 'FishtypeFish', 'FishtypeSalmon', 'FishtypeSmartSalmon', 'FishtypeShark', 'FishtypeSawshark', 'FishtypeGoblin', 'FishtypeCookiecuttershark'
	Fishtype FishtypeBasicFish `json:"fishtype,omitempty"`
}

Cookiecuttershark ...

func (Cookiecuttershark) AsBasicFish

func (c Cookiecuttershark) AsBasicFish() (BasicFish, bool)

AsBasicFish is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsBasicSalmon

func (c Cookiecuttershark) AsBasicSalmon() (BasicSalmon, bool)

AsBasicSalmon is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsBasicShark

func (c Cookiecuttershark) AsBasicShark() (BasicShark, bool)

AsBasicShark is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsCookiecuttershark

func (c Cookiecuttershark) AsCookiecuttershark() (*Cookiecuttershark, bool)

AsCookiecuttershark is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsFish

func (c Cookiecuttershark) AsFish() (*Fish, bool)

AsFish is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsGoblinshark

func (c Cookiecuttershark) AsGoblinshark() (*Goblinshark, bool)

AsGoblinshark is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsSalmon

func (c Cookiecuttershark) AsSalmon() (*Salmon, bool)

AsSalmon is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsSawshark

func (c Cookiecuttershark) AsSawshark() (*Sawshark, bool)

AsSawshark is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsShark

func (c Cookiecuttershark) AsShark() (*Shark, bool)

AsShark is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) AsSmartSalmon

func (c Cookiecuttershark) AsSmartSalmon() (*SmartSalmon, bool)

AsSmartSalmon is the BasicFish implementation for Cookiecuttershark.

func (Cookiecuttershark) MarshalJSON

func (c Cookiecuttershark) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Cookiecuttershark.

func (*Cookiecuttershark) UnmarshalJSON

func (c *Cookiecuttershark) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Cookiecuttershark struct.

type DateWrapper

type DateWrapper struct {
	autorest.Response `json:"-"`
	Field             *date.Date `json:"field,omitempty"`
	Leap              *date.Date `json:"leap,omitempty"`
}

DateWrapper ...

type DatetimeWrapper

type DatetimeWrapper struct {
	autorest.Response `json:"-"`
	Field             *date.Time `json:"field,omitempty"`
	Now               *date.Time `json:"now,omitempty"`
}

DatetimeWrapper ...

type Datetimerfc1123Wrapper

type Datetimerfc1123Wrapper struct {
	autorest.Response `json:"-"`
	Field             *date.TimeRFC1123 `json:"field,omitempty"`
	Now               *date.TimeRFC1123 `json:"now,omitempty"`
}

Datetimerfc1123Wrapper ...

type DictionaryClient

type DictionaryClient struct {
	BaseClient
}

DictionaryClient is the test Infrastructure for AutoRest

func NewDictionaryClient

func NewDictionaryClient() DictionaryClient

NewDictionaryClient creates an instance of the DictionaryClient client.

func NewDictionaryClientWithBaseURI

func NewDictionaryClientWithBaseURI(baseURI string) DictionaryClient

NewDictionaryClientWithBaseURI creates an instance of the DictionaryClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DictionaryClient) GetEmpty

func (client DictionaryClient) GetEmpty(ctx context.Context) (result DictionaryWrapper, err error)

GetEmpty get complex types with dictionary property which is empty

func (DictionaryClient) GetEmptyPreparer

func (client DictionaryClient) GetEmptyPreparer(ctx context.Context) (*http.Request, error)

GetEmptyPreparer prepares the GetEmpty request.

func (DictionaryClient) GetEmptyResponder

func (client DictionaryClient) GetEmptyResponder(resp *http.Response) (result DictionaryWrapper, err error)

GetEmptyResponder handles the response to the GetEmpty request. The method always closes the http.Response Body.

func (DictionaryClient) GetEmptySender

func (client DictionaryClient) GetEmptySender(req *http.Request) (*http.Response, error)

GetEmptySender sends the GetEmpty request. The method will close the http.Response Body if it receives an error.

func (DictionaryClient) GetNotProvided

func (client DictionaryClient) GetNotProvided(ctx context.Context) (result DictionaryWrapper, err error)

GetNotProvided get complex types with dictionary property while server doesn't provide a response payload

func (DictionaryClient) GetNotProvidedPreparer

func (client DictionaryClient) GetNotProvidedPreparer(ctx context.Context) (*http.Request, error)

GetNotProvidedPreparer prepares the GetNotProvided request.

func (DictionaryClient) GetNotProvidedResponder

func (client DictionaryClient) GetNotProvidedResponder(resp *http.Response) (result DictionaryWrapper, err error)

GetNotProvidedResponder handles the response to the GetNotProvided request. The method always closes the http.Response Body.

func (DictionaryClient) GetNotProvidedSender

func (client DictionaryClient) GetNotProvidedSender(req *http.Request) (*http.Response, error)

GetNotProvidedSender sends the GetNotProvided request. The method will close the http.Response Body if it receives an error.

func (DictionaryClient) GetNull

func (client DictionaryClient) GetNull(ctx context.Context) (result DictionaryWrapper, err error)

GetNull get complex types with dictionary property which is null

func (DictionaryClient) GetNullPreparer

func (client DictionaryClient) GetNullPreparer(ctx context.Context) (*http.Request, error)

GetNullPreparer prepares the GetNull request.

func (DictionaryClient) GetNullResponder

func (client DictionaryClient) GetNullResponder(resp *http.Response) (result DictionaryWrapper, err error)

GetNullResponder handles the response to the GetNull request. The method always closes the http.Response Body.

func (DictionaryClient) GetNullSender

func (client DictionaryClient) GetNullSender(req *http.Request) (*http.Response, error)

GetNullSender sends the GetNull request. The method will close the http.Response Body if it receives an error.

func (DictionaryClient) GetValid

func (client DictionaryClient) GetValid(ctx context.Context) (result DictionaryWrapper, err error)

GetValid get complex types with dictionary property

func (DictionaryClient) GetValidPreparer

func (client DictionaryClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (DictionaryClient) GetValidResponder

func (client DictionaryClient) GetValidResponder(resp *http.Response) (result DictionaryWrapper, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (DictionaryClient) GetValidSender

func (client DictionaryClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

func (DictionaryClient) PutEmpty

func (client DictionaryClient) PutEmpty(ctx context.Context, complexBody DictionaryWrapper) (result autorest.Response, err error)

PutEmpty put complex types with dictionary property which is empty Parameters: complexBody - please put an empty dictionary

func (DictionaryClient) PutEmptyPreparer

func (client DictionaryClient) PutEmptyPreparer(ctx context.Context, complexBody DictionaryWrapper) (*http.Request, error)

PutEmptyPreparer prepares the PutEmpty request.

func (DictionaryClient) PutEmptyResponder

func (client DictionaryClient) PutEmptyResponder(resp *http.Response) (result autorest.Response, err error)

PutEmptyResponder handles the response to the PutEmpty request. The method always closes the http.Response Body.

func (DictionaryClient) PutEmptySender

func (client DictionaryClient) PutEmptySender(req *http.Request) (*http.Response, error)

PutEmptySender sends the PutEmpty request. The method will close the http.Response Body if it receives an error.

func (DictionaryClient) PutValid

func (client DictionaryClient) PutValid(ctx context.Context, complexBody DictionaryWrapper) (result autorest.Response, err error)

PutValid put complex types with dictionary property Parameters: complexBody - please put a dictionary with 5 key-value pairs: "txt":"notepad", "bmp":"mspaint", "xls":"excel", "exe":"", "":null

func (DictionaryClient) PutValidPreparer

func (client DictionaryClient) PutValidPreparer(ctx context.Context, complexBody DictionaryWrapper) (*http.Request, error)

PutValidPreparer prepares the PutValid request.

func (DictionaryClient) PutValidResponder

func (client DictionaryClient) PutValidResponder(resp *http.Response) (result autorest.Response, err error)

PutValidResponder handles the response to the PutValid request. The method always closes the http.Response Body.

func (DictionaryClient) PutValidSender

func (client DictionaryClient) PutValidSender(req *http.Request) (*http.Response, error)

PutValidSender sends the PutValid request. The method will close the http.Response Body if it receives an error.

type DictionaryWrapper

type DictionaryWrapper struct {
	autorest.Response `json:"-"`
	DefaultProgram    map[string]*string `json:"defaultProgram"`
}

DictionaryWrapper ...

func (DictionaryWrapper) MarshalJSON

func (d DictionaryWrapper) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DictionaryWrapper.

type Dog

type Dog struct {
	Food *string `json:"food,omitempty"`
	ID   *int32  `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

Dog ...

type DotFish

type DotFish struct {
	autorest.Response `json:"-"`
	Species           *string `json:"species,omitempty"`
	// FishType - Possible values include: 'FishTypeDotFish', 'FishTypeDotSalmon'
	FishType FishType `json:"fish.type,omitempty"`
}

DotFish ...

func (DotFish) AsBasicDotFish

func (df DotFish) AsBasicDotFish() (BasicDotFish, bool)

AsBasicDotFish is the BasicDotFish implementation for DotFish.

func (DotFish) AsDotFish

func (df DotFish) AsDotFish() (*DotFish, bool)

AsDotFish is the BasicDotFish implementation for DotFish.

func (DotFish) AsDotSalmon

func (df DotFish) AsDotSalmon() (*DotSalmon, bool)

AsDotSalmon is the BasicDotFish implementation for DotFish.

func (DotFish) MarshalJSON

func (df DotFish) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DotFish.

type DotFishMarket

type DotFishMarket struct {
	autorest.Response `json:"-"`
	SampleSalmon      *DotSalmon      `json:"sampleSalmon,omitempty"`
	Salmons           *[]DotSalmon    `json:"salmons,omitempty"`
	SampleFish        BasicDotFish    `json:"sampleFish,omitempty"`
	Fishes            *[]BasicDotFish `json:"fishes,omitempty"`
}

DotFishMarket ...

func (*DotFishMarket) UnmarshalJSON

func (dfm *DotFishMarket) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DotFishMarket struct.

type DotFishModel

type DotFishModel struct {
	autorest.Response `json:"-"`
	Value             BasicDotFish `json:"value,omitempty"`
}

DotFishModel ...

func (*DotFishModel) UnmarshalJSON

func (dfm *DotFishModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DotFishModel struct.

type DotSalmon

type DotSalmon struct {
	Location *string `json:"location,omitempty"`
	Iswild   *bool   `json:"iswild,omitempty"`
	Species  *string `json:"species,omitempty"`
	// FishType - Possible values include: 'FishTypeDotFish', 'FishTypeDotSalmon'
	FishType FishType `json:"fish.type,omitempty"`
}

DotSalmon ...

func (DotSalmon) AsBasicDotFish

func (ds DotSalmon) AsBasicDotFish() (BasicDotFish, bool)

AsBasicDotFish is the BasicDotFish implementation for DotSalmon.

func (DotSalmon) AsDotFish

func (ds DotSalmon) AsDotFish() (*DotFish, bool)

AsDotFish is the BasicDotFish implementation for DotSalmon.

func (DotSalmon) AsDotSalmon

func (ds DotSalmon) AsDotSalmon() (*DotSalmon, bool)

AsDotSalmon is the BasicDotFish implementation for DotSalmon.

func (DotSalmon) MarshalJSON

func (ds DotSalmon) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DotSalmon.

type DoubleWrapper

type DoubleWrapper struct {
	autorest.Response                                                               `json:"-"`
	Field1                                                                          *float64 `json:"field1,omitempty"`
	Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose *float64 `json:"field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose,omitempty"`
}

DoubleWrapper ...

type DurationWrapper

type DurationWrapper struct {
	autorest.Response `json:"-"`
	Field             *string `json:"field,omitempty"`
}

DurationWrapper ...

type Error

type Error struct {
	Status  *int32  `json:"status,omitempty"`
	Message *string `json:"message,omitempty"`
}

Error ...

type Fish

type Fish struct {
	autorest.Response `json:"-"`
	Species           *string      `json:"species,omitempty"`
	Length            *float64     `json:"length,omitempty"`
	Siblings          *[]BasicFish `json:"siblings,omitempty"`
	// Fishtype - Possible values include: 'FishtypeFish', 'FishtypeSalmon', 'FishtypeSmartSalmon', 'FishtypeShark', 'FishtypeSawshark', 'FishtypeGoblin', 'FishtypeCookiecuttershark'
	Fishtype FishtypeBasicFish `json:"fishtype,omitempty"`
}

Fish ...

func (Fish) AsBasicFish

func (f Fish) AsBasicFish() (BasicFish, bool)

AsBasicFish is the BasicFish implementation for Fish.

func (Fish) AsBasicSalmon

func (f Fish) AsBasicSalmon() (BasicSalmon, bool)

AsBasicSalmon is the BasicFish implementation for Fish.

func (Fish) AsBasicShark

func (f Fish) AsBasicShark() (BasicShark, bool)

AsBasicShark is the BasicFish implementation for Fish.

func (Fish) AsCookiecuttershark

func (f Fish) AsCookiecuttershark() (*Cookiecuttershark, bool)

AsCookiecuttershark is the BasicFish implementation for Fish.

func (Fish) AsFish

func (f Fish) AsFish() (*Fish, bool)

AsFish is the BasicFish implementation for Fish.

func (Fish) AsGoblinshark

func (f Fish) AsGoblinshark() (*Goblinshark, bool)

AsGoblinshark is the BasicFish implementation for Fish.

func (Fish) AsSalmon

func (f Fish) AsSalmon() (*Salmon, bool)

AsSalmon is the BasicFish implementation for Fish.

func (Fish) AsSawshark

func (f Fish) AsSawshark() (*Sawshark, bool)

AsSawshark is the BasicFish implementation for Fish.

func (Fish) AsShark

func (f Fish) AsShark() (*Shark, bool)

AsShark is the BasicFish implementation for Fish.

func (Fish) AsSmartSalmon

func (f Fish) AsSmartSalmon() (*SmartSalmon, bool)

AsSmartSalmon is the BasicFish implementation for Fish.

func (Fish) MarshalJSON

func (f Fish) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Fish.

func (*Fish) UnmarshalJSON

func (f *Fish) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Fish struct.

type FishModel

type FishModel struct {
	autorest.Response `json:"-"`
	Value             BasicFish `json:"value,omitempty"`
}

FishModel ...

func (*FishModel) UnmarshalJSON

func (fm *FishModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FishModel struct.

type FishType

type FishType string

FishType enumerates the values for fish type.

const (
	// FishTypeDotFish ...
	FishTypeDotFish FishType = "DotFish"
	// FishTypeDotSalmon ...
	FishTypeDotSalmon FishType = "DotSalmon"
)

func PossibleFishTypeValues

func PossibleFishTypeValues() []FishType

PossibleFishTypeValues returns an array of possible values for the FishType const type.

type FishtypeBasicFish

type FishtypeBasicFish string

FishtypeBasicFish enumerates the values for fishtype basic fish.

const (
	// FishtypeCookiecuttershark ...
	FishtypeCookiecuttershark FishtypeBasicFish = "cookiecuttershark"
	// FishtypeFish ...
	FishtypeFish FishtypeBasicFish = "Fish"
	// FishtypeGoblin ...
	FishtypeGoblin FishtypeBasicFish = "goblin"
	// FishtypeSalmon ...
	FishtypeSalmon FishtypeBasicFish = "salmon"
	// FishtypeSawshark ...
	FishtypeSawshark FishtypeBasicFish = "sawshark"
	// FishtypeShark ...
	FishtypeShark FishtypeBasicFish = "shark"
	// FishtypeSmartSalmon ...
	FishtypeSmartSalmon FishtypeBasicFish = "smart_salmon"
)

func PossibleFishtypeBasicFishValues

func PossibleFishtypeBasicFishValues() []FishtypeBasicFish

PossibleFishtypeBasicFishValues returns an array of possible values for the FishtypeBasicFish const type.

type FlattencomplexClient

type FlattencomplexClient struct {
	BaseClient
}

FlattencomplexClient is the test Infrastructure for AutoRest

func NewFlattencomplexClient

func NewFlattencomplexClient() FlattencomplexClient

NewFlattencomplexClient creates an instance of the FlattencomplexClient client.

func NewFlattencomplexClientWithBaseURI

func NewFlattencomplexClientWithBaseURI(baseURI string) FlattencomplexClient

NewFlattencomplexClientWithBaseURI creates an instance of the FlattencomplexClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (FlattencomplexClient) GetValid

func (client FlattencomplexClient) GetValid(ctx context.Context) (result MyBaseTypeModel, err error)

GetValid sends the get valid request.

func (FlattencomplexClient) GetValidPreparer

func (client FlattencomplexClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (FlattencomplexClient) GetValidResponder

func (client FlattencomplexClient) GetValidResponder(resp *http.Response) (result MyBaseTypeModel, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (FlattencomplexClient) GetValidSender

func (client FlattencomplexClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

type FloatWrapper

type FloatWrapper struct {
	autorest.Response `json:"-"`
	Field1            *float64 `json:"field1,omitempty"`
	Field2            *float64 `json:"field2,omitempty"`
}

FloatWrapper ...

type GoblinSharkColor

type GoblinSharkColor string

GoblinSharkColor enumerates the values for goblin shark color.

const (
	// Brown ...
	Brown GoblinSharkColor = "brown"
	// Gray ...
	Gray GoblinSharkColor = "gray"
	// Pink ...
	Pink GoblinSharkColor = "pink"
)

func PossibleGoblinSharkColorValues

func PossibleGoblinSharkColorValues() []GoblinSharkColor

PossibleGoblinSharkColorValues returns an array of possible values for the GoblinSharkColor const type.

type Goblinshark

type Goblinshark struct {
	Jawsize *int32 `json:"jawsize,omitempty"`
	// Color - Colors possible. Possible values include: 'Pink', 'Gray', 'Brown'
	Color    GoblinSharkColor `json:"color,omitempty"`
	Age      *int32           `json:"age,omitempty"`
	Birthday *date.Time       `json:"birthday,omitempty"`
	Species  *string          `json:"species,omitempty"`
	Length   *float64         `json:"length,omitempty"`
	Siblings *[]BasicFish     `json:"siblings,omitempty"`
	// Fishtype - Possible values include: 'FishtypeFish', 'FishtypeSalmon', 'FishtypeSmartSalmon', 'FishtypeShark', 'FishtypeSawshark', 'FishtypeGoblin', 'FishtypeCookiecuttershark'
	Fishtype FishtypeBasicFish `json:"fishtype,omitempty"`
}

Goblinshark ...

func (Goblinshark) AsBasicFish

func (g Goblinshark) AsBasicFish() (BasicFish, bool)

AsBasicFish is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsBasicSalmon

func (g Goblinshark) AsBasicSalmon() (BasicSalmon, bool)

AsBasicSalmon is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsBasicShark

func (g Goblinshark) AsBasicShark() (BasicShark, bool)

AsBasicShark is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsCookiecuttershark

func (g Goblinshark) AsCookiecuttershark() (*Cookiecuttershark, bool)

AsCookiecuttershark is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsFish

func (g Goblinshark) AsFish() (*Fish, bool)

AsFish is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsGoblinshark

func (g Goblinshark) AsGoblinshark() (*Goblinshark, bool)

AsGoblinshark is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsSalmon

func (g Goblinshark) AsSalmon() (*Salmon, bool)

AsSalmon is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsSawshark

func (g Goblinshark) AsSawshark() (*Sawshark, bool)

AsSawshark is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsShark

func (g Goblinshark) AsShark() (*Shark, bool)

AsShark is the BasicFish implementation for Goblinshark.

func (Goblinshark) AsSmartSalmon

func (g Goblinshark) AsSmartSalmon() (*SmartSalmon, bool)

AsSmartSalmon is the BasicFish implementation for Goblinshark.

func (Goblinshark) MarshalJSON

func (g Goblinshark) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Goblinshark.

func (*Goblinshark) UnmarshalJSON

func (g *Goblinshark) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Goblinshark struct.

type InheritanceClient

type InheritanceClient struct {
	BaseClient
}

InheritanceClient is the test Infrastructure for AutoRest

func NewInheritanceClient

func NewInheritanceClient() InheritanceClient

NewInheritanceClient creates an instance of the InheritanceClient client.

func NewInheritanceClientWithBaseURI

func NewInheritanceClientWithBaseURI(baseURI string) InheritanceClient

NewInheritanceClientWithBaseURI creates an instance of the InheritanceClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (InheritanceClient) GetValid

func (client InheritanceClient) GetValid(ctx context.Context) (result Siamese, err error)

GetValid get complex types that extend others

func (InheritanceClient) GetValidPreparer

func (client InheritanceClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (InheritanceClient) GetValidResponder

func (client InheritanceClient) GetValidResponder(resp *http.Response) (result Siamese, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (InheritanceClient) GetValidSender

func (client InheritanceClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

func (InheritanceClient) PutValid

func (client InheritanceClient) PutValid(ctx context.Context, complexBody Siamese) (result autorest.Response, err error)

PutValid put complex types that extend others Parameters: complexBody - please put a siamese with id=2, name="Siameee", color=green, breed=persion, which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and food="french fries".

func (InheritanceClient) PutValidPreparer

func (client InheritanceClient) PutValidPreparer(ctx context.Context, complexBody Siamese) (*http.Request, error)

PutValidPreparer prepares the PutValid request.

func (InheritanceClient) PutValidResponder

func (client InheritanceClient) PutValidResponder(resp *http.Response) (result autorest.Response, err error)

PutValidResponder handles the response to the PutValid request. The method always closes the http.Response Body.

func (InheritanceClient) PutValidSender

func (client InheritanceClient) PutValidSender(req *http.Request) (*http.Response, error)

PutValidSender sends the PutValid request. The method will close the http.Response Body if it receives an error.

type IntWrapper

type IntWrapper struct {
	autorest.Response `json:"-"`
	Field1            *int32 `json:"field1,omitempty"`
	Field2            *int32 `json:"field2,omitempty"`
}

IntWrapper ...

type Kind

type Kind string

Kind enumerates the values for kind.

const (
	// KindKind1 ...
	KindKind1 Kind = "Kind1"
	// KindMyBaseType ...
	KindMyBaseType Kind = "MyBaseType"
)

func PossibleKindValues

func PossibleKindValues() []Kind

PossibleKindValues returns an array of possible values for the Kind const type.

type LongWrapper

type LongWrapper struct {
	autorest.Response `json:"-"`
	Field1            *int64 `json:"field1,omitempty"`
	Field2            *int64 `json:"field2,omitempty"`
}

LongWrapper ...

type MyBaseHelperType

type MyBaseHelperType struct {
	PropBH1 *string `json:"propBH1,omitempty"`
}

MyBaseHelperType ...

type MyBaseType

type MyBaseType struct {
	autorest.Response `json:"-"`
	PropB1            *string `json:"propB1,omitempty"`
	*MyBaseHelperType `json:"helper,omitempty"`
	// Kind - Possible values include: 'KindMyBaseType', 'KindKind1'
	Kind Kind `json:"kind,omitempty"`
}

MyBaseType ...

func (MyBaseType) AsBasicMyBaseType

func (mbt MyBaseType) AsBasicMyBaseType() (BasicMyBaseType, bool)

AsBasicMyBaseType is the BasicMyBaseType implementation for MyBaseType.

func (MyBaseType) AsMyBaseType

func (mbt MyBaseType) AsMyBaseType() (*MyBaseType, bool)

AsMyBaseType is the BasicMyBaseType implementation for MyBaseType.

func (MyBaseType) AsMyDerivedType

func (mbt MyBaseType) AsMyDerivedType() (*MyDerivedType, bool)

AsMyDerivedType is the BasicMyBaseType implementation for MyBaseType.

func (MyBaseType) MarshalJSON

func (mbt MyBaseType) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MyBaseType.

func (*MyBaseType) UnmarshalJSON

func (mbt *MyBaseType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MyBaseType struct.

type MyBaseTypeModel

type MyBaseTypeModel struct {
	autorest.Response `json:"-"`
	Value             BasicMyBaseType `json:"value,omitempty"`
}

MyBaseTypeModel ...

func (*MyBaseTypeModel) UnmarshalJSON

func (mbtm *MyBaseTypeModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MyBaseTypeModel struct.

type MyDerivedType

type MyDerivedType struct {
	PropD1            *string `json:"propD1,omitempty"`
	PropB1            *string `json:"propB1,omitempty"`
	*MyBaseHelperType `json:"helper,omitempty"`
	// Kind - Possible values include: 'KindMyBaseType', 'KindKind1'
	Kind Kind `json:"kind,omitempty"`
}

MyDerivedType ...

func (MyDerivedType) AsBasicMyBaseType

func (mdt MyDerivedType) AsBasicMyBaseType() (BasicMyBaseType, bool)

AsBasicMyBaseType is the BasicMyBaseType implementation for MyDerivedType.

func (MyDerivedType) AsMyBaseType

func (mdt MyDerivedType) AsMyBaseType() (*MyBaseType, bool)

AsMyBaseType is the BasicMyBaseType implementation for MyDerivedType.

func (MyDerivedType) AsMyDerivedType

func (mdt MyDerivedType) AsMyDerivedType() (*MyDerivedType, bool)

AsMyDerivedType is the BasicMyBaseType implementation for MyDerivedType.

func (MyDerivedType) MarshalJSON

func (mdt MyDerivedType) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MyDerivedType.

func (*MyDerivedType) UnmarshalJSON

func (mdt *MyDerivedType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MyDerivedType struct.

type MyKind

type MyKind string

MyKind enumerates the values for my kind.

const (
	// Kind1 ...
	Kind1 MyKind = "Kind1"
)

func PossibleMyKindValues

func PossibleMyKindValues() []MyKind

PossibleMyKindValues returns an array of possible values for the MyKind const type.

type Pet

type Pet struct {
	ID   *int32  `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

Pet ...

type PolymorphicrecursiveClient

type PolymorphicrecursiveClient struct {
	BaseClient
}

PolymorphicrecursiveClient is the test Infrastructure for AutoRest

func NewPolymorphicrecursiveClient

func NewPolymorphicrecursiveClient() PolymorphicrecursiveClient

NewPolymorphicrecursiveClient creates an instance of the PolymorphicrecursiveClient client.

func NewPolymorphicrecursiveClientWithBaseURI

func NewPolymorphicrecursiveClientWithBaseURI(baseURI string) PolymorphicrecursiveClient

NewPolymorphicrecursiveClientWithBaseURI creates an instance of the PolymorphicrecursiveClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolymorphicrecursiveClient) GetValid

func (client PolymorphicrecursiveClient) GetValid(ctx context.Context) (result FishModel, err error)

GetValid get complex types that are polymorphic and have recursive references

func (PolymorphicrecursiveClient) GetValidPreparer

func (client PolymorphicrecursiveClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (PolymorphicrecursiveClient) GetValidResponder

func (client PolymorphicrecursiveClient) GetValidResponder(resp *http.Response) (result FishModel, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (PolymorphicrecursiveClient) GetValidSender

func (client PolymorphicrecursiveClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

func (PolymorphicrecursiveClient) PutValid

func (client PolymorphicrecursiveClient) PutValid(ctx context.Context, complexBody BasicFish) (result autorest.Response, err error)

PutValid put complex types that are polymorphic and have recursive references Parameters: complexBody - please put a salmon that looks like this: { "fishtype": "salmon", "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }

func (PolymorphicrecursiveClient) PutValidPreparer

func (client PolymorphicrecursiveClient) PutValidPreparer(ctx context.Context, complexBody BasicFish) (*http.Request, error)

PutValidPreparer prepares the PutValid request.

func (PolymorphicrecursiveClient) PutValidResponder

func (client PolymorphicrecursiveClient) PutValidResponder(resp *http.Response) (result autorest.Response, err error)

PutValidResponder handles the response to the PutValid request. The method always closes the http.Response Body.

func (PolymorphicrecursiveClient) PutValidSender

func (client PolymorphicrecursiveClient) PutValidSender(req *http.Request) (*http.Response, error)

PutValidSender sends the PutValid request. The method will close the http.Response Body if it receives an error.

type PolymorphismClient

type PolymorphismClient struct {
	BaseClient
}

PolymorphismClient is the test Infrastructure for AutoRest

func NewPolymorphismClient

func NewPolymorphismClient() PolymorphismClient

NewPolymorphismClient creates an instance of the PolymorphismClient client.

func NewPolymorphismClientWithBaseURI

func NewPolymorphismClientWithBaseURI(baseURI string) PolymorphismClient

NewPolymorphismClientWithBaseURI creates an instance of the PolymorphismClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolymorphismClient) GetComplicated

func (client PolymorphismClient) GetComplicated(ctx context.Context) (result SalmonModel, err error)

GetComplicated get complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties

func (PolymorphismClient) GetComplicatedPreparer

func (client PolymorphismClient) GetComplicatedPreparer(ctx context.Context) (*http.Request, error)

GetComplicatedPreparer prepares the GetComplicated request.

func (PolymorphismClient) GetComplicatedResponder

func (client PolymorphismClient) GetComplicatedResponder(resp *http.Response) (result SalmonModel, err error)

GetComplicatedResponder handles the response to the GetComplicated request. The method always closes the http.Response Body.

func (PolymorphismClient) GetComplicatedSender

func (client PolymorphismClient) GetComplicatedSender(req *http.Request) (*http.Response, error)

GetComplicatedSender sends the GetComplicated request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) GetComposedWithDiscriminator

func (client PolymorphismClient) GetComposedWithDiscriminator(ctx context.Context) (result DotFishMarket, err error)

GetComposedWithDiscriminator get complex object composing a polymorphic scalar property and array property with polymorphic element type, with discriminator specified. Deserialization must NOT fail and use the discriminator type specified on the wire.

func (PolymorphismClient) GetComposedWithDiscriminatorPreparer

func (client PolymorphismClient) GetComposedWithDiscriminatorPreparer(ctx context.Context) (*http.Request, error)

GetComposedWithDiscriminatorPreparer prepares the GetComposedWithDiscriminator request.

func (PolymorphismClient) GetComposedWithDiscriminatorResponder

func (client PolymorphismClient) GetComposedWithDiscriminatorResponder(resp *http.Response) (result DotFishMarket, err error)

GetComposedWithDiscriminatorResponder handles the response to the GetComposedWithDiscriminator request. The method always closes the http.Response Body.

func (PolymorphismClient) GetComposedWithDiscriminatorSender

func (client PolymorphismClient) GetComposedWithDiscriminatorSender(req *http.Request) (*http.Response, error)

GetComposedWithDiscriminatorSender sends the GetComposedWithDiscriminator request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) GetComposedWithoutDiscriminator

func (client PolymorphismClient) GetComposedWithoutDiscriminator(ctx context.Context) (result DotFishMarket, err error)

GetComposedWithoutDiscriminator get complex object composing a polymorphic scalar property and array property with polymorphic element type, without discriminator specified on wire. Deserialization must NOT fail and use the explicit type of the property.

func (PolymorphismClient) GetComposedWithoutDiscriminatorPreparer

func (client PolymorphismClient) GetComposedWithoutDiscriminatorPreparer(ctx context.Context) (*http.Request, error)

GetComposedWithoutDiscriminatorPreparer prepares the GetComposedWithoutDiscriminator request.

func (PolymorphismClient) GetComposedWithoutDiscriminatorResponder

func (client PolymorphismClient) GetComposedWithoutDiscriminatorResponder(resp *http.Response) (result DotFishMarket, err error)

GetComposedWithoutDiscriminatorResponder handles the response to the GetComposedWithoutDiscriminator request. The method always closes the http.Response Body.

func (PolymorphismClient) GetComposedWithoutDiscriminatorSender

func (client PolymorphismClient) GetComposedWithoutDiscriminatorSender(req *http.Request) (*http.Response, error)

GetComposedWithoutDiscriminatorSender sends the GetComposedWithoutDiscriminator request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) GetDotSyntax

func (client PolymorphismClient) GetDotSyntax(ctx context.Context) (result DotFishModel, err error)

GetDotSyntax get complex types that are polymorphic, JSON key contains a dot

func (PolymorphismClient) GetDotSyntaxPreparer

func (client PolymorphismClient) GetDotSyntaxPreparer(ctx context.Context) (*http.Request, error)

GetDotSyntaxPreparer prepares the GetDotSyntax request.

func (PolymorphismClient) GetDotSyntaxResponder

func (client PolymorphismClient) GetDotSyntaxResponder(resp *http.Response) (result DotFishModel, err error)

GetDotSyntaxResponder handles the response to the GetDotSyntax request. The method always closes the http.Response Body.

func (PolymorphismClient) GetDotSyntaxSender

func (client PolymorphismClient) GetDotSyntaxSender(req *http.Request) (*http.Response, error)

GetDotSyntaxSender sends the GetDotSyntax request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) GetValid

func (client PolymorphismClient) GetValid(ctx context.Context) (result FishModel, err error)

GetValid get complex types that are polymorphic

func (PolymorphismClient) GetValidPreparer

func (client PolymorphismClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (PolymorphismClient) GetValidResponder

func (client PolymorphismClient) GetValidResponder(resp *http.Response) (result FishModel, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (PolymorphismClient) GetValidSender

func (client PolymorphismClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) PutComplicated

func (client PolymorphismClient) PutComplicated(ctx context.Context, complexBody BasicSalmon) (result autorest.Response, err error)

PutComplicated put complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties

func (PolymorphismClient) PutComplicatedPreparer

func (client PolymorphismClient) PutComplicatedPreparer(ctx context.Context, complexBody BasicSalmon) (*http.Request, error)

PutComplicatedPreparer prepares the PutComplicated request.

func (PolymorphismClient) PutComplicatedResponder

func (client PolymorphismClient) PutComplicatedResponder(resp *http.Response) (result autorest.Response, err error)

PutComplicatedResponder handles the response to the PutComplicated request. The method always closes the http.Response Body.

func (PolymorphismClient) PutComplicatedSender

func (client PolymorphismClient) PutComplicatedSender(req *http.Request) (*http.Response, error)

PutComplicatedSender sends the PutComplicated request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) PutMissingDiscriminator

func (client PolymorphismClient) PutMissingDiscriminator(ctx context.Context, complexBody BasicSalmon) (result SalmonModel, err error)

PutMissingDiscriminator put complex types that are polymorphic, omitting the discriminator

func (PolymorphismClient) PutMissingDiscriminatorPreparer

func (client PolymorphismClient) PutMissingDiscriminatorPreparer(ctx context.Context, complexBody BasicSalmon) (*http.Request, error)

PutMissingDiscriminatorPreparer prepares the PutMissingDiscriminator request.

func (PolymorphismClient) PutMissingDiscriminatorResponder

func (client PolymorphismClient) PutMissingDiscriminatorResponder(resp *http.Response) (result SalmonModel, err error)

PutMissingDiscriminatorResponder handles the response to the PutMissingDiscriminator request. The method always closes the http.Response Body.

func (PolymorphismClient) PutMissingDiscriminatorSender

func (client PolymorphismClient) PutMissingDiscriminatorSender(req *http.Request) (*http.Response, error)

PutMissingDiscriminatorSender sends the PutMissingDiscriminator request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) PutValid

func (client PolymorphismClient) PutValid(ctx context.Context, complexBody BasicFish) (result autorest.Response, err error)

PutValid put complex types that are polymorphic Parameters: complexBody - please put a salmon that looks like this: { 'fishtype':'Salmon', 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };

func (PolymorphismClient) PutValidMissingRequired

func (client PolymorphismClient) PutValidMissingRequired(ctx context.Context, complexBody BasicFish) (result autorest.Response, err error)

PutValidMissingRequired put complex types that are polymorphic, attempting to omit required 'birthday' field - the request should not be allowed from the client Parameters: complexBody - please attempt put a sawshark that looks like this, the client should not allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }

func (PolymorphismClient) PutValidMissingRequiredPreparer

func (client PolymorphismClient) PutValidMissingRequiredPreparer(ctx context.Context, complexBody BasicFish) (*http.Request, error)

PutValidMissingRequiredPreparer prepares the PutValidMissingRequired request.

func (PolymorphismClient) PutValidMissingRequiredResponder

func (client PolymorphismClient) PutValidMissingRequiredResponder(resp *http.Response) (result autorest.Response, err error)

PutValidMissingRequiredResponder handles the response to the PutValidMissingRequired request. The method always closes the http.Response Body.

func (PolymorphismClient) PutValidMissingRequiredSender

func (client PolymorphismClient) PutValidMissingRequiredSender(req *http.Request) (*http.Response, error)

PutValidMissingRequiredSender sends the PutValidMissingRequired request. The method will close the http.Response Body if it receives an error.

func (PolymorphismClient) PutValidPreparer

func (client PolymorphismClient) PutValidPreparer(ctx context.Context, complexBody BasicFish) (*http.Request, error)

PutValidPreparer prepares the PutValid request.

func (PolymorphismClient) PutValidResponder

func (client PolymorphismClient) PutValidResponder(resp *http.Response) (result autorest.Response, err error)

PutValidResponder handles the response to the PutValid request. The method always closes the http.Response Body.

func (PolymorphismClient) PutValidSender

func (client PolymorphismClient) PutValidSender(req *http.Request) (*http.Response, error)

PutValidSender sends the PutValid request. The method will close the http.Response Body if it receives an error.

type PrimitiveClient

type PrimitiveClient struct {
	BaseClient
}

PrimitiveClient is the test Infrastructure for AutoRest

func NewPrimitiveClient

func NewPrimitiveClient() PrimitiveClient

NewPrimitiveClient creates an instance of the PrimitiveClient client.

func NewPrimitiveClientWithBaseURI

func NewPrimitiveClientWithBaseURI(baseURI string) PrimitiveClient

NewPrimitiveClientWithBaseURI creates an instance of the PrimitiveClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrimitiveClient) GetBool

func (client PrimitiveClient) GetBool(ctx context.Context) (result BooleanWrapper, err error)

GetBool get complex types with bool properties

func (PrimitiveClient) GetBoolPreparer

func (client PrimitiveClient) GetBoolPreparer(ctx context.Context) (*http.Request, error)

GetBoolPreparer prepares the GetBool request.

func (PrimitiveClient) GetBoolResponder

func (client PrimitiveClient) GetBoolResponder(resp *http.Response) (result BooleanWrapper, err error)

GetBoolResponder handles the response to the GetBool request. The method always closes the http.Response Body.

func (PrimitiveClient) GetBoolSender

func (client PrimitiveClient) GetBoolSender(req *http.Request) (*http.Response, error)

GetBoolSender sends the GetBool request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetByte

func (client PrimitiveClient) GetByte(ctx context.Context) (result ByteWrapper, err error)

GetByte get complex types with byte properties

func (PrimitiveClient) GetBytePreparer

func (client PrimitiveClient) GetBytePreparer(ctx context.Context) (*http.Request, error)

GetBytePreparer prepares the GetByte request.

func (PrimitiveClient) GetByteResponder

func (client PrimitiveClient) GetByteResponder(resp *http.Response) (result ByteWrapper, err error)

GetByteResponder handles the response to the GetByte request. The method always closes the http.Response Body.

func (PrimitiveClient) GetByteSender

func (client PrimitiveClient) GetByteSender(req *http.Request) (*http.Response, error)

GetByteSender sends the GetByte request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetDate

func (client PrimitiveClient) GetDate(ctx context.Context) (result DateWrapper, err error)

GetDate get complex types with date properties

func (PrimitiveClient) GetDatePreparer

func (client PrimitiveClient) GetDatePreparer(ctx context.Context) (*http.Request, error)

GetDatePreparer prepares the GetDate request.

func (PrimitiveClient) GetDateResponder

func (client PrimitiveClient) GetDateResponder(resp *http.Response) (result DateWrapper, err error)

GetDateResponder handles the response to the GetDate request. The method always closes the http.Response Body.

func (PrimitiveClient) GetDateSender

func (client PrimitiveClient) GetDateSender(req *http.Request) (*http.Response, error)

GetDateSender sends the GetDate request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetDateTime

func (client PrimitiveClient) GetDateTime(ctx context.Context) (result DatetimeWrapper, err error)

GetDateTime get complex types with datetime properties

func (PrimitiveClient) GetDateTimePreparer

func (client PrimitiveClient) GetDateTimePreparer(ctx context.Context) (*http.Request, error)

GetDateTimePreparer prepares the GetDateTime request.

func (PrimitiveClient) GetDateTimeResponder

func (client PrimitiveClient) GetDateTimeResponder(resp *http.Response) (result DatetimeWrapper, err error)

GetDateTimeResponder handles the response to the GetDateTime request. The method always closes the http.Response Body.

func (PrimitiveClient) GetDateTimeRfc1123

func (client PrimitiveClient) GetDateTimeRfc1123(ctx context.Context) (result Datetimerfc1123Wrapper, err error)

GetDateTimeRfc1123 get complex types with datetimeRfc1123 properties

func (PrimitiveClient) GetDateTimeRfc1123Preparer

func (client PrimitiveClient) GetDateTimeRfc1123Preparer(ctx context.Context) (*http.Request, error)

GetDateTimeRfc1123Preparer prepares the GetDateTimeRfc1123 request.

func (PrimitiveClient) GetDateTimeRfc1123Responder

func (client PrimitiveClient) GetDateTimeRfc1123Responder(resp *http.Response) (result Datetimerfc1123Wrapper, err error)

GetDateTimeRfc1123Responder handles the response to the GetDateTimeRfc1123 request. The method always closes the http.Response Body.

func (PrimitiveClient) GetDateTimeRfc1123Sender

func (client PrimitiveClient) GetDateTimeRfc1123Sender(req *http.Request) (*http.Response, error)

GetDateTimeRfc1123Sender sends the GetDateTimeRfc1123 request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetDateTimeSender

func (client PrimitiveClient) GetDateTimeSender(req *http.Request) (*http.Response, error)

GetDateTimeSender sends the GetDateTime request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetDouble

func (client PrimitiveClient) GetDouble(ctx context.Context) (result DoubleWrapper, err error)

GetDouble get complex types with double properties

func (PrimitiveClient) GetDoublePreparer

func (client PrimitiveClient) GetDoublePreparer(ctx context.Context) (*http.Request, error)

GetDoublePreparer prepares the GetDouble request.

func (PrimitiveClient) GetDoubleResponder

func (client PrimitiveClient) GetDoubleResponder(resp *http.Response) (result DoubleWrapper, err error)

GetDoubleResponder handles the response to the GetDouble request. The method always closes the http.Response Body.

func (PrimitiveClient) GetDoubleSender

func (client PrimitiveClient) GetDoubleSender(req *http.Request) (*http.Response, error)

GetDoubleSender sends the GetDouble request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetDuration

func (client PrimitiveClient) GetDuration(ctx context.Context) (result DurationWrapper, err error)

GetDuration get complex types with duration properties

func (PrimitiveClient) GetDurationPreparer

func (client PrimitiveClient) GetDurationPreparer(ctx context.Context) (*http.Request, error)

GetDurationPreparer prepares the GetDuration request.

func (PrimitiveClient) GetDurationResponder

func (client PrimitiveClient) GetDurationResponder(resp *http.Response) (result DurationWrapper, err error)

GetDurationResponder handles the response to the GetDuration request. The method always closes the http.Response Body.

func (PrimitiveClient) GetDurationSender

func (client PrimitiveClient) GetDurationSender(req *http.Request) (*http.Response, error)

GetDurationSender sends the GetDuration request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetFloat

func (client PrimitiveClient) GetFloat(ctx context.Context) (result FloatWrapper, err error)

GetFloat get complex types with float properties

func (PrimitiveClient) GetFloatPreparer

func (client PrimitiveClient) GetFloatPreparer(ctx context.Context) (*http.Request, error)

GetFloatPreparer prepares the GetFloat request.

func (PrimitiveClient) GetFloatResponder

func (client PrimitiveClient) GetFloatResponder(resp *http.Response) (result FloatWrapper, err error)

GetFloatResponder handles the response to the GetFloat request. The method always closes the http.Response Body.

func (PrimitiveClient) GetFloatSender

func (client PrimitiveClient) GetFloatSender(req *http.Request) (*http.Response, error)

GetFloatSender sends the GetFloat request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetInt

func (client PrimitiveClient) GetInt(ctx context.Context) (result IntWrapper, err error)

GetInt get complex types with integer properties

func (PrimitiveClient) GetIntPreparer

func (client PrimitiveClient) GetIntPreparer(ctx context.Context) (*http.Request, error)

GetIntPreparer prepares the GetInt request.

func (PrimitiveClient) GetIntResponder

func (client PrimitiveClient) GetIntResponder(resp *http.Response) (result IntWrapper, err error)

GetIntResponder handles the response to the GetInt request. The method always closes the http.Response Body.

func (PrimitiveClient) GetIntSender

func (client PrimitiveClient) GetIntSender(req *http.Request) (*http.Response, error)

GetIntSender sends the GetInt request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetLong

func (client PrimitiveClient) GetLong(ctx context.Context) (result LongWrapper, err error)

GetLong get complex types with long properties

func (PrimitiveClient) GetLongPreparer

func (client PrimitiveClient) GetLongPreparer(ctx context.Context) (*http.Request, error)

GetLongPreparer prepares the GetLong request.

func (PrimitiveClient) GetLongResponder

func (client PrimitiveClient) GetLongResponder(resp *http.Response) (result LongWrapper, err error)

GetLongResponder handles the response to the GetLong request. The method always closes the http.Response Body.

func (PrimitiveClient) GetLongSender

func (client PrimitiveClient) GetLongSender(req *http.Request) (*http.Response, error)

GetLongSender sends the GetLong request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) GetString

func (client PrimitiveClient) GetString(ctx context.Context) (result StringWrapper, err error)

GetString get complex types with string properties

func (PrimitiveClient) GetStringPreparer

func (client PrimitiveClient) GetStringPreparer(ctx context.Context) (*http.Request, error)

GetStringPreparer prepares the GetString request.

func (PrimitiveClient) GetStringResponder

func (client PrimitiveClient) GetStringResponder(resp *http.Response) (result StringWrapper, err error)

GetStringResponder handles the response to the GetString request. The method always closes the http.Response Body.

func (PrimitiveClient) GetStringSender

func (client PrimitiveClient) GetStringSender(req *http.Request) (*http.Response, error)

GetStringSender sends the GetString request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutBool

func (client PrimitiveClient) PutBool(ctx context.Context, complexBody BooleanWrapper) (result autorest.Response, err error)

PutBool put complex types with bool properties Parameters: complexBody - please put true and false

func (PrimitiveClient) PutBoolPreparer

func (client PrimitiveClient) PutBoolPreparer(ctx context.Context, complexBody BooleanWrapper) (*http.Request, error)

PutBoolPreparer prepares the PutBool request.

func (PrimitiveClient) PutBoolResponder

func (client PrimitiveClient) PutBoolResponder(resp *http.Response) (result autorest.Response, err error)

PutBoolResponder handles the response to the PutBool request. The method always closes the http.Response Body.

func (PrimitiveClient) PutBoolSender

func (client PrimitiveClient) PutBoolSender(req *http.Request) (*http.Response, error)

PutBoolSender sends the PutBool request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutByte

func (client PrimitiveClient) PutByte(ctx context.Context, complexBody ByteWrapper) (result autorest.Response, err error)

PutByte put complex types with byte properties Parameters: complexBody - please put non-ascii byte string hex(FF FE FD FC 00 FA F9 F8 F7 F6)

func (PrimitiveClient) PutBytePreparer

func (client PrimitiveClient) PutBytePreparer(ctx context.Context, complexBody ByteWrapper) (*http.Request, error)

PutBytePreparer prepares the PutByte request.

func (PrimitiveClient) PutByteResponder

func (client PrimitiveClient) PutByteResponder(resp *http.Response) (result autorest.Response, err error)

PutByteResponder handles the response to the PutByte request. The method always closes the http.Response Body.

func (PrimitiveClient) PutByteSender

func (client PrimitiveClient) PutByteSender(req *http.Request) (*http.Response, error)

PutByteSender sends the PutByte request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutDate

func (client PrimitiveClient) PutDate(ctx context.Context, complexBody DateWrapper) (result autorest.Response, err error)

PutDate put complex types with date properties Parameters: complexBody - please put '0001-01-01' and '2016-02-29'

func (PrimitiveClient) PutDatePreparer

func (client PrimitiveClient) PutDatePreparer(ctx context.Context, complexBody DateWrapper) (*http.Request, error)

PutDatePreparer prepares the PutDate request.

func (PrimitiveClient) PutDateResponder

func (client PrimitiveClient) PutDateResponder(resp *http.Response) (result autorest.Response, err error)

PutDateResponder handles the response to the PutDate request. The method always closes the http.Response Body.

func (PrimitiveClient) PutDateSender

func (client PrimitiveClient) PutDateSender(req *http.Request) (*http.Response, error)

PutDateSender sends the PutDate request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutDateTime

func (client PrimitiveClient) PutDateTime(ctx context.Context, complexBody DatetimeWrapper) (result autorest.Response, err error)

PutDateTime put complex types with datetime properties Parameters: complexBody - please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'

func (PrimitiveClient) PutDateTimePreparer

func (client PrimitiveClient) PutDateTimePreparer(ctx context.Context, complexBody DatetimeWrapper) (*http.Request, error)

PutDateTimePreparer prepares the PutDateTime request.

func (PrimitiveClient) PutDateTimeResponder

func (client PrimitiveClient) PutDateTimeResponder(resp *http.Response) (result autorest.Response, err error)

PutDateTimeResponder handles the response to the PutDateTime request. The method always closes the http.Response Body.

func (PrimitiveClient) PutDateTimeRfc1123

func (client PrimitiveClient) PutDateTimeRfc1123(ctx context.Context, complexBody Datetimerfc1123Wrapper) (result autorest.Response, err error)

PutDateTimeRfc1123 put complex types with datetimeRfc1123 properties Parameters: complexBody - please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 GMT'

func (PrimitiveClient) PutDateTimeRfc1123Preparer

func (client PrimitiveClient) PutDateTimeRfc1123Preparer(ctx context.Context, complexBody Datetimerfc1123Wrapper) (*http.Request, error)

PutDateTimeRfc1123Preparer prepares the PutDateTimeRfc1123 request.

func (PrimitiveClient) PutDateTimeRfc1123Responder

func (client PrimitiveClient) PutDateTimeRfc1123Responder(resp *http.Response) (result autorest.Response, err error)

PutDateTimeRfc1123Responder handles the response to the PutDateTimeRfc1123 request. The method always closes the http.Response Body.

func (PrimitiveClient) PutDateTimeRfc1123Sender

func (client PrimitiveClient) PutDateTimeRfc1123Sender(req *http.Request) (*http.Response, error)

PutDateTimeRfc1123Sender sends the PutDateTimeRfc1123 request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutDateTimeSender

func (client PrimitiveClient) PutDateTimeSender(req *http.Request) (*http.Response, error)

PutDateTimeSender sends the PutDateTime request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutDouble

func (client PrimitiveClient) PutDouble(ctx context.Context, complexBody DoubleWrapper) (result autorest.Response, err error)

PutDouble put complex types with double properties Parameters: complexBody - please put 3e-100 and -0.000000000000000000000000000000000000000000000000000000005

func (PrimitiveClient) PutDoublePreparer

func (client PrimitiveClient) PutDoublePreparer(ctx context.Context, complexBody DoubleWrapper) (*http.Request, error)

PutDoublePreparer prepares the PutDouble request.

func (PrimitiveClient) PutDoubleResponder

func (client PrimitiveClient) PutDoubleResponder(resp *http.Response) (result autorest.Response, err error)

PutDoubleResponder handles the response to the PutDouble request. The method always closes the http.Response Body.

func (PrimitiveClient) PutDoubleSender

func (client PrimitiveClient) PutDoubleSender(req *http.Request) (*http.Response, error)

PutDoubleSender sends the PutDouble request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutDuration

func (client PrimitiveClient) PutDuration(ctx context.Context, complexBody DurationWrapper) (result autorest.Response, err error)

PutDuration put complex types with duration properties Parameters: complexBody - please put 'P123DT22H14M12.011S'

func (PrimitiveClient) PutDurationPreparer

func (client PrimitiveClient) PutDurationPreparer(ctx context.Context, complexBody DurationWrapper) (*http.Request, error)

PutDurationPreparer prepares the PutDuration request.

func (PrimitiveClient) PutDurationResponder

func (client PrimitiveClient) PutDurationResponder(resp *http.Response) (result autorest.Response, err error)

PutDurationResponder handles the response to the PutDuration request. The method always closes the http.Response Body.

func (PrimitiveClient) PutDurationSender

func (client PrimitiveClient) PutDurationSender(req *http.Request) (*http.Response, error)

PutDurationSender sends the PutDuration request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutFloat

func (client PrimitiveClient) PutFloat(ctx context.Context, complexBody FloatWrapper) (result autorest.Response, err error)

PutFloat put complex types with float properties Parameters: complexBody - please put 1.05 and -0.003

func (PrimitiveClient) PutFloatPreparer

func (client PrimitiveClient) PutFloatPreparer(ctx context.Context, complexBody FloatWrapper) (*http.Request, error)

PutFloatPreparer prepares the PutFloat request.

func (PrimitiveClient) PutFloatResponder

func (client PrimitiveClient) PutFloatResponder(resp *http.Response) (result autorest.Response, err error)

PutFloatResponder handles the response to the PutFloat request. The method always closes the http.Response Body.

func (PrimitiveClient) PutFloatSender

func (client PrimitiveClient) PutFloatSender(req *http.Request) (*http.Response, error)

PutFloatSender sends the PutFloat request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutInt

func (client PrimitiveClient) PutInt(ctx context.Context, complexBody IntWrapper) (result autorest.Response, err error)

PutInt put complex types with integer properties Parameters: complexBody - please put -1 and 2

func (PrimitiveClient) PutIntPreparer

func (client PrimitiveClient) PutIntPreparer(ctx context.Context, complexBody IntWrapper) (*http.Request, error)

PutIntPreparer prepares the PutInt request.

func (PrimitiveClient) PutIntResponder

func (client PrimitiveClient) PutIntResponder(resp *http.Response) (result autorest.Response, err error)

PutIntResponder handles the response to the PutInt request. The method always closes the http.Response Body.

func (PrimitiveClient) PutIntSender

func (client PrimitiveClient) PutIntSender(req *http.Request) (*http.Response, error)

PutIntSender sends the PutInt request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutLong

func (client PrimitiveClient) PutLong(ctx context.Context, complexBody LongWrapper) (result autorest.Response, err error)

PutLong put complex types with long properties Parameters: complexBody - please put 1099511627775 and -999511627788

func (PrimitiveClient) PutLongPreparer

func (client PrimitiveClient) PutLongPreparer(ctx context.Context, complexBody LongWrapper) (*http.Request, error)

PutLongPreparer prepares the PutLong request.

func (PrimitiveClient) PutLongResponder

func (client PrimitiveClient) PutLongResponder(resp *http.Response) (result autorest.Response, err error)

PutLongResponder handles the response to the PutLong request. The method always closes the http.Response Body.

func (PrimitiveClient) PutLongSender

func (client PrimitiveClient) PutLongSender(req *http.Request) (*http.Response, error)

PutLongSender sends the PutLong request. The method will close the http.Response Body if it receives an error.

func (PrimitiveClient) PutString

func (client PrimitiveClient) PutString(ctx context.Context, complexBody StringWrapper) (result autorest.Response, err error)

PutString put complex types with string properties Parameters: complexBody - please put 'goodrequest', ”, and null

func (PrimitiveClient) PutStringPreparer

func (client PrimitiveClient) PutStringPreparer(ctx context.Context, complexBody StringWrapper) (*http.Request, error)

PutStringPreparer prepares the PutString request.

func (PrimitiveClient) PutStringResponder

func (client PrimitiveClient) PutStringResponder(resp *http.Response) (result autorest.Response, err error)

PutStringResponder handles the response to the PutString request. The method always closes the http.Response Body.

func (PrimitiveClient) PutStringSender

func (client PrimitiveClient) PutStringSender(req *http.Request) (*http.Response, error)

PutStringSender sends the PutString request. The method will close the http.Response Body if it receives an error.

type ReadonlyObj

type ReadonlyObj struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY
	ID   *string `json:"id,omitempty"`
	Size *int32  `json:"size,omitempty"`
}

ReadonlyObj ...

func (ReadonlyObj) MarshalJSON

func (r ReadonlyObj) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReadonlyObj.

type ReadonlypropertyClient

type ReadonlypropertyClient struct {
	BaseClient
}

ReadonlypropertyClient is the test Infrastructure for AutoRest

func NewReadonlypropertyClient

func NewReadonlypropertyClient() ReadonlypropertyClient

NewReadonlypropertyClient creates an instance of the ReadonlypropertyClient client.

func NewReadonlypropertyClientWithBaseURI

func NewReadonlypropertyClientWithBaseURI(baseURI string) ReadonlypropertyClient

NewReadonlypropertyClientWithBaseURI creates an instance of the ReadonlypropertyClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ReadonlypropertyClient) GetValid

func (client ReadonlypropertyClient) GetValid(ctx context.Context) (result ReadonlyObj, err error)

GetValid get complex types that have readonly properties

func (ReadonlypropertyClient) GetValidPreparer

func (client ReadonlypropertyClient) GetValidPreparer(ctx context.Context) (*http.Request, error)

GetValidPreparer prepares the GetValid request.

func (ReadonlypropertyClient) GetValidResponder

func (client ReadonlypropertyClient) GetValidResponder(resp *http.Response) (result ReadonlyObj, err error)

GetValidResponder handles the response to the GetValid request. The method always closes the http.Response Body.

func (ReadonlypropertyClient) GetValidSender

func (client ReadonlypropertyClient) GetValidSender(req *http.Request) (*http.Response, error)

GetValidSender sends the GetValid request. The method will close the http.Response Body if it receives an error.

func (ReadonlypropertyClient) PutValid

func (client ReadonlypropertyClient) PutValid(ctx context.Context, complexBody ReadonlyObj) (result autorest.Response, err error)

PutValid put complex types that have readonly properties

func (ReadonlypropertyClient) PutValidPreparer

func (client ReadonlypropertyClient) PutValidPreparer(ctx context.Context, complexBody ReadonlyObj) (*http.Request, error)

PutValidPreparer prepares the PutValid request.

func (ReadonlypropertyClient) PutValidResponder

func (client ReadonlypropertyClient) PutValidResponder(resp *http.Response) (result autorest.Response, err error)

PutValidResponder handles the response to the PutValid request. The method always closes the http.Response Body.

func (ReadonlypropertyClient) PutValidSender

func (client ReadonlypropertyClient) PutValidSender(req *http.Request) (*http.Response, error)

PutValidSender sends the PutValid request. The method will close the http.Response Body if it receives an error.

type Salmon

type Salmon struct {
	autorest.Response `json:"-"`
	Location          *string      `json:"location,omitempty"`
	Iswild            *bool        `json:"iswild,omitempty"`
	Species           *string      `json:"species,omitempty"`
	Length            *float64     `json:"length,omitempty"`
	Siblings          *[]BasicFish `json:"siblings,omitempty"`
	// Fishtype - Possible values include: 'FishtypeFish', 'FishtypeSalmon', 'FishtypeSmartSalmon', 'FishtypeShark', 'FishtypeSawshark', 'FishtypeGoblin', 'FishtypeCookiecuttershark'
	Fishtype FishtypeBasicFish `json:"fishtype,omitempty"`
}

Salmon ...

func (Salmon) AsBasicFish

func (s Salmon) AsBasicFish() (BasicFish, bool)

AsBasicFish is the BasicFish implementation for Salmon.

func (Salmon) AsBasicSalmon

func (s Salmon) AsBasicSalmon() (BasicSalmon, bool)

AsBasicSalmon is the BasicFish implementation for Salmon.

func (Salmon) AsBasicShark

func (s Salmon) AsBasicShark() (BasicShark, bool)

AsBasicShark is the BasicFish implementation for Salmon.

func (Salmon) AsCookiecuttershark

func (s Salmon) AsCookiecuttershark() (*Cookiecuttershark, bool)

AsCookiecuttershark is the BasicFish implementation for Salmon.

func (Salmon) AsFish

func (s Salmon) AsFish() (*Fish, bool)

AsFish is the BasicFish implementation for Salmon.

func (Salmon) AsGoblinshark

func (s Salmon) AsGoblinshark() (*Goblinshark, bool)

AsGoblinshark is the BasicFish implementation for Salmon.

func (Salmon) AsSalmon

func (s Salmon) AsSalmon() (*Salmon, bool)

AsSalmon is the BasicFish implementation for Salmon.

func (Salmon) AsSawshark

func (s Salmon) AsSawshark() (*Sawshark, bool)

AsSawshark is the BasicFish implementation for Salmon.

func (Salmon) AsShark

func (s Salmon) AsShark() (*Shark, bool)

AsShark is the BasicFish implementation for Salmon.

func (Salmon) AsSmartSalmon

func (s Salmon) AsSmartSalmon() (*SmartSalmon, bool)

AsSmartSalmon is the BasicFish implementation for Salmon.

func (Salmon) MarshalJSON

func (s Salmon) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Salmon.

func (*Salmon) UnmarshalJSON

func (s *Salmon) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Salmon struct.

type SalmonModel

type SalmonModel struct {
	autorest.Response `json:"-"`
	Value             BasicSalmon `json:"value,omitempty"`
}

SalmonModel ...

func (*SalmonModel) UnmarshalJSON

func (sm *SalmonModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SalmonModel struct.

type Sawshark

type Sawshark struct {
	Picture  *[]byte      `json:"picture,omitempty"`
	Age      *int32       `json:"age,omitempty"`
	Birthday *date.Time   `json:"birthday,omitempty"`
	Species  *string      `json:"species,omitempty"`
	Length   *float64     `json:"length,omitempty"`
	Siblings *[]BasicFish `json:"siblings,omitempty"`
	// Fishtype - Possible values include: 'FishtypeFish', 'FishtypeSalmon', 'FishtypeSmartSalmon', 'FishtypeShark', 'FishtypeSawshark', 'FishtypeGoblin', 'FishtypeCookiecuttershark'
	Fishtype FishtypeBasicFish `json:"fishtype,omitempty"`
}

Sawshark ...

func (Sawshark) AsBasicFish

func (s Sawshark) AsBasicFish() (BasicFish, bool)

AsBasicFish is the BasicFish implementation for Sawshark.

func (Sawshark) AsBasicSalmon

func (s Sawshark) AsBasicSalmon() (BasicSalmon, bool)

AsBasicSalmon is the BasicFish implementation for Sawshark.

func (Sawshark) AsBasicShark

func (s Sawshark) AsBasicShark() (BasicShark, bool)

AsBasicShark is the BasicFish implementation for Sawshark.

func (Sawshark) AsCookiecuttershark

func (s Sawshark) AsCookiecuttershark() (*Cookiecuttershark, bool)

AsCookiecuttershark is the BasicFish implementation for Sawshark.

func (Sawshark) AsFish

func (s Sawshark) AsFish() (*Fish, bool)

AsFish is the BasicFish implementation for Sawshark.

func (Sawshark) AsGoblinshark

func (s Sawshark) AsGoblinshark() (*Goblinshark, bool)

AsGoblinshark is the BasicFish implementation for Sawshark.

func (Sawshark) AsSalmon

func (s Sawshark) AsSalmon() (*Salmon, bool)

AsSalmon is the BasicFish implementation for Sawshark.

func (Sawshark) AsSawshark

func (s Sawshark) AsSawshark() (*Sawshark, bool)

AsSawshark is the BasicFish implementation for Sawshark.

func (Sawshark) AsShark

func (s Sawshark) AsShark() (*Shark, bool)

AsShark is the BasicFish implementation for Sawshark.

func (Sawshark) AsSmartSalmon

func (s Sawshark) AsSmartSalmon() (*SmartSalmon, bool)

AsSmartSalmon is the BasicFish implementation for Sawshark.

func (Sawshark) MarshalJSON

func (s Sawshark) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Sawshark.

func (*Sawshark) UnmarshalJSON

func (s *Sawshark) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Sawshark struct.

type Shark

type Shark struct {
	Age      *int32       `json:"age,omitempty"`
	Birthday *date.Time   `json:"birthday,omitempty"`
	Species  *string      `json:"species,omitempty"`
	Length   *float64     `json:"length,omitempty"`
	Siblings *[]BasicFish `json:"siblings,omitempty"`
	// Fishtype - Possible values include: 'FishtypeFish', 'FishtypeSalmon', 'FishtypeSmartSalmon', 'FishtypeShark', 'FishtypeSawshark', 'FishtypeGoblin', 'FishtypeCookiecuttershark'
	Fishtype FishtypeBasicFish `json:"fishtype,omitempty"`
}

Shark ...

func (Shark) AsBasicFish

func (s Shark) AsBasicFish() (BasicFish, bool)

AsBasicFish is the BasicFish implementation for Shark.

func (Shark) AsBasicSalmon

func (s Shark) AsBasicSalmon() (BasicSalmon, bool)

AsBasicSalmon is the BasicFish implementation for Shark.

func (Shark) AsBasicShark

func (s Shark) AsBasicShark() (BasicShark, bool)

AsBasicShark is the BasicFish implementation for Shark.

func (Shark) AsCookiecuttershark

func (s Shark) AsCookiecuttershark() (*Cookiecuttershark, bool)

AsCookiecuttershark is the BasicFish implementation for Shark.

func (Shark) AsFish

func (s Shark) AsFish() (*Fish, bool)

AsFish is the BasicFish implementation for Shark.

func (Shark) AsGoblinshark

func (s Shark) AsGoblinshark() (*Goblinshark, bool)

AsGoblinshark is the BasicFish implementation for Shark.

func (Shark) AsSalmon

func (s Shark) AsSalmon() (*Salmon, bool)

AsSalmon is the BasicFish implementation for Shark.

func (Shark) AsSawshark

func (s Shark) AsSawshark() (*Sawshark, bool)

AsSawshark is the BasicFish implementation for Shark.

func (Shark) AsShark

func (s Shark) AsShark() (*Shark, bool)

AsShark is the BasicFish implementation for Shark.

func (Shark) AsSmartSalmon

func (s Shark) AsSmartSalmon() (*SmartSalmon, bool)

AsSmartSalmon is the BasicFish implementation for Shark.

func (Shark) MarshalJSON

func (s Shark) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Shark.

func (*Shark) UnmarshalJSON

func (s *Shark) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Shark struct.

type Siamese

type Siamese struct {
	autorest.Response `json:"-"`
	Breed             *string `json:"breed,omitempty"`
	Color             *string `json:"color,omitempty"`
	Hates             *[]Dog  `json:"hates,omitempty"`
	ID                *int32  `json:"id,omitempty"`
	Name              *string `json:"name,omitempty"`
}

Siamese ...

type SmartSalmon

type SmartSalmon struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	CollegeDegree        *string                `json:"college_degree,omitempty"`
	Location             *string                `json:"location,omitempty"`
	Iswild               *bool                  `json:"iswild,omitempty"`
	Species              *string                `json:"species,omitempty"`
	Length               *float64               `json:"length,omitempty"`
	Siblings             *[]BasicFish           `json:"siblings,omitempty"`
	// Fishtype - Possible values include: 'FishtypeFish', 'FishtypeSalmon', 'FishtypeSmartSalmon', 'FishtypeShark', 'FishtypeSawshark', 'FishtypeGoblin', 'FishtypeCookiecuttershark'
	Fishtype FishtypeBasicFish `json:"fishtype,omitempty"`
}

SmartSalmon ...

func (SmartSalmon) AsBasicFish

func (s SmartSalmon) AsBasicFish() (BasicFish, bool)

AsBasicFish is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsBasicSalmon

func (s SmartSalmon) AsBasicSalmon() (BasicSalmon, bool)

AsBasicSalmon is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsBasicShark

func (s SmartSalmon) AsBasicShark() (BasicShark, bool)

AsBasicShark is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsCookiecuttershark

func (s SmartSalmon) AsCookiecuttershark() (*Cookiecuttershark, bool)

AsCookiecuttershark is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsFish

func (s SmartSalmon) AsFish() (*Fish, bool)

AsFish is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsGoblinshark

func (s SmartSalmon) AsGoblinshark() (*Goblinshark, bool)

AsGoblinshark is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsSalmon

func (s SmartSalmon) AsSalmon() (*Salmon, bool)

AsSalmon is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsSawshark

func (s SmartSalmon) AsSawshark() (*Sawshark, bool)

AsSawshark is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsShark

func (s SmartSalmon) AsShark() (*Shark, bool)

AsShark is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) AsSmartSalmon

func (s SmartSalmon) AsSmartSalmon() (*SmartSalmon, bool)

AsSmartSalmon is the BasicFish implementation for SmartSalmon.

func (SmartSalmon) MarshalJSON

func (s SmartSalmon) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SmartSalmon.

func (*SmartSalmon) UnmarshalJSON

func (s *SmartSalmon) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SmartSalmon struct.

type StringWrapper

type StringWrapper struct {
	autorest.Response `json:"-"`
	Field             *string `json:"field,omitempty"`
	Empty             *string `json:"empty,omitempty"`
	Null              *string `json:"null,omitempty"`
}

StringWrapper ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL