optionalgroup

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: 6 Imported by: 0

Documentation

Overview

Package optionalgroup implements the Azure ARM Optionalgroup service API version 1.0.0.

Test Infrastructure for AutoRest

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Optionalgroup
	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 ArrayOptionalWrapper

type ArrayOptionalWrapper struct {
	Value *[]string `json:"value,omitempty"`
}

ArrayOptionalWrapper ...

type ArrayWrapper

type ArrayWrapper struct {
	Value *[]string `json:"value,omitempty"`
}

ArrayWrapper ...

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI             string
	RequiredGlobalPath  string
	RequiredGlobalQuery string
	OptionalGlobalQuery *int32
}

BaseClient is the base client for Optionalgroup.

func New

func New(requiredGlobalPath string, requiredGlobalQuery string, optionalGlobalQuery *int32) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, requiredGlobalPath string, requiredGlobalQuery string, optionalGlobalQuery *int32) 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 ClassOptionalWrapper

type ClassOptionalWrapper struct {
	Value *Product `json:"value,omitempty"`
}

ClassOptionalWrapper ...

type ClassWrapper

type ClassWrapper struct {
	Value *Product `json:"value,omitempty"`
}

ClassWrapper ...

type Error

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

Error ...

type ExplicitClient

type ExplicitClient struct {
	BaseClient
}

ExplicitClient is the test Infrastructure for AutoRest

func NewExplicitClient

func NewExplicitClient(requiredGlobalPath string, requiredGlobalQuery string, optionalGlobalQuery *int32) ExplicitClient

NewExplicitClient creates an instance of the ExplicitClient client.

func NewExplicitClientWithBaseURI

func NewExplicitClientWithBaseURI(baseURI string, requiredGlobalPath string, requiredGlobalQuery string, optionalGlobalQuery *int32) ExplicitClient

NewExplicitClientWithBaseURI creates an instance of the ExplicitClient 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 (ExplicitClient) PostOptionalArrayHeader

func (client ExplicitClient) PostOptionalArrayHeader(ctx context.Context, headerParameter []string) (result autorest.Response, err error)

PostOptionalArrayHeader test explicitly optional integer. Please put a header 'headerParameter' => null.

func (ExplicitClient) PostOptionalArrayHeaderPreparer

func (client ExplicitClient) PostOptionalArrayHeaderPreparer(ctx context.Context, headerParameter []string) (*http.Request, error)

PostOptionalArrayHeaderPreparer prepares the PostOptionalArrayHeader request.

func (ExplicitClient) PostOptionalArrayHeaderResponder

func (client ExplicitClient) PostOptionalArrayHeaderResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalArrayHeaderResponder handles the response to the PostOptionalArrayHeader request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalArrayHeaderSender

func (client ExplicitClient) PostOptionalArrayHeaderSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalArrayParameter

func (client ExplicitClient) PostOptionalArrayParameter(ctx context.Context, bodyParameter []string) (result autorest.Response, err error)

PostOptionalArrayParameter test explicitly optional array. Please put null.

func (ExplicitClient) PostOptionalArrayParameterPreparer

func (client ExplicitClient) PostOptionalArrayParameterPreparer(ctx context.Context, bodyParameter []string) (*http.Request, error)

PostOptionalArrayParameterPreparer prepares the PostOptionalArrayParameter request.

func (ExplicitClient) PostOptionalArrayParameterResponder

func (client ExplicitClient) PostOptionalArrayParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalArrayParameterResponder handles the response to the PostOptionalArrayParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalArrayParameterSender

func (client ExplicitClient) PostOptionalArrayParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalArrayProperty

func (client ExplicitClient) PostOptionalArrayProperty(ctx context.Context, bodyParameter *ArrayOptionalWrapper) (result autorest.Response, err error)

PostOptionalArrayProperty test explicitly optional array. Please put a valid array-wrapper with 'value' = null.

func (ExplicitClient) PostOptionalArrayPropertyPreparer

func (client ExplicitClient) PostOptionalArrayPropertyPreparer(ctx context.Context, bodyParameter *ArrayOptionalWrapper) (*http.Request, error)

