managedapplications

package
v12.2.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package managedapplications implements the Azure ARM Managedapplications service API version 2016-09-01-preview.

ARM managed applications (appliances)

Deprecated: Please instead use github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01-preview/managedapplications

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Managedapplications
	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 Appliance

type Appliance 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"`
	ManagedBy            *string             `json:"managedBy,omitempty"`
	Sku                  *Sku                `json:"sku,omitempty"`
	Identity             *Identity           `json:"identity,omitempty"`
	*ApplianceProperties `json:"properties,omitempty"`
	Plan                 *Plan   `json:"plan,omitempty"`
	Kind                 *string `json:"kind,omitempty"`
}

Appliance is information about appliance.

type ApplianceArtifact

type ApplianceArtifact struct {
	Name *string               `json:"name,omitempty"`
	URI  *string               `json:"uri,omitempty"`
	Type ApplianceArtifactType `json:"type,omitempty"`
}

ApplianceArtifact is appliance artifact.

type ApplianceArtifactType

type ApplianceArtifactType string

ApplianceArtifactType enumerates the values for appliance artifact type.

const (
	// Custom specifies the custom state for appliance artifact type.
	Custom ApplianceArtifactType = "Custom"
	// Template specifies the template state for appliance artifact type.
	Template ApplianceArtifactType = "Template"
)

type ApplianceDefinition

type ApplianceDefinition 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"`
	ManagedBy                      *string             `json:"managedBy,omitempty"`
	Sku                            *Sku                `json:"sku,omitempty"`
	Identity                       *Identity           `json:"identity,omitempty"`
	*ApplianceDefinitionProperties `json:"properties,omitempty"`
}

ApplianceDefinition is information about appliance definition.

type ApplianceDefinitionListResult

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

ApplianceDefinitionListResult is list of appliance definitions.

func (ApplianceDefinitionListResult) ApplianceDefinitionListResultPreparer

func (client ApplianceDefinitionListResult) ApplianceDefinitionListResultPreparer() (*http.Request, error)

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

type ApplianceDefinitionProperties

type ApplianceDefinitionProperties struct {
	LockLevel      ApplianceLockLevel                `json:"lockLevel,omitempty"`
	DisplayName    *string                           `json:"displayName,omitempty"`
	Authorizations *[]ApplianceProviderAuthorization `json:"authorizations,omitempty"`
	Artifacts      *[]ApplianceArtifact              `json:"artifacts,omitempty"`
	Description    *string                           `json:"description,omitempty"`
	PackageFileURI *string                           `json:"packageFileUri,omitempty"`
}

ApplianceDefinitionProperties is the appliance definition properties.

type ApplianceDefinitionsClient

type ApplianceDefinitionsClient struct {
	ManagementClient
}

ApplianceDefinitionsClient is the ARM managed applications (appliances)

func NewApplianceDefinitionsClient

func NewApplianceDefinitionsClient(subscriptionID string) ApplianceDefinitionsClient

NewApplianceDefinitionsClient creates an instance of the ApplianceDefinitionsClient client.

func NewApplianceDefinitionsClientWithBaseURI

func NewApplianceDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ApplianceDefinitionsClient

NewApplianceDefinitionsClientWithBaseURI creates an instance of the ApplianceDefinitionsClient client.

func (ApplianceDefinitionsClient) CreateOrUpdate

func (client ApplianceDefinitionsClient) CreateOrUpdate(resourceGroupName string, applianceDefinitionName string, parameters ApplianceDefinition, cancel <-chan struct{}) (<-chan ApplianceDefinition, <-chan error)

CreateOrUpdate creates a new appliance definition. 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. applianceDefinitionName is the name of the appliance definition. parameters is parameters supplied to the create or update an appliance definition.

func (ApplianceDefinitionsClient) CreateOrUpdateByID

func (client ApplianceDefinitionsClient) CreateOrUpdateByID(applianceDefinitionID string, parameters ApplianceDefinition, cancel <-chan struct{}) (<-chan ApplianceDefinition, <-chan error)

CreateOrUpdateByID creates a new appliance definition. 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.

applianceDefinitionID is the fully qualified ID of the appliance definition, including the appliance name and the appliance definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name} parameters is parameters supplied to the create or update an appliance definition.

func (ApplianceDefinitionsClient) CreateOrUpdateByIDPreparer

