features

package
v2.1.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package features implements the Azure ARM Features service API version 2015-12-01.

Index

Constants

View Source
const (
	// APIVersion is the version of the Features
	APIVersion = "2015-12-01"

	// DefaultBaseURI is the default URI used for the service Features
	DefaultBaseURI = "https://management.azure.com"
)

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 Client

type Client struct {
	ManagementClient
}

Client is the client for the Features methods of the Features service.

func NewClient

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) Get

func (client Client) Get(resourceProviderNamespace string, featureName string) (result FeatureResult, err error)

Get get all features under the subscription.

resourceProviderNamespace is namespace of the resource provider. featureName is previewed feature name in the resource provider.

func (Client) GetPreparer

func (client Client) GetPreparer(resourceProviderNamespace string, featureName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder

func (client Client) GetResponder(resp *http.Response) (result FeatureResult, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (Client) GetSender

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

func (client Client) List(resourceProviderNamespace string) (result FeatureOperationsListResult, err error)

List gets a list of previewed features of a resource provider.

resourceProviderNamespace is the namespace of the resource provider.

func (Client) ListAll

func (client Client) ListAll() (result FeatureOperationsListResult, err error)

ListAll gets a list of previewed features for all the providers in the current subscription.

func (Client) ListAllNextResults

func (client Client) ListAllNextResults(lastResults FeatureOperationsListResult) (result FeatureOperationsListResult, err error)

ListAllNextResults retrieves the next set of results, if any.

func (Client) ListAllPreparer

func (client Client) ListAllPreparer() (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (Client) ListAllResponder

func (client Client) ListAllResponder(resp *http.Response) (result FeatureOperationsListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (Client) ListAllSender

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

func (client Client) ListNextResults(lastResults FeatureOperationsListResult) (result FeatureOperationsListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (Client) ListPreparer

func (client Client) ListPreparer(resourceProviderNamespace string) (*http.Request, error)

ListPreparer prepares the List request.

func (Client) ListResponder

func (client Client) ListResponder(resp *http.Response) (result FeatureOperationsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (Client) ListSender

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

func (client Client) Register(resourceProviderNamespace string, featureName string) (result FeatureResult, err error)

Register registers for a previewed feature of a resource provider.

resourceProviderNamespace is namespace of the resource provider. featureName is previewed feature name in the resource provider.

func (Client) RegisterPreparer

func (client Client) RegisterPreparer(resourceProviderNamespace string, featureName string) (*http.Request, error)

RegisterPreparer prepares the Register request.

func (Client) RegisterResponder

func (client Client) RegisterResponder(resp *http.Response) (result FeatureResult, err error)

RegisterResponder handles the response to the Register request. The method always closes the http.Response Body.

func (Client) RegisterSender

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.

type DeploymentExtendedFilter

type DeploymentExtendedFilter struct {
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

DeploymentExtendedFilter is deployment filter.

type FeatureOperationsListResult

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

FeatureOperationsListResult is list of previewed features.

func (FeatureOperationsListResult) FeatureOperationsListResultPreparer

func (client FeatureOperationsListResult) FeatureOperationsListResultPreparer() (*http.Request, error)

FeatureOperationsListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type FeatureProperties

type FeatureProperties struct {
	State *string `json:"state,omitempty"`
}

FeatureProperties is previewed feature information.

type FeatureResult

type FeatureResult struct {
	autorest.Response `json:"-"`
	Name              *string            `json:"name,omitempty"`
	Properties        *FeatureProperties `json:"properties,omitempty"`
	ID                *string            `json:"id,omitempty"`
	Type              *string            `json:"type,omitempty"`
}

FeatureResult is previewed feature information.

type GenericResourceFilter

type GenericResourceFilter struct {
	ResourceType *string `json:"resourceType,omitempty"`
	Tagname      *string `json:"tagname,omitempty"`
	Tagvalue     *string `json:"tagvalue,omitempty"`
}

GenericResourceFilter is resource filter.

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Features.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

func (ManagementClient) Get

func (client ManagementClient) Get(resourceProviderNamespace string, featureName string) (result FeatureResult, err error)

Get get all features under the subscription.

resourceProviderNamespace is namespace of the resource provider. featureName is previewed feature name in the resource provider.

func (ManagementClient) GetPreparer

func (client ManagementClient) GetPreparer(resourceProviderNamespace string, featureName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagementClient) GetResponder

func (client ManagementClient) GetResponder(resp *http.Response) (result FeatureResult, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagementClient) GetSender

func (client ManagementClient) 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 (ManagementClient) List

func (client ManagementClient) List(resourceProviderNamespace string) (result FeatureOperationsListResult, err error)

List gets a list of previewed features of a resource provider.

resourceProviderNamespace is the namespace of the resource provider.

func (ManagementClient) ListAll

func (client ManagementClient) ListAll() (result FeatureOperationsListResult, err error)

ListAll gets a list of previewed features for all the providers in the current subscription.

func (ManagementClient) ListAllNextResults

func (client ManagementClient) ListAllNextResults(lastResults FeatureOperationsListResult) (result FeatureOperationsListResult, err error)

ListAllNextResults retrieves the next set of results, if any.

func (ManagementClient) ListAllPreparer

func (client ManagementClient) ListAllPreparer() (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (ManagementClient) ListAllResponder

func (client ManagementClient) ListAllResponder(resp *http.Response) (result FeatureOperationsListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (ManagementClient) ListAllSender

func (client ManagementClient) 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 (ManagementClient) ListNextResults

func (client ManagementClient) ListNextResults(lastResults FeatureOperationsListResult) (result FeatureOperationsListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (ManagementClient) ListPreparer

func (client ManagementClient) ListPreparer(resourceProviderNamespace string) (*http.Request, error)

ListPreparer prepares the List request.

func (ManagementClient) ListResponder

func (client ManagementClient) ListResponder(resp *http.Response) (result FeatureOperationsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ManagementClient) ListSender

func (client ManagementClient) 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 (ManagementClient) Register

func (client ManagementClient) Register(resourceProviderNamespace string, featureName string) (result FeatureResult, err error)

Register registers for a previewed feature of a resource provider.

resourceProviderNamespace is namespace of the resource provider. featureName is previewed feature name in the resource provider.

func (ManagementClient) RegisterPreparer

func (client ManagementClient) RegisterPreparer(resourceProviderNamespace string, featureName string) (*http.Request, error)

RegisterPreparer prepares the Register request.

func (ManagementClient) RegisterResponder

func (client ManagementClient) RegisterResponder(resp *http.Response) (result FeatureResult, err error)

RegisterResponder handles the response to the Register request. The method always closes the http.Response Body.

func (ManagementClient) RegisterSender

func (client ManagementClient) 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.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is

type ResourceGroupFilter

type ResourceGroupFilter struct {
	TagName  *string `json:"tagName,omitempty"`
	TagValue *string `json:"tagValue,omitempty"`
}

ResourceGroupFilter is resource group filter.

type SubResource

type SubResource struct {
	ID *string `json:"id,omitempty"`
}

SubResource is

Jump to

Keyboard shortcuts

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