PostOptionalArrayPropertyPreparer prepares the PostOptionalArrayProperty request.

func (ExplicitClient) PostOptionalArrayPropertyResponder

func (client ExplicitClient) PostOptionalArrayPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalArrayPropertyResponder handles the response to the PostOptionalArrayProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalArrayPropertySender

func (client ExplicitClient) PostOptionalArrayPropertySender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalClassParameter

func (client ExplicitClient) PostOptionalClassParameter(ctx context.Context, bodyParameter *Product) (result autorest.Response, err error)

PostOptionalClassParameter test explicitly optional complex object. Please put null.

func (ExplicitClient) PostOptionalClassParameterPreparer

func (client ExplicitClient) PostOptionalClassParameterPreparer(ctx context.Context, bodyParameter *Product) (*http.Request, error)

PostOptionalClassParameterPreparer prepares the PostOptionalClassParameter request.

func (ExplicitClient) PostOptionalClassParameterResponder

func (client ExplicitClient) PostOptionalClassParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalClassParameterResponder handles the response to the PostOptionalClassParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalClassParameterSender

func (client ExplicitClient) PostOptionalClassParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalClassProperty

func (client ExplicitClient) PostOptionalClassProperty(ctx context.Context, bodyParameter *ClassOptionalWrapper) (result autorest.Response, err error)

PostOptionalClassProperty test explicitly optional complex object. Please put a valid class-wrapper with 'value' = null.

func (ExplicitClient) PostOptionalClassPropertyPreparer

func (client ExplicitClient) PostOptionalClassPropertyPreparer(ctx context.Context, bodyParameter *ClassOptionalWrapper) (*http.Request, error)

PostOptionalClassPropertyPreparer prepares the PostOptionalClassProperty request.

func (ExplicitClient) PostOptionalClassPropertyResponder

func (client ExplicitClient) PostOptionalClassPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalClassPropertyResponder handles the response to the PostOptionalClassProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalClassPropertySender

func (client ExplicitClient) PostOptionalClassPropertySender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalIntegerHeader

func (client ExplicitClient) PostOptionalIntegerHeader(ctx context.Context, headerParameter *int32) (result autorest.Response, err error)

PostOptionalIntegerHeader test explicitly optional integer. Please put a header 'headerParameter' => null.

func (ExplicitClient) PostOptionalIntegerHeaderPreparer

func (client ExplicitClient) PostOptionalIntegerHeaderPreparer(ctx context.Context, headerParameter *int32) (*http.Request, error)

PostOptionalIntegerHeaderPreparer prepares the PostOptionalIntegerHeader request.

func (ExplicitClient) PostOptionalIntegerHeaderResponder

func (client ExplicitClient) PostOptionalIntegerHeaderResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalIntegerHeaderResponder handles the response to the PostOptionalIntegerHeader request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalIntegerHeaderSender

func (client ExplicitClient) PostOptionalIntegerHeaderSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalIntegerParameter

func (client ExplicitClient) PostOptionalIntegerParameter(ctx context.Context, bodyParameter *int32) (result autorest.Response, err error)

PostOptionalIntegerParameter test explicitly optional integer. Please put null.

func (ExplicitClient) PostOptionalIntegerParameterPreparer

func (client ExplicitClient) PostOptionalIntegerParameterPreparer(ctx context.Context, bodyParameter *int32) (*http.Request, error)

PostOptionalIntegerParameterPreparer prepares the PostOptionalIntegerParameter request.

func (ExplicitClient) PostOptionalIntegerParameterResponder

func (client ExplicitClient) PostOptionalIntegerParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalIntegerParameterResponder handles the response to the PostOptionalIntegerParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalIntegerParameterSender

func (client ExplicitClient) PostOptionalIntegerParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalIntegerProperty

func (client ExplicitClient) PostOptionalIntegerProperty(ctx context.Context, bodyParameter *IntOptionalWrapper) (result autorest.Response, err error)

