appconfiguration

package
v2.96.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package appconfiguration implements the Azure ARM Appconfiguration service API version 1.0.

Index

Constants

This section is empty.

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
	SyncToken string
	Endpoint  string
}

BaseClient is the base client for Appconfiguration.

func New

func New(syncToken string, endpoint string) BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults

func NewWithoutDefaults(syncToken string, endpoint string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

func (BaseClient) CheckKeyValue

func (client BaseClient) CheckKeyValue(ctx context.Context, key string, label string, acceptDatetime string, ifMatch string, ifNoneMatch string, selectParameter []string) (result autorest.Response, err error)

CheckKeyValue sends the check key value request. Parameters: key - the key of the key-value to retrieve. label - the label of the key-value to retrieve. acceptDatetime - requests the server to respond with the state of the resource at the specified time. ifMatch - used to perform an operation only if the targeted resource's etag matches the value provided. ifNoneMatch - used to perform an operation only if the targeted resource's etag does not match the value provided. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) CheckKeyValuePreparer

func (client BaseClient) CheckKeyValuePreparer(ctx context.Context, key string, label string, acceptDatetime string, ifMatch string, ifNoneMatch string, selectParameter []string) (*http.Request, error)

CheckKeyValuePreparer prepares the CheckKeyValue request.

func (BaseClient) CheckKeyValueResponder

func (client BaseClient) CheckKeyValueResponder(resp *http.Response) (result autorest.Response, err error)

CheckKeyValueResponder handles the response to the CheckKeyValue request. The method always closes the http.Response Body.

func (BaseClient) CheckKeyValueSender

func (client BaseClient) CheckKeyValueSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) CheckKeyValues

func (client BaseClient) CheckKeyValues(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (result autorest.Response, err error)

CheckKeyValues sends the check key values request. Parameters: key - a filter used to match keys. label - a filter used to match labels after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) CheckKeyValuesPreparer

func (client BaseClient) CheckKeyValuesPreparer(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (*http.Request, error)

CheckKeyValuesPreparer prepares the CheckKeyValues request.

func (BaseClient) CheckKeyValuesResponder

func (client BaseClient) CheckKeyValuesResponder(resp *http.Response) (result autorest.Response, err error)

CheckKeyValuesResponder handles the response to the CheckKeyValues request. The method always closes the http.Response Body.

func (BaseClient) CheckKeyValuesSender

func (client BaseClient) CheckKeyValuesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) CheckKeys

func (client BaseClient) CheckKeys(ctx context.Context, name string, after string, acceptDatetime string) (result autorest.Response, err error)

CheckKeys sends the check keys request. Parameters: name - a filter for the name of the returned keys. after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time.

func (BaseClient) CheckKeysPreparer

func (client BaseClient) CheckKeysPreparer(ctx context.Context, name string, after string, acceptDatetime string) (*http.Request, error)

CheckKeysPreparer prepares the CheckKeys request.

func (BaseClient) CheckKeysResponder

func (client BaseClient) CheckKeysResponder(resp *http.Response) (result autorest.Response, err error)

CheckKeysResponder handles the response to the CheckKeys request. The method always closes the http.Response Body.

func (BaseClient) CheckKeysSender

func (client BaseClient) CheckKeysSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) CheckLabels

func (client BaseClient) CheckLabels(ctx context.Context, name string, after string, acceptDatetime string, selectParameter []string) (result autorest.Response, err error)

CheckLabels sends the check labels request. Parameters: name - a filter for the name of the returned labels. after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) CheckLabelsPreparer

func (client BaseClient) CheckLabelsPreparer(ctx context.Context, name string, after string, acceptDatetime string, selectParameter []string) (*http.Request, error)

CheckLabelsPreparer prepares the CheckLabels request.

func (BaseClient) CheckLabelsResponder

func (client BaseClient) CheckLabelsResponder(resp *http.Response) (result autorest.Response, err error)

CheckLabelsResponder handles the response to the CheckLabels request. The method always closes the http.Response Body.

func (BaseClient) CheckLabelsSender

func (client BaseClient) CheckLabelsSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) CheckRevisions

func (client BaseClient) CheckRevisions(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (result autorest.Response, err error)

CheckRevisions sends the check revisions request. Parameters: key - a filter used to match keys. label - a filter used to match labels after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) CheckRevisionsPreparer

