Documentation ¶
Overview ¶
Package formdatagroup implements the Azure ARM Formdatagroup service API version 1.0.0.
Test Infrastructure for AutoRest Swagger BAT
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type Error
- type FormdataClient
- func (client FormdataClient) UploadFile(ctx context.Context, fileContent io.ReadCloser, fileName string) (result ReadCloser, err error)
- func (client FormdataClient) UploadFilePreparer(ctx context.Context, fileContent io.ReadCloser, fileName string) (*http.Request, error)
- func (client FormdataClient) UploadFileResponder(resp *http.Response) (result ReadCloser, err error)
- func (client FormdataClient) UploadFileSender(req *http.Request) (*http.Response, error)
- func (client FormdataClient) UploadFileViaBody(ctx context.Context, fileContent io.ReadCloser) (result ReadCloser, err error)
- func (client FormdataClient) UploadFileViaBodyPreparer(ctx context.Context, fileContent io.ReadCloser) (*http.Request, error)
- func (client FormdataClient) UploadFileViaBodyResponder(resp *http.Response) (result ReadCloser, err error)
- func (client FormdataClient) UploadFileViaBodySender(req *http.Request) (*http.Response, error)
- type ReadCloser
Constants ¶
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 ¶
BaseClient is the base client for Formdatagroup.
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 ¶
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 ¶
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 ...