PostOptionalIntegerProperty test explicitly optional integer. Please put a valid int-wrapper with 'value' = null.

func (ExplicitClient) PostOptionalIntegerPropertyPreparer

func (client ExplicitClient) PostOptionalIntegerPropertyPreparer(ctx context.Context, bodyParameter *IntOptionalWrapper) (*http.Request, error)

PostOptionalIntegerPropertyPreparer prepares the PostOptionalIntegerProperty request.

func (ExplicitClient) PostOptionalIntegerPropertyResponder

func (client ExplicitClient) PostOptionalIntegerPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalIntegerPropertyResponder handles the response to the PostOptionalIntegerProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalIntegerPropertySender

func (client ExplicitClient) PostOptionalIntegerPropertySender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalStringHeader

func (client ExplicitClient) PostOptionalStringHeader(ctx context.Context, bodyParameter string) (result autorest.Response, err error)

PostOptionalStringHeader test explicitly optional string. Please put a header 'headerParameter' => null.

func (ExplicitClient) PostOptionalStringHeaderPreparer

func (client ExplicitClient) PostOptionalStringHeaderPreparer(ctx context.Context, bodyParameter string) (*http.Request, error)

PostOptionalStringHeaderPreparer prepares the PostOptionalStringHeader request.

func (ExplicitClient) PostOptionalStringHeaderResponder

func (client ExplicitClient) PostOptionalStringHeaderResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalStringHeaderResponder handles the response to the PostOptionalStringHeader request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalStringHeaderSender

func (client ExplicitClient) PostOptionalStringHeaderSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalStringParameter

func (client ExplicitClient) PostOptionalStringParameter(ctx context.Context, bodyParameter string) (result autorest.Response, err error)

PostOptionalStringParameter test explicitly optional string. Please put null.

func (ExplicitClient) PostOptionalStringParameterPreparer

func (client ExplicitClient) PostOptionalStringParameterPreparer(ctx context.Context, bodyParameter string) (*http.Request, error)

PostOptionalStringParameterPreparer prepares the PostOptionalStringParameter request.

func (ExplicitClient) PostOptionalStringParameterResponder

func (client ExplicitClient) PostOptionalStringParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalStringParameterResponder handles the response to the PostOptionalStringParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalStringParameterSender

func (client ExplicitClient) PostOptionalStringParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostOptionalStringProperty

func (client ExplicitClient) PostOptionalStringProperty(ctx context.Context, bodyParameter *StringOptionalWrapper) (result autorest.Response, err error)

PostOptionalStringProperty test explicitly optional integer. Please put a valid string-wrapper with 'value' = null.

func (ExplicitClient) PostOptionalStringPropertyPreparer

func (client ExplicitClient) PostOptionalStringPropertyPreparer(ctx context.Context, bodyParameter *StringOptionalWrapper) (*http.Request, error)

PostOptionalStringPropertyPreparer prepares the PostOptionalStringProperty request.

func (ExplicitClient) PostOptionalStringPropertyResponder

func (client ExplicitClient) PostOptionalStringPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostOptionalStringPropertyResponder handles the response to the PostOptionalStringProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostOptionalStringPropertySender

func (client ExplicitClient) PostOptionalStringPropertySender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredArrayHeader

func (client ExplicitClient) PostRequiredArrayHeader(ctx context.Context, headerParameter []string) (result autorest.Response, err error)

PostRequiredArrayHeader test explicitly required array. Please put a header 'headerParameter' => null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredArrayHeaderPreparer

func (client ExplicitClient) PostRequiredArrayHeaderPreparer(ctx context.Context, headerParameter []string) (*http.Request, error)

PostRequiredArrayHeaderPreparer prepares the PostRequiredArrayHeader request.

func (ExplicitClient) PostRequiredArrayHeaderResponder

func (client ExplicitClient) PostRequiredArrayHeaderResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredArrayHeaderResponder handles the response to the PostRequiredArrayHeader request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredArrayHeaderSender

func (client ExplicitClient) PostRequiredArrayHeaderSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredArrayParameter

