paginggroup

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

Long-running Operation for AutoRest

Index

Constants

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

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 OdataProductResult

type OdataProductResult struct {
	autorest.Response `json:"-"`
	Values            *[]Product `json:"values,omitempty"`
	OdataNextLink     *string    `json:"odata.nextLink,omitempty"`
}

OdataProductResult ...

func (OdataProductResult) IsEmpty

func (opr OdataProductResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OdataProductResultIterator

type OdataProductResultIterator struct {
	// contains filtered or unexported fields
}

OdataProductResultIterator provides access to a complete listing of Product values.

func NewOdataProductResultIterator

func NewOdataProductResultIterator(page OdataProductResultPage) OdataProductResultIterator

Creates a new instance of the OdataProductResultIterator type.

func (*OdataProductResultIterator) Next

func (iter *OdataProductResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OdataProductResultIterator) NextWithContext

func (iter *OdataProductResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OdataProductResultIterator) NotDone

func (iter OdataProductResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OdataProductResultIterator) Response

Response returns the raw server response from the last page request.

func (OdataProductResultIterator) Value

func (iter OdataProductResultIterator) Value() Product

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OdataProductResultPage

type OdataProductResultPage struct {
	// contains filtered or unexported fields
}

OdataProductResultPage contains a page of Product values.

func NewOdataProductResultPage

func NewOdataProductResultPage(cur OdataProductResult, getNextPage func(context.Context, OdataProductResult) (OdataProductResult, error)) OdataProductResultPage

Creates a new instance of the OdataProductResultPage type.

func (*OdataProductResultPage) Next

func (page *OdataProductResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OdataProductResultPage) NextWithContext

func (page *OdataProductResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OdataProductResultPage) NotDone

func (page OdataProductResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OdataProductResultPage) Response

Response returns the raw server response from the last page request.

func (OdataProductResultPage) Values

func (page OdataProductResultPage) Values() []Product

Values returns the slice of values for the current page or nil if there are no values.

type OperationResult

type OperationResult struct {
	// Status - The status of the request. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK'
	Status Status `json:"status,omitempty"`
}

OperationResult ...

type PagingClient

type PagingClient struct {
	BaseClient
}

PagingClient is the long-running Operation for AutoRest

func NewPagingClient

func NewPagingClient() PagingClient

NewPagingClient creates an instance of the PagingClient client.

func NewPagingClientWithBaseURI

func NewPagingClientWithBaseURI(baseURI string) PagingClient

NewPagingClientWithBaseURI creates an instance of the PagingClient 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 (PagingClient) GetMultiplePages

func (client PagingClient) GetMultiplePages(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (result ProductResultPage, err error)

GetMultiplePages a paging operation that includes a nextLink that has 10 pages Parameters: maxresults - sets the maximum number of items to return in the response. timeout - sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.

func (PagingClient) GetMultiplePagesComplete

func (client PagingClient) GetMultiplePagesComplete(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (result ProductResultIterator, err error)

GetMultiplePagesComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesFailure

func (client PagingClient) GetMultiplePagesFailure(ctx context.Context) (result ProductResultPage, err error)

GetMultiplePagesFailure a paging operation that receives a 400 on the second call

func (PagingClient) GetMultiplePagesFailureComplete

func (client PagingClient) GetMultiplePagesFailureComplete(ctx context.Context) (result ProductResultIterator, err error)

GetMultiplePagesFailureComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesFailurePreparer

func (client PagingClient) GetMultiplePagesFailurePreparer(ctx context.Context) (*http.Request, error)

GetMultiplePagesFailurePreparer prepares the GetMultiplePagesFailure request.

func (PagingClient) GetMultiplePagesFailureResponder

func (client PagingClient) GetMultiplePagesFailureResponder(resp *http.Response) (result ProductResult, err error)

GetMultiplePagesFailureResponder handles the response to the GetMultiplePagesFailure request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesFailureSender

func (client PagingClient) GetMultiplePagesFailureSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetMultiplePagesFailureURI

func (client PagingClient) GetMultiplePagesFailureURI(ctx context.Context) (result ProductResultPage, err error)

GetMultiplePagesFailureURI a paging operation that receives an invalid nextLink

func (PagingClient) GetMultiplePagesFailureURIComplete

func (client PagingClient) GetMultiplePagesFailureURIComplete(ctx context.Context) (result ProductResultIterator, err error)

GetMultiplePagesFailureURIComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesFailureURIPreparer

func (client PagingClient) GetMultiplePagesFailureURIPreparer(ctx context.Context) (*http.Request, error)

GetMultiplePagesFailureURIPreparer prepares the GetMultiplePagesFailureURI request.

func (PagingClient) GetMultiplePagesFailureURIResponder

func (client PagingClient) GetMultiplePagesFailureURIResponder(resp *http.Response) (result ProductResult, err error)

GetMultiplePagesFailureURIResponder handles the response to the GetMultiplePagesFailureURI request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesFailureURISender

func (client PagingClient) GetMultiplePagesFailureURISender(req *http.Request) (*http.Response, error)

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

func (client PagingClient) GetMultiplePagesFragmentNextLink(ctx context.Context, APIVersion string, tenant string) (result OdataProductResultPage, err error)

GetMultiplePagesFragmentNextLink a paging operation that doesn't return a full URL, just a fragment Parameters: APIVersion - sets the api version to use. tenant - sets the tenant to use.

func (PagingClient) GetMultiplePagesFragmentNextLinkComplete

func (client PagingClient) GetMultiplePagesFragmentNextLinkComplete(ctx context.Context, APIVersion string, tenant string) (result OdataProductResultIterator, err error)

GetMultiplePagesFragmentNextLinkComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesFragmentNextLinkPreparer

func (client PagingClient) GetMultiplePagesFragmentNextLinkPreparer(ctx context.Context, APIVersion string, tenant string) (*http.Request, error)

GetMultiplePagesFragmentNextLinkPreparer prepares the GetMultiplePagesFragmentNextLink request.

func (PagingClient) GetMultiplePagesFragmentNextLinkResponder

func (client PagingClient) GetMultiplePagesFragmentNextLinkResponder(resp *http.Response) (result OdataProductResult, err error)

GetMultiplePagesFragmentNextLinkResponder handles the response to the GetMultiplePagesFragmentNextLink request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesFragmentNextLinkSender

func (client PagingClient) GetMultiplePagesFragmentNextLinkSender(req *http.Request) (*http.Response, error)

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

func (client PagingClient) GetMultiplePagesFragmentWithGroupingNextLink(ctx context.Context, APIVersion string, tenant string) (result OdataProductResultPage, err error)

GetMultiplePagesFragmentWithGroupingNextLink a paging operation that doesn't return a full URL, just a fragment with parameters grouped Parameters: APIVersion - sets the api version to use. tenant - sets the tenant to use.

func (PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkComplete

func (client PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkComplete(ctx context.Context, APIVersion string, tenant string) (result OdataProductResultIterator, err error)

GetMultiplePagesFragmentWithGroupingNextLinkComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkPreparer

func (client PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkPreparer(ctx context.Context, APIVersion string, tenant string) (*http.Request, error)

GetMultiplePagesFragmentWithGroupingNextLinkPreparer prepares the GetMultiplePagesFragmentWithGroupingNextLink request.

func (PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkResponder

func (client PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkResponder(resp *http.Response) (result OdataProductResult, err error)

GetMultiplePagesFragmentWithGroupingNextLinkResponder handles the response to the GetMultiplePagesFragmentWithGroupingNextLink request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkSender

func (client PagingClient) GetMultiplePagesFragmentWithGroupingNextLinkSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetMultiplePagesLRO

func (client PagingClient) GetMultiplePagesLRO(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (result PagingGetMultiplePagesLROFuture, err error)

GetMultiplePagesLRO a long-running paging operation that includes a nextLink that has 10 pages Parameters: maxresults - sets the maximum number of items to return in the response. timeout - sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.

func (PagingClient) GetMultiplePagesLROComplete

func (client PagingClient) GetMultiplePagesLROComplete(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (result PagingGetMultiplePagesLROAllFuture, err error)

GetMultiplePagesLROComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesLROPreparer

func (client PagingClient) GetMultiplePagesLROPreparer(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (*http.Request, error)

GetMultiplePagesLROPreparer prepares the GetMultiplePagesLRO request.

func (PagingClient) GetMultiplePagesLROResponder

func (client PagingClient) GetMultiplePagesLROResponder(resp *http.Response) (result ProductResultPage, err error)

GetMultiplePagesLROResponder handles the response to the GetMultiplePagesLRO request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesLROSender

func (client PagingClient) GetMultiplePagesLROSender(req *http.Request) (future PagingGetMultiplePagesLROFuture, err error)

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

func (PagingClient) GetMultiplePagesPreparer

func (client PagingClient) GetMultiplePagesPreparer(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (*http.Request, error)

GetMultiplePagesPreparer prepares the GetMultiplePages request.

func (PagingClient) GetMultiplePagesResponder

func (client PagingClient) GetMultiplePagesResponder(resp *http.Response) (result ProductResult, err error)

GetMultiplePagesResponder handles the response to the GetMultiplePages request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesRetryFirst

func (client PagingClient) GetMultiplePagesRetryFirst(ctx context.Context) (result ProductResultPage, err error)

GetMultiplePagesRetryFirst a paging operation that fails on the first call with 500 and then retries and then get a response including a nextLink that has 10 pages

func (PagingClient) GetMultiplePagesRetryFirstComplete

func (client PagingClient) GetMultiplePagesRetryFirstComplete(ctx context.Context) (result ProductResultIterator, err error)

GetMultiplePagesRetryFirstComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesRetryFirstPreparer

func (client PagingClient) GetMultiplePagesRetryFirstPreparer(ctx context.Context) (*http.Request, error)

GetMultiplePagesRetryFirstPreparer prepares the GetMultiplePagesRetryFirst request.

func (PagingClient) GetMultiplePagesRetryFirstResponder

func (client PagingClient) GetMultiplePagesRetryFirstResponder(resp *http.Response) (result ProductResult, err error)

GetMultiplePagesRetryFirstResponder handles the response to the GetMultiplePagesRetryFirst request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesRetryFirstSender

func (client PagingClient) GetMultiplePagesRetryFirstSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetMultiplePagesRetrySecond

func (client PagingClient) GetMultiplePagesRetrySecond(ctx context.Context) (result ProductResultPage, err error)

GetMultiplePagesRetrySecond a paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails first with 500. The client should retry and finish all 10 pages eventually.

func (PagingClient) GetMultiplePagesRetrySecondComplete

func (client PagingClient) GetMultiplePagesRetrySecondComplete(ctx context.Context) (result ProductResultIterator, err error)

GetMultiplePagesRetrySecondComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesRetrySecondPreparer

func (client PagingClient) GetMultiplePagesRetrySecondPreparer(ctx context.Context) (*http.Request, error)

GetMultiplePagesRetrySecondPreparer prepares the GetMultiplePagesRetrySecond request.

func (PagingClient) GetMultiplePagesRetrySecondResponder

func (client PagingClient) GetMultiplePagesRetrySecondResponder(resp *http.Response) (result ProductResult, err error)

GetMultiplePagesRetrySecondResponder handles the response to the GetMultiplePagesRetrySecond request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesRetrySecondSender

func (client PagingClient) GetMultiplePagesRetrySecondSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetMultiplePagesSender

func (client PagingClient) GetMultiplePagesSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetMultiplePagesWithOffset

func (client PagingClient) GetMultiplePagesWithOffset(ctx context.Context, offset int32, clientRequestID string, maxresults *int32, timeout *int32) (result ProductResultPage, err error)

GetMultiplePagesWithOffset a paging operation that includes a nextLink that has 10 pages Parameters: offset - offset of return value maxresults - sets the maximum number of items to return in the response. timeout - sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.

func (PagingClient) GetMultiplePagesWithOffsetComplete

func (client PagingClient) GetMultiplePagesWithOffsetComplete(ctx context.Context, offset int32, clientRequestID string, maxresults *int32, timeout *int32) (result ProductResultIterator, err error)

GetMultiplePagesWithOffsetComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetMultiplePagesWithOffsetPreparer

func (client PagingClient) GetMultiplePagesWithOffsetPreparer(ctx context.Context, offset int32, clientRequestID string, maxresults *int32, timeout *int32) (*http.Request, error)

GetMultiplePagesWithOffsetPreparer prepares the GetMultiplePagesWithOffset request.

func (PagingClient) GetMultiplePagesWithOffsetResponder

func (client PagingClient) GetMultiplePagesWithOffsetResponder(resp *http.Response) (result ProductResult, err error)

GetMultiplePagesWithOffsetResponder handles the response to the GetMultiplePagesWithOffset request. The method always closes the http.Response Body.

func (PagingClient) GetMultiplePagesWithOffsetSender

func (client PagingClient) GetMultiplePagesWithOffsetSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetNoItemNamePages

func (client PagingClient) GetNoItemNamePages(ctx context.Context) (result ProductResultValuePage, err error)

GetNoItemNamePages a paging operation that must return result of the default 'value' node.

func (PagingClient) GetNoItemNamePagesComplete

func (client PagingClient) GetNoItemNamePagesComplete(ctx context.Context) (result ProductResultValueIterator, err error)

GetNoItemNamePagesComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetNoItemNamePagesPreparer

func (client PagingClient) GetNoItemNamePagesPreparer(ctx context.Context) (*http.Request, error)

GetNoItemNamePagesPreparer prepares the GetNoItemNamePages request.

func (PagingClient) GetNoItemNamePagesResponder

func (client PagingClient) GetNoItemNamePagesResponder(resp *http.Response) (result ProductResultValue, err error)

GetNoItemNamePagesResponder handles the response to the GetNoItemNamePages request. The method always closes the http.Response Body.

func (PagingClient) GetNoItemNamePagesSender

func (client PagingClient) GetNoItemNamePagesSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetNullNextLinkNamePages

func (client PagingClient) GetNullNextLinkNamePages(ctx context.Context) (result ProductResult, err error)

GetNullNextLinkNamePages a paging operation that must ignore any kind of nextLink, and stop after page 1.

func (PagingClient) GetNullNextLinkNamePagesPreparer

func (client PagingClient) GetNullNextLinkNamePagesPreparer(ctx context.Context) (*http.Request, error)

GetNullNextLinkNamePagesPreparer prepares the GetNullNextLinkNamePages request.

func (PagingClient) GetNullNextLinkNamePagesResponder

func (client PagingClient) GetNullNextLinkNamePagesResponder(resp *http.Response) (result ProductResult, err error)

GetNullNextLinkNamePagesResponder handles the response to the GetNullNextLinkNamePages request. The method always closes the http.Response Body.

func (PagingClient) GetNullNextLinkNamePagesSender

func (client PagingClient) GetNullNextLinkNamePagesSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetOdataMultiplePages

func (client PagingClient) GetOdataMultiplePages(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (result OdataProductResultPage, err error)

GetOdataMultiplePages a paging operation that includes a nextLink in odata format that has 10 pages Parameters: maxresults - sets the maximum number of items to return in the response. timeout - sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.

func (PagingClient) GetOdataMultiplePagesComplete

func (client PagingClient) GetOdataMultiplePagesComplete(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (result OdataProductResultIterator, err error)

GetOdataMultiplePagesComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetOdataMultiplePagesPreparer

func (client PagingClient) GetOdataMultiplePagesPreparer(ctx context.Context, clientRequestID string, maxresults *int32, timeout *int32) (*http.Request, error)

GetOdataMultiplePagesPreparer prepares the GetOdataMultiplePages request.

func (PagingClient) GetOdataMultiplePagesResponder

func (client PagingClient) GetOdataMultiplePagesResponder(resp *http.Response) (result OdataProductResult, err error)

GetOdataMultiplePagesResponder handles the response to the GetOdataMultiplePages request. The method always closes the http.Response Body.

func (PagingClient) GetOdataMultiplePagesSender

func (client PagingClient) GetOdataMultiplePagesSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetSinglePages

func (client PagingClient) GetSinglePages(ctx context.Context) (result ProductResultPage, err error)

GetSinglePages a paging operation that finishes on the first call without a nextlink

func (PagingClient) GetSinglePagesComplete

func (client PagingClient) GetSinglePagesComplete(ctx context.Context) (result ProductResultIterator, err error)

GetSinglePagesComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetSinglePagesFailure

func (client PagingClient) GetSinglePagesFailure(ctx context.Context) (result ProductResultPage, err error)

GetSinglePagesFailure a paging operation that receives a 400 on the first call

func (PagingClient) GetSinglePagesFailureComplete

func (client PagingClient) GetSinglePagesFailureComplete(ctx context.Context) (result ProductResultIterator, err error)

GetSinglePagesFailureComplete enumerates all values, automatically crossing page boundaries as required.

func (PagingClient) GetSinglePagesFailurePreparer

func (client PagingClient) GetSinglePagesFailurePreparer(ctx context.Context) (*http.Request, error)

GetSinglePagesFailurePreparer prepares the GetSinglePagesFailure request.

func (PagingClient) GetSinglePagesFailureResponder

func (client PagingClient) GetSinglePagesFailureResponder(resp *http.Response) (result ProductResult, err error)

GetSinglePagesFailureResponder handles the response to the GetSinglePagesFailure request. The method always closes the http.Response Body.

func (PagingClient) GetSinglePagesFailureSender

func (client PagingClient) GetSinglePagesFailureSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) GetSinglePagesPreparer

func (client PagingClient) GetSinglePagesPreparer(ctx context.Context) (*http.Request, error)

GetSinglePagesPreparer prepares the GetSinglePages request.

func (PagingClient) GetSinglePagesResponder

func (client PagingClient) GetSinglePagesResponder(resp *http.Response) (result ProductResult, err error)

GetSinglePagesResponder handles the response to the GetSinglePages request. The method always closes the http.Response Body.

func (PagingClient) GetSinglePagesSender

func (client PagingClient) GetSinglePagesSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) NextFragment

func (client PagingClient) NextFragment(ctx context.Context, APIVersion string, tenant string, nextLink string) (result OdataProductResult, err error)

NextFragment a paging operation that doesn't return a full URL, just a fragment Parameters: APIVersion - sets the api version to use. tenant - sets the tenant to use. nextLink - next link for list operation.

func (PagingClient) NextFragmentPreparer

func (client PagingClient) NextFragmentPreparer(ctx context.Context, APIVersion string, tenant string, nextLink string) (*http.Request, error)

NextFragmentPreparer prepares the NextFragment request.

func (PagingClient) NextFragmentResponder

func (client PagingClient) NextFragmentResponder(resp *http.Response) (result OdataProductResult, err error)

NextFragmentResponder handles the response to the NextFragment request. The method always closes the http.Response Body.

func (PagingClient) NextFragmentSender

func (client PagingClient) NextFragmentSender(req *http.Request) (*http.Response, error)

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

func (PagingClient) NextFragmentWithGrouping

func (client PagingClient) NextFragmentWithGrouping(ctx context.Context, APIVersion string, tenant string, nextLink string) (result OdataProductResult, err error)

NextFragmentWithGrouping a paging operation that doesn't return a full URL, just a fragment Parameters: APIVersion - sets the api version to use. tenant - sets the tenant to use. nextLink - next link for list operation.

func (PagingClient) NextFragmentWithGroupingPreparer

func (client PagingClient) NextFragmentWithGroupingPreparer(ctx context.Context, APIVersion string, tenant string, nextLink string) (*http.Request, error)

NextFragmentWithGroupingPreparer prepares the NextFragmentWithGrouping request.

func (PagingClient) NextFragmentWithGroupingResponder

func (client PagingClient) NextFragmentWithGroupingResponder(resp *http.Response) (result OdataProductResult, err error)

NextFragmentWithGroupingResponder handles the response to the NextFragmentWithGrouping request. The method always closes the http.Response Body.

func (PagingClient) NextFragmentWithGroupingSender

func (client PagingClient) NextFragmentWithGroupingSender(req *http.Request) (*http.Response, error)

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

type PagingGetMultiplePagesLROAllFuture

type PagingGetMultiplePagesLROAllFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PagingClient) (ProductResultPage, error)
}

PagingGetMultiplePagesLROAllFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*PagingGetMultiplePagesLROAllFuture) UnmarshalJSON

func (future *PagingGetMultiplePagesLROAllFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PagingGetMultiplePagesLROFuture

type PagingGetMultiplePagesLROFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PagingClient) (ProductResultPage, error)
}

PagingGetMultiplePagesLROFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*PagingGetMultiplePagesLROFuture) UnmarshalJSON

func (future *PagingGetMultiplePagesLROFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Product

type Product struct {
	Properties *ProductProperties `json:"properties,omitempty"`
}

Product ...

type ProductProperties

type ProductProperties struct {
	ID   *int32  `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

ProductProperties ...

type ProductResult

type ProductResult struct {
	autorest.Response `json:"-"`
	Values            *[]Product `json:"values,omitempty"`
	NextLink          *string    `json:"nextLink,omitempty"`
}

ProductResult ...

func (ProductResult) IsEmpty

func (pr ProductResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProductResultIterator

type ProductResultIterator struct {
	// contains filtered or unexported fields
}

ProductResultIterator provides access to a complete listing of Product values.

func NewProductResultIterator

func NewProductResultIterator(page ProductResultPage) ProductResultIterator

Creates a new instance of the ProductResultIterator type.

func (*ProductResultIterator) Next

func (iter *ProductResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProductResultIterator) NextWithContext

func (iter *ProductResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ProductResultIterator) NotDone

func (iter ProductResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ProductResultIterator) Response

func (iter ProductResultIterator) Response() ProductResult

Response returns the raw server response from the last page request.

func (ProductResultIterator) Value

func (iter ProductResultIterator) Value() Product

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ProductResultPage

type ProductResultPage struct {
	// contains filtered or unexported fields
}

ProductResultPage contains a page of Product values.

func NewProductResultPage

func NewProductResultPage(cur ProductResult, getNextPage func(context.Context, ProductResult) (ProductResult, error)) ProductResultPage

Creates a new instance of the ProductResultPage type.

func (*ProductResultPage) Next

func (page *ProductResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProductResultPage) NextWithContext

func (page *ProductResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ProductResultPage) NotDone

func (page ProductResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ProductResultPage) Response

func (page ProductResultPage) Response() ProductResult

Response returns the raw server response from the last page request.

func (ProductResultPage) Values

func (page ProductResultPage) Values() []Product

Values returns the slice of values for the current page or nil if there are no values.

type ProductResultValue

type ProductResultValue struct {
	autorest.Response `json:"-"`
	Value             *[]Product `json:"value,omitempty"`
	NextLink          *string    `json:"nextLink,omitempty"`
}

ProductResultValue ...

func (ProductResultValue) IsEmpty

func (prv ProductResultValue) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProductResultValueIterator

type ProductResultValueIterator struct {
	// contains filtered or unexported fields
}

ProductResultValueIterator provides access to a complete listing of Product values.

func NewProductResultValueIterator

func NewProductResultValueIterator(page ProductResultValuePage) ProductResultValueIterator

Creates a new instance of the ProductResultValueIterator type.

func (*ProductResultValueIterator) Next

func (iter *ProductResultValueIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProductResultValueIterator) NextWithContext

func (iter *ProductResultValueIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ProductResultValueIterator) NotDone

func (iter ProductResultValueIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ProductResultValueIterator) Response

Response returns the raw server response from the last page request.

func (ProductResultValueIterator) Value

func (iter ProductResultValueIterator) Value() Product

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ProductResultValuePage

type ProductResultValuePage struct {
	// contains filtered or unexported fields
}

ProductResultValuePage contains a page of Product values.

func NewProductResultValuePage

func NewProductResultValuePage(cur ProductResultValue, getNextPage func(context.Context, ProductResultValue) (ProductResultValue, error)) ProductResultValuePage

Creates a new instance of the ProductResultValuePage type.

func (*ProductResultValuePage) Next

func (page *ProductResultValuePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProductResultValuePage) NextWithContext

func (page *ProductResultValuePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ProductResultValuePage) NotDone

func (page ProductResultValuePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ProductResultValuePage) Response

Response returns the raw server response from the last page request.

func (ProductResultValuePage) Values

func (page ProductResultValuePage) Values() []Product

Values returns the slice of values for the current page or nil if there are no values.

type Status

type Status string

Status enumerates the values for status.

const (
	// Accepted ...
	Accepted Status = "Accepted"
	// Canceled ...
	Canceled Status = "canceled"
	// Created ...
	Created Status = "Created"
	// Creating ...
	Creating Status = "Creating"
	// Deleted ...
	Deleted Status = "Deleted"
	// Deleting ...
	Deleting Status = "Deleting"
	// Failed ...
	Failed Status = "Failed"
	// OK ...
	OK Status = "OK"
	// Succeeded ...
	Succeeded Status = "Succeeded"
	// Updated ...
	Updated Status = "Updated"
	// Updating ...
	Updating Status = "Updating"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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