Documentation
¶
Overview ¶
Package resources implements the Azure ARM Resources service API version 2016-09-01.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AliasPathType
- type AliasType
- type BasicDependency
- type Client
- func (client Client) CheckExistence(resourceGroupName string, resourceProviderNamespace string, ...) (result autorest.Response, err error)
- func (client Client) CheckExistenceByID(resourceID string) (result autorest.Response, err error)
- func (client Client) CheckExistenceByIDPreparer(resourceID string) (*http.Request, error)
- func (client Client) CheckExistenceByIDResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CheckExistenceByIDSender(req *http.Request) (*http.Response, error)
- func (client Client) CheckExistencePreparer(resourceGroupName string, resourceProviderNamespace string, ...) (*http.Request, error)
- func (client Client) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CheckExistenceSender(req *http.Request) (*http.Response, error)
- func (client Client) CreateOrUpdate(resourceGroupName string, resourceProviderNamespace string, ...) (result autorest.Response, err error)
- func (client Client) CreateOrUpdateByID(resourceID string, parameters GenericResource, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client Client) CreateOrUpdateByIDPreparer(resourceID string, parameters GenericResource, cancel <-chan struct{}) (*http.Request, error)
- func (client Client) CreateOrUpdateByIDResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CreateOrUpdateByIDSender(req *http.Request) (*http.Response, error)
- func (client Client) CreateOrUpdatePreparer(resourceGroupName string, resourceProviderNamespace string, ...) (*http.Request, error)
- func (client Client) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client Client) Delete(resourceGroupName string, resourceProviderNamespace string, ...) (result autorest.Response, err error)
- func (client Client) DeleteByID(resourceID string, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client Client) DeleteByIDPreparer(resourceID string, cancel <-chan struct{}) (*http.Request, error)
- func (client Client) DeleteByIDResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) DeleteByIDSender(req *http.Request) (*http.Response, error)
- func (client Client) DeletePreparer(resourceGroupName string, resourceProviderNamespace string, ...) (*http.Request, error)
- func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) DeleteSender(req *http.Request) (*http.Response, error)
- func (client Client) Get(resourceGroupName string, resourceProviderNamespace string, ...) (result GenericResource, err error)
- func (client Client) GetByID(resourceID string) (result GenericResource, err error)
- func (client Client) GetByIDPreparer(resourceID string) (*http.Request, error)
- func (client Client) GetByIDResponder(resp *http.Response) (result GenericResource, err error)
- func (client Client) GetByIDSender(req *http.Request) (*http.Response, error)
- func (client Client) GetPreparer(resourceGroupName string, resourceProviderNamespace string, ...) (*http.Request, error)
- func (client Client) GetResponder(resp *http.Response) (result GenericResource, err error)
- func (client Client) GetSender(req *http.Request) (*http.Response, error)
- func (client Client) List(filter string, expand string, top *int32) (result ResourceListResult, err error)
- func (client Client) ListNextResults(lastResults ResourceListResult) (result ResourceListResult, err error)
- func (client Client) ListPreparer(filter string, expand string, top *int32) (*http.Request, error)
- func (client Client) ListResponder(resp *http.Response) (result ResourceListResult, err error)
- func (client Client) ListSender(req *http.Request) (*http.Response, error)
- func (client Client) MoveResources(sourceResourceGroupName string, parameters MoveInfo, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client Client) MoveResourcesPreparer(sourceResourceGroupName string, parameters MoveInfo, cancel <-chan struct{}) (*http.Request, error)
- func (client Client) MoveResourcesResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) MoveResourcesSender(req *http.Request) (*http.Response, error)
- type DebugSetting
- type Dependency
- type Deployment
- type DeploymentExportResult
- type DeploymentExtended
- type DeploymentExtendedFilter
- type DeploymentListResult
- type DeploymentMode
- type DeploymentOperation
- type DeploymentOperationProperties
- type DeploymentOperationsClient
- func (client DeploymentOperationsClient) Get(resourceGroupName string, deploymentName string, operationID string) (result DeploymentOperation, err error)
- func (client DeploymentOperationsClient) GetPreparer(resourceGroupName string, deploymentName string, operationID string) (*http.Request, error)
- func (client DeploymentOperationsClient) GetResponder(resp *http.Response) (result DeploymentOperation, err error)
- func (client DeploymentOperationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DeploymentOperationsClient) List(resourceGroupName string, deploymentName string, top *int32) (result DeploymentOperationsListResult, err error)
- func (client DeploymentOperationsClient) ListNextResults(lastResults DeploymentOperationsListResult) (result DeploymentOperationsListResult, err error)
- func (client DeploymentOperationsClient) ListPreparer(resourceGroupName string, deploymentName string, top *int32) (*http.Request, error)
- func (client DeploymentOperationsClient) ListResponder(resp *http.Response) (result DeploymentOperationsListResult, err error)
- func (client DeploymentOperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type DeploymentOperationsListResult
- type DeploymentProperties
- type DeploymentPropertiesExtended
- type DeploymentValidateResult
- type DeploymentsClient
- func (client DeploymentsClient) Cancel(resourceGroupName string, deploymentName string) (result autorest.Response, err error)
- func (client DeploymentsClient) CancelPreparer(resourceGroupName string, deploymentName string) (*http.Request, error)
- func (client DeploymentsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DeploymentsClient) CancelSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) CheckExistence(resourceGroupName string, deploymentName string) (result autorest.Response, err error)
- func (client DeploymentsClient) CheckExistencePreparer(resourceGroupName string, deploymentName string) (*http.Request, error)
- func (client DeploymentsClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DeploymentsClient) CheckExistenceSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) CreateOrUpdate(resourceGroupName string, deploymentName string, parameters Deployment, ...) (result autorest.Response, err error)
- func (client DeploymentsClient) CreateOrUpdatePreparer(resourceGroupName string, deploymentName string, parameters Deployment, ...) (*http.Request, error)
- func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DeploymentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) Delete(resourceGroupName string, deploymentName string, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client DeploymentsClient) DeletePreparer(resourceGroupName string, deploymentName string, cancel <-chan struct{}) (*http.Request, error)
- func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DeploymentsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) ExportTemplate(resourceGroupName string, deploymentName string) (result DeploymentExportResult, err error)
- func (client DeploymentsClient) ExportTemplatePreparer(resourceGroupName string, deploymentName string) (*http.Request, error)
- func (client DeploymentsClient) ExportTemplateResponder(resp *http.Response) (result DeploymentExportResult, err error)
- func (client DeploymentsClient) ExportTemplateSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) Get(resourceGroupName string, deploymentName string) (result DeploymentExtended, err error)
- func (client DeploymentsClient) GetPreparer(resourceGroupName string, deploymentName string) (*http.Request, error)
- func (client DeploymentsClient) GetResponder(resp *http.Response) (result DeploymentExtended, err error)
- func (client DeploymentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) List(resourceGroupName string, filter string, top *int32) (result DeploymentListResult, err error)
- func (client DeploymentsClient) ListNextResults(lastResults DeploymentListResult) (result DeploymentListResult, err error)
- func (client DeploymentsClient) ListPreparer(resourceGroupName string, filter string, top *int32) (*http.Request, error)
- func (client DeploymentsClient) ListResponder(resp *http.Response) (result DeploymentListResult, err error)
- func (client DeploymentsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) Validate(resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentValidateResult, err error)
- func (client DeploymentsClient) ValidatePreparer(resourceGroupName string, deploymentName string, parameters Deployment) (*http.Request, error)
- func (client DeploymentsClient) ValidateResponder(resp *http.Response) (result DeploymentValidateResult, err error)
- func (client DeploymentsClient) ValidateSender(req *http.Request) (*http.Response, error)
- type ExportTemplateRequest
- type GenericResource
- type GenericResourceFilter
- type GroupsClient
- func (client GroupsClient) CheckExistence(resourceGroupName string) (result autorest.Response, err error)
- func (client GroupsClient) CheckExistencePreparer(resourceGroupName string) (*http.Request, error)
- func (client GroupsClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error)
- func (client GroupsClient) CheckExistenceSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) CreateOrUpdate(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, err error)
- func (client GroupsClient) CreateOrUpdatePreparer(resourceGroupName string, parameters ResourceGroup) (*http.Request, error)
- func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ResourceGroup, err error)
- func (client GroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) Delete(resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client GroupsClient) DeletePreparer(resourceGroupName string, cancel <-chan struct{}) (*http.Request, error)
- func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client GroupsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) ExportTemplate(resourceGroupName string, parameters ExportTemplateRequest) (result ResourceGroupExportResult, err error)
- func (client GroupsClient) ExportTemplatePreparer(resourceGroupName string, parameters ExportTemplateRequest) (*http.Request, error)
- func (client GroupsClient) ExportTemplateResponder(resp *http.Response) (result ResourceGroupExportResult, err error)
- func (client GroupsClient) ExportTemplateSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) Get(resourceGroupName string) (result ResourceGroup, err error)
- func (client GroupsClient) GetPreparer(resourceGroupName string) (*http.Request, error)
- func (client GroupsClient) GetResponder(resp *http.Response) (result ResourceGroup, err error)
- func (client GroupsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) List(filter string, top *int32) (result ResourceGroupListResult, err error)
- func (client GroupsClient) ListNextResults(lastResults ResourceGroupListResult) (result ResourceGroupListResult, err error)
- func (client GroupsClient) ListPreparer(filter string, top *int32) (*http.Request, error)
- func (client GroupsClient) ListResources(resourceGroupName string, filter string, expand string, top *int32) (result ResourceListResult, err error)
- func (client GroupsClient) ListResourcesNextResults(lastResults ResourceListResult) (result ResourceListResult, err error)
- func (client GroupsClient) ListResourcesPreparer(resourceGroupName string, filter string, expand string, top *int32) (*http.Request, error)
- func (client GroupsClient) ListResourcesResponder(resp *http.Response) (result ResourceListResult, err error)
- func (client GroupsClient) ListResourcesSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) ListResponder(resp *http.Response) (result ResourceGroupListResult, err error)
- func (client GroupsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) Patch(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, err error)
- func (client GroupsClient) PatchPreparer(resourceGroupName string, parameters ResourceGroup) (*http.Request, error)
- func (client GroupsClient) PatchResponder(resp *http.Response) (result ResourceGroup, err error)
- func (client GroupsClient) PatchSender(req *http.Request) (*http.Response, error)
- type HTTPMessage
- type Identity
- type ManagementClient
- type MoveInfo
- type ParametersLink
- type Plan
- type Provider
- type ProviderListResult
- type ProviderResourceType
- type ProvidersClient
- func (client ProvidersClient) Get(resourceProviderNamespace string, expand string) (result Provider, err error)
- func (client ProvidersClient) GetPreparer(resourceProviderNamespace string, expand string) (*http.Request, error)
- func (client ProvidersClient) GetResponder(resp *http.Response) (result Provider, err error)
- func (client ProvidersClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ProvidersClient) List(top *int32, expand string) (result ProviderListResult, err error)
- func (client ProvidersClient) ListNextResults(lastResults ProviderListResult) (result ProviderListResult, err error)
- func (client ProvidersClient) ListPreparer(top *int32, expand string) (*http.Request, error)
- func (client ProvidersClient) ListResponder(resp *http.Response) (result ProviderListResult, err error)
- func (client ProvidersClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ProvidersClient) Register(resourceProviderNamespace string) (result Provider, err error)
- func (client ProvidersClient) RegisterPreparer(resourceProviderNamespace string) (*http.Request, error)
- func (client ProvidersClient) RegisterResponder(resp *http.Response) (result Provider, err error)
- func (client ProvidersClient) RegisterSender(req *http.Request) (*http.Response, error)
- func (client ProvidersClient) Unregister(resourceProviderNamespace string) (result Provider, err error)
- func (client ProvidersClient) UnregisterPreparer(resourceProviderNamespace string) (*http.Request, error)
- func (client ProvidersClient) UnregisterResponder(resp *http.Response) (result Provider, err error)
- func (client ProvidersClient) UnregisterSender(req *http.Request) (*http.Response, error)
- type Resource
- type ResourceGroup
- type ResourceGroupExportResult
- type ResourceGroupFilter
- type ResourceGroupListResult
- type ResourceGroupProperties
- type ResourceIdentityType
- type ResourceListResult
- type ResourceManagementErrorWithDetails
- type ResourceProviderOperationDisplayProperties
- type Sku
- type SubResource
- type TagCount
- type TagDetails
- type TagValue
- type TagsClient
- func (client TagsClient) CreateOrUpdate(tagName string) (result TagDetails, err error)
- func (client TagsClient) CreateOrUpdatePreparer(tagName string) (*http.Request, error)
- func (client TagsClient) CreateOrUpdateResponder(resp *http.Response) (result TagDetails, err error)
- func (client TagsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client TagsClient) CreateOrUpdateValue(tagName string, tagValue string) (result TagValue, err error)
- func (client TagsClient) CreateOrUpdateValuePreparer(tagName string, tagValue string) (*http.Request, error)
- func (client TagsClient) CreateOrUpdateValueResponder(resp *http.Response) (result TagValue, err error)
- func (client TagsClient) CreateOrUpdateValueSender(req *http.Request) (*http.Response, error)
- func (client TagsClient) Delete(tagName string) (result autorest.Response, err error)
- func (client TagsClient) DeletePreparer(tagName string) (*http.Request, error)
- func (client TagsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client TagsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client TagsClient) DeleteValue(tagName string, tagValue string) (result autorest.Response, err error)
- func (client TagsClient) DeleteValuePreparer(tagName string, tagValue string) (*http.Request, error)
- func (client TagsClient) DeleteValueResponder(resp *http.Response) (result autorest.Response, err error)
- func (client TagsClient) DeleteValueSender(req *http.Request) (*http.Response, error)
- func (client TagsClient) List() (result TagsListResult, err error)
- func (client TagsClient) ListNextResults(lastResults TagsListResult) (result TagsListResult, err error)
- func (client TagsClient) ListPreparer() (*http.Request, error)
- func (client TagsClient) ListResponder(resp *http.Response) (result TagsListResult, err error)
- func (client TagsClient) ListSender(req *http.Request) (*http.Response, error)
- type TagsListResult
- type TargetResource
- type TemplateLink
Constants ¶
const ( // APIVersion is the version of the Resources APIVersion = "2016-09-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 AliasPathType ¶
type AliasPathType struct { Path *string `json:"path,omitempty"` APIVersions *[]string `json:"apiVersions,omitempty"` }
AliasPathType is the type of the paths for alias.
type AliasType ¶
type AliasType struct { Name *string `json:"name,omitempty"` Paths *[]AliasPathType `json:"paths,omitempty"` }
AliasType is the alias type.
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 NewClientWithBaseURI ¶
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) (result autorest.Response, err 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) CheckExistenceByID ¶
CheckExistenceByID checks whether resource exists.
resourceID is the fully qualified Id of the resource, including the resource name and resource type. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite
func (Client) CheckExistenceByIDPreparer ¶
CheckExistenceByIDPreparer prepares the CheckExistenceByID request.
func (Client) CheckExistenceByIDResponder ¶
func (client Client) CheckExistenceByIDResponder(resp *http.Response) (result autorest.Response, err error)
CheckExistenceByIDResponder handles the response to the CheckExistenceByID request. The method always closes the http.Response Body.
func (Client) CheckExistenceByIDSender ¶
CheckExistenceByIDSender sends the CheckExistenceByID request. The method will close the http.Response Body if it receives an error.
func (Client) CheckExistencePreparer ¶
func (client Client) CheckExistencePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName 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 ¶
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, parameters GenericResource, cancel <-chan struct{}) (result autorest.Response, err error)
CreateOrUpdate create a resource. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
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) CreateOrUpdateByID ¶
func (client Client) CreateOrUpdateByID(resourceID string, parameters GenericResource, cancel <-chan struct{}) (result autorest.Response, err error)
CreateOrUpdateByID create a resource. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceID is the fully qualified Id of the resource, including the resource name and resource type. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite parameters is create or update resource parameters.
func (Client) CreateOrUpdateByIDPreparer ¶
func (client Client) CreateOrUpdateByIDPreparer(resourceID string, parameters GenericResource, cancel <-chan struct{}) (*http.Request, error)
CreateOrUpdateByIDPreparer prepares the CreateOrUpdateByID request.
func (Client) CreateOrUpdateByIDResponder ¶
func (client Client) CreateOrUpdateByIDResponder(resp *http.Response) (result autorest.Response, err error)
CreateOrUpdateByIDResponder handles the response to the CreateOrUpdateByID request. The method always closes the http.Response Body.
func (Client) CreateOrUpdateByIDSender ¶
CreateOrUpdateByIDSender sends the CreateOrUpdateByID request. The method will close the http.Response Body if it receives an error.
func (Client) CreateOrUpdatePreparer ¶
func (client Client) CreateOrUpdatePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource, cancel <-chan struct{}) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (Client) CreateOrUpdateResponder ¶
func (client Client) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (Client) CreateOrUpdateSender ¶
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, cancel <-chan struct{}) (result autorest.Response, err error)
Delete deletes a resource. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
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) DeleteByID ¶
func (client Client) DeleteByID(resourceID string, cancel <-chan struct{}) (result autorest.Response, err error)
DeleteByID deletes a resource. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceID is the fully qualified Id of the resource, including the resource name and resource type. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite
func (Client) DeleteByIDPreparer ¶
func (client Client) DeleteByIDPreparer(resourceID string, cancel <-chan struct{}) (*http.Request, error)
DeleteByIDPreparer prepares the DeleteByID request.
func (Client) DeleteByIDResponder ¶
DeleteByIDResponder handles the response to the DeleteByID request. The method always closes the http.Response Body.
func (Client) DeleteByIDSender ¶
DeleteByIDSender sends the DeleteByID request. The method will close the http.Response Body if it receives an error.
func (Client) DeletePreparer ¶
func (client Client) DeletePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, cancel <-chan struct{}) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (Client) DeleteResponder ¶
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (Client) DeleteSender ¶
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) (result GenericResource, err 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) GetByID ¶
func (client Client) GetByID(resourceID string) (result GenericResource, err error)
GetByID gets a resource.
resourceID is the fully qualified Id of the resource, including the resource name and resource type. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite
func (Client) GetByIDPreparer ¶
GetByIDPreparer prepares the GetByID request.
func (Client) GetByIDResponder ¶
func (client Client) GetByIDResponder(resp *http.Response) (result GenericResource, err error)
GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.
func (Client) GetByIDSender ¶
GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.
func (Client) GetPreparer ¶
func (client Client) GetPreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName 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 ¶
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, expand string, top *int32) (result ResourceListResult, err error)
List get all of the resources under a subscription.
filter is the filter to apply on the operation. expand is the $expand query parameter. top is query parameters. If null is passed returns all resource groups.
func (Client) ListNextResults ¶
func (client Client) ListNextResults(lastResults ResourceListResult) (result ResourceListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (Client) ListPreparer ¶
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 ¶
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, cancel <-chan struct{}) (result autorest.Response, err error)
MoveResources move resources from one resource group to another. The resources being moved should all be in the same resource group. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
sourceResourceGroupName is source resource group name. parameters is move resources' parameters.
func (Client) MoveResourcesPreparer ¶
func (client Client) MoveResourcesPreparer(sourceResourceGroupName string, parameters MoveInfo, cancel <-chan struct{}) (*http.Request, error)
MoveResourcesPreparer prepares the MoveResources request.
type DebugSetting ¶
type DebugSetting struct {
DetailLevel *string `json:"detailLevel,omitempty"`
}
DebugSetting is
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 DeploymentExportResult ¶
type DeploymentExportResult struct { autorest.Response `json:"-"` Template *map[string]interface{} `json:"template,omitempty"` }
DeploymentExportResult is the deployment export result.
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"` ServiceRequestID *string `json:"serviceRequestId,omitempty"` StatusCode *string `json:"statusCode,omitempty"` StatusMessage *map[string]interface{} `json:"statusMessage,omitempty"` TargetResource *TargetResource `json:"targetResource,omitempty"` Request *HTTPMessage `json:"request,omitempty"` Response *HTTPMessage `json:"response,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, err 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 ¶
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 *int32) (result DeploymentOperationsListResult, err 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, err error)
ListNextResults retrieves the next set of results, if any.
func (DeploymentOperationsClient) ListPreparer ¶
func (client DeploymentOperationsClient) ListPreparer(resourceGroupName string, deploymentName string, top *int32) (*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 ¶
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"` DebugSetting *DebugSetting `json:"debugSetting,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"` DebugSetting *DebugSetting `json:"debugSetting,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, err 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 ¶
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, err 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 ¶
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, cancel <-chan struct{}) (result autorest.Response, err error)
CreateOrUpdate create a named template deployment using a template. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
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, cancel <-chan struct{}) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DeploymentsClient) CreateOrUpdateResponder ¶
func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DeploymentsClient) CreateOrUpdateSender ¶
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, cancel <-chan struct{}) (result autorest.Response, err error)
Delete delete deployment. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
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, cancel <-chan struct{}) (*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 ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DeploymentsClient) ExportTemplate ¶
func (client DeploymentsClient) ExportTemplate(resourceGroupName string, deploymentName string) (result DeploymentExportResult, err error)
ExportTemplate exports a deployment template.
resourceGroupName is the name of the resource group. The name is case insensitive. deploymentName is the name of the deployment.
func (DeploymentsClient) ExportTemplatePreparer ¶
func (client DeploymentsClient) ExportTemplatePreparer(resourceGroupName string, deploymentName string) (*http.Request, error)
ExportTemplatePreparer prepares the ExportTemplate request.
func (DeploymentsClient) ExportTemplateResponder ¶
func (client DeploymentsClient) ExportTemplateResponder(resp *http.Response) (result DeploymentExportResult, err error)
ExportTemplateResponder handles the response to the ExportTemplate request. The method always closes the http.Response Body.
func (DeploymentsClient) ExportTemplateSender ¶
ExportTemplateSender sends the ExportTemplate 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, err 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 ¶
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 *int32) (result DeploymentListResult, err 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, err error)
ListNextResults retrieves the next set of results, if any.
func (DeploymentsClient) ListPreparer ¶
func (client DeploymentsClient) ListPreparer(resourceGroupName string, filter string, top *int32) (*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 ¶
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, err 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 ¶
ValidateSender sends the Validate request. The method will close the http.Response Body if it receives an error.
type ExportTemplateRequest ¶
type ExportTemplateRequest struct { Resources *[]string `json:"resources,omitempty"` Options *string `json:"options,omitempty"` }
ExportTemplateRequest is export resource group template request parameters.
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"` Kind *string `json:"kind,omitempty"` ManagedBy *string `json:"managedBy,omitempty"` Sku *Sku `json:"sku,omitempty"` Identity *Identity `json:"identity,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, err 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 ¶
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, err 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 ¶
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, cancel <-chan struct{}) (result autorest.Response, err error)
Delete delete resource group. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
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, cancel <-chan struct{}) (*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 ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (GroupsClient) ExportTemplate ¶
func (client GroupsClient) ExportTemplate(resourceGroupName string, parameters ExportTemplateRequest) (result ResourceGroupExportResult, err error)
ExportTemplate captures the specified resource group as a template.
resourceGroupName is the name of the resource group to be created or updated. parameters is parameters supplied to the export template resource group operation.
func (GroupsClient) ExportTemplatePreparer ¶
func (client GroupsClient) ExportTemplatePreparer(resourceGroupName string, parameters ExportTemplateRequest) (*http.Request, error)
ExportTemplatePreparer prepares the ExportTemplate request.
func (GroupsClient) ExportTemplateResponder ¶
func (client GroupsClient) ExportTemplateResponder(resp *http.Response) (result ResourceGroupExportResult, err error)
ExportTemplateResponder handles the response to the ExportTemplate request. The method always closes the http.Response Body.
func (GroupsClient) ExportTemplateSender ¶
ExportTemplateSender sends the ExportTemplate 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, err 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 ¶
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 *int32) (result ResourceGroupListResult, err 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, err error)
ListNextResults retrieves the next set of results, if any.
func (GroupsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (GroupsClient) ListResources ¶
func (client GroupsClient) ListResources(resourceGroupName string, filter string, expand string, top *int32) (result ResourceListResult, err 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. expand is the $expand query parameter top is query parameters. If null is passed returns all resource groups.
func (GroupsClient) ListResourcesNextResults ¶
func (client GroupsClient) ListResourcesNextResults(lastResults ResourceListResult) (result ResourceListResult, err error)
ListResourcesNextResults retrieves the next set of results, if any.
func (GroupsClient) ListResourcesPreparer ¶
func (client GroupsClient) ListResourcesPreparer(resourceGroupName string, filter string, expand string, top *int32) (*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 ¶
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 ¶
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, err 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 ¶
PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.
type HTTPMessage ¶
type HTTPMessage struct {
Content *map[string]interface{} `json:"content,omitempty"`
}
HTTPMessage is
type Identity ¶
type Identity struct { PrincipalID *string `json:"principalId,omitempty"` TenantID *string `json:"tenantId,omitempty"` Type ResourceIdentityType `json:"type,omitempty"` }
Identity is identity for the resource.
type ManagementClient ¶
type ManagementClient struct { autorest.Client BaseURI string APIVersion 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.
type MoveInfo ¶
type MoveInfo struct { Resources *[]string `json:"resources,omitempty"` TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` }
MoveInfo is parameters of move resources.
type ParametersLink ¶
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 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 ProviderResourceType ¶
type ProviderResourceType struct { ResourceType *string `json:"resourceType,omitempty"` Locations *[]string `json:"locations,omitempty"` Aliases *[]AliasType `json:"aliases,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, expand string) (result Provider, err error)
Get gets a resource provider.
resourceProviderNamespace is namespace of the resource provider. expand is the $expand query parameter. e.g. To include property aliases in response, use $expand=resourceTypes/aliases.
func (ProvidersClient) GetPreparer ¶
func (client ProvidersClient) GetPreparer(resourceProviderNamespace string, expand 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 ¶
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 *int32, expand string) (result ProviderListResult, err error)
List gets a list of resource providers.
top is query parameters. If null is passed returns all deployments. expand is the $expand query parameter. e.g. To include property aliases in response, use $expand=resourceTypes/aliases.
func (ProvidersClient) ListNextResults ¶
func (client ProvidersClient) ListNextResults(lastResults ProviderListResult) (result ProviderListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (ProvidersClient) ListPreparer ¶
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 ¶
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, err 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 ¶
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, err 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 ¶
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"` ManagedBy *string `json:"managedBy,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
ResourceGroup is resource group information.
type ResourceGroupExportResult ¶
type ResourceGroupExportResult struct { autorest.Response `json:"-"` Template *map[string]interface{} `json:"template,omitempty"` Error *ResourceManagementErrorWithDetails `json:"error,omitempty"` }
ResourceGroupExportResult is
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 ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType enumerates the values for resource identity type.
const ( // SystemAssigned specifies the system assigned state for resource // identity type. SystemAssigned ResourceIdentityType = "SystemAssigned" )
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 ResourceManagementErrorWithDetails ¶
type ResourceManagementErrorWithDetails struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` Details *[]ResourceManagementErrorWithDetails `json:"details,omitempty"` }
ResourceManagementErrorWithDetails is
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 Sku ¶
type Sku struct { Name *string `json:"name,omitempty"` Tier *string `json:"tier,omitempty"` Size *string `json:"size,omitempty"` Family *string `json:"family,omitempty"` Model *string `json:"model,omitempty"` Capacity *int32 `json:"capacity,omitempty"` }
Sku is sku for the resource.
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, err 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 ¶
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, err 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 ¶
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, err 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 ¶
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (TagsClient) DeleteSender ¶
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, err 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 ¶
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, err error)
List get a list of subscription resource tags.
func (TagsClient) ListNextResults ¶
func (client TagsClient) ListNextResults(lastResults TagsListResult) (result TagsListResult, err 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 ¶
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 ¶
type TemplateLink struct { URI *string `json:"uri,omitempty"` ContentVersion *string `json:"contentVersion,omitempty"` }
TemplateLink is entity representing the reference to the template.