func (client ExplicitClient) PostRequiredArrayParameter(ctx context.Context, bodyParameter []string) (result autorest.Response, err error)

PostRequiredArrayParameter test explicitly required array. Please put null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredArrayParameterPreparer

func (client ExplicitClient) PostRequiredArrayParameterPreparer(ctx context.Context, bodyParameter []string) (*http.Request, error)

PostRequiredArrayParameterPreparer prepares the PostRequiredArrayParameter request.

func (ExplicitClient) PostRequiredArrayParameterResponder

func (client ExplicitClient) PostRequiredArrayParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredArrayParameterResponder handles the response to the PostRequiredArrayParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredArrayParameterSender

func (client ExplicitClient) PostRequiredArrayParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredArrayProperty

func (client ExplicitClient) PostRequiredArrayProperty(ctx context.Context, bodyParameter ArrayWrapper) (result autorest.Response, err error)

PostRequiredArrayProperty test explicitly required array. Please put a valid array-wrapper with 'value' = null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredArrayPropertyPreparer

func (client ExplicitClient) PostRequiredArrayPropertyPreparer(ctx context.Context, bodyParameter ArrayWrapper) (*http.Request, error)

PostRequiredArrayPropertyPreparer prepares the PostRequiredArrayProperty request.

func (ExplicitClient) PostRequiredArrayPropertyResponder

func (client ExplicitClient) PostRequiredArrayPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredArrayPropertyResponder handles the response to the PostRequiredArrayProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredArrayPropertySender

func (client ExplicitClient) PostRequiredArrayPropertySender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredClassParameter

func (client ExplicitClient) PostRequiredClassParameter(ctx context.Context, bodyParameter Product) (result autorest.Response, err error)

PostRequiredClassParameter test explicitly required complex object. Please put null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredClassParameterPreparer

func (client ExplicitClient) PostRequiredClassParameterPreparer(ctx context.Context, bodyParameter Product) (*http.Request, error)

PostRequiredClassParameterPreparer prepares the PostRequiredClassParameter request.

func (ExplicitClient) PostRequiredClassParameterResponder

func (client ExplicitClient) PostRequiredClassParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredClassParameterResponder handles the response to the PostRequiredClassParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredClassParameterSender

func (client ExplicitClient) PostRequiredClassParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredClassProperty

func (client ExplicitClient) PostRequiredClassProperty(ctx context.Context, bodyParameter ClassWrapper) (result autorest.Response, err error)

PostRequiredClassProperty test explicitly required complex object. Please put a valid class-wrapper with 'value' = null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredClassPropertyPreparer

func (client ExplicitClient) PostRequiredClassPropertyPreparer(ctx context.Context, bodyParameter ClassWrapper) (*http.Request, error)

PostRequiredClassPropertyPreparer prepares the PostRequiredClassProperty request.

func (ExplicitClient) PostRequiredClassPropertyResponder

func (client ExplicitClient) PostRequiredClassPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredClassPropertyResponder handles the response to the PostRequiredClassProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredClassPropertySender

func (client ExplicitClient) PostRequiredClassPropertySender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredIntegerHeader

func (client ExplicitClient) PostRequiredIntegerHeader(ctx context.Context, headerParameter int32) (result autorest.Response, err error)

PostRequiredIntegerHeader test explicitly required integer. Please put a header 'headerParameter' => null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredIntegerHeaderPreparer

func (client ExplicitClient) PostRequiredIntegerHeaderPreparer(ctx context.Context, headerParameter int32) (*http.Request, error)

PostRequiredIntegerHeaderPreparer prepares the PostRequiredIntegerHeader request.

func (ExplicitClient) PostRequiredIntegerHeaderResponder

func (client ExplicitClient) PostRequiredIntegerHeaderResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredIntegerHeaderResponder handles the response to the PostRequiredIntegerHeader request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredIntegerHeaderSender

func (client ExplicitClient) PostRequiredIntegerHeaderSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredIntegerParameter

