additionalproperties

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

Documentation

Overview

Package additionalproperties implements the Azure ARM Additionalproperties service API version 1.0.0.

Test Infrastructure for AutoRest

Index

Constants

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

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Additionalproperties.

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 CatAPTrue

type CatAPTrue struct {
	autorest.Response `json:"-"`
	Friendly          *bool `json:"friendly,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	ID                   *int32                 `json:"id,omitempty"`
	Name                 *string                `json:"name,omitempty"`
	// Status - READ-ONLY
	Status *bool `json:"status,omitempty"`
}

CatAPTrue ...

func (CatAPTrue) MarshalJSON

func (cat CatAPTrue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CatAPTrue.

func (*CatAPTrue) UnmarshalJSON

func (cat *CatAPTrue) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CatAPTrue struct.

type Error

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

Error ...

type PetAPInProperties

type PetAPInProperties struct {
	autorest.Response `json:"-"`
	ID                *int32  `json:"id,omitempty"`
	Name              *string `json:"name,omitempty"`
	// Status - READ-ONLY
	Status               *bool               `json:"status,omitempty"`
	AdditionalProperties map[string]*float64 `json:"additionalProperties"`
}

PetAPInProperties ...

func (PetAPInProperties) MarshalJSON

func (paip PetAPInProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PetAPInProperties.

type PetAPInPropertiesWithAPString

type PetAPInPropertiesWithAPString struct {
	autorest.Response `json:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]*string `json:""`
	ID                   *int32             `json:"id,omitempty"`
	Name                 *string            `json:"name,omitempty"`
	// Status - READ-ONLY
	Status                *bool               `json:"status,omitempty"`
	OdataLocation         *string             `json:"@odata.location,omitempty"`
	AdditionalProperties1 map[string]*float64 `json:"additionalProperties"`
}

PetAPInPropertiesWithAPString ...

func (PetAPInPropertiesWithAPString) MarshalJSON

func (paipwas PetAPInPropertiesWithAPString) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PetAPInPropertiesWithAPString.

func (*PetAPInPropertiesWithAPString) UnmarshalJSON

func (paipwas *PetAPInPropertiesWithAPString) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PetAPInPropertiesWithAPString struct.

type PetAPObject

type PetAPObject struct {
	autorest.Response `json:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	ID                   *int32                 `json:"id,omitempty"`
	Name                 *string                `json:"name,omitempty"`
	// Status - READ-ONLY
	Status *bool `json:"status,omitempty"`
}

PetAPObject ...

func (PetAPObject) MarshalJSON

func (pao PetAPObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PetAPObject.

func (*PetAPObject) UnmarshalJSON

func (pao *PetAPObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PetAPObject struct.

type PetAPString

type PetAPString struct {
	autorest.Response `json:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]*string `json:""`
	ID                   *int32             `json:"id,omitempty"`
	Name                 *string            `json:"name,omitempty"`
	// Status - READ-ONLY
	Status *bool `json:"status,omitempty"`
}

PetAPString ...

func (PetAPString) MarshalJSON

func (pas PetAPString) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PetAPString.

func (*PetAPString) UnmarshalJSON

func (pas *PetAPString) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PetAPString struct.

type PetAPTrue