func (client ApplianceDefinitionsClient) CreateOrUpdateByIDPreparer(applianceDefinitionID string, parameters ApplianceDefinition, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdateByIDPreparer prepares the CreateOrUpdateByID request.

func (ApplianceDefinitionsClient) CreateOrUpdateByIDResponder

func (client ApplianceDefinitionsClient) CreateOrUpdateByIDResponder(resp *http.Response) (result ApplianceDefinition, err error)

CreateOrUpdateByIDResponder handles the response to the CreateOrUpdateByID request. The method always closes the http.Response Body.

func (ApplianceDefinitionsClient) CreateOrUpdateByIDSender

func (client ApplianceDefinitionsClient) CreateOrUpdateByIDSender(req *http.Request) (*http.Response, error)

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

func (ApplianceDefinitionsClient) CreateOrUpdatePreparer

func (client ApplianceDefinitionsClient) CreateOrUpdatePreparer(resourceGroupName string, applianceDefinitionName string, parameters ApplianceDefinition, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ApplianceDefinitionsClient) CreateOrUpdateResponder

func (client ApplianceDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplianceDefinition, err error)

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

func (ApplianceDefinitionsClient) CreateOrUpdateSender

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

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

func (ApplianceDefinitionsClient) Delete

func (client ApplianceDefinitionsClient) Delete(resourceGroupName string, applianceDefinitionName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes the appliance definition. 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. applianceDefinitionName is the name of the appliance definition to delete.

func (ApplianceDefinitionsClient) DeleteByID

func (client ApplianceDefinitionsClient) DeleteByID(applianceDefinitionID string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

DeleteByID deletes the appliance definition. 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.

applianceDefinitionID is the fully qualified ID of the appliance definition, including the appliance name and the appliance definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}

func (ApplianceDefinitionsClient) DeleteByIDPreparer

func (client ApplianceDefinitionsClient) DeleteByIDPreparer(applianceDefinitionID string, cancel <-chan struct{}) (*http.Request, error)

DeleteByIDPreparer prepares the DeleteByID request.

func (ApplianceDefinitionsClient) DeleteByIDResponder

func (client ApplianceDefinitionsClient) DeleteByIDResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ApplianceDefinitionsClient) DeleteByIDSender

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

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

func (ApplianceDefinitionsClient) DeletePreparer

func (client ApplianceDefinitionsClient) DeletePreparer(resourceGroupName string, applianceDefinitionName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplianceDefinitionsClient) DeleteResponder

func (client ApplianceDefinitionsClient) 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 (ApplianceDefinitionsClient) DeleteSender

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

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

func (ApplianceDefinitionsClient) Get

func (client ApplianceDefinitionsClient) Get(resourceGroupName string, applianceDefinitionName string) (result ApplianceDefinition, err error)

Get gets the appliance definition.

resourceGroupName is the name of the resource group. The name is case insensitive. applianceDefinitionName is the name of the appliance definition.

func (ApplianceDefinitionsClient) GetByID

func (client ApplianceDefinitionsClient) GetByID(applianceDefinitionID string) (result ApplianceDefinition, err error)

GetByID gets the appliance definition.

applianceDefinitionID is the fully qualified ID of the appliance definition, including the appliance name and the appliance definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}

func (ApplianceDefinitionsClient) GetByIDPreparer

func (client ApplianceDefinitionsClient) GetByIDPreparer(applianceDefinitionID string) (*http.Request, error)

GetByIDPreparer prepares the GetByID request.

func (ApplianceDefinitionsClient) GetByIDResponder

func (client ApplianceDefinitionsClient) GetByIDResponder(resp *http.Response) (result ApplianceDefinition, err error)

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

func (ApplianceDefinitionsClient) GetByIDSender

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

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

func (ApplianceDefinitionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ApplianceDefinitionsClient) GetResponder

func (client ApplianceDefinitionsClient) GetResponder(resp *http.Response) (result ApplianceDefinition, err error)

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

func (ApplianceDefinitionsClient) GetSender

func (client ApplianceDefinitionsClient) GetSender(req *http.Request) (*http.Response, error)

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

func (ApplianceDefinitionsClient) ListByResourceGroup

func (client ApplianceDefinitionsClient) ListByResourceGroup(resourceGroupName string) (result ApplianceDefinitionListResult, err error)

ListByResourceGroup lists the appliance definitions in a resource group.

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

func (ApplianceDefinitionsClient) ListByResourceGroupComplete

