Documentation ¶
Overview ¶
Package durationgroup implements the Azure ARM Durationgroup service API version 1.0.0.
Test Infrastructure for AutoRest
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type DurationClient
- func (client DurationClient) GetInvalid(ctx context.Context) (result TimeSpan, err error)
- func (client DurationClient) GetInvalidPreparer(ctx context.Context) (*http.Request, error)
- func (client DurationClient) GetInvalidResponder(resp *http.Response) (result TimeSpan, err error)
- func (client DurationClient) GetInvalidSender(req *http.Request) (*http.Response, error)
- func (client DurationClient) GetNull(ctx context.Context) (result TimeSpan, err error)
- func (client DurationClient) GetNullPreparer(ctx context.Context) (*http.Request, error)
- func (client DurationClient) GetNullResponder(resp *http.Response) (result TimeSpan, err error)
- func (client DurationClient) GetNullSender(req *http.Request) (*http.Response, error)
- func (client DurationClient) GetPositiveDuration(ctx context.Context) (result TimeSpan, err error)
- func (client DurationClient) GetPositiveDurationPreparer(ctx context.Context) (*http.Request, error)
- func (client DurationClient) GetPositiveDurationResponder(resp *http.Response) (result TimeSpan, err error)
- func (client DurationClient) GetPositiveDurationSender(req *http.Request) (*http.Response, error)
- func (client DurationClient) PutPositiveDuration(ctx context.Context, durationBody string) (result autorest.Response, err error)
- func (client DurationClient) PutPositiveDurationPreparer(ctx context.Context, durationBody string) (*http.Request, error)
- func (client DurationClient) PutPositiveDurationResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DurationClient) PutPositiveDurationSender(req *http.Request) (*http.Response, error)
- type Error
- type TimeSpan
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Durationgroup
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 Durationgroup.
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 DurationClient ¶
type DurationClient struct {
BaseClient
}
DurationClient is the test Infrastructure for AutoRest
func NewDurationClient ¶
func NewDurationClient() DurationClient
NewDurationClient creates an instance of the DurationClient client.
func NewDurationClientWithBaseURI ¶
func NewDurationClientWithBaseURI(baseURI string) DurationClient
NewDurationClientWithBaseURI creates an instance of the DurationClient 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 (DurationClient) GetInvalid ¶
func (client DurationClient) GetInvalid(ctx context.Context) (result TimeSpan, err error)
GetInvalid get an invalid duration value
func (DurationClient) GetInvalidPreparer ¶
GetInvalidPreparer prepares the GetInvalid request.
func (DurationClient) GetInvalidResponder ¶
func (client DurationClient) GetInvalidResponder(resp *http.Response) (result TimeSpan, err error)
GetInvalidResponder handles the response to the GetInvalid request. The method always closes the http.Response Body.
func (DurationClient) GetInvalidSender ¶
GetInvalidSender sends the GetInvalid request. The method will close the http.Response Body if it receives an error.
func (DurationClient) GetNull ¶
func (client DurationClient) GetNull(ctx context.Context) (result TimeSpan, err error)
GetNull get null duration value
func (DurationClient) GetNullPreparer ¶
GetNullPreparer prepares the GetNull request.
func (DurationClient) GetNullResponder ¶
func (client DurationClient) GetNullResponder(resp *http.Response) (result TimeSpan, err error)
GetNullResponder handles the response to the GetNull request. The method always closes the http.Response Body.
func (DurationClient) GetNullSender ¶
GetNullSender sends the GetNull request. The method will close the http.Response Body if it receives an error.
func (DurationClient) GetPositiveDuration ¶
func (client DurationClient) GetPositiveDuration(ctx context.Context) (result TimeSpan, err error)
GetPositiveDuration get a positive duration value
func (DurationClient) GetPositiveDurationPreparer ¶
func (client DurationClient) GetPositiveDurationPreparer(ctx context.Context) (*http.Request, error)
GetPositiveDurationPreparer prepares the GetPositiveDuration request.
func (DurationClient) GetPositiveDurationResponder ¶
func (client DurationClient) GetPositiveDurationResponder(resp *http.Response) (result TimeSpan, err error)
GetPositiveDurationResponder handles the response to the GetPositiveDuration request. The method always closes the http.Response Body.
func (DurationClient) GetPositiveDurationSender ¶
GetPositiveDurationSender sends the GetPositiveDuration request. The method will close the http.Response Body if it receives an error.
func (DurationClient) PutPositiveDuration ¶
func (client DurationClient) PutPositiveDuration(ctx context.Context, durationBody string) (result autorest.Response, err error)
PutPositiveDuration put a positive duration value
func (DurationClient) PutPositiveDurationPreparer ¶
func (client DurationClient) PutPositiveDurationPreparer(ctx context.Context, durationBody string) (*http.Request, error)
PutPositiveDurationPreparer prepares the PutPositiveDuration request.
func (DurationClient) PutPositiveDurationResponder ¶
func (client DurationClient) PutPositiveDurationResponder(resp *http.Response) (result autorest.Response, err error)
PutPositiveDurationResponder handles the response to the PutPositiveDuration request. The method always closes the http.Response Body.
func (DurationClient) PutPositiveDurationSender ¶
PutPositiveDurationSender sends the PutPositiveDuration request. The method will close the http.Response Body if it receives an error.