resources

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ApiVersion     = "2014-04-01-preview"
	DefaultBaseUri = "https://management.azure.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicDependency

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

Deployment dependency information.

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"`
}

Deployment dependency information.

type Deployment

type Deployment struct {
	Properties struct {
		Template     map[string]string `json:"template,omitempty"`
		TemplateLink struct {
			Uri            string `json:"uri,omitempty"`
			ContentVersion string `json:"contentVersion,omitempty"`
		} `json:"templateLink,omitempty"`
		Parameters     map[string]string `json:"parameters,omitempty"`
		ParametersLink struct {
			Uri            string `json:"uri,omitempty"`
			ContentVersion string `json:"contentVersion,omitempty"`
		} `json:"parametersLink,omitempty"`
		Mode DeploymentMode `json:"mode,omitempty"`
	} `json:"properties,omitempty"`
}

Deployment operation parameters.

type DeploymentExtended

type DeploymentExtended struct {
	autorest.Response `json:"-"`
	Id                string `json:"id,omitempty"`
	Name              string `json:"name,omitempty"`
	Properties        struct {
		ProvisioningState string            `json:"provisioningState,omitempty"`
		CorrelationId     string            `json:"correlationId,omitempty"`
		Timestamp         date.Time         `json:"timestamp,omitempty"`
		Outputs           map[string]string `json:"outputs,omitempty"`
		Providers         []Provider        `json:"providers,omitempty"`
		Dependencies      []Dependency      `json:"dependencies,omitempty"`
		Template          map[string]string `json:"template,omitempty"`
		TemplateLink      struct {
			Uri            string `json:"uri,omitempty"`
			ContentVersion string `json:"contentVersion,omitempty"`
		} `json:"templateLink,omitempty"`
		Parameters     map[string]string `json:"parameters,omitempty"`
		ParametersLink struct {
			Uri            string `json:"uri,omitempty"`
			ContentVersion string `json:"contentVersion,omitempty"`
		} `json:"parametersLink,omitempty"`
		Mode DeploymentMode `json:"mode,omitempty"`
	} `json:"properties,omitempty"`
}

Deployment information.

type DeploymentListResult

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

List of deployments.

type DeploymentMode

type DeploymentMode string
const (
	Incremental DeploymentMode = "Incremental"
)

type DeploymentOperation

type DeploymentOperation struct {
	autorest.Response `json:"-"`
	Id                string `json:"id,omitempty"`
	OperationId       string `json:"operationId,omitempty"`
	Properties        struct {
		ProvisioningState string            `json:"provisioningState,omitempty"`
		Timestamp         date.Time         `json:"timestamp,omitempty"`
		StatusCode        string            `json:"statusCode,omitempty"`
		StatusMessage     map[string]string `json:"statusMessage,omitempty"`
		TargetResource    struct {
			Id           string `json:"id,omitempty"`
			ResourceName string `json:"resourceName,omitempty"`
			ResourceType string `json:"resourceType,omitempty"`
		} `json:"targetResource,omitempty"`
	} `json:"properties,omitempty"`
}

Deployment operation information.

type DeploymentOperationsClient

type DeploymentOperationsClient struct {
	ResourceManagementClient
}

DeploymentOperations Client

func NewDeploymentOperationsClient

func NewDeploymentOperationsClient(subscriptionId string) DeploymentOperationsClient

func NewDeploymentOperationsClientWithBaseUri

func NewDeploymentOperationsClientWithBaseUri(baseUri string, subscriptionId string) DeploymentOperationsClient

func (DeploymentOperationsClient) Get

func (client DeploymentOperationsClient) Get(resourceGroupName string, deploymentName string, operationId string) (result DeploymentOperation, ae autorest.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) GetRequestPreparer