type PetAPTrue struct {
	autorest.Response `json:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	ID                   *int32                 `json:"id,omitempty"`
	Name                 *string                `json:"name,omitempty"`
	// Status - READ-ONLY
	Status *bool `json:"status,omitempty"`
}

PetAPTrue ...

func (PetAPTrue) MarshalJSON

func (pat PetAPTrue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PetAPTrue.

func (*PetAPTrue) UnmarshalJSON

func (pat *PetAPTrue) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PetAPTrue struct.

type PetsClient

type PetsClient struct {
	BaseClient
}

PetsClient is the test Infrastructure for AutoRest

func NewPetsClient

func NewPetsClient() PetsClient

NewPetsClient creates an instance of the PetsClient client.

func NewPetsClientWithBaseURI

func NewPetsClientWithBaseURI(baseURI string) PetsClient

NewPetsClientWithBaseURI creates an instance of the PetsClient 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 (PetsClient) CreateAPInProperties

func (client PetsClient) CreateAPInProperties(ctx context.Context, createParameters PetAPInProperties) (result PetAPInProperties, err error)

CreateAPInProperties create a Pet which contains more properties than what is defined.

func (PetsClient) CreateAPInPropertiesPreparer

func (client PetsClient) CreateAPInPropertiesPreparer(ctx context.Context, createParameters PetAPInProperties) (*http.Request, error)

CreateAPInPropertiesPreparer prepares the CreateAPInProperties request.

func (PetsClient) CreateAPInPropertiesResponder

func (client PetsClient) CreateAPInPropertiesResponder(resp *http.Response) (result PetAPInProperties, err error)

CreateAPInPropertiesResponder handles the response to the CreateAPInProperties request. The method always closes the http.Response Body.

func (PetsClient) CreateAPInPropertiesSender

func (client PetsClient) CreateAPInPropertiesSender(req *http.Request) (*http.Response, error)

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

func (PetsClient) CreateAPInPropertiesWithAPString

func (client PetsClient) CreateAPInPropertiesWithAPString(ctx context.Context, createParameters PetAPInPropertiesWithAPString) (result PetAPInPropertiesWithAPString, err error)

CreateAPInPropertiesWithAPString create a Pet which contains more properties than what is defined.

func (PetsClient) CreateAPInPropertiesWithAPStringPreparer

func (client PetsClient) CreateAPInPropertiesWithAPStringPreparer(ctx context.Context, createParameters PetAPInPropertiesWithAPString) (*http.Request, error)

CreateAPInPropertiesWithAPStringPreparer prepares the CreateAPInPropertiesWithAPString request.

func (PetsClient) CreateAPInPropertiesWithAPStringResponder

func (client PetsClient) CreateAPInPropertiesWithAPStringResponder(resp *http.Response) (result PetAPInPropertiesWithAPString, err error)

CreateAPInPropertiesWithAPStringResponder handles the response to the CreateAPInPropertiesWithAPString request. The method always closes the http.Response Body.

func (PetsClient) CreateAPInPropertiesWithAPStringSender

func (client PetsClient) CreateAPInPropertiesWithAPStringSender(req *http.Request) (*http.Response, error)

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

func (PetsClient) CreateAPObject

func (client PetsClient) CreateAPObject(ctx context.Context, createParameters PetAPObject) (result PetAPObject, err error)

CreateAPObject create a Pet which contains more properties than what is defined.

func (PetsClient) CreateAPObjectPreparer

func (client PetsClient) CreateAPObjectPreparer(ctx context.Context, createParameters PetAPObject) (*http.Request, error)

CreateAPObjectPreparer prepares the CreateAPObject request.

func (PetsClient) CreateAPObjectResponder

func (client PetsClient) CreateAPObjectResponder(resp *http.Response) (result PetAPObject, err error)

CreateAPObjectResponder handles the response to the CreateAPObject request. The method always closes the http.Response Body.

func (PetsClient) CreateAPObjectSender

func (client PetsClient) CreateAPObjectSender(req *http.Request) (*http.Response, error)

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

func (PetsClient) CreateAPString

func (client PetsClient) CreateAPString(ctx context.Context, createParameters PetAPString) (result PetAPString, err error)

CreateAPString create a Pet which contains more properties than what is defined.

func (PetsClient) CreateAPStringPreparer

func (client PetsClient) CreateAPStringPreparer(ctx context.Context, createParameters PetAPString) (*http.Request, error)

CreateAPStringPreparer prepares the CreateAPString request.

func (PetsClient) CreateAPStringResponder

func (client PetsClient) CreateAPStringResponder(resp *http.Response) (result PetAPString, err error)

CreateAPStringResponder handles the response to the CreateAPString request. The method always closes the http.Response Body.

func (PetsClient) CreateAPStringSender

func (client PetsClient) CreateAPStringSender(req *http.Request) (*http.Response, error)

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

func (PetsClient) CreateAPTrue

func (client PetsClient) CreateAPTrue(ctx context.Context, createParameters PetAPTrue) (result PetAPTrue, err error)

CreateAPTrue create a Pet which contains more properties than what is defined.

func (PetsClient) CreateAPTruePreparer

func (client PetsClient) CreateAPTruePreparer(ctx context.Context, createParameters PetAPTrue) (*http.Request, error)

CreateAPTruePreparer prepares the CreateAPTrue request.

func (PetsClient) CreateAPTrueResponder

func (client PetsClient) CreateAPTrueResponder(resp *http.Response) (result PetAPTrue, err error)

CreateAPTrueResponder handles the response to the CreateAPTrue request. The method always closes the http.Response Body.

func (PetsClient) CreateAPTrueSender

func (client PetsClient) CreateAPTrueSender(req *http.Request) (*http.Response, error)

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

func (PetsClient) CreateCatAPTrue

func (client PetsClient) CreateCatAPTrue(ctx context.Context, createParameters CatAPTrue) (result CatAPTrue, err error)

CreateCatAPTrue create a CatAPTrue which contains more properties than what is defined.

func (PetsClient) CreateCatAPTruePreparer

func (client PetsClient) CreateCatAPTruePreparer(ctx context.Context, createParameters CatAPTrue) (*http.Request, error)

CreateCatAPTruePreparer prepares the CreateCatAPTrue request.

func (PetsClient) CreateCatAPTrueResponder

func (client PetsClient) CreateCatAPTrueResponder(resp *http.Response) (result CatAPTrue, err error)

CreateCatAPTrueResponder handles the response to the CreateCatAPTrue request. The method always closes the http.Response Body.

func (PetsClient) CreateCatAPTrueSender

func (client PetsClient) CreateCatAPTrueSender(req *http.Request) (*http.Response, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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