durationgroup

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

Documentation

Overview

Package durationgroup implements the Azure ARM Durationgroup service API version 1.0.0.

Test Infrastructure for AutoRest

Index

Constants

View Source
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

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Durationgroup.

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 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

func (client DurationClient) GetInvalidPreparer(ctx context.Context) (*http.Request, error)

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

func (client DurationClient) GetInvalidSender(req *http.Request) (*http.Response, error)

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

func (client DurationClient) GetNullPreparer(ctx context.Context) (*http.Request, error)

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

func (client DurationClient) GetNullSender(req *http.Request) (*http.Response, error)

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

func (client DurationClient) GetPositiveDurationSender(req *http.Request) (*http.Response, error)

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

func (client DurationClient) PutPositiveDurationSender(req *http.Request) (*http.Response, error)

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

type Error

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

Error ...

type TimeSpan

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

TimeSpan ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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