resources

package
v0.0.0-...-8d027c9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package resources implements the Azure ARM Resources service API version 2015-11-01.

Index

Constants

View Source
const (
	// APIVersion is the version of the Resources
	APIVersion = "2015-11-01"

	// DefaultBaseURI is the default URI used for the service Resources
	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 BasicDependency

type BasicDependency struct {
	ID           *string `json:"id,omitempty"`
	ResourceType *string `json:"resourceType,omitempty"`
	ResourceName *string `json:"resourceName,omitempty"`
}

BasicDependency is deployment dependency information.

type Client

type Client struct {
	ManagementClient
}

Client is the client for the Resources methods of the Resources 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) CheckExistence

func (client Client) CheckExistence(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result autorest.Response, ae error)

CheckExistence checks whether resource exists.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity.

func (Client) CheckExistencePreparer

func (client Client) CheckExistencePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (*http.Request, error)

CheckExistencePreparer prepares the CheckExistence request.

func (Client) CheckExistenceResponder

func (client Client) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error)

CheckExistenceResponder handles the response to the CheckExistence request. The method always closes the http.Response Body.

func (Client) CheckExistenceSender

func (client Client) CheckExistenceSender(req *http.Request) (*http.Response, error)

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

func (Client) CreateOrUpdate

func (client Client) CreateOrUpdate(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string, parameters GenericResource) (result GenericResource, ae error)

CreateOrUpdate create a resource.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity. parameters is create or update resource parameters.

func (Client) CreateOrUpdatePreparer

func (client Client) CreateOrUpdatePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string, parameters GenericResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (Client) CreateOrUpdateResponder