func (client BaseClient) CheckRevisionsPreparer(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (*http.Request, error)

CheckRevisionsPreparer prepares the CheckRevisions request.

func (BaseClient) CheckRevisionsResponder

func (client BaseClient) CheckRevisionsResponder(resp *http.Response) (result autorest.Response, err error)

CheckRevisionsResponder handles the response to the CheckRevisions request. The method always closes the http.Response Body.

func (BaseClient) CheckRevisionsSender

func (client BaseClient) CheckRevisionsSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) DeleteKeyValue

func (client BaseClient) DeleteKeyValue(ctx context.Context, key string, label string, ifMatch string) (result KeyValue, err error)

DeleteKeyValue sends the delete key value request. Parameters: key - the key of the key-value to delete. label - the label of the key-value to delete. ifMatch - used to perform an operation only if the targeted resource's etag matches the value provided.

func (BaseClient) DeleteKeyValuePreparer

func (client BaseClient) DeleteKeyValuePreparer(ctx context.Context, key string, label string, ifMatch string) (*http.Request, error)

DeleteKeyValuePreparer prepares the DeleteKeyValue request.

func (BaseClient) DeleteKeyValueResponder

func (client BaseClient) DeleteKeyValueResponder(resp *http.Response) (result KeyValue, err error)

DeleteKeyValueResponder handles the response to the DeleteKeyValue request. The method always closes the http.Response Body.

func (BaseClient) DeleteKeyValueSender

func (client BaseClient) DeleteKeyValueSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) DeleteLock

func (client BaseClient) DeleteLock(ctx context.Context, key string, label string, ifMatch string, ifNoneMatch string) (result KeyValue, err error)

DeleteLock sends the delete lock request. Parameters: key - the key of the key-value to unlock. label - the label, if any, of the key-value to unlock. ifMatch - used to perform an operation only if the targeted resource's etag matches the value provided. ifNoneMatch - used to perform an operation only if the targeted resource's etag does not match the value provided.

func (BaseClient) DeleteLockPreparer

func (client BaseClient) DeleteLockPreparer(ctx context.Context, key string, label string, ifMatch string, ifNoneMatch string) (*http.Request, error)

DeleteLockPreparer prepares the DeleteLock request.

func (BaseClient) DeleteLockResponder

func (client BaseClient) DeleteLockResponder(resp *http.Response) (result KeyValue, err error)

DeleteLockResponder handles the response to the DeleteLock request. The method always closes the http.Response Body.

func (BaseClient) DeleteLockSender

func (client BaseClient) DeleteLockSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetKeyValue

func (client BaseClient) GetKeyValue(ctx context.Context, key string, label string, acceptDatetime string, ifMatch string, ifNoneMatch string, selectParameter []string) (result KeyValue, err error)

GetKeyValue sends the get key value request. Parameters: key - the key of the key-value to retrieve. label - the label of the key-value to retrieve. acceptDatetime - requests the server to respond with the state of the resource at the specified time. ifMatch - used to perform an operation only if the targeted resource's etag matches the value provided. ifNoneMatch - used to perform an operation only if the targeted resource's etag does not match the value provided. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) GetKeyValuePreparer

func (client BaseClient) GetKeyValuePreparer(ctx context.Context, key string, label string, acceptDatetime string, ifMatch string, ifNoneMatch string, selectParameter []string) (*http.Request, error)

GetKeyValuePreparer prepares the GetKeyValue request.

func (BaseClient) GetKeyValueResponder

func (client BaseClient) GetKeyValueResponder(resp *http.Response) (result KeyValue, err error)

GetKeyValueResponder handles the response to the GetKeyValue request. The method always closes the http.Response Body.

func (BaseClient) GetKeyValueSender

func (client BaseClient) GetKeyValueSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetKeyValues

func (client BaseClient) GetKeyValues(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (result KeyValueListResultPage, err error)

GetKeyValues sends the get key values request. Parameters: key - a filter used to match keys. label - a filter used to match labels after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) GetKeyValuesComplete

