const ( // DefaultBaseURI is the default URI used for the service Features DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
BaseClient is the base client for Features.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID 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).
func (client BaseClient) ListOperations(ctx context.Context) (result OperationListResultPage, err error)
ListOperations lists all of the available Microsoft.Features REST API operations.
func (client BaseClient) ListOperationsComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListOperationsComplete enumerates all values, automatically crossing page boundaries as required.
func (client BaseClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error)
ListOperationsPreparer prepares the ListOperations request.
func (client BaseClient) ListOperationsResponder(resp *http.Response) (result OperationListResult, err error)
ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.
func (client BaseClient) ListOperationsSender(req *http.Request) (*http.Response, error)
ListOperationsSender sends the ListOperations request. The method will close the http.Response Body if it receives an error.
Client is the azure Feature Exposure Control (AFEC) provides a mechanism for the resource providers to control feature exposure to users. Resource providers typically use this mechanism to provide public/private preview for new features prior to making them generally available. Users need to explicitly register for AFEC features to get access to such functionality.
type Client struct { BaseClient }
func NewClient(subscriptionID string) Client
NewClient creates an instance of the Client client.
func NewClientWithBaseURI(baseURI string, subscriptionID string) Client
NewClientWithBaseURI creates an instance of the Client 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 (client Client) Get(ctx context.Context, resourceProviderNamespace string, featureName string) (result Result, err error)
Get gets the preview feature with the specified name. Parameters: resourceProviderNamespace - the resource provider namespace for the feature. featureName - the name of the feature to get.
func (client Client) GetPreparer(ctx context.Context, resourceProviderNamespace string, featureName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client Client) GetResponder(resp *http.Response) (result Result, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client Client) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client Client) List(ctx context.Context, resourceProviderNamespace string) (result OperationsListResultPage, err error)
List gets all the preview features in a provider namespace that are available through AFEC for the subscription. Parameters: resourceProviderNamespace - the namespace of the resource provider for getting features.
func (client Client) ListAll(ctx context.Context) (result OperationsListResultPage, err error)
ListAll gets all the preview features that are available through AFEC for the subscription.
func (client Client) ListAllComplete(ctx context.Context) (result OperationsListResultIterator, err error)
ListAllComplete enumerates all values, automatically crossing page boundaries as required.
func (client Client) ListAllPreparer(ctx context.Context) (*http.Request, error)
ListAllPreparer prepares the ListAll request.
func (client Client) ListAllResponder(resp *http.Response) (result OperationsListResult, err error)
ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.
func (client Client) ListAllSender(req *http.Request) (*http.Response, error)
ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.
func (client Client) ListComplete(ctx context.Context, resourceProviderNamespace string) (result OperationsListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client Client) ListPreparer(ctx context.Context, resourceProviderNamespace string) (*http.Request, error)
ListPreparer prepares the List request.
func (client Client) ListResponder(resp *http.Response) (result OperationsListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client Client) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client Client) Register(ctx context.Context, resourceProviderNamespace string, featureName string) (result Result, err error)
Register registers the preview feature for the subscription. Parameters: resourceProviderNamespace - the namespace of the resource provider. featureName - the name of the feature to register.
func (client Client) RegisterPreparer(ctx context.Context, resourceProviderNamespace string, featureName string) (*http.Request, error)
RegisterPreparer prepares the Register request.
func (client Client) RegisterResponder(resp *http.Response) (result Result, err error)
RegisterResponder handles the response to the Register request. The method always closes the http.Response Body.
func (client Client) RegisterSender(req *http.Request) (*http.Response, error)
RegisterSender sends the Register request. The method will close the http.Response Body if it receives an error.
func (client Client) Unregister(ctx context.Context, resourceProviderNamespace string, featureName string) (result Result, err error)
Unregister unregisters the preview feature for the subscription. Parameters: resourceProviderNamespace - the namespace of the resource provider. featureName - the name of the feature to unregister.
func (client Client) UnregisterPreparer(ctx context.Context, resourceProviderNamespace string, featureName string) (*http.Request, error)
UnregisterPreparer prepares the Unregister request.
func (client Client) UnregisterResponder(resp *http.Response) (result Result, err error)
UnregisterResponder handles the response to the Unregister request. The method always closes the http.Response Body.
func (client Client) UnregisterSender(req *http.Request) (*http.Response, error)
UnregisterSender sends the Unregister request. The method will close the http.Response Body if it receives an error.
Operation microsoft.Features operation
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` }
OperationDisplay the object that represents the operation.
type OperationDisplay struct { // Provider - Service provider: Microsoft.Features Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"resource,omitempty"` // Operation - Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationListResult result of the request to list Microsoft.Features operations. It contains a list of operations and a URL link to get the next set of results.
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of Microsoft.Features operations. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
OperationListResultIterator provides access to a complete listing of Operation values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (iter *OperationListResultIterator) 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 (iter *OperationListResultIterator) 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 (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OperationListResultPage contains a page of Operation values.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (page *OperationListResultPage) 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 (page *OperationListResultPage) 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 (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
OperationsListResult list of previewed features.
type OperationsListResult struct { autorest.Response `json:"-"` // Value - The array of features. Value *[]Result `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (olr OperationsListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
OperationsListResultIterator provides access to a complete listing of Result values.
type OperationsListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationsListResultIterator(page OperationsListResultPage) OperationsListResultIterator
Creates a new instance of the OperationsListResultIterator type.
func (iter *OperationsListResultIterator) 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 (iter *OperationsListResultIterator) 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 (iter OperationsListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationsListResultIterator) Response() OperationsListResult
Response returns the raw server response from the last page request.
func (iter OperationsListResultIterator) Value() Result
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OperationsListResultPage contains a page of Result values.
type OperationsListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationsListResultPage(cur OperationsListResult, getNextPage func(context.Context, OperationsListResult) (OperationsListResult, error)) OperationsListResultPage
Creates a new instance of the OperationsListResultPage type.
func (page *OperationsListResultPage) 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 (page *OperationsListResultPage) 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 (page OperationsListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationsListResultPage) Response() OperationsListResult
Response returns the raw server response from the last page request.
func (page OperationsListResultPage) Values() []Result
Values returns the slice of values for the current page or nil if there are no values.
Properties information about feature.
type Properties struct { // State - The registration state of the feature for the subscription. State *string `json:"state,omitempty"` }
Result previewed feature information.
type Result struct { autorest.Response `json:"-"` // Name - The name of the feature. Name *string `json:"name,omitempty"` // Properties - Properties of the previewed feature. Properties *Properties `json:"properties,omitempty"` // ID - The resource ID of the feature. ID *string `json:"id,omitempty"` // Type - The resource type of the feature. Type *string `json:"type,omitempty"` }
Name | Synopsis |
---|---|
.. | |
featuresapi | Deprecated: Please note, this package has been deprecated. |