func (client ApplianceDefinitionsClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan ApplianceDefinition, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (ApplianceDefinitionsClient) ListByResourceGroupNextResults

func (client ApplianceDefinitionsClient) ListByResourceGroupNextResults(lastResults ApplianceDefinitionListResult) (result ApplianceDefinitionListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (ApplianceDefinitionsClient) ListByResourceGroupPreparer

func (client ApplianceDefinitionsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ApplianceDefinitionsClient) ListByResourceGroupResponder

func (client ApplianceDefinitionsClient) ListByResourceGroupResponder(resp *http.Response) (result ApplianceDefinitionListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ApplianceDefinitionsClient) ListByResourceGroupSender

func (client ApplianceDefinitionsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

type ApplianceListResult

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

ApplianceListResult is list of appliances.

func (ApplianceListResult) ApplianceListResultPreparer

func (client ApplianceListResult) ApplianceListResultPreparer() (*http.Request, error)

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

type ApplianceLockLevel

type ApplianceLockLevel string

ApplianceLockLevel enumerates the values for appliance lock level.

const (
	// CanNotDelete specifies the can not delete state for appliance lock level.
	CanNotDelete ApplianceLockLevel = "CanNotDelete"
	// None specifies the none state for appliance lock level.
	None ApplianceLockLevel = "None"
	// ReadOnly specifies the read only state for appliance lock level.
	ReadOnly ApplianceLockLevel = "ReadOnly"
)

type AppliancePatchable

type AppliancePatchable 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"`
	ManagedBy                     *string             `json:"managedBy,omitempty"`
	Sku                           *Sku                `json:"sku,omitempty"`
	Identity                      *Identity           `json:"identity,omitempty"`
	*AppliancePropertiesPatchable `json:"properties,omitempty"`
	Plan                          *PlanPatchable `json:"plan,omitempty"`
	Kind                          *string        `json:"kind,omitempty"`
}

AppliancePatchable is information about appliance.

type ApplianceProperties

type ApplianceProperties struct {
	ManagedResourceGroupID *string                 `json:"managedResourceGroupId,omitempty"`
	ApplianceDefinitionID  *string                 `json:"applianceDefinitionId,omitempty"`
	Parameters             *map[string]interface{} `json:"parameters,omitempty"`
	Outputs                *map[string]interface{} `json:"outputs,omitempty"`
	ProvisioningState      ProvisioningState       `json:"provisioningState,omitempty"`
	UIDefinitionURI        *string                 `json:"uiDefinitionUri,omitempty"`
}

ApplianceProperties is the appliance properties.

type AppliancePropertiesPatchable

type AppliancePropertiesPatchable struct {
	ManagedResourceGroupID *string                 `json:"managedResourceGroupId,omitempty"`
	ApplianceDefinitionID  *string                 `json:"applianceDefinitionId,omitempty"`
	Parameters             *map[string]interface{} `json:"parameters,omitempty"`
	Outputs                *map[string]interface{} `json:"outputs,omitempty"`
	ProvisioningState      ProvisioningState       `json:"provisioningState,omitempty"`
	UIDefinitionURI        *string                 `json:"uiDefinitionUri,omitempty"`
}

AppliancePropertiesPatchable is the appliance properties.

type ApplianceProviderAuthorization

type ApplianceProviderAuthorization struct {
	PrincipalID      *string `json:"principalId,omitempty"`
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
}

ApplianceProviderAuthorization is the appliance provider authorization.

type AppliancesClient

type AppliancesClient struct {
	ManagementClient
}

AppliancesClient is the ARM managed applications (appliances)

func NewAppliancesClient

func NewAppliancesClient(subscriptionID string) AppliancesClient

NewAppliancesClient creates an instance of the AppliancesClient client.

func NewAppliancesClientWithBaseURI

func NewAppliancesClientWithBaseURI(baseURI string, subscriptionID string) AppliancesClient

NewAppliancesClientWithBaseURI creates an instance of the AppliancesClient client.

func (AppliancesClient) CreateOrUpdate

func (client AppliancesClient) CreateOrUpdate(resourceGroupName string, applianceName string, parameters Appliance, cancel <-chan struct{}) (<-chan Appliance, <-chan error)

CreateOrUpdate creates a new appliance. 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. applianceName is the name of the appliance. parameters is parameters supplied to the create or update an appliance.

func (AppliancesClient) CreateOrUpdateByID

func (client AppliancesClient) CreateOrUpdateByID(applianceID string, parameters Appliance, cancel <-chan struct{}) (<-chan Appliance, <-chan error)

CreateOrUpdateByID creates a new appliance. 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.

applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} parameters is parameters supplied to the create or update an appliance.

func (AppliancesClient) CreateOrUpdateByIDPreparer

func (client AppliancesClient) CreateOrUpdateByIDPreparer(applianceID string, parameters Appliance, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdateByIDPreparer prepares the CreateOrUpdateByID request.

func (AppliancesClient) CreateOrUpdateByIDResponder

func (client AppliancesClient) CreateOrUpdateByIDResponder(resp *http.Response) (result Appliance, err error)

CreateOrUpdateByIDResponder handles the response to the CreateOrUpdateByID request. The method always closes the http.Response Body.

func (AppliancesClient) CreateOrUpdateByIDSender

func (client AppliancesClient) CreateOrUpdateByIDSender(req *http.Request) (*http.Response, error)

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

func (AppliancesClient) CreateOrUpdatePreparer

func (client AppliancesClient) CreateOrUpdatePreparer(resourceGroupName string, applianceName string, parameters Appliance, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AppliancesClient) CreateOrUpdateResponder

func (client AppliancesClient) CreateOrUpdateResponder(resp *http.Response) (result Appliance, err error)

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

func (AppliancesClient) CreateOrUpdateSender

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

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

func (AppliancesClient) Delete

func (client AppliancesClient) Delete(resourceGroupName string, applianceName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes the appliance. 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. applianceName is the name of the appliance.

func (AppliancesClient) DeleteByID

func (client AppliancesClient) DeleteByID(applianceID string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

DeleteByID deletes the appliance. 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.

applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}

func (AppliancesClient) DeleteByIDPreparer

func (client AppliancesClient) DeleteByIDPreparer(applianceID string, cancel <-chan struct{}) (*http.Request, error)

DeleteByIDPreparer prepares the DeleteByID request.

func (AppliancesClient) DeleteByIDResponder

func (client AppliancesClient) DeleteByIDResponder(resp *http.Response) (result autorest.Response, err error)

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

func (AppliancesClient) DeleteByIDSender

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

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

func (AppliancesClient) DeletePreparer

func (client AppliancesClient) DeletePreparer(resourceGroupName string, applianceName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AppliancesClient) DeleteResponder

func (client AppliancesClient) 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 (AppliancesClient) DeleteSender

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

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

func (AppliancesClient) Get

func (client AppliancesClient) Get(resourceGroupName string, applianceName string) (result Appliance, err error)

Get gets the appliance.

resourceGroupName is the name of the resource group. The name is case insensitive. applianceName is the name of the appliance.

func (AppliancesClient) GetByID

func (client AppliancesClient) GetByID(applianceID string) (result Appliance, err error)

GetByID gets the appliance.

applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}

func (AppliancesClient) GetByIDPreparer

func (client AppliancesClient) GetByIDPreparer(applianceID string) (*http.Request, error)

GetByIDPreparer prepares the GetByID request.

func (AppliancesClient) GetByIDResponder

func (client AppliancesClient) GetByIDResponder(resp *http.Response) (result Appliance, err error)

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

func (AppliancesClient) GetByIDSender

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

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

func (AppliancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AppliancesClient) GetResponder

func (client AppliancesClient) GetResponder(resp *http.Response) (result Appliance, err error)

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

func (AppliancesClient) GetSender

func (client AppliancesClient) GetSender(req *http.Request) (*http.Response, error)

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

func (AppliancesClient) ListByResourceGroup

func (client AppliancesClient) ListByResourceGroup(resourceGroupName string) (result ApplianceListResult, err error)

ListByResourceGroup gets all the appliances within a resource group.

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

func (AppliancesClient) ListByResourceGroupComplete

func (client AppliancesClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Appliance, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (AppliancesClient) ListByResourceGroupNextResults

func (client AppliancesClient) ListByResourceGroupNextResults(lastResults ApplianceListResult) (result ApplianceListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (AppliancesClient) ListByResourceGroupPreparer

func (client AppliancesClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AppliancesClient) ListByResourceGroupResponder

func (client AppliancesClient) ListByResourceGroupResponder(resp *http.Response) (result ApplianceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AppliancesClient) ListByResourceGroupSender

func (client AppliancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (AppliancesClient) ListBySubscription

func (client AppliancesClient) ListBySubscription() (result ApplianceListResult, err error)

ListBySubscription gets all the appliances within a subscription.

func (AppliancesClient) ListBySubscriptionComplete

func (client AppliancesClient) ListBySubscriptionComplete(cancel <-chan struct{}) (<-chan Appliance, <-chan error)

ListBySubscriptionComplete gets all elements from the list without paging.

func (AppliancesClient) ListBySubscriptionNextResults

func (client AppliancesClient) ListBySubscriptionNextResults(lastResults ApplianceListResult) (result ApplianceListResult, err error)

ListBySubscriptionNextResults retrieves the next set of results, if any.

func (AppliancesClient) ListBySubscriptionPreparer

func (client AppliancesClient) ListBySubscriptionPreparer() (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (AppliancesClient) ListBySubscriptionResponder

func (client AppliancesClient) ListBySubscriptionResponder(resp *http.Response) (result ApplianceListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (AppliancesClient) ListBySubscriptionSender

func (client AppliancesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (AppliancesClient) Update

func (client AppliancesClient) Update(resourceGroupName string, applianceName string, parameters *Appliance) (result Appliance, err error)

Update updates an existing appliance. The only value that can be updated via PATCH currently is the tags.

resourceGroupName is the name of the resource group. The name is case insensitive. applianceName is the name of the appliance. parameters is parameters supplied to update an existing appliance.

func (AppliancesClient) UpdateByID

func (client AppliancesClient) UpdateByID(applianceID string, parameters *Appliance) (result Appliance, err error)

UpdateByID updates an existing appliance. The only value that can be updated via PATCH currently is the tags.

applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} parameters is parameters supplied to update an existing appliance.

func (AppliancesClient) UpdateByIDPreparer

func (client AppliancesClient) UpdateByIDPreparer(applianceID string, parameters *Appliance) (*http.Request, error)

UpdateByIDPreparer prepares the UpdateByID request.

func (AppliancesClient) UpdateByIDResponder

func (client AppliancesClient) UpdateByIDResponder(resp *http.Response) (result Appliance, err error)

UpdateByIDResponder handles the response to the UpdateByID request. The method always closes the http.Response Body.

func (AppliancesClient) UpdateByIDSender

func (client AppliancesClient) UpdateByIDSender(req *http.Request) (*http.Response, error)

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

func (AppliancesClient) UpdatePreparer

func (client AppliancesClient) UpdatePreparer(resourceGroupName string, applianceName string, parameters *Appliance) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AppliancesClient) UpdateResponder

func (client AppliancesClient) UpdateResponder(resp *http.Response) (result Appliance, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AppliancesClient) UpdateSender

func (client AppliancesClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type ErrorResponse

type ErrorResponse struct {
	HTTPStatus   *string `json:"httpStatus,omitempty"`
	ErrorCode    *string `json:"errorCode,omitempty"`
	ErrorMessage *string `json:"errorMessage,omitempty"`
}

ErrorResponse is error reponse indicates ARM appliance is not able to process the incoming request. The reason is provided in the error message.

type GenericResource

type GenericResource 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"`
	ManagedBy *string             `json:"managedBy,omitempty"`
	Sku       *Sku                `json:"sku,omitempty"`
	Identity  *Identity           `json:"identity,omitempty"`
}

GenericResource is resource information.

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
	SubscriptionID string
}

ManagementClient is the base client for Managedapplications.

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 Plan

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

Plan is plan for the appliance.

type PlanPatchable

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

PlanPatchable is plan for the appliance.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Accepted specifies the accepted state for provisioning state.
	Accepted ProvisioningState = "Accepted"
	// Canceled specifies the canceled state for provisioning state.
	Canceled ProvisioningState = "Canceled"
	// Created specifies the created state for provisioning state.
	Created ProvisioningState = "Created"
	// Creating specifies the creating state for provisioning state.
	Creating ProvisioningState = "Creating"
	// Deleted specifies the deleted state for provisioning state.
	Deleted ProvisioningState = "Deleted"
	// Deleting specifies the deleting state for provisioning state.
	Deleting ProvisioningState = "Deleting"
	// Failed specifies the failed state for provisioning state.
	Failed ProvisioningState = "Failed"
	// Ready specifies the ready state for provisioning state.
	Ready ProvisioningState = "Ready"
	// Running specifies the running state for provisioning state.
	Running ProvisioningState = "Running"
	// Succeeded specifies the succeeded state for provisioning state.
	Succeeded ProvisioningState = "Succeeded"
	// Updating specifies the updating state for provisioning state.
	Updating ProvisioningState = "Updating"
)

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 resource information.

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 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.

Jump to

Keyboard shortcuts

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