func (client BaseClient) GetKeyValuesComplete(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (result KeyValueListResultIterator, err error)

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

func (BaseClient) GetKeyValuesPreparer

func (client BaseClient) GetKeyValuesPreparer(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (*http.Request, error)

GetKeyValuesPreparer prepares the GetKeyValues request.

func (BaseClient) GetKeyValuesResponder

func (client BaseClient) GetKeyValuesResponder(resp *http.Response) (result KeyValueListResult, err error)

GetKeyValuesResponder handles the response to the GetKeyValues request. The method always closes the http.Response Body.

func (BaseClient) GetKeyValuesSender

func (client BaseClient) GetKeyValuesSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetKeys

func (client BaseClient) GetKeys(ctx context.Context, name string, after string, acceptDatetime string) (result KeyListResultPage, err error)

GetKeys sends the get keys request. Parameters: name - a filter for the name of the returned keys. after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time.

func (BaseClient) GetKeysComplete

func (client BaseClient) GetKeysComplete(ctx context.Context, name string, after string, acceptDatetime string) (result KeyListResultIterator, err error)

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

func (BaseClient) GetKeysPreparer

func (client BaseClient) GetKeysPreparer(ctx context.Context, name string, after string, acceptDatetime string) (*http.Request, error)

GetKeysPreparer prepares the GetKeys request.

func (BaseClient) GetKeysResponder

func (client BaseClient) GetKeysResponder(resp *http.Response) (result KeyListResult, err error)

GetKeysResponder handles the response to the GetKeys request. The method always closes the http.Response Body.

func (BaseClient) GetKeysSender

func (client BaseClient) GetKeysSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetLabels

func (client BaseClient) GetLabels(ctx context.Context, name string, after string, acceptDatetime string, selectParameter []string) (result LabelListResultPage, err error)

GetLabels sends the get labels request. Parameters: name - a filter for the name of the returned labels. after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) GetLabelsComplete

func (client BaseClient) GetLabelsComplete(ctx context.Context, name string, after string, acceptDatetime string, selectParameter []string) (result LabelListResultIterator, err error)

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

func (BaseClient) GetLabelsPreparer

func (client BaseClient) GetLabelsPreparer(ctx context.Context, name string, after string, acceptDatetime string, selectParameter []string) (*http.Request, error)

GetLabelsPreparer prepares the GetLabels request.

func (BaseClient) GetLabelsResponder

func (client BaseClient) GetLabelsResponder(resp *http.Response) (result LabelListResult, err error)

GetLabelsResponder handles the response to the GetLabels request. The method always closes the http.Response Body.

func (BaseClient) GetLabelsSender

func (client BaseClient) GetLabelsSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetRevisions

func (client BaseClient) GetRevisions(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (result KeyValueListResultPage, err error)

GetRevisions sends the get revisions request. Parameters: key - a filter used to match keys. label - a filter used to match labels after - instructs the server to return elements that appear after the element referred to by the specified token. acceptDatetime - requests the server to respond with the state of the resource at the specified time. selectParameter - used to select what fields are present in the returned resource(s).

func (BaseClient) GetRevisionsComplete

func (client BaseClient) GetRevisionsComplete(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (result KeyValueListResultIterator, err error)

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

func (BaseClient) GetRevisionsPreparer

func (client BaseClient) GetRevisionsPreparer(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []string) (*http.Request, error)

GetRevisionsPreparer prepares the GetRevisions request.

func (BaseClient) GetRevisionsResponder

func (client BaseClient) GetRevisionsResponder(resp *http.Response) (result KeyValueListResult, err error)

GetRevisionsResponder handles the response to the GetRevisions request. The method always closes the http.Response Body.

func (BaseClient) GetRevisionsSender

func (client BaseClient) GetRevisionsSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) PutKeyValue

func (client BaseClient) PutKeyValue(ctx context.Context, key string, label string, entity *KeyValue, ifMatch string, ifNoneMatch string) (result KeyValue, err error)

PutKeyValue sends the put key value request. Parameters: key - the key of the key-value to create. label - the label of the key-value to create. entity - the key-value to create. ifMatch - used to perform an operation only if the targeted resource's etag matches the value provided. ifNoneMatch - used to perform an operation only if the targeted resource's etag does not match the value provided.

func (BaseClient) PutKeyValuePreparer

func (client BaseClient) PutKeyValuePreparer(ctx context.Context, key string, label string, entity *KeyValue, ifMatch string, ifNoneMatch string) (*http.Request, error)

PutKeyValuePreparer prepares the PutKeyValue request.

func (BaseClient) PutKeyValueResponder

func (client BaseClient) PutKeyValueResponder(resp *http.Response) (result KeyValue, err error)

PutKeyValueResponder handles the response to the PutKeyValue request. The method always closes the http.Response Body.

func (BaseClient) PutKeyValueSender

func (client BaseClient) PutKeyValueSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) PutLock

func (client BaseClient) PutLock(ctx context.Context, key string, label string, ifMatch string, ifNoneMatch string) (result KeyValue, err error)

PutLock sends the put lock request. Parameters: key - the key of the key-value to lock. label - the label, if any, of the key-value to lock. ifMatch - used to perform an operation only if the targeted resource's etag matches the value provided. ifNoneMatch - used to perform an operation only if the targeted resource's etag does not match the value provided.

func (BaseClient) PutLockPreparer

func (client BaseClient) PutLockPreparer(ctx context.Context, key string, label string, ifMatch string, ifNoneMatch string) (*http.Request, error)

PutLockPreparer prepares the PutLock request.

func (BaseClient) PutLockResponder

func (client BaseClient) PutLockResponder(resp *http.Response) (result KeyValue, err error)

PutLockResponder handles the response to the PutLock request. The method always closes the http.Response Body.

func (BaseClient) PutLockSender

func (client BaseClient) PutLockSender(req *http.Request) (*http.Response, error)

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

type Error

type Error struct {
	// Type - The type of the error.
	Type *string `json:"type,omitempty"`
	// Title - A brief summary of the error.
	Title *string `json:"title,omitempty"`
	// Name - The name of the parameter that resulted in the error.
	Name *string `json:"name,omitempty"`
	// Detail - A detailed description of the error.
	Detail *string `json:"detail,omitempty"`
	// Status - The HTTP status code that the error maps to.
	Status *int32 `json:"status,omitempty"`
}

Error azure App Configuration error object.

type Key

type Key struct {
	// Name - READ-ONLY
	Name *string `json:"name,omitempty"`
}

Key ...

func (Key) MarshalJSON

func (kVar Key) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Key.

type KeyListResult

type KeyListResult struct {
	autorest.Response `json:"-"`
	// Items - The collection value.
	Items *[]Key `json:"items,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"@nextLink,omitempty"`
}

KeyListResult the result of a list request.

func (KeyListResult) IsEmpty

func (klr KeyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type KeyListResultIterator

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

KeyListResultIterator provides access to a complete listing of Key values.

func NewKeyListResultIterator

func NewKeyListResultIterator(page KeyListResultPage) KeyListResultIterator

Creates a new instance of the KeyListResultIterator type.

func (*KeyListResultIterator) Next

func (iter *KeyListResultIterator) 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 (*KeyListResultIterator) NextWithContext

func (iter *KeyListResultIterator) 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 (KeyListResultIterator) NotDone

func (iter KeyListResultIterator) NotDone() bool

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

func (KeyListResultIterator) Response

func (iter KeyListResultIterator) Response() KeyListResult

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

func (KeyListResultIterator) Value

func (iter KeyListResultIterator) Value() Key

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

type KeyListResultPage

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

KeyListResultPage contains a page of Key values.

func NewKeyListResultPage

func NewKeyListResultPage(cur KeyListResult, getNextPage func(context.Context, KeyListResult) (KeyListResult, error)) KeyListResultPage

Creates a new instance of the KeyListResultPage type.

func (*KeyListResultPage) Next

func (page *KeyListResultPage) 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 (*KeyListResultPage) NextWithContext

func (page *KeyListResultPage) 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 (KeyListResultPage) NotDone

func (page KeyListResultPage) NotDone() bool

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

func (KeyListResultPage) Response

func (page KeyListResultPage) Response() KeyListResult

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

func (KeyListResultPage) Values

func (page KeyListResultPage) Values() []Key

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

type KeyValue

type KeyValue struct {
	autorest.Response `json:"-"`
	Key               *string            `json:"key,omitempty"`
	Label             *string            `json:"label,omitempty"`
	ContentType       *string            `json:"content_type,omitempty"`
	Value             *string            `json:"value,omitempty"`
	LastModified      *date.Time         `json:"last_modified,omitempty"`
	Tags              map[string]*string `json:"tags"`
	Locked            *bool              `json:"locked,omitempty"`
	Etag              *string            `json:"etag,omitempty"`
}

KeyValue ...

func (KeyValue) MarshalJSON

func (kv KeyValue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyValue.

type KeyValueListResult

type KeyValueListResult struct {
	autorest.Response `json:"-"`
	// Items - The collection value.
	Items *[]KeyValue `json:"items,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"@nextLink,omitempty"`
}

KeyValueListResult the result of a list request.

func (KeyValueListResult) IsEmpty

func (kvlr KeyValueListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type KeyValueListResultIterator

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

KeyValueListResultIterator provides access to a complete listing of KeyValue values.

func NewKeyValueListResultIterator

func NewKeyValueListResultIterator(page KeyValueListResultPage) KeyValueListResultIterator

Creates a new instance of the KeyValueListResultIterator type.

func (*KeyValueListResultIterator) Next

func (iter *KeyValueListResultIterator) 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 (*KeyValueListResultIterator) NextWithContext

func (iter *KeyValueListResultIterator) 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 (KeyValueListResultIterator) NotDone

func (iter KeyValueListResultIterator) NotDone() bool

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

func (KeyValueListResultIterator) Response

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

func (KeyValueListResultIterator) Value

func (iter KeyValueListResultIterator) Value() KeyValue

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

type KeyValueListResultPage

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

KeyValueListResultPage contains a page of KeyValue values.

func NewKeyValueListResultPage

func NewKeyValueListResultPage(cur KeyValueListResult, getNextPage func(context.Context, KeyValueListResult) (KeyValueListResult, error)) KeyValueListResultPage

Creates a new instance of the KeyValueListResultPage type.

func (*KeyValueListResultPage) Next

func (page *KeyValueListResultPage) 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 (*KeyValueListResultPage) NextWithContext

func (page *KeyValueListResultPage) 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 (KeyValueListResultPage) NotDone

func (page KeyValueListResultPage) NotDone() bool

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

func (KeyValueListResultPage) Response

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

func (KeyValueListResultPage) Values

func (page KeyValueListResultPage) Values() []KeyValue

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

type Label

type Label struct {
	// Name - READ-ONLY
	Name *string `json:"name,omitempty"`
}

Label ...

func (Label) MarshalJSON

func (l Label) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Label.

type LabelListResult

type LabelListResult struct {
	autorest.Response `json:"-"`
	// Items - The collection value.
	Items *[]Label `json:"items,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"@nextLink,omitempty"`
}

LabelListResult the result of a list request.

func (LabelListResult) IsEmpty

func (llr LabelListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type LabelListResultIterator

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

LabelListResultIterator provides access to a complete listing of Label values.

func NewLabelListResultIterator

func NewLabelListResultIterator(page LabelListResultPage) LabelListResultIterator

Creates a new instance of the LabelListResultIterator type.

func (*LabelListResultIterator) Next

func (iter *LabelListResultIterator) 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 (*LabelListResultIterator) NextWithContext

func (iter *LabelListResultIterator) 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 (LabelListResultIterator) NotDone

func (iter LabelListResultIterator) NotDone() bool

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

func (LabelListResultIterator) Response

func (iter LabelListResultIterator) Response() LabelListResult

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

func (LabelListResultIterator) Value

func (iter LabelListResultIterator) Value() Label

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

type LabelListResultPage

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

LabelListResultPage contains a page of Label values.

func NewLabelListResultPage

func NewLabelListResultPage(cur LabelListResult, getNextPage func(context.Context, LabelListResult) (LabelListResult, error)) LabelListResultPage

Creates a new instance of the LabelListResultPage type.

func (*LabelListResultPage) Next

func (page *LabelListResultPage) 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 (*LabelListResultPage) NextWithContext

func (page *LabelListResultPage) 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 (LabelListResultPage) NotDone

func (page LabelListResultPage) NotDone() bool

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

func (LabelListResultPage) Response

func (page LabelListResultPage) Response() LabelListResult

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

func (LabelListResultPage) Values

func (page LabelListResultPage) Values() []Label

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

Jump to

Keyboard shortcuts

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