func (client DeploymentOperationsClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (DeploymentOperationsClient) List

func (client DeploymentOperationsClient) List(resourceGroupName string, deploymentName string, top int) (result DeploymentOperationsListResult, ae autorest.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) ListRequestPreparer

func (client DeploymentOperationsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (DeploymentOperationsClient) NewGetRequest

func (client DeploymentOperationsClient) NewGetRequest(resourceGroupName string, deploymentName string, operationId string) (*http.Request, error)

Create the Get request.

func (DeploymentOperationsClient) NewListRequest

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

Create the List request.

type DeploymentOperationsListResult

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

List of deployment operations.

type DeploymentValidateResult

type DeploymentValidateResult struct {
	autorest.Response `json:"-"`
	Error             struct {
		Details []ResourceManagementError `json:"details,omitempty"`
		Code    string                    `json:"code,omitempty"`
		Message string                    `json:"message,omitempty"`
		Target  string                    `json:"target,omitempty"`
	} `json:"error,omitempty"`
	Properties struct {
		ProvisioningState string            `json:"provisioningState,omitempty"`
		CorrelationId     string            `json:"correlationId,omitempty"`
		Timestamp         date.Time         `json:"timestamp,omitempty"`
		Outputs           map[string]string `json:"outputs,omitempty"`
		Providers         []Provider        `json:"providers,omitempty"`
		Dependencies      []Dependency      `json:"dependencies,omitempty"`
		Template          map[string]string `json:"template,omitempty"`
		TemplateLink      struct {
			Uri            string `json:"uri,omitempty"`
			ContentVersion string `json:"contentVersion,omitempty"`
		} `json:"templateLink,omitempty"`
		Parameters     map[string]string `json:"parameters,omitempty"`
		ParametersLink struct {
			Uri            string `json:"uri,omitempty"`
			ContentVersion string `json:"contentVersion,omitempty"`
		} `json:"parametersLink,omitempty"`
		Mode DeploymentMode `json:"mode,omitempty"`
	} `json:"properties,omitempty"`
}

Information from validate template deployment response.

type DeploymentsClient

type DeploymentsClient struct {
	ResourceManagementClient
}

Deployments Client

func NewDeploymentsClient

func NewDeploymentsClient(subscriptionId string) DeploymentsClient

func NewDeploymentsClientWithBaseUri

func NewDeploymentsClientWithBaseUri(baseUri string, subscriptionId string) DeploymentsClient

func (DeploymentsClient) Cancel

func (client DeploymentsClient) Cancel(resourceGroupName string, deploymentName string) (result autorest.Response, ae autorest.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) CancelRequestPreparer

func (client DeploymentsClient) CancelRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Cancel request.

func (DeploymentsClient) CreateOrUpdate

func (client DeploymentsClient) CreateOrUpdate(resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentExtended, ae autorest.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) CreateOrUpdateRequestPreparer

func (client DeploymentsClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (DeploymentsClient) Get

func (client DeploymentsClient) Get(resourceGroupName string, deploymentName string) (result DeploymentExtended, ae autorest.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) GetRequestPreparer

func (client DeploymentsClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (DeploymentsClient) List

func (client DeploymentsClient) List(resourceGroupName string, filter string, top int) (result DeploymentListResult, ae autorest.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) ListRequestPreparer

func (client DeploymentsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (DeploymentsClient) NewCancelRequest

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

Create the Cancel request.

func (DeploymentsClient) NewCreateOrUpdateRequest

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

Create the CreateOrUpdate request.

func (DeploymentsClient) NewGetRequest

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

Create the Get request.

func (DeploymentsClient) NewListRequest

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

Create the List request.

func (DeploymentsClient) NewValidateRequest

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

Create the Validate request.

func (DeploymentsClient) Validate

func (client DeploymentsClient) Validate(resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentValidateResult, ae autorest.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) ValidateRequestPreparer

func (client DeploymentsClient) ValidateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Validate request.

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              struct {
		Name          string `json:"name,omitempty"`
		Publisher     string `json:"publisher,omitempty"`
		Product       string `json:"product,omitempty"`
		PromotionCode string `json:"promotionCode,omitempty"`
	} `json:"plan,omitempty"`
	Properties map[string]string `json:"properties,omitempty"`
}

Resource information.

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"`
}

Resource provider information.

type ProviderListResult

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

List of resource providers.

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"`
}

Resource type managed by the resource provider.

type ProvidersClient

type ProvidersClient struct {
	ResourceManagementClient
}

Providers Client

func NewProvidersClient

func NewProvidersClient(subscriptionId string) ProvidersClient

func NewProvidersClientWithBaseUri

func NewProvidersClientWithBaseUri(baseUri string, subscriptionId string) ProvidersClient

func (ProvidersClient) Get

func (client ProvidersClient) Get(resourceProviderNamespace string) (result Provider, ae autorest.Error)

Get gets a resource provider.

resourceProviderNamespace is namespace of the resource provider.

func (ProvidersClient) GetRequestPreparer

func (client ProvidersClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (ProvidersClient) List

func (client ProvidersClient) List(top int) (result ProviderListResult, ae autorest.Error)

List gets a list of resource providers.

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

func (ProvidersClient) ListRequestPreparer

func (client ProvidersClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (ProvidersClient) NewGetRequest

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

Create the Get request.

func (ProvidersClient) NewListRequest

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

Create the List request.

func (ProvidersClient) NewRegisterRequest

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

Create the Register request.

func (ProvidersClient) NewUnregisterRequest

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

Create the Unregister request.

func (ProvidersClient) Register

func (client ProvidersClient) Register(resourceProviderNamespace string) (result Provider, ae autorest.Error)

Register registers provider to be used with a subscription.

resourceProviderNamespace is namespace of the resource provider.

func (ProvidersClient) RegisterRequestPreparer

func (client ProvidersClient) RegisterRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Register request.

func (ProvidersClient) Unregister

func (client ProvidersClient) Unregister(resourceProviderNamespace string) (result Provider, ae autorest.Error)

Unregister unregisters provider from a subscription.

resourceProviderNamespace is namespace of the resource provider.

func (ProvidersClient) UnregisterRequestPreparer

func (client ProvidersClient) UnregisterRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Unregister request.

type ResourceGroup

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

Resource group information.

type ResourceGroupListResult

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

List of resource groups.

type ResourceGroupsClient

type ResourceGroupsClient struct {
	ResourceManagementClient
}

ResourceGroups Client

func NewResourceGroupsClient

func NewResourceGroupsClient(subscriptionId string) ResourceGroupsClient

func NewResourceGroupsClientWithBaseUri

func NewResourceGroupsClientWithBaseUri(baseUri string, subscriptionId string) ResourceGroupsClient

func (ResourceGroupsClient) CheckExistence

func (client ResourceGroupsClient) CheckExistence(resourceGroupName string) (result autorest.Response, ae autorest.Error)

CheckExistence checks whether resource group exists.

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

func (ResourceGroupsClient) CheckExistenceRequestPreparer

func (client ResourceGroupsClient) CheckExistenceRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CheckExistence request.

func (ResourceGroupsClient) CreateOrUpdate

func (client ResourceGroupsClient) CreateOrUpdate(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, ae autorest.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 (ResourceGroupsClient) CreateOrUpdateRequestPreparer

func (client ResourceGroupsClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (ResourceGroupsClient) Delete

func (client ResourceGroupsClient) Delete(resourceGroupName string) (result autorest.Response, ae autorest.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 (ResourceGroupsClient) DeleteRequestPreparer

func (client ResourceGroupsClient) DeleteRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Delete request.

func (ResourceGroupsClient) Get

func (client ResourceGroupsClient) Get(resourceGroupName string) (result ResourceGroup, ae autorest.Error)

Get get a resource group.

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

func (ResourceGroupsClient) GetRequestPreparer

func (client ResourceGroupsClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (ResourceGroupsClient) List

func (client ResourceGroupsClient) List(filter string, top int) (result ResourceGroupListResult, ae autorest.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 (ResourceGroupsClient) ListRequestPreparer

func (client ResourceGroupsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (ResourceGroupsClient) ListResources

func (client ResourceGroupsClient) ListResources(resourceGroupName string, filter string, top int) (result ResourceListResult, ae autorest.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 (ResourceGroupsClient) ListResourcesRequestPreparer

func (client ResourceGroupsClient) ListResourcesRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListResources request.

func (ResourceGroupsClient) NewCheckExistenceRequest

func (client ResourceGroupsClient) NewCheckExistenceRequest(resourceGroupName string) (*http.Request, error)

Create the CheckExistence request.

func (ResourceGroupsClient) NewCreateOrUpdateRequest

func (client ResourceGroupsClient) NewCreateOrUpdateRequest(resourceGroupName string, parameters ResourceGroup) (*http.Request, error)

Create the CreateOrUpdate request.

func (ResourceGroupsClient) NewDeleteRequest

func (client ResourceGroupsClient) NewDeleteRequest(resourceGroupName string) (*http.Request, error)

Create the Delete request.

func (ResourceGroupsClient) NewGetRequest

func (client ResourceGroupsClient) NewGetRequest(resourceGroupName string) (*http.Request, error)

Create the Get request.

func (ResourceGroupsClient) NewListRequest

func (client ResourceGroupsClient) NewListRequest(filter string, top int) (*http.Request, error)

Create the List request.

func (ResourceGroupsClient) NewListResourcesRequest

func (client ResourceGroupsClient) NewListResourcesRequest(resourceGroupName string, filter string, top int) (*http.Request, error)

Create the ListResources request.

func (ResourceGroupsClient) NewPatchRequest

func (client ResourceGroupsClient) NewPatchRequest(resourceGroupName string, parameters ResourceGroup) (*http.Request, error)

Create the Patch request.

func (ResourceGroupsClient) Patch

func (client ResourceGroupsClient) Patch(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, ae autorest.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 (ResourceGroupsClient) PatchRequestPreparer

func (client ResourceGroupsClient) PatchRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Patch request.

type ResourceListResult

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

List of resource groups.

type ResourceManagementClient

type ResourceManagementClient struct {
	autorest.Client
	BaseUri        string
	SubscriptionId string
}

func New

func New(subscriptionId string) ResourceManagementClient

func NewWithBaseUri

func NewWithBaseUri(baseUri string, subscriptionId string) ResourceManagementClient

type ResourceManagementError

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

type ResourceProviderOperationDefinition

type ResourceProviderOperationDefinition struct {
	Name    string `json:"name,omitempty"`
	Display 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"`
	} `json:"display,omitempty"`
}

Resource provider operation information.

type ResourceProviderOperationDetailListResult

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

List of resource provider operations.

type ResourceProviderOperationDetailsClient

type ResourceProviderOperationDetailsClient struct {
	ResourceManagementClient
}

ResourceProviderOperationDetails Client

func NewResourceProviderOperationDetailsClient

func NewResourceProviderOperationDetailsClient(subscriptionId string) ResourceProviderOperationDetailsClient

func NewResourceProviderOperationDetailsClientWithBaseUri

func NewResourceProviderOperationDetailsClientWithBaseUri(baseUri string, subscriptionId string) ResourceProviderOperationDetailsClient

func (ResourceProviderOperationDetailsClient) List

func (client ResourceProviderOperationDetailsClient) List(resourceProviderNamespace string, apiVersion string) (result ResourceProviderOperationDetailListResult, ae autorest.Error)

List gets a list of resource providers.

resourceProviderNamespace is resource identity.

func (ResourceProviderOperationDetailsClient) ListRequestPreparer

func (client ResourceProviderOperationDetailsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (ResourceProviderOperationDetailsClient) NewListRequest

func (client ResourceProviderOperationDetailsClient) NewListRequest(resourceProviderNamespace string, apiVersion string) (*http.Request, error)

Create the List request.

type ResourcesClient

type ResourcesClient struct {
	ResourceManagementClient
}

Resources Client

func NewResourcesClient

func NewResourcesClient(subscriptionId string) ResourcesClient

func NewResourcesClientWithBaseUri

func NewResourcesClientWithBaseUri(baseUri string, subscriptionId string) ResourcesClient

func (ResourcesClient) CheckExistence

func (client ResourcesClient) CheckExistence(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result autorest.Response, ae autorest.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 (ResourcesClient) CheckExistenceRequestPreparer

func (client ResourcesClient) CheckExistenceRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CheckExistence request.

func (ResourcesClient) CreateOrUpdate

func (client ResourcesClient) CreateOrUpdate(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string, parameters GenericResource) (result GenericResource, ae autorest.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 (ResourcesClient) CreateOrUpdateRequestPreparer

func (client ResourcesClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (ResourcesClient) Delete

func (client ResourcesClient) Delete(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result autorest.Response, ae autorest.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 (ResourcesClient) DeleteRequestPreparer

func (client ResourcesClient) DeleteRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Delete request.

func (ResourcesClient) Get

func (client ResourcesClient) Get(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (result GenericResource, ae autorest.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 (ResourcesClient) GetRequestPreparer

func (client ResourcesClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (ResourcesClient) List

func (client ResourcesClient) List(filter string, top int) (result ResourceListResult, ae autorest.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 (ResourcesClient) ListRequestPreparer

func (client ResourcesClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (ResourcesClient) MoveResources

func (client ResourcesClient) MoveResources(sourceResourceGroupName string, parameters ResourcesMoveInfo) (result autorest.Response, ae autorest.Error)

MoveResources move resources within or across subscriptions.

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

func (ResourcesClient) MoveResourcesRequestPreparer

func (client ResourcesClient) MoveResourcesRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the MoveResources request.

func (ResourcesClient) NewCheckExistenceRequest

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

Create the CheckExistence request.

func (ResourcesClient) NewCreateOrUpdateRequest

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

Create the CreateOrUpdate request.

func (ResourcesClient) NewDeleteRequest

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

Create the Delete request.

func (ResourcesClient) NewGetRequest

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

Create the Get request.

func (ResourcesClient) NewListRequest

func (client ResourcesClient) NewListRequest(filter string, top int) (*http.Request, error)

Create the List request.

func (ResourcesClient) NewMoveResourcesRequest

func (client ResourcesClient) NewMoveResourcesRequest(sourceResourceGroupName string, parameters ResourcesMoveInfo) (*http.Request, error)

Create the MoveResources request.

type ResourcesMoveInfo

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

Parameters of move resources.

type TagDetails

type TagDetails struct {
	autorest.Response `json:"-"`
	Id                string `json:"id,omitempty"`
	TagName           string `json:"tagName,omitempty"`
	Count             struct {
		Type  string `json:"type,omitempty"`
		Value string `json:"value,omitempty"`
	} `json:"count,omitempty"`
	Values []TagValue `json:"values,omitempty"`
}

Tag details.

type TagValue

type TagValue struct {
	autorest.Response `json:"-"`
	Id                string `json:"id,omitempty"`
	TagValueProperty  string `json:"tagValue,omitempty"`
	Count             struct {
		Type  string `json:"type,omitempty"`
		Value string `json:"value,omitempty"`
	} `json:"count,omitempty"`
}

Tag information.

type TagsClient

type TagsClient struct {
	ResourceManagementClient
}

Tags Client

func NewTagsClient

func NewTagsClient(subscriptionId string) TagsClient

func NewTagsClientWithBaseUri

func NewTagsClientWithBaseUri(baseUri string, subscriptionId string) TagsClient

func (TagsClient) CreateOrUpdate

func (client TagsClient) CreateOrUpdate(tagName string) (result TagDetails, ae autorest.Error)

CreateOrUpdate create a subscription resource tag.

tagName is the name of the tag.

func (TagsClient) CreateOrUpdateRequestPreparer

func (client TagsClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (TagsClient) CreateOrUpdateValue

func (client TagsClient) CreateOrUpdateValue(tagName string, tagValue string) (result TagValue, ae autorest.Error)

CreateOrUpdateValue create a subscription resource tag value.

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

func (TagsClient) CreateOrUpdateValueRequestPreparer

func (client TagsClient) CreateOrUpdateValueRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdateValue request.

func (TagsClient) Delete

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

Delete delete a subscription resource tag.

tagName is the name of the tag.

func (TagsClient) DeleteRequestPreparer

func (client TagsClient) DeleteRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Delete request.

func (TagsClient) DeleteValue

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

DeleteValue delete a subscription resource tag value.

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

func (TagsClient) DeleteValueRequestPreparer

func (client TagsClient) DeleteValueRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the DeleteValue request.

func (TagsClient) List

func (client TagsClient) List() (result TagsListResult, ae autorest.Error)

List get a list of subscription resource tags.

func (TagsClient) ListRequestPreparer

func (client TagsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (TagsClient) NewCreateOrUpdateRequest

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

Create the CreateOrUpdate request.

func (TagsClient) NewCreateOrUpdateValueRequest

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

Create the CreateOrUpdateValue request.

func (TagsClient) NewDeleteRequest

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

Create the Delete request.

func (TagsClient) NewDeleteValueRequest

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

Create the DeleteValue request.

func (TagsClient) NewListRequest

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

Create the List request.

type TagsListResult

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

List of subscription tags.

Jump to

Keyboard shortcuts

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