const ( // DefaultBaseURI is the default URI used for the service Managedapplications DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
ActionType enumerates the values for action type.
type ActionType string
const ( // Internal ... Internal ActionType = "Internal" )
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns an array of possible values for the ActionType const type.
Application information about managed application.
type Application struct { autorest.Response `json:"-"` // ApplicationProperties - The managed application properties. *ApplicationProperties `json:"properties,omitempty"` // Plan - The plan information. Plan *Plan `json:"plan,omitempty"` // Kind - The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. Kind *string `json:"kind,omitempty"` // ManagedBy - ID of the resource that manages this resource. ManagedBy *string `json:"managedBy,omitempty"` // Sku - The SKU of the resource. Sku *Sku `json:"sku,omitempty"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
func (a Application) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Application.
func (a *Application) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Application struct.
ApplicationArtifact managed application artifact.
type ApplicationArtifact struct { // Name - The managed application artifact name. Name *string `json:"name,omitempty"` // URI - The managed application artifact blob uri. URI *string `json:"uri,omitempty"` // Type - The managed application artifact type. Possible values include: 'Template', 'Custom' Type ApplicationArtifactType `json:"type,omitempty"` }
ApplicationArtifactType enumerates the values for application artifact type.
type ApplicationArtifactType string
const ( // Custom ... Custom ApplicationArtifactType = "Custom" // Template ... Template ApplicationArtifactType = "Template" )
func PossibleApplicationArtifactTypeValues() []ApplicationArtifactType
PossibleApplicationArtifactTypeValues returns an array of possible values for the ApplicationArtifactType const type.
ApplicationDefinition information about managed application definition.
type ApplicationDefinition struct { autorest.Response `json:"-"` // ApplicationDefinitionProperties - The managed application definition properties. *ApplicationDefinitionProperties `json:"properties,omitempty"` // ManagedBy - ID of the resource that manages this resource. ManagedBy *string `json:"managedBy,omitempty"` // Sku - The SKU of the resource. Sku *Sku `json:"sku,omitempty"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
func (ad ApplicationDefinition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationDefinition.
func (ad *ApplicationDefinition) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ApplicationDefinition struct.
ApplicationDefinitionListResult list of managed application definitions.
type ApplicationDefinitionListResult struct { autorest.Response `json:"-"` // Value - The array of managed application definitions. Value *[]ApplicationDefinition `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (adlr ApplicationDefinitionListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ApplicationDefinitionListResultIterator provides access to a complete listing of ApplicationDefinition values.
type ApplicationDefinitionListResultIterator struct {
// contains filtered or unexported fields
}
func NewApplicationDefinitionListResultIterator(page ApplicationDefinitionListResultPage) ApplicationDefinitionListResultIterator
Creates a new instance of the ApplicationDefinitionListResultIterator type.
func (iter *ApplicationDefinitionListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ApplicationDefinitionListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ApplicationDefinitionListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ApplicationDefinitionListResultIterator) Response() ApplicationDefinitionListResult
Response returns the raw server response from the last page request.
func (iter ApplicationDefinitionListResultIterator) Value() ApplicationDefinition
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ApplicationDefinitionListResultPage contains a page of ApplicationDefinition values.
type ApplicationDefinitionListResultPage struct {
// contains filtered or unexported fields
}
func NewApplicationDefinitionListResultPage(cur ApplicationDefinitionListResult, getNextPage func(context.Context, ApplicationDefinitionListResult) (ApplicationDefinitionListResult, error)) ApplicationDefinitionListResultPage
Creates a new instance of the ApplicationDefinitionListResultPage type.
func (page *ApplicationDefinitionListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *ApplicationDefinitionListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ApplicationDefinitionListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ApplicationDefinitionListResultPage) Response() ApplicationDefinitionListResult
Response returns the raw server response from the last page request.
func (page ApplicationDefinitionListResultPage) Values() []ApplicationDefinition
Values returns the slice of values for the current page or nil if there are no values.
ApplicationDefinitionPatchable information about an application definition request.
type ApplicationDefinitionPatchable struct { // Tags - Application definition tags Tags map[string]*string `json:"tags"` }
func (adp ApplicationDefinitionPatchable) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationDefinitionPatchable.
ApplicationDefinitionProperties the managed application definition properties.
type ApplicationDefinitionProperties struct { // LockLevel - The managed application lock level. Possible values include: 'CanNotDelete', 'ReadOnly', 'None' LockLevel ApplicationLockLevel `json:"lockLevel,omitempty"` // DisplayName - The managed application definition display name. DisplayName *string `json:"displayName,omitempty"` // IsEnabled - A value indicating whether the package is enabled or not. IsEnabled *string `json:"isEnabled,omitempty"` // Authorizations - The managed application provider authorizations. Authorizations *[]ApplicationProviderAuthorization `json:"authorizations,omitempty"` // Artifacts - The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. Artifacts *[]ApplicationArtifact `json:"artifacts,omitempty"` // Description - The managed application definition description. Description *string `json:"description,omitempty"` // PackageFileURI - The managed application definition package file Uri. Use this element PackageFileURI *string `json:"packageFileUri,omitempty"` // MainTemplate - The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. MainTemplate interface{} `json:"mainTemplate,omitempty"` // CreateUIDefinition - The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. CreateUIDefinition interface{} `json:"createUiDefinition,omitempty"` }
ApplicationDefinitionsClient is the ARM applications
type ApplicationDefinitionsClient struct { BaseClient }
func NewApplicationDefinitionsClient(subscriptionID string) ApplicationDefinitionsClient
NewApplicationDefinitionsClient creates an instance of the ApplicationDefinitionsClient client.
func NewApplicationDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationDefinitionsClient
NewApplicationDefinitionsClientWithBaseURI creates an instance of the ApplicationDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ApplicationDefinitionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition) (result ApplicationDefinition, err error)
CreateOrUpdate creates or updates a managed application definition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationDefinitionName - the name of the managed application definition. parameters - parameters supplied to the create or update an managed application definition.
func (client ApplicationDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ApplicationDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationDefinition, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client ApplicationDefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client ApplicationDefinitionsClient) Delete(ctx context.Context, resourceGroupName string, applicationDefinitionName string) (result autorest.Response, err error)
Delete deletes the managed application definition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationDefinitionName - the name of the managed application definition to delete.
func (client ApplicationDefinitionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationDefinitionName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client ApplicationDefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (client ApplicationDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client ApplicationDefinitionsClient) Get(ctx context.Context, resourceGroupName string, applicationDefinitionName string) (result ApplicationDefinition, err error)
Get gets the managed application definition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationDefinitionName - the name of the managed application definition.
func (client ApplicationDefinitionsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationDefinitionName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ApplicationDefinitionsClient) GetResponder(resp *http.Response) (result ApplicationDefinition, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ApplicationDefinitionsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ApplicationDefinitionListResultPage, err error)
ListByResourceGroup lists the managed application definitions in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (client ApplicationDefinitionsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ApplicationDefinitionListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client ApplicationDefinitionsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client ApplicationDefinitionsClient) ListByResourceGroupResponder(resp *http.Response) (result ApplicationDefinitionListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client ApplicationDefinitionsClient) 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 (client ApplicationDefinitionsClient) ListBySubscription(ctx context.Context) (result ApplicationDefinitionListResultPage, err error)
ListBySubscription lists the managed application definitions in a subscription.
func (client ApplicationDefinitionsClient) ListBySubscriptionComplete(ctx context.Context) (result ApplicationDefinitionListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client ApplicationDefinitionsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (client ApplicationDefinitionsClient) ListBySubscriptionResponder(resp *http.Response) (result ApplicationDefinitionListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (client ApplicationDefinitionsClient) 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 (client ApplicationDefinitionsClient) Update(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinitionPatchable) (result ApplicationDefinition, err error)
Update updates the managed application definition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationDefinitionName - the name of the managed application definition. parameters - parameters supplied to the update a managed application definition.
func (client ApplicationDefinitionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinitionPatchable) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client ApplicationDefinitionsClient) UpdateResponder(resp *http.Response) (result ApplicationDefinition, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client ApplicationDefinitionsClient) 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.
ApplicationListResult list of managed applications.
type ApplicationListResult struct { autorest.Response `json:"-"` // Value - The array of managed applications. Value *[]Application `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (alr ApplicationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ApplicationListResultIterator provides access to a complete listing of Application values.
type ApplicationListResultIterator struct {
// contains filtered or unexported fields
}
func NewApplicationListResultIterator(page ApplicationListResultPage) ApplicationListResultIterator
Creates a new instance of the ApplicationListResultIterator type.
func (iter *ApplicationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ApplicationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ApplicationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ApplicationListResultIterator) Response() ApplicationListResult
Response returns the raw server response from the last page request.
func (iter ApplicationListResultIterator) Value() Application
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ApplicationListResultPage contains a page of Application values.
type ApplicationListResultPage struct {
// contains filtered or unexported fields
}
func NewApplicationListResultPage(cur ApplicationListResult, getNextPage func(context.Context, ApplicationListResult) (ApplicationListResult, error)) ApplicationListResultPage
Creates a new instance of the ApplicationListResultPage type.
func (page *ApplicationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *ApplicationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ApplicationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ApplicationListResultPage) Response() ApplicationListResult
Response returns the raw server response from the last page request.
func (page ApplicationListResultPage) Values() []Application
Values returns the slice of values for the current page or nil if there are no values.
ApplicationLockLevel enumerates the values for application lock level.
type ApplicationLockLevel string
const ( // CanNotDelete ... CanNotDelete ApplicationLockLevel = "CanNotDelete" // None ... None ApplicationLockLevel = "None" // ReadOnly ... ReadOnly ApplicationLockLevel = "ReadOnly" )
func PossibleApplicationLockLevelValues() []ApplicationLockLevel
PossibleApplicationLockLevelValues returns an array of possible values for the ApplicationLockLevel const type.
ApplicationPatchable information about managed application.
type ApplicationPatchable struct { autorest.Response `json:"-"` // ApplicationPropertiesPatchable - The managed application properties. *ApplicationPropertiesPatchable `json:"properties,omitempty"` // Plan - The plan information. Plan *PlanPatchable `json:"plan,omitempty"` // Kind - The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. Kind *string `json:"kind,omitempty"` // ManagedBy - ID of the resource that manages this resource. ManagedBy *string `json:"managedBy,omitempty"` // Sku - The SKU of the resource. Sku *Sku `json:"sku,omitempty"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
func (ap ApplicationPatchable) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationPatchable.
func (ap *ApplicationPatchable) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ApplicationPatchable struct.
ApplicationProperties the managed application properties.
type ApplicationProperties struct { // ManagedResourceGroupID - The managed resource group Id. ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` // ApplicationDefinitionID - The fully qualified path of managed application definition Id. ApplicationDefinitionID *string `json:"applicationDefinitionId,omitempty"` // Parameters - Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. Parameters interface{} `json:"parameters,omitempty"` // Outputs - READ-ONLY; Name and value pairs that define the managed application outputs. Outputs interface{} `json:"outputs,omitempty"` // ProvisioningState - READ-ONLY; The managed application provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // UIDefinitionURI - The blob URI where the UI definition file is located. UIDefinitionURI *string `json:"uiDefinitionUri,omitempty"` }
func (ap ApplicationProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationProperties.
ApplicationPropertiesPatchable the managed application properties.
type ApplicationPropertiesPatchable struct { // ManagedResourceGroupID - The managed resource group Id. ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` // ApplicationDefinitionID - The fully qualified path of managed application definition Id. ApplicationDefinitionID *string `json:"applicationDefinitionId,omitempty"` // Parameters - Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. Parameters interface{} `json:"parameters,omitempty"` // Outputs - READ-ONLY; Name and value pairs that define the managed application outputs. Outputs interface{} `json:"outputs,omitempty"` // ProvisioningState - READ-ONLY; The managed application provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // UIDefinitionURI - The blob URI where the UI definition file is located. UIDefinitionURI *string `json:"uiDefinitionUri,omitempty"` }
func (app ApplicationPropertiesPatchable) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationPropertiesPatchable.
ApplicationProviderAuthorization the managed application provider authorization.
type ApplicationProviderAuthorization struct { // PrincipalID - The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. PrincipalID *string `json:"principalId,omitempty"` // RoleDefinitionID - The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` }
ApplicationsClient is the ARM applications
type ApplicationsClient struct { BaseClient }
func NewApplicationsClient(subscriptionID string) ApplicationsClient
NewApplicationsClient creates an instance of the ApplicationsClient client.
func NewApplicationsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationsClient
NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters Application) (result ApplicationsCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates a managed application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationName - the name of the managed application. parameters - parameters supplied to the create or update a managed application.
func (client ApplicationsClient) CreateOrUpdateByID(ctx context.Context, applicationID string, parameters Application) (result ApplicationsCreateOrUpdateByIDFuture, err error)
CreateOrUpdateByID creates or updates a managed application. Parameters: applicationID - the fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} parameters - parameters supplied to the create or update a managed application.
func (client ApplicationsClient) CreateOrUpdateByIDPreparer(ctx context.Context, applicationID string, parameters Application) (*http.Request, error)
CreateOrUpdateByIDPreparer prepares the CreateOrUpdateByID request.
func (client ApplicationsClient) CreateOrUpdateByIDResponder(resp *http.Response) (result Application, err error)
CreateOrUpdateByIDResponder handles the response to the CreateOrUpdateByID request. The method always closes the http.Response Body.
func (client ApplicationsClient) CreateOrUpdateByIDSender(req *http.Request) (future ApplicationsCreateOrUpdateByIDFuture, err error)
CreateOrUpdateByIDSender sends the CreateOrUpdateByID request. The method will close the http.Response Body if it receives an error.
func (client ApplicationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationName string, parameters Application) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ApplicationsClient) CreateOrUpdateResponder(resp *http.Response) (result Application, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client ApplicationsClient) CreateOrUpdateSender(req *http.Request) (future ApplicationsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName string, applicationName string) (result ApplicationsDeleteFuture, err error)
Delete deletes the managed application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationName - the name of the managed application.
func (client ApplicationsClient) DeleteByID(ctx context.Context, applicationID string) (result ApplicationsDeleteByIDFuture, err error)
DeleteByID deletes the managed application. Parameters: applicationID - the fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
func (client ApplicationsClient) DeleteByIDPreparer(ctx context.Context, applicationID string) (*http.Request, error)
DeleteByIDPreparer prepares the DeleteByID request.
func (client ApplicationsClient) 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 (client ApplicationsClient) DeleteByIDSender(req *http.Request) (future ApplicationsDeleteByIDFuture, err error)
DeleteByIDSender sends the DeleteByID request. The method will close the http.Response Body if it receives an error.
func (client ApplicationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client ApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (client ApplicationsClient) DeleteSender(req *http.Request) (future ApplicationsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName string, applicationName string) (result Application, err error)
Get gets the managed application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationName - the name of the managed application.
func (client ApplicationsClient) GetByID(ctx context.Context, applicationID string) (result Application, err error)
GetByID gets the managed application. Parameters: applicationID - the fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
func (client ApplicationsClient) GetByIDPreparer(ctx context.Context, applicationID string) (*http.Request, error)
GetByIDPreparer prepares the GetByID request.
func (client ApplicationsClient) GetByIDResponder(resp *http.Response) (result Application, err error)
GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.
func (client ApplicationsClient) 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 (client ApplicationsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ApplicationsClient) GetResponder(resp *http.Response) (result Application, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ApplicationsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client ApplicationsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ApplicationListResultPage, err error)
ListByResourceGroup lists all the applications within a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (client ApplicationsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ApplicationListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client ApplicationsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client ApplicationsClient) ListByResourceGroupResponder(resp *http.Response) (result ApplicationListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client ApplicationsClient) 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 (client ApplicationsClient) ListBySubscription(ctx context.Context) (result ApplicationListResultPage, err error)
ListBySubscription gets all the applications within a subscription.
func (client ApplicationsClient) ListBySubscriptionComplete(ctx context.Context) (result ApplicationListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client ApplicationsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (client ApplicationsClient) ListBySubscriptionResponder(resp *http.Response) (result ApplicationListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (client ApplicationsClient) 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 (client ApplicationsClient) Update(ctx context.Context, resourceGroupName string, applicationName string, parameters *ApplicationPatchable) (result ApplicationsUpdateFuture, err error)
Update updates an existing managed application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationName - the name of the managed application. parameters - parameters supplied to update an existing managed application.
func (client ApplicationsClient) UpdateByID(ctx context.Context, applicationID string, parameters *ApplicationPatchable) (result ApplicationsUpdateByIDFuture, err error)
UpdateByID updates an existing managed application. Parameters: applicationID - the fully qualified ID of the managed application, including the managed application name and the managed application resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} parameters - parameters supplied to update an existing managed application.
func (client ApplicationsClient) UpdateByIDPreparer(ctx context.Context, applicationID string, parameters *ApplicationPatchable) (*http.Request, error)
UpdateByIDPreparer prepares the UpdateByID request.
func (client ApplicationsClient) UpdateByIDResponder(resp *http.Response) (result ApplicationPatchable, err error)
UpdateByIDResponder handles the response to the UpdateByID request. The method always closes the http.Response Body.
func (client ApplicationsClient) UpdateByIDSender(req *http.Request) (future ApplicationsUpdateByIDFuture, err error)
UpdateByIDSender sends the UpdateByID request. The method will close the http.Response Body if it receives an error.
func (client ApplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, applicationName string, parameters *ApplicationPatchable) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client ApplicationsClient) UpdateResponder(resp *http.Response) (result ApplicationPatchable, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client ApplicationsClient) UpdateSender(req *http.Request) (future ApplicationsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
ApplicationsCreateOrUpdateByIDFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ApplicationsCreateOrUpdateByIDFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (Application, error) }
func (future *ApplicationsCreateOrUpdateByIDFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ApplicationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ApplicationsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (Application, error) }
func (future *ApplicationsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ApplicationsDeleteByIDFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ApplicationsDeleteByIDFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (autorest.Response, error) }
func (future *ApplicationsDeleteByIDFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ApplicationsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ApplicationsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (autorest.Response, error) }
func (future *ApplicationsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ApplicationsUpdateByIDFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ApplicationsUpdateByIDFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (ApplicationPatchable, error) }
func (future *ApplicationsUpdateByIDFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ApplicationsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ApplicationsUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (ApplicationPatchable, error) }
func (future *ApplicationsUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BaseClient is the base client for Managedapplications.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client BaseClient) ListOperations(ctx context.Context) (result OperationListResultPage, err error)
ListOperations lists all of the available Microsoft.Solutions REST API operations.
func (client BaseClient) ListOperationsComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListOperationsComplete enumerates all values, automatically crossing page boundaries as required.
func (client BaseClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error)
ListOperationsPreparer prepares the ListOperations request.
func (client BaseClient) ListOperationsResponder(resp *http.Response) (result OperationListResult, err error)
ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.
func (client BaseClient) ListOperationsSender(req *http.Request) (*http.Response, error)
ListOperationsSender sends the ListOperations request. The method will close the http.Response Body if it receives an error.
ErrorAdditionalInfo the resource management error additional info.
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
ErrorDetail the error detail.
type ErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorDetail `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type ErrorResponse struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
GenericResource resource information.
type GenericResource struct { // ManagedBy - ID of the resource that manages this resource. ManagedBy *string `json:"managedBy,omitempty"` // Sku - The SKU of the resource. Sku *Sku `json:"sku,omitempty"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
func (gr GenericResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GenericResource.
Identity identity for the resource.
type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'SystemAssigned' Type ResourceIdentityType `json:"type,omitempty"` }
func (i Identity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Identity.
Operation details of a REST API operation, returned from the Resource Provider Operations API
type Operation struct { // Name - READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" Name *string `json:"name,omitempty"` // IsDataAction - READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Localized display information for this particular operation. Display *OperationDisplay `json:"display,omitempty"` // Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'User', 'System', 'Usersystem' Origin Origin `json:"origin,omitempty"` // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'Internal' ActionType ActionType `json:"actionType,omitempty"` }
func (o Operation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Operation.
OperationDisplay localized display information for this particular operation.
type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". Provider *string `json:"provider,omitempty"` // Resource - READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". Resource *string `json:"resource,omitempty"` // Operation - READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". Operation *string `json:"operation,omitempty"` // Description - READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string `json:"description,omitempty"` }
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationDisplay.
OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
type OperationListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; List of operations supported by the resource provider Value *[]Operation `json:"value,omitempty"` // NextLink - READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string `json:"nextLink,omitempty"` }
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (olr OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationListResult.
OperationListResultIterator provides access to a complete listing of Operation values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OperationListResultPage contains a page of Operation values.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
Origin enumerates the values for origin.
type Origin string
const ( // System ... System Origin = "system" // User ... User Origin = "user" // Usersystem ... Usersystem Origin = "user,system" )
func PossibleOriginValues() []Origin
PossibleOriginValues returns an array of possible values for the Origin const type.
Plan plan for the managed application.
type Plan struct { // Name - The plan name. Name *string `json:"name,omitempty"` // Publisher - The publisher ID. Publisher *string `json:"publisher,omitempty"` // Product - The product code. Product *string `json:"product,omitempty"` // PromotionCode - The promotion code. PromotionCode *string `json:"promotionCode,omitempty"` // Version - The plan's version. Version *string `json:"version,omitempty"` }
PlanPatchable plan for the managed application.
type PlanPatchable struct { // Name - The plan name. Name *string `json:"name,omitempty"` // Publisher - The publisher ID. Publisher *string `json:"publisher,omitempty"` // Product - The product code. Product *string `json:"product,omitempty"` // PromotionCode - The promotion code. PromotionCode *string `json:"promotionCode,omitempty"` // Version - The plan's version. Version *string `json:"version,omitempty"` }
ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const ( // Accepted ... Accepted ProvisioningState = "Accepted" // Canceled ... Canceled ProvisioningState = "Canceled" // Created ... Created ProvisioningState = "Created" // Creating ... Creating ProvisioningState = "Creating" // Deleted ... Deleted ProvisioningState = "Deleted" // Deleting ... Deleting ProvisioningState = "Deleting" // Failed ... Failed ProvisioningState = "Failed" // Ready ... Ready ProvisioningState = "Ready" // Running ... Running ProvisioningState = "Running" // Succeeded ... Succeeded ProvisioningState = "Succeeded" // Updating ... Updating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
Resource resource information.
type Resource struct { // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
ResourceIdentityType enumerates the values for resource identity type.
type ResourceIdentityType string
const ( // SystemAssigned ... SystemAssigned ResourceIdentityType = "SystemAssigned" )
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
Sku SKU for the resource.
type Sku struct { // Name - The SKU name. Name *string `json:"name,omitempty"` // Tier - The SKU tier. Tier *string `json:"tier,omitempty"` // Size - The SKU size. Size *string `json:"size,omitempty"` // Family - The SKU family. Family *string `json:"family,omitempty"` // Model - The SKU model. Model *string `json:"model,omitempty"` // Capacity - The SKU capacity. Capacity *int32 `json:"capacity,omitempty"` }
Name | Synopsis |
---|---|
.. | |
managedapplicationsapi | Deprecated: Please note, this package has been deprecated. |