func (client Client) CreateOrUpdateResponder(resp *http.Response) (result GenericResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (Client) CreateOrUpdateSender

func (client Client) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (Client) Delete

func (client Client) Delete(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result autorest.Response, ae error)

Delete delete resource and all of its resources.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity.

func (Client) DeletePreparer

func (client Client) DeletePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (Client) DeleteResponder

func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (Client) DeleteSender

func (client Client) DeleteSender(req *http.Request) (*http.Response, error)

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

func (Client) Get

func (client Client) Get(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result GenericResource, ae error)

Get returns a resource belonging to a resource group.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity.

func (Client) GetPreparer

func (client Client) GetPreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder

func (client Client) GetResponder(resp *http.Response) (result GenericResource, 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(filter string, top *int) (result ResourceListResult, ae error)

List get all of the resources under a subscription.

filter is the filter to apply on the operation. top is query parameters. If null is passed returns all resource groups.

func (Client) ListNextResults

func (client Client) ListNextResults(lastResults ResourceListResult) (result ResourceListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (Client) ListPreparer

func (client Client) ListPreparer(filter string, top *int) (*http.Request, error)

ListPreparer prepares the List request.

func (Client) ListResponder

func (client Client) ListResponder(resp *http.Response) (result ResourceListResult, 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) MoveResources

func (client Client) MoveResources(sourceResourceGroupName string, parameters MoveInfo) (result autorest.Response, ae error)

MoveResources begin moving resources.To determine whether the operation has finished processing the request, call GetLongRunningOperationStatus.

sourceResourceGroupName is source resource group name. parameters is move resources' parameters.

func (Client) MoveResourcesPreparer

func (client Client) MoveResourcesPreparer(sourceResourceGroupName string, parameters MoveInfo) (*http.Request, error)

MoveResourcesPreparer prepares the MoveResources request.

func (Client) MoveResourcesResponder

func (client Client) MoveResourcesResponder(resp *http.Response) (result autorest.Response, err error)

MoveResourcesResponder handles the response to the MoveResources request. The method always closes the http.Response Body.

func (Client) MoveResourcesSender

func (client Client) MoveResourcesSender(req *http.Request) (*http.Response, error)

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

type Dependency

type Dependency struct {
	DependsOn    *[]BasicDependency `json:"dependsOn,omitempty"`
	ID           *string            `json:"id,omitempty"`
	ResourceType *string            `json:"resourceType,omitempty"`
	ResourceName *string            `json:"resourceName,omitempty"`
}

Dependency is deployment dependency information.

type Deployment

type Deployment struct {
	Properties *DeploymentProperties `json:"properties,omitempty"`
}

Deployment is deployment operation parameters.

type DeploymentExtended

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

DeploymentExtended is deployment information.

type DeploymentExtendedFilter

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

DeploymentExtendedFilter is deployment filter.

type DeploymentListResult

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

DeploymentListResult is list of deployments.

func (DeploymentListResult) DeploymentListResultPreparer

func (client DeploymentListResult) DeploymentListResultPreparer() (*http.Request, error)

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

type DeploymentMode

type DeploymentMode string

DeploymentMode enumerates the values for deployment mode.

const (
	// Complete specifies the complete state for deployment mode.
	Complete DeploymentMode = "Complete"
	// Incremental specifies the incremental state for deployment mode.
	Incremental DeploymentMode = "Incremental"
)

type DeploymentOperation

type DeploymentOperation struct {
	autorest.Response `json:"-"`
	ID                *string                        `json:"id,omitempty"`
	OperationID       *string                        `json:"operationId,omitempty"`
	Properties        *DeploymentOperationProperties `json:"properties,omitempty"`
}

DeploymentOperation is deployment operation information.

type DeploymentOperationProperties

type DeploymentOperationProperties struct {
	ProvisioningState *string                 `json:"provisioningState,omitempty"`
	Timestamp         *date.Time              `json:"timestamp,omitempty"`
	StatusCode        *string                 `json:"statusCode,omitempty"`
	StatusMessage     *map[string]interface{} `json:"statusMessage,omitempty"`
	TargetResource    *TargetResource         `json:"targetResource,omitempty"`
}

DeploymentOperationProperties is deployment operation properties.

type DeploymentOperationsClient

type DeploymentOperationsClient struct {
	ManagementClient
}

DeploymentOperationsClient is the client for the DeploymentOperations methods of the Resources service.

func NewDeploymentOperationsClient

func NewDeploymentOperationsClient(subscriptionID string) DeploymentOperationsClient

NewDeploymentOperationsClient creates an instance of the DeploymentOperationsClient client.

func NewDeploymentOperationsClientWithBaseURI

func NewDeploymentOperationsClientWithBaseURI(baseURI string, subscriptionID string) DeploymentOperationsClient

NewDeploymentOperationsClientWithBaseURI creates an instance of the DeploymentOperationsClient client.

func (DeploymentOperationsClient) Get

func (client DeploymentOperationsClient) Get(resourceGroupName string, deploymentName string, operationID string) (result DeploymentOperation, ae error)

Get get a list of deployments operations.

resourceGroupName is the name of the resource group. The name is case insensitive. deploymentName is the name of the deployment. operationID is operation Id.

func (DeploymentOperationsClient) GetPreparer

func (client DeploymentOperationsClient) GetPreparer(resourceGroupName string, deploymentName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DeploymentOperationsClient) GetResponder

func (client DeploymentOperationsClient) GetResponder(resp *http.Response) (result DeploymentOperation, err error)

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

func (DeploymentOperationsClient) GetSender

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

func (client DeploymentOperationsClient) List(resourceGroupName string, deploymentName string, top *int) (result DeploymentOperationsListResult, ae error)

List gets a list of deployments operations.

resourceGroupName is the name of the resource group. The name is case insensitive. deploymentName is the name of the deployment. top is query parameters.

func (DeploymentOperationsClient) ListNextResults

func (client DeploymentOperationsClient) ListNextResults(lastResults DeploymentOperationsListResult) (result DeploymentOperationsListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (DeploymentOperationsClient) ListPreparer

func (client DeploymentOperationsClient) ListPreparer(resourceGroupName string, deploymentName string, top *int) (*http.Request, error)

ListPreparer prepares the List request.

func (DeploymentOperationsClient) ListResponder

func (client DeploymentOperationsClient) ListResponder(resp *http.Response) (result DeploymentOperationsListResult, err error)

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

func (DeploymentOperationsClient) ListSender

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

type DeploymentOperationsListResult

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

DeploymentOperationsListResult is list of deployment operations.

func (DeploymentOperationsListResult) DeploymentOperationsListResultPreparer

func (client DeploymentOperationsListResult) DeploymentOperationsListResultPreparer() (*http.Request, error)

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

type DeploymentProperties

type DeploymentProperties struct {
	Template       *map[string]interface{} `json:"template,omitempty"`
	TemplateLink   *TemplateLink           `json:"templateLink,omitempty"`
	Parameters     *map[string]interface{} `json:"parameters,omitempty"`
	ParametersLink *ParametersLink         `json:"parametersLink,omitempty"`
	Mode           DeploymentMode          `json:"mode,omitempty"`
}

DeploymentProperties is deployment properties.

type DeploymentPropertiesExtended

type DeploymentPropertiesExtended struct {
	ProvisioningState *string                 `json:"provisioningState,omitempty"`
	CorrelationID     *string                 `json:"correlationId,omitempty"`
	Timestamp         *date.Time              `json:"timestamp,omitempty"`
	Outputs           *map[string]interface{} `json:"outputs,omitempty"`
	Providers         *[]Provider             `json:"providers,omitempty"`
	Dependencies      *[]Dependency           `json:"dependencies,omitempty"`
	Template          *map[string]interface{} `json:"template,omitempty"`
	TemplateLink      *TemplateLink           `json:"templateLink,omitempty"`
	Parameters        *map[string]interface{} `json:"parameters,omitempty"`
	ParametersLink    *ParametersLink         `json:"parametersLink,omitempty"`
	Mode              DeploymentMode          `json:"mode,omitempty"`
}

DeploymentPropertiesExtended is deployment properties with additional details.

type DeploymentValidateResult

type DeploymentValidateResult struct {
	autorest.Response `json:"-"`
	Error             *ResourceManagementErrorWithDetails `json:"error,omitempty"`
	Properties        *DeploymentPropertiesExtended       `json:"properties,omitempty"`
}

DeploymentValidateResult is information from validate template deployment response.

type DeploymentsClient

type DeploymentsClient struct {
	ManagementClient
}

DeploymentsClient is the client for the Deployments methods of the Resources service.

func NewDeploymentsClient

func NewDeploymentsClient(subscriptionID string) DeploymentsClient

NewDeploymentsClient creates an instance of the DeploymentsClient client.

func NewDeploymentsClientWithBaseURI

func NewDeploymentsClientWithBaseURI(baseURI string, subscriptionID string) DeploymentsClient

NewDeploymentsClientWithBaseURI creates an instance of the DeploymentsClient client.

func (DeploymentsClient) Cancel

func (client DeploymentsClient) Cancel(resourceGroupName string, deploymentName string) (result autorest.Response, ae error)

Cancel cancel a currently running template deployment.

resourceGroupName is the name of the resource group. The name is case insensitive. deploymentName is the name of the deployment.

func (DeploymentsClient) CancelPreparer

func (client DeploymentsClient) CancelPreparer(resourceGroupName string, deploymentName string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (DeploymentsClient) CancelResponder

func (client DeploymentsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (DeploymentsClient) CancelSender

func (client DeploymentsClient) CancelSender(req *http.Request) (*http.Response, error)

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

func (DeploymentsClient) CheckExistence

func (client DeploymentsClient) CheckExistence(resourceGroupName string, deploymentName string) (result autorest.Response, ae error)

CheckExistence checks whether deployment exists.

resourceGroupName is the name of the resource group to check. The name is case insensitive. deploymentName is the name of the deployment.

func (DeploymentsClient) CheckExistencePreparer

func (client DeploymentsClient) CheckExistencePreparer(resourceGroupName string, deploymentName string) (*http.Request, error)

CheckExistencePreparer prepares the CheckExistence request.

func (DeploymentsClient) CheckExistenceResponder

func (client DeploymentsClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error)

CheckExistenceResponder handles the response to the CheckExistence request. The method always closes the http.Response Body.

func (DeploymentsClient) CheckExistenceSender

func (client DeploymentsClient) CheckExistenceSender(req *http.Request) (*http.Response, error)

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

func (DeploymentsClient) CreateOrUpdate

func (client DeploymentsClient) CreateOrUpdate(resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentExtended, ae error)

CreateOrUpdate create a named template deployment using a template.

resourceGroupName is the name of the resource group. The name is case insensitive. deploymentName is the name of the deployment. parameters is additional parameters supplied to the operation.

func (DeploymentsClient) CreateOrUpdatePreparer

func (client DeploymentsClient) CreateOrUpdatePreparer(resourceGroupName string, deploymentName string, parameters Deployment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DeploymentsClient) CreateOrUpdateResponder

func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (result DeploymentExtended, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DeploymentsClient) CreateOrUpdateSender

func (client DeploymentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (DeploymentsClient) Delete

func (client DeploymentsClient) Delete(resourceGroupName string, deploymentName string) (result autorest.Response, ae error)

Delete begin deleting deployment.To determine whether the operation has finished processing the request, call GetLongRunningOperationStatus.

resourceGroupName is the name of the resource group. The name is case insensitive. deploymentName is the name of the deployment to be deleted.

func (DeploymentsClient) DeletePreparer

func (client DeploymentsClient) DeletePreparer(resourceGroupName string, deploymentName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DeploymentsClient) DeleteResponder

func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DeploymentsClient) DeleteSender

func (client DeploymentsClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (DeploymentsClient) Get

func (client DeploymentsClient) Get(resourceGroupName string, deploymentName string) (result DeploymentExtended, ae error)

Get get a deployment.

resourceGroupName is the name of the resource group to get. The name is case insensitive. deploymentName is the name of the deployment.

func (DeploymentsClient) GetPreparer

func (client DeploymentsClient) GetPreparer(resourceGroupName string, deploymentName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DeploymentsClient) GetResponder

func (client DeploymentsClient) GetResponder(resp *http.Response) (result DeploymentExtended, err error)

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

func (DeploymentsClient) GetSender

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

func (client DeploymentsClient) List(resourceGroupName string, filter string, top *int) (result DeploymentListResult, ae error)

List get a list of deployments.

resourceGroupName is the name of the resource group to filter by. The name is case insensitive. filter is the filter to apply on the operation. top is query parameters. If null is passed returns all deployments.

func (DeploymentsClient) ListNextResults

func (client DeploymentsClient) ListNextResults(lastResults DeploymentListResult) (result DeploymentListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (DeploymentsClient) ListPreparer

func (client DeploymentsClient) ListPreparer(resourceGroupName string, filter string, top *int) (*http.Request, error)

ListPreparer prepares the List request.

func (DeploymentsClient) ListResponder

func (client DeploymentsClient) ListResponder(resp *http.Response) (result DeploymentListResult, err error)

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

func (DeploymentsClient) ListSender

func (client DeploymentsClient) 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 (DeploymentsClient) Validate

func (client DeploymentsClient) Validate(resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentValidateResult, ae error)

Validate validate a deployment template.

resourceGroupName is the name of the resource group. The name is case insensitive. deploymentName is the name of the deployment. parameters is deployment to validate.

func (DeploymentsClient) ValidatePreparer

func (client DeploymentsClient) ValidatePreparer(resourceGroupName string, deploymentName string, parameters Deployment) (*http.Request, error)

ValidatePreparer prepares the Validate request.

func (DeploymentsClient) ValidateResponder

func (client DeploymentsClient) ValidateResponder(resp *http.Response) (result DeploymentValidateResult, err error)

ValidateResponder handles the response to the Validate request. The method always closes the http.Response Body.

func (DeploymentsClient) ValidateSender

func (client DeploymentsClient) ValidateSender(req *http.Request) (*http.Response, error)

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

type GenericResource

type GenericResource struct {
	autorest.Response `json:"-"`
	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"`
	Plan              *Plan                   `json:"plan,omitempty"`
	Properties        *map[string]interface{} `json:"properties,omitempty"`
}

GenericResource is resource 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 GroupsClient

type GroupsClient struct {
	ManagementClient
}

GroupsClient is the client for the Groups methods of the Resources service.

func NewGroupsClient

func NewGroupsClient(subscriptionID string) GroupsClient

NewGroupsClient creates an instance of the GroupsClient client.

func NewGroupsClientWithBaseURI

func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string) GroupsClient

NewGroupsClientWithBaseURI creates an instance of the GroupsClient client.

func (GroupsClient) CheckExistence

func (client GroupsClient) CheckExistence(resourceGroupName string) (result autorest.Response, ae error)

CheckExistence checks whether resource group exists.

resourceGroupName is the name of the resource group to check. The name is case insensitive.

func (GroupsClient) CheckExistencePreparer

func (client GroupsClient) CheckExistencePreparer(resourceGroupName string) (*http.Request, error)

CheckExistencePreparer prepares the CheckExistence request.

func (GroupsClient) CheckExistenceResponder

func (client GroupsClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error)

CheckExistenceResponder handles the response to the CheckExistence request. The method always closes the http.Response Body.

func (GroupsClient) CheckExistenceSender

func (client GroupsClient) CheckExistenceSender(req *http.Request) (*http.Response, error)

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

func (GroupsClient) CreateOrUpdate

func (client GroupsClient) CreateOrUpdate(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, ae error)

CreateOrUpdate create a resource group.

resourceGroupName is the name of the resource group to be created or updated. parameters is parameters supplied to the create or update resource group service operation.

func (GroupsClient) CreateOrUpdatePreparer

func (client GroupsClient) CreateOrUpdatePreparer(resourceGroupName string, parameters ResourceGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GroupsClient) CreateOrUpdateResponder

func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ResourceGroup, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (GroupsClient) CreateOrUpdateSender

func (client GroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (GroupsClient) Delete

func (client GroupsClient) Delete(resourceGroupName string) (result autorest.Response, ae error)

Delete begin deleting resource group.To determine whether the operation has finished processing the request, call GetLongRunningOperationStatus.

resourceGroupName is the name of the resource group to be deleted. The name is case insensitive.

func (GroupsClient) DeletePreparer

func (client GroupsClient) DeletePreparer(resourceGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupsClient) DeleteResponder

func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GroupsClient) DeleteSender

func (client GroupsClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (GroupsClient) Get

func (client GroupsClient) Get(resourceGroupName string) (result ResourceGroup, ae error)

Get get a resource group.

resourceGroupName is the name of the resource group to get. The name is case insensitive.

func (GroupsClient) GetPreparer

func (client GroupsClient) GetPreparer(resourceGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GroupsClient) GetResponder

func (client GroupsClient) GetResponder(resp *http.Response) (result ResourceGroup, err error)

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

func (GroupsClient) GetSender

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

func (client GroupsClient) List(filter string, top *int) (result ResourceGroupListResult, ae error)

List gets a collection of resource groups.

filter is the filter to apply on the operation. top is query parameters. If null is passed returns all resource groups.

func (GroupsClient) ListNextResults

func (client GroupsClient) ListNextResults(lastResults ResourceGroupListResult) (result ResourceGroupListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (GroupsClient) ListPreparer

func (client GroupsClient) ListPreparer(filter string, top *int) (*http.Request, error)

ListPreparer prepares the List request.

func (GroupsClient) ListResources

func (client GroupsClient) ListResources(resourceGroupName string, filter string, top *int) (result ResourceListResult, ae error)

ListResources get all of the resources under a subscription.

resourceGroupName is query parameters. If null is passed returns all resource groups. filter is the filter to apply on the operation. top is query parameters. If null is passed returns all resource groups.

func (GroupsClient) ListResourcesNextResults

func (client GroupsClient) ListResourcesNextResults(lastResults ResourceListResult) (result ResourceListResult, ae error)

ListResourcesNextResults retrieves the next set of results, if any.

func (GroupsClient) ListResourcesPreparer

func (client GroupsClient) ListResourcesPreparer(resourceGroupName string, filter string, top *int) (*http.Request, error)

ListResourcesPreparer prepares the ListResources request.

func (GroupsClient) ListResourcesResponder

func (client GroupsClient) ListResourcesResponder(resp *http.Response) (result ResourceListResult, err error)

ListResourcesResponder handles the response to the ListResources request. The method always closes the http.Response Body.

func (GroupsClient) ListResourcesSender

func (client GroupsClient) ListResourcesSender(req *http.Request) (*http.Response, error)

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

func (GroupsClient) ListResponder

func (client GroupsClient) ListResponder(resp *http.Response) (result ResourceGroupListResult, err error)

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

func (GroupsClient) ListSender

func (client GroupsClient) 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 (GroupsClient) Patch

func (client GroupsClient) Patch(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, ae error)

Patch resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource groups, though if a field is unspecified current value will be carried over.

resourceGroupName is the name of the resource group to be created or updated. The name is case insensitive. parameters is parameters supplied to the update state resource group service operation.

func (GroupsClient) PatchPreparer

func (client GroupsClient) PatchPreparer(resourceGroupName string, parameters ResourceGroup) (*http.Request, error)

PatchPreparer prepares the Patch request.

func (GroupsClient) PatchResponder

func (client GroupsClient) PatchResponder(resp *http.Response) (result ResourceGroup, err error)

PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.

func (GroupsClient) PatchSender

func (client GroupsClient) PatchSender(req *http.Request) (*http.Response, error)

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

type ManagementClient

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

ManagementClient is the base client for Resources.

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

func (client ManagementClient) CheckExistence(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result autorest.Response, ae error)

CheckExistence checks whether resource exists.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity.

func (ManagementClient) CheckExistencePreparer

func (client ManagementClient) CheckExistencePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (*http.Request, error)

CheckExistencePreparer prepares the CheckExistence request.

func (ManagementClient) CheckExistenceResponder

func (client ManagementClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error)

CheckExistenceResponder handles the response to the CheckExistence request. The method always closes the http.Response Body.

func (ManagementClient) CheckExistenceSender

func (client ManagementClient) CheckExistenceSender(req *http.Request) (*http.Response, error)

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

func (ManagementClient) CreateOrUpdate

func (client ManagementClient) CreateOrUpdate(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string, parameters GenericResource) (result GenericResource, ae error)

CreateOrUpdate create a resource.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity. parameters is create or update resource parameters.

func (ManagementClient) CreateOrUpdatePreparer

func (client ManagementClient) CreateOrUpdatePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string, parameters GenericResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagementClient) CreateOrUpdateResponder

func (client ManagementClient) CreateOrUpdateResponder(resp *http.Response) (result GenericResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagementClient) CreateOrUpdateSender

func (client ManagementClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (ManagementClient) Delete

func (client ManagementClient) Delete(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result autorest.Response, ae error)

Delete delete resource and all of its resources.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity.

func (ManagementClient) DeletePreparer

func (client ManagementClient) DeletePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagementClient) DeleteResponder

func (client ManagementClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ManagementClient) DeleteSender

func (client ManagementClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (ManagementClient) Get

func (client ManagementClient) Get(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result GenericResource, ae error)

Get returns a resource belonging to a resource group.

resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity.

func (ManagementClient) GetPreparer

func (client ManagementClient) GetPreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagementClient) GetResponder

func (client ManagementClient) GetResponder(resp *http.Response) (result GenericResource, 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(filter string, top *int) (result ResourceListResult, ae error)

List get all of the resources under a subscription.

filter is the filter to apply on the operation. top is query parameters. If null is passed returns all resource groups.

func (ManagementClient) ListNextResults

func (client ManagementClient) ListNextResults(lastResults ResourceListResult) (result ResourceListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (ManagementClient) ListPreparer

func (client ManagementClient) ListPreparer(filter string, top *int) (*http.Request, error)

ListPreparer prepares the List request.

func (ManagementClient) ListResponder

func (client ManagementClient) ListResponder(resp *http.Response) (result ResourceListResult, 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) MoveResources

func (client ManagementClient) MoveResources(sourceResourceGroupName string, parameters MoveInfo) (result autorest.Response, ae error)

MoveResources begin moving resources.To determine whether the operation has finished processing the request, call GetLongRunningOperationStatus.

sourceResourceGroupName is source resource group name. parameters is move resources' parameters.

func (ManagementClient) MoveResourcesPreparer

func (client ManagementClient) MoveResourcesPreparer(sourceResourceGroupName string, parameters MoveInfo) (*http.Request, error)

MoveResourcesPreparer prepares the MoveResources request.

func (ManagementClient) MoveResourcesResponder

func (client ManagementClient) MoveResourcesResponder(resp *http.Response) (result autorest.Response, err error)

MoveResourcesResponder handles the response to the MoveResources request. The method always closes the http.Response Body.

func (ManagementClient) MoveResourcesSender

func (client ManagementClient) MoveResourcesSender(req *http.Request) (*http.Response, error)

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

type MoveInfo

type MoveInfo struct {
	Resources           *[]string `json:"resources,omitempty"`
	TargetResourceGroup *string   `json:"targetResourceGroup,omitempty"`
}

MoveInfo is parameters of move resources.

type ParametersLink struct {
	URI            *string `json:"uri,omitempty"`
	ContentVersion *string `json:"contentVersion,omitempty"`
}

ParametersLink is entity representing the reference to the deployment paramaters.

type Plan

type Plan struct {
	Name          *string `json:"name,omitempty"`
	Publisher     *string `json:"publisher,omitempty"`
	Product       *string `json:"product,omitempty"`
	PromotionCode *string `json:"promotionCode,omitempty"`
}

Plan is plan for the resource.

type PolicyAssignment

type PolicyAssignment struct {
	autorest.Response `json:"-"`
	Properties        *PolicyAssignmentProperties `json:"properties,omitempty"`
	Name              *string                     `json:"name,omitempty"`
}

PolicyAssignment is policy assignment.

type PolicyAssignmentListResult

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

PolicyAssignmentListResult is policy assignment list operation result.

func (PolicyAssignmentListResult) PolicyAssignmentListResultPreparer

func (client PolicyAssignmentListResult) PolicyAssignmentListResultPreparer() (*http.Request, error)

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

type PolicyAssignmentProperties

type PolicyAssignmentProperties struct {
	Scope              *string `json:"scope,omitempty"`
	DisplayName        *string `json:"displayName,omitempty"`
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
}

PolicyAssignmentProperties is policy Assignment properties.

type PolicyAssignmentsClient

type PolicyAssignmentsClient struct {
	ManagementClient
}

PolicyAssignmentsClient is the client for the PolicyAssignments methods of the Resources service.

func NewPolicyAssignmentsClient

func NewPolicyAssignmentsClient(subscriptionID string) PolicyAssignmentsClient

NewPolicyAssignmentsClient creates an instance of the PolicyAssignmentsClient client.

func NewPolicyAssignmentsClientWithBaseURI

func NewPolicyAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) PolicyAssignmentsClient

NewPolicyAssignmentsClientWithBaseURI creates an instance of the PolicyAssignmentsClient client.

func (PolicyAssignmentsClient) Create

func (client PolicyAssignmentsClient) Create(scope string, policyAssignmentName string, parameters PolicyAssignment) (result PolicyAssignment, ae error)

Create create policy assignment.

scope is scope. policyAssignmentName is policy assignment name. parameters is policy assignment.

func (PolicyAssignmentsClient) CreateByID

func (client PolicyAssignmentsClient) CreateByID(policyAssignmentID string, parameters PolicyAssignment) (result PolicyAssignment, ae error)

CreateByID create policy assignment by Id.

policyAssignmentID is policy assignment Id parameters is policy assignment.

func (PolicyAssignmentsClient) CreateByIDPreparer

func (client PolicyAssignmentsClient) CreateByIDPreparer(policyAssignmentID string, parameters PolicyAssignment) (*http.Request, error)

CreateByIDPreparer prepares the CreateByID request.

func (PolicyAssignmentsClient) CreateByIDResponder

func (client PolicyAssignmentsClient) CreateByIDResponder(resp *http.Response) (result PolicyAssignment, err error)

CreateByIDResponder handles the response to the CreateByID request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) CreateByIDSender

func (client PolicyAssignmentsClient) CreateByIDSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) CreatePreparer

func (client PolicyAssignmentsClient) CreatePreparer(scope string, policyAssignmentName string, parameters PolicyAssignment) (*http.Request, error)

CreatePreparer prepares the Create request.

func (PolicyAssignmentsClient) CreateResponder

func (client PolicyAssignmentsClient) CreateResponder(resp *http.Response) (result PolicyAssignment, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) CreateSender

func (client PolicyAssignmentsClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) Delete

func (client PolicyAssignmentsClient) Delete(scope string, policyAssignmentName string) (result PolicyAssignment, ae error)

Delete delete policy assignment.

scope is scope. policyAssignmentName is policy assignment name.

func (PolicyAssignmentsClient) DeleteByID

func (client PolicyAssignmentsClient) DeleteByID(policyAssignmentID string) (result PolicyAssignment, ae error)

DeleteByID delete policy assignment.

policyAssignmentID is policy assignment Id

func (PolicyAssignmentsClient) DeleteByIDPreparer

func (client PolicyAssignmentsClient) DeleteByIDPreparer(policyAssignmentID string) (*http.Request, error)

DeleteByIDPreparer prepares the DeleteByID request.

func (PolicyAssignmentsClient) DeleteByIDResponder

func (client PolicyAssignmentsClient) DeleteByIDResponder(resp *http.Response) (result PolicyAssignment, err error)

DeleteByIDResponder handles the response to the DeleteByID request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) DeleteByIDSender

func (client PolicyAssignmentsClient) DeleteByIDSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) DeletePreparer

func (client PolicyAssignmentsClient) DeletePreparer(scope string, policyAssignmentName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PolicyAssignmentsClient) DeleteResponder

func (client PolicyAssignmentsClient) DeleteResponder(resp *http.Response) (result PolicyAssignment, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) DeleteSender

func (client PolicyAssignmentsClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) Get

func (client PolicyAssignmentsClient) Get(scope string, policyAssignmentName string) (result PolicyAssignment, ae error)

Get get single policy assignment.

scope is scope. policyAssignmentName is policy assignment name.

func (PolicyAssignmentsClient) GetByID

func (client PolicyAssignmentsClient) GetByID(policyAssignmentID string) (result PolicyAssignment, ae error)

GetByID get single policy assignment.

policyAssignmentID is policy assignment Id

func (PolicyAssignmentsClient) GetByIDPreparer

func (client PolicyAssignmentsClient) GetByIDPreparer(policyAssignmentID string) (*http.Request, error)

GetByIDPreparer prepares the GetByID request.

func (PolicyAssignmentsClient) GetByIDResponder

func (client PolicyAssignmentsClient) GetByIDResponder(resp *http.Response) (result PolicyAssignment, err error)

GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) GetByIDSender

func (client PolicyAssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) GetPreparer

func (client PolicyAssignmentsClient) GetPreparer(scope string, policyAssignmentName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PolicyAssignmentsClient) GetResponder

func (client PolicyAssignmentsClient) GetResponder(resp *http.Response) (result PolicyAssignment, err error)

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

func (PolicyAssignmentsClient) GetSender

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

func (client PolicyAssignmentsClient) List(filter string) (result PolicyAssignmentListResult, ae error)

List gets policy assignments of the subscription.

filter is the filter to apply on the operation.

func (PolicyAssignmentsClient) ListForResource

func (client PolicyAssignmentsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result PolicyAssignmentListResult, ae error)

ListForResource gets policy assignments of the resource.

resourceGroupName is the name of the resource group. resourceProviderNamespace is the name of the resource provider. parentResourcePath is the parent resource path. resourceType is the resource type. resourceName is the resource name. filter is the filter to apply on the operation.

func (PolicyAssignmentsClient) ListForResourceGroup

func (client PolicyAssignmentsClient) ListForResourceGroup(resourceGroupName string, filter string) (result PolicyAssignmentListResult, ae error)

ListForResourceGroup gets policy assignments of the resource group.

resourceGroupName is resource group name. filter is the filter to apply on the operation.

func (PolicyAssignmentsClient) ListForResourceGroupNextResults

func (client PolicyAssignmentsClient) ListForResourceGroupNextResults(lastResults PolicyAssignmentListResult) (result PolicyAssignmentListResult, ae error)

ListForResourceGroupNextResults retrieves the next set of results, if any.

func (PolicyAssignmentsClient) ListForResourceGroupPreparer

func (client PolicyAssignmentsClient) ListForResourceGroupPreparer(resourceGroupName string, filter string) (*http.Request, error)

ListForResourceGroupPreparer prepares the ListForResourceGroup request.

func (PolicyAssignmentsClient) ListForResourceGroupResponder

func (client PolicyAssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result PolicyAssignmentListResult, err error)

ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) ListForResourceGroupSender

func (client PolicyAssignmentsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) ListForResourceNextResults

func (client PolicyAssignmentsClient) ListForResourceNextResults(lastResults PolicyAssignmentListResult) (result PolicyAssignmentListResult, ae error)

ListForResourceNextResults retrieves the next set of results, if any.

func (PolicyAssignmentsClient) ListForResourcePreparer

func (client PolicyAssignmentsClient) ListForResourcePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (*http.Request, error)

ListForResourcePreparer prepares the ListForResource request.

func (PolicyAssignmentsClient) ListForResourceResponder

func (client PolicyAssignmentsClient) ListForResourceResponder(resp *http.Response) (result PolicyAssignmentListResult, err error)

ListForResourceResponder handles the response to the ListForResource request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) ListForResourceSender

func (client PolicyAssignmentsClient) ListForResourceSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) ListForScope

func (client PolicyAssignmentsClient) ListForScope(scope string, filter string) (result PolicyAssignmentListResult, ae error)

ListForScope gets policy assignments of the scope.

scope is scope. filter is the filter to apply on the operation.

func (PolicyAssignmentsClient) ListForScopeNextResults

func (client PolicyAssignmentsClient) ListForScopeNextResults(lastResults PolicyAssignmentListResult) (result PolicyAssignmentListResult, ae error)

ListForScopeNextResults retrieves the next set of results, if any.

func (PolicyAssignmentsClient) ListForScopePreparer

func (client PolicyAssignmentsClient) ListForScopePreparer(scope string, filter string) (*http.Request, error)

ListForScopePreparer prepares the ListForScope request.

func (PolicyAssignmentsClient) ListForScopeResponder

func (client PolicyAssignmentsClient) ListForScopeResponder(resp *http.Response) (result PolicyAssignmentListResult, err error)

ListForScopeResponder handles the response to the ListForScope request. The method always closes the http.Response Body.

func (PolicyAssignmentsClient) ListForScopeSender

func (client PolicyAssignmentsClient) ListForScopeSender(req *http.Request) (*http.Response, error)

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

func (PolicyAssignmentsClient) ListNextResults

func (client PolicyAssignmentsClient) ListNextResults(lastResults PolicyAssignmentListResult) (result PolicyAssignmentListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (PolicyAssignmentsClient) ListPreparer

func (client PolicyAssignmentsClient) ListPreparer(filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (PolicyAssignmentsClient) ListResponder

func (client PolicyAssignmentsClient) ListResponder(resp *http.Response) (result PolicyAssignmentListResult, err error)

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

func (PolicyAssignmentsClient) ListSender

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

type PolicyDefinition

type PolicyDefinition struct {
	autorest.Response `json:"-"`
	Properties        *PolicyDefinitionProperties `json:"properties,omitempty"`
	Name              *string                     `json:"name,omitempty"`
}

PolicyDefinition is policy definition.

type PolicyDefinitionProperties

type PolicyDefinitionProperties struct {
	Description *string                 `json:"description,omitempty"`
	DisplayName *string                 `json:"displayName,omitempty"`
	PolicyRule  *map[string]interface{} `json:"policyRule,omitempty"`
}

PolicyDefinitionProperties is policy definition properties.

type PolicyDefinitionsClient

type PolicyDefinitionsClient struct {
	ManagementClient
}

PolicyDefinitionsClient is the client for the PolicyDefinitions methods of the Resources service.

func NewPolicyDefinitionsClient

func NewPolicyDefinitionsClient(subscriptionID string) PolicyDefinitionsClient

NewPolicyDefinitionsClient creates an instance of the PolicyDefinitionsClient client.

func NewPolicyDefinitionsClientWithBaseURI

func NewPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) PolicyDefinitionsClient

NewPolicyDefinitionsClientWithBaseURI creates an instance of the PolicyDefinitionsClient client.

func (PolicyDefinitionsClient) CreateOrUpdate

func (client PolicyDefinitionsClient) CreateOrUpdate(policyDefinitionName string, parameters PolicyDefinition) (result PolicyDefinition, ae error)

CreateOrUpdate create or update policy definition.

policyDefinitionName is the policy definition name. parameters is the policy definition properties

func (PolicyDefinitionsClient) CreateOrUpdatePreparer

func (client PolicyDefinitionsClient) CreateOrUpdatePreparer(policyDefinitionName string, parameters PolicyDefinition) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PolicyDefinitionsClient) CreateOrUpdateResponder

func (client PolicyDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyDefinition, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (PolicyDefinitionsClient) CreateOrUpdateSender

func (client PolicyDefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (PolicyDefinitionsClient) Delete

func (client PolicyDefinitionsClient) Delete(policyDefinitionName string) (result autorest.Response, ae error)

Delete deletes policy definition.

policyDefinitionName is the policy definition name.

func (PolicyDefinitionsClient) DeletePreparer

func (client PolicyDefinitionsClient) DeletePreparer(policyDefinitionName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PolicyDefinitionsClient) DeleteResponder

func (client PolicyDefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (PolicyDefinitionsClient) DeleteSender

func (client PolicyDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (PolicyDefinitionsClient) Get

func (client PolicyDefinitionsClient) Get(policyDefinitionName string) (result PolicyDefinition, ae error)

Get gets policy definition.

policyDefinitionName is the policy definition name.

func (PolicyDefinitionsClient) GetPreparer

func (client PolicyDefinitionsClient) GetPreparer(policyDefinitionName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PolicyDefinitionsClient) GetResponder

func (client PolicyDefinitionsClient) GetResponder(resp *http.Response) (result PolicyDefinition, err error)

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

func (PolicyDefinitionsClient) GetSender

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

type Provider

type Provider struct {
	autorest.Response `json:"-"`
	ID                *string                 `json:"id,omitempty"`
	Namespace         *string                 `json:"namespace,omitempty"`
	RegistrationState *string                 `json:"registrationState,omitempty"`
	ResourceTypes     *[]ProviderResourceType `json:"resourceTypes,omitempty"`
}

Provider is resource provider information.

type ProviderListResult

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

ProviderListResult is list of resource providers.

func (ProviderListResult) ProviderListResultPreparer

func (client ProviderListResult) ProviderListResultPreparer() (*http.Request, error)

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

type ProviderOperationDetailsClient

type ProviderOperationDetailsClient struct {
	ManagementClient
}

ProviderOperationDetailsClient is the client for the ProviderOperationDetails methods of the Resources service.

func NewProviderOperationDetailsClient

func NewProviderOperationDetailsClient(subscriptionID string) ProviderOperationDetailsClient

NewProviderOperationDetailsClient creates an instance of the ProviderOperationDetailsClient client.

func NewProviderOperationDetailsClientWithBaseURI

func NewProviderOperationDetailsClientWithBaseURI(baseURI string, subscriptionID string) ProviderOperationDetailsClient

NewProviderOperationDetailsClientWithBaseURI creates an instance of the ProviderOperationDetailsClient client.

func (ProviderOperationDetailsClient) List

func (client ProviderOperationDetailsClient) List(resourceProviderNamespace string, apiVersion string) (result ResourceProviderOperationDetailListResult, ae error)

List gets a list of resource providers.

resourceProviderNamespace is resource identity.

func (ProviderOperationDetailsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (ProviderOperationDetailsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ProviderOperationDetailsClient) ListResponder

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

func (ProviderOperationDetailsClient) ListSender

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

type ProviderResourceType

type ProviderResourceType struct {
	ResourceType *string             `json:"resourceType,omitempty"`
	Locations    *[]string           `json:"locations,omitempty"`
	APIVersions  *[]string           `json:"apiVersions,omitempty"`
	Properties   *map[string]*string `json:"properties,omitempty"`
}

ProviderResourceType is resource type managed by the resource provider.

type ProvidersClient

type ProvidersClient struct {
	ManagementClient
}

ProvidersClient is the client for the Providers methods of the Resources service.

func NewProvidersClient

func NewProvidersClient(subscriptionID string) ProvidersClient

NewProvidersClient creates an instance of the ProvidersClient client.

func NewProvidersClientWithBaseURI

func NewProvidersClientWithBaseURI(baseURI string, subscriptionID string) ProvidersClient

NewProvidersClientWithBaseURI creates an instance of the ProvidersClient client.

func (ProvidersClient) Get

func (client ProvidersClient) Get(resourceProviderNamespace string) (result Provider, ae error)

Get gets a resource provider.

resourceProviderNamespace is namespace of the resource provider.

func (ProvidersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ProvidersClient) GetResponder

func (client ProvidersClient) GetResponder(resp *http.Response) (result Provider, err error)

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

func (ProvidersClient) GetSender

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

func (client ProvidersClient) List(top *int) (result ProviderListResult, ae error)

List gets a list of resource providers.

top is query parameters. If null is passed returns all deployments.

func (ProvidersClient) ListNextResults

func (client ProvidersClient) ListNextResults(lastResults ProviderListResult) (result ProviderListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (ProvidersClient) ListPreparer

func (client ProvidersClient) ListPreparer(top *int) (*http.Request, error)

ListPreparer prepares the List request.

func (ProvidersClient) ListResponder

func (client ProvidersClient) ListResponder(resp *http.Response) (result ProviderListResult, err error)

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

func (ProvidersClient) ListSender

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

func (client ProvidersClient) Register(resourceProviderNamespace string) (result Provider, ae error)

Register registers provider to be used with a subscription.

resourceProviderNamespace is namespace of the resource provider.

func (ProvidersClient) RegisterPreparer

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

RegisterPreparer prepares the Register request.

func (ProvidersClient) RegisterResponder

func (client ProvidersClient) RegisterResponder(resp *http.Response) (result Provider, err error)

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

func (ProvidersClient) RegisterSender

func (client ProvidersClient) 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 (ProvidersClient) Unregister

func (client ProvidersClient) Unregister(resourceProviderNamespace string) (result Provider, ae error)

Unregister unregisters provider from a subscription.

resourceProviderNamespace is namespace of the resource provider.

func (ProvidersClient) UnregisterPreparer

func (client ProvidersClient) UnregisterPreparer(resourceProviderNamespace string) (*http.Request, error)

UnregisterPreparer prepares the Unregister request.

func (ProvidersClient) UnregisterResponder

func (client ProvidersClient) UnregisterResponder(resp *http.Response) (result Provider, err error)

UnregisterResponder handles the response to the Unregister request. The method always closes the http.Response Body.

func (ProvidersClient) UnregisterSender

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

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 ResourceGroup

type ResourceGroup struct {
	autorest.Response `json:"-"`
	ID                *string                  `json:"id,omitempty"`
	Name              *string                  `json:"name,omitempty"`
	Properties        *ResourceGroupProperties `json:"properties,omitempty"`
	Location          *string                  `json:"location,omitempty"`
	Tags              *map[string]*string      `json:"tags,omitempty"`
}

ResourceGroup is resource group information.

type ResourceGroupFilter

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

ResourceGroupFilter is resource group filter.

type ResourceGroupListResult

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

ResourceGroupListResult is list of resource groups.

func (ResourceGroupListResult) ResourceGroupListResultPreparer

func (client ResourceGroupListResult) ResourceGroupListResultPreparer() (*http.Request, error)

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

type ResourceGroupProperties

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

ResourceGroupProperties is the resource group properties.

type ResourceListResult

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

ResourceListResult is list of resource groups.

func (ResourceListResult) ResourceListResultPreparer

func (client ResourceListResult) ResourceListResultPreparer() (*http.Request, error)

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

type ResourceManagementError

type ResourceManagementError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Target  *string `json:"target,omitempty"`
}

ResourceManagementError is

type ResourceManagementErrorWithDetails

type ResourceManagementErrorWithDetails struct {
	Code    *string                    `json:"code,omitempty"`
	Message *string                    `json:"message,omitempty"`
	Target  *string                    `json:"target,omitempty"`
	Details *[]ResourceManagementError `json:"details,omitempty"`
}

ResourceManagementErrorWithDetails is

type ResourceProviderOperationDefinition

type ResourceProviderOperationDefinition struct {
	Name    *string                                     `json:"name,omitempty"`
	Display *ResourceProviderOperationDisplayProperties `json:"display,omitempty"`
}

ResourceProviderOperationDefinition is resource provider operation information.

type ResourceProviderOperationDetailListResult

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

ResourceProviderOperationDetailListResult is list of resource provider operations.

func (ResourceProviderOperationDetailListResult) ResourceProviderOperationDetailListResultPreparer

func (client ResourceProviderOperationDetailListResult) ResourceProviderOperationDetailListResultPreparer() (*http.Request, error)

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

type ResourceProviderOperationDisplayProperties

type ResourceProviderOperationDisplayProperties struct {
	Publisher   *string `json:"publisher,omitempty"`
	Provider    *string `json:"provider,omitempty"`
	Resource    *string `json:"resource,omitempty"`
	Operation   *string `json:"operation,omitempty"`
	Description *string `json:"description,omitempty"`
}

ResourceProviderOperationDisplayProperties is resource provider operation's display properties.

type SubResource

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

SubResource is

type TagCount

type TagCount struct {
	Type  *string `json:"type,omitempty"`
	Value *string `json:"value,omitempty"`
}

TagCount is tag count.

type TagDetails

type TagDetails struct {
	autorest.Response `json:"-"`
	ID                *string     `json:"id,omitempty"`
	TagName           *string     `json:"tagName,omitempty"`
	Count             *TagCount   `json:"count,omitempty"`
	Values            *[]TagValue `json:"values,omitempty"`
}

TagDetails is tag details.

type TagValue

type TagValue struct {
	autorest.Response `json:"-"`
	ID                *string   `json:"id,omitempty"`
	TagValueProperty  *string   `json:"tagValue,omitempty"`
	Count             *TagCount `json:"count,omitempty"`
}

TagValue is tag information.

type TagsClient

type TagsClient struct {
	ManagementClient
}

TagsClient is the client for the Tags methods of the Resources service.

func NewTagsClient

func NewTagsClient(subscriptionID string) TagsClient

NewTagsClient creates an instance of the TagsClient client.

func NewTagsClientWithBaseURI

func NewTagsClientWithBaseURI(baseURI string, subscriptionID string) TagsClient

NewTagsClientWithBaseURI creates an instance of the TagsClient client.

func (TagsClient) CreateOrUpdate

func (client TagsClient) CreateOrUpdate(tagName string) (result TagDetails, ae error)

CreateOrUpdate create a subscription resource tag.

tagName is the name of the tag.

func (TagsClient) CreateOrUpdatePreparer

func (client TagsClient) CreateOrUpdatePreparer(tagName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (TagsClient) CreateOrUpdateResponder

func (client TagsClient) CreateOrUpdateResponder(resp *http.Response) (result TagDetails, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (TagsClient) CreateOrUpdateSender

func (client TagsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (TagsClient) CreateOrUpdateValue

func (client TagsClient) CreateOrUpdateValue(tagName string, tagValue string) (result TagValue, ae error)

CreateOrUpdateValue create a subscription resource tag value.

tagName is the name of the tag. tagValue is the value of the tag.

func (TagsClient) CreateOrUpdateValuePreparer

func (client TagsClient) CreateOrUpdateValuePreparer(tagName string, tagValue string) (*http.Request, error)

CreateOrUpdateValuePreparer prepares the CreateOrUpdateValue request.

func (TagsClient) CreateOrUpdateValueResponder

func (client TagsClient) CreateOrUpdateValueResponder(resp *http.Response) (result TagValue, err error)

CreateOrUpdateValueResponder handles the response to the CreateOrUpdateValue request. The method always closes the http.Response Body.

func (TagsClient) CreateOrUpdateValueSender

func (client TagsClient) CreateOrUpdateValueSender(req *http.Request) (*http.Response, error)

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

func (TagsClient) Delete

func (client TagsClient) Delete(tagName string) (result autorest.Response, ae error)

Delete delete a subscription resource tag.

tagName is the name of the tag.

func (TagsClient) DeletePreparer

func (client TagsClient) DeletePreparer(tagName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (TagsClient) DeleteResponder

func (client TagsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (TagsClient) DeleteSender

func (client TagsClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (TagsClient) DeleteValue

func (client TagsClient) DeleteValue(tagName string, tagValue string) (result autorest.Response, ae error)

DeleteValue delete a subscription resource tag value.

tagName is the name of the tag. tagValue is the value of the tag.

func (TagsClient) DeleteValuePreparer

func (client TagsClient) DeleteValuePreparer(tagName string, tagValue string) (*http.Request, error)

DeleteValuePreparer prepares the DeleteValue request.

func (TagsClient) DeleteValueResponder

func (client TagsClient) DeleteValueResponder(resp *http.Response) (result autorest.Response, err error)

DeleteValueResponder handles the response to the DeleteValue request. The method always closes the http.Response Body.

func (TagsClient) DeleteValueSender

func (client TagsClient) DeleteValueSender(req *http.Request) (*http.Response, error)

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

func (TagsClient) List

func (client TagsClient) List() (result TagsListResult, ae error)

List get a list of subscription resource tags.

func (TagsClient) ListNextResults

func (client TagsClient) ListNextResults(lastResults TagsListResult) (result TagsListResult, ae error)

ListNextResults retrieves the next set of results, if any.

func (TagsClient) ListPreparer

func (client TagsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (TagsClient) ListResponder

func (client TagsClient) ListResponder(resp *http.Response) (result TagsListResult, err error)

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

func (TagsClient) ListSender

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

type TagsListResult

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

TagsListResult is list of subscription tags.

func (TagsListResult) TagsListResultPreparer

func (client TagsListResult) TagsListResultPreparer() (*http.Request, error)

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

type TargetResource

type TargetResource struct {
	ID           *string `json:"id,omitempty"`
	ResourceName *string `json:"resourceName,omitempty"`
	ResourceType *string `json:"resourceType,omitempty"`
}

TargetResource is target resource.

type TemplateLink struct {
	URI            *string `json:"uri,omitempty"`
	ContentVersion *string `json:"contentVersion,omitempty"`
}

TemplateLink is entity representing the reference to the template.

Jump to

Keyboard shortcuts

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