func (client ExplicitClient) PostRequiredIntegerParameter(ctx context.Context, bodyParameter int32) (result autorest.Response, err error)

PostRequiredIntegerParameter test explicitly required integer. Please put null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredIntegerParameterPreparer

func (client ExplicitClient) PostRequiredIntegerParameterPreparer(ctx context.Context, bodyParameter int32) (*http.Request, error)

PostRequiredIntegerParameterPreparer prepares the PostRequiredIntegerParameter request.

func (ExplicitClient) PostRequiredIntegerParameterResponder

func (client ExplicitClient) PostRequiredIntegerParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredIntegerParameterResponder handles the response to the PostRequiredIntegerParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredIntegerParameterSender

func (client ExplicitClient) PostRequiredIntegerParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredIntegerProperty

func (client ExplicitClient) PostRequiredIntegerProperty(ctx context.Context, bodyParameter IntWrapper) (result autorest.Response, err error)

PostRequiredIntegerProperty test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredIntegerPropertyPreparer

func (client ExplicitClient) PostRequiredIntegerPropertyPreparer(ctx context.Context, bodyParameter IntWrapper) (*http.Request, error)

PostRequiredIntegerPropertyPreparer prepares the PostRequiredIntegerProperty request.

func (ExplicitClient) PostRequiredIntegerPropertyResponder

func (client ExplicitClient) PostRequiredIntegerPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredIntegerPropertyResponder handles the response to the PostRequiredIntegerProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredIntegerPropertySender

func (client ExplicitClient) PostRequiredIntegerPropertySender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredStringHeader

func (client ExplicitClient) PostRequiredStringHeader(ctx context.Context, headerParameter string) (result autorest.Response, err error)

PostRequiredStringHeader test explicitly required string. Please put a header 'headerParameter' => null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredStringHeaderPreparer

func (client ExplicitClient) PostRequiredStringHeaderPreparer(ctx context.Context, headerParameter string) (*http.Request, error)

PostRequiredStringHeaderPreparer prepares the PostRequiredStringHeader request.

func (ExplicitClient) PostRequiredStringHeaderResponder

func (client ExplicitClient) PostRequiredStringHeaderResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredStringHeaderResponder handles the response to the PostRequiredStringHeader request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredStringHeaderSender

func (client ExplicitClient) PostRequiredStringHeaderSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredStringParameter

func (client ExplicitClient) PostRequiredStringParameter(ctx context.Context, bodyParameter string) (result autorest.Response, err error)

PostRequiredStringParameter test explicitly required string. Please put null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredStringParameterPreparer

func (client ExplicitClient) PostRequiredStringParameterPreparer(ctx context.Context, bodyParameter string) (*http.Request, error)

PostRequiredStringParameterPreparer prepares the PostRequiredStringParameter request.

func (ExplicitClient) PostRequiredStringParameterResponder

func (client ExplicitClient) PostRequiredStringParameterResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredStringParameterResponder handles the response to the PostRequiredStringParameter request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredStringParameterSender

func (client ExplicitClient) PostRequiredStringParameterSender(req *http.Request) (*http.Response, error)

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

func (ExplicitClient) PostRequiredStringProperty

func (client ExplicitClient) PostRequiredStringProperty(ctx context.Context, bodyParameter StringWrapper) (result autorest.Response, err error)

PostRequiredStringProperty test explicitly required string. Please put a valid string-wrapper with 'value' = null and the client library should throw before the request is sent.

func (ExplicitClient) PostRequiredStringPropertyPreparer

func (client ExplicitClient) PostRequiredStringPropertyPreparer(ctx context.Context, bodyParameter StringWrapper) (*http.Request, error)

PostRequiredStringPropertyPreparer prepares the PostRequiredStringProperty request.

func (ExplicitClient) PostRequiredStringPropertyResponder

func (client ExplicitClient) PostRequiredStringPropertyResponder(resp *http.Response) (result autorest.Response, err error)

PostRequiredStringPropertyResponder handles the response to the PostRequiredStringProperty request. The method always closes the http.Response Body.

func (ExplicitClient) PostRequiredStringPropertySender

