formdatagroup

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 formdatagroup implements the Azure ARM Formdatagroup service API version 1.0.0.

Test Infrastructure for AutoRest Swagger BAT

Index

Constants

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

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 Error

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

Error ...

type FormdataClient

type FormdataClient struct {
	BaseClient
}

FormdataClient is the test Infrastructure for AutoRest Swagger BAT

func NewFormdataClient

func NewFormdataClient() FormdataClient

NewFormdataClient creates an instance of the FormdataClient client.

func NewFormdataClientWithBaseURI

func NewFormdataClientWithBaseURI(baseURI string) FormdataClient

NewFormdataClientWithBaseURI creates an instance of the FormdataClient 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 (FormdataClient) UploadFile

func (client FormdataClient) UploadFile(ctx context.Context, fileContent io.ReadCloser, fileName string) (result ReadCloser, err error)

UploadFile upload file Parameters: fileContent - file to upload. fileName - file name to upload. Name has to be spelled exactly as written here.

func (FormdataClient) UploadFilePreparer

func (client FormdataClient) UploadFilePreparer(ctx context.Context, fileContent io.ReadCloser, fileName string) (*http.Request, error)

UploadFilePreparer prepares the UploadFile request.

func (FormdataClient) UploadFileResponder

func (client FormdataClient) UploadFileResponder(resp *http.Response) (result ReadCloser, err error)

UploadFileResponder handles the response to the UploadFile request. The method always closes the http.Response Body.

func (FormdataClient) UploadFileSender

func (client FormdataClient) UploadFileSender(req *http.Request) (*http.Response, error)

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

func (FormdataClient) UploadFileViaBody

func (client FormdataClient) UploadFileViaBody(ctx context.Context, fileContent io.ReadCloser) (result ReadCloser, err error)

UploadFileViaBody upload file Parameters: fileContent - file to upload.

func (FormdataClient) UploadFileViaBodyPreparer

func (client FormdataClient) UploadFileViaBodyPreparer(ctx context.Context, fileContent io.ReadCloser) (*http.Request, error)

UploadFileViaBodyPreparer prepares the UploadFileViaBody request.

func (FormdataClient) UploadFileViaBodyResponder

func (client FormdataClient) UploadFileViaBodyResponder(resp *http.Response) (result ReadCloser, err error)

UploadFileViaBodyResponder handles the response to the UploadFileViaBody request. The method always closes the http.Response Body.

func (FormdataClient) UploadFileViaBodySender

func (client FormdataClient) UploadFileViaBodySender(req *http.Request) (*http.Response, error)

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

type ReadCloser

type ReadCloser struct {
	autorest.Response `json:"-"`
	Value             *io.ReadCloser `json:"value,omitempty"`
}

ReadCloser ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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