func (client ExplicitClient) PostRequiredStringPropertySender(req *http.Request) (*http.Response, error)

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

type ImplicitClient

type ImplicitClient struct {
	BaseClient
}

ImplicitClient is the test Infrastructure for AutoRest

func NewImplicitClient

func NewImplicitClient(requiredGlobalPath string, requiredGlobalQuery string, optionalGlobalQuery *int32) ImplicitClient

NewImplicitClient creates an instance of the ImplicitClient client.

func NewImplicitClientWithBaseURI

func NewImplicitClientWithBaseURI(baseURI string, requiredGlobalPath string, requiredGlobalQuery string, optionalGlobalQuery *int32) ImplicitClient

NewImplicitClientWithBaseURI creates an instance of the ImplicitClient 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 (ImplicitClient) GetOptionalGlobalQuery

func (client ImplicitClient) GetOptionalGlobalQuery(ctx context.Context) (result autorest.Response, err error)

GetOptionalGlobalQuery test implicitly optional query parameter

func (ImplicitClient) GetOptionalGlobalQueryPreparer

func (client ImplicitClient) GetOptionalGlobalQueryPreparer(ctx context.Context) (*http.Request, error)

GetOptionalGlobalQueryPreparer prepares the GetOptionalGlobalQuery request.

func (ImplicitClient) GetOptionalGlobalQueryResponder

func (client ImplicitClient) GetOptionalGlobalQueryResponder(resp *http.Response) (result autorest.Response, err error)

GetOptionalGlobalQueryResponder handles the response to the GetOptionalGlobalQuery request. The method always closes the http.Response Body.

func (ImplicitClient) GetOptionalGlobalQuerySender

func (client ImplicitClient) GetOptionalGlobalQuerySender(req *http.Request) (*http.Response, error)

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

func (ImplicitClient) GetRequiredGlobalPath

func (client ImplicitClient) GetRequiredGlobalPath(ctx context.Context) (result autorest.Response, err error)

GetRequiredGlobalPath test implicitly required path parameter

func (ImplicitClient) GetRequiredGlobalPathPreparer

func (client ImplicitClient) GetRequiredGlobalPathPreparer(ctx context.Context) (*http.Request, error)

GetRequiredGlobalPathPreparer prepares the GetRequiredGlobalPath request.

func (ImplicitClient) GetRequiredGlobalPathResponder

func (client ImplicitClient) GetRequiredGlobalPathResponder(resp *http.Response) (result autorest.Response, err error)

GetRequiredGlobalPathResponder handles the response to the GetRequiredGlobalPath request. The method always closes the http.Response Body.

func (ImplicitClient) GetRequiredGlobalPathSender

func (client ImplicitClient) GetRequiredGlobalPathSender(req *http.Request) (*http.Response, error)

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

func (ImplicitClient) GetRequiredGlobalQuery

func (client ImplicitClient) GetRequiredGlobalQuery(ctx context.Context) (result autorest.Response, err error)

GetRequiredGlobalQuery test implicitly required query parameter

func (ImplicitClient) GetRequiredGlobalQueryPreparer

func (client ImplicitClient) GetRequiredGlobalQueryPreparer(ctx context.Context) (*http.Request, error)

GetRequiredGlobalQueryPreparer prepares the GetRequiredGlobalQuery request.

func (ImplicitClient) GetRequiredGlobalQueryResponder

func (client ImplicitClient) GetRequiredGlobalQueryResponder(resp *http.Response) (result autorest.Response, err error)

GetRequiredGlobalQueryResponder handles the response to the GetRequiredGlobalQuery request. The method always closes the http.Response Body.

func (ImplicitClient) GetRequiredGlobalQuerySender

func (client ImplicitClient) GetRequiredGlobalQuerySender(req *http.Request) (*http.Response, error)

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

func (ImplicitClient) GetRequiredPath

func (client ImplicitClient) GetRequiredPath(ctx context.Context, pathParameter string) (result autorest.Response, err error)

GetRequiredPath test implicitly required path parameter

func (ImplicitClient) GetRequiredPathPreparer

func (client ImplicitClient) GetRequiredPathPreparer(ctx context.Context, pathParameter string) (*http.Request, error)

GetRequiredPathPreparer prepares the GetRequiredPath request.

func (ImplicitClient) GetRequiredPathResponder

func (client ImplicitClient) GetRequiredPathResponder(resp *http.Response) (result autorest.Response, err error)

GetRequiredPathResponder handles the response to the GetRequiredPath request. The method always closes the http.Response Body.

func (ImplicitClient) GetRequiredPathSender

func (client ImplicitClient) GetRequiredPathSender(req *http.Request) (*http.Response, error)

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

func (ImplicitClient) PutOptionalBody

func (client ImplicitClient) PutOptionalBody(ctx context.Context, bodyParameter string) (result autorest.Response, err error)

PutOptionalBody test implicitly optional body parameter

func (ImplicitClient) PutOptionalBodyPreparer

func (client ImplicitClient) PutOptionalBodyPreparer(ctx context.Context, bodyParameter string) (*http.Request, error)

PutOptionalBodyPreparer prepares the PutOptionalBody request.

func (ImplicitClient) PutOptionalBodyResponder

func (client ImplicitClient) PutOptionalBodyResponder(resp *http.Response) (result autorest.Response, err error)

PutOptionalBodyResponder handles the response to the PutOptionalBody request. The method always closes the http.Response Body.

func (ImplicitClient) PutOptionalBodySender

func (client ImplicitClient) PutOptionalBodySender(req *http.Request) (*http.Response, error)

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

func (ImplicitClient) PutOptionalHeader

func (client ImplicitClient) PutOptionalHeader(ctx context.Context, queryParameter string) (result autorest.Response, err error)

PutOptionalHeader test implicitly optional header parameter

func (ImplicitClient) PutOptionalHeaderPreparer

func (client ImplicitClient) PutOptionalHeaderPreparer(ctx context.Context, queryParameter string) (*http.Request, error)

PutOptionalHeaderPreparer prepares the PutOptionalHeader request.

func (ImplicitClient) PutOptionalHeaderResponder

func (client ImplicitClient) PutOptionalHeaderResponder(resp *http.Response) (result autorest.Response, err error)

PutOptionalHeaderResponder handles the response to the PutOptionalHeader request. The method always closes the http.Response Body.

func (ImplicitClient) PutOptionalHeaderSender

func (client ImplicitClient) PutOptionalHeaderSender(req *http.Request) (*http.Response, error)

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

func (ImplicitClient) PutOptionalQuery

func (client ImplicitClient) PutOptionalQuery(ctx context.Context, queryParameter string) (result autorest.Response, err error)

PutOptionalQuery test implicitly optional query parameter

func (ImplicitClient) PutOptionalQueryPreparer

func (client ImplicitClient) PutOptionalQueryPreparer(ctx context.Context, queryParameter string) (*http.Request, error)

PutOptionalQueryPreparer prepares the PutOptionalQuery request.

func (ImplicitClient) PutOptionalQueryResponder

func (client ImplicitClient) PutOptionalQueryResponder(resp *http.Response) (result autorest.Response, err error)

PutOptionalQueryResponder handles the response to the PutOptionalQuery request. The method always closes the http.Response Body.

func (ImplicitClient) PutOptionalQuerySender

func (client ImplicitClient) PutOptionalQuerySender(req *http.Request) (*http.Response, error)

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

type IntOptionalWrapper

type IntOptionalWrapper struct {
	Value *int32 `json:"value,omitempty"`
}

IntOptionalWrapper ...

type IntWrapper

type IntWrapper struct {
	Value *int32 `json:"value,omitempty"`
}

IntWrapper ...

type Product

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

Product ...

type StringOptionalWrapper

type StringOptionalWrapper struct {
	Value *string `json:"value,omitempty"`
}

StringOptionalWrapper ...

type StringWrapper

type StringWrapper struct {
	Value *string `json:"value,omitempty"`
}

StringWrapper ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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