Documentation ¶
Index ¶
- type Application
- type ApplicationArtifact
- type ApplicationArtifactType
- type ApplicationClient
- type ApplicationClientListOperationsOptions
- type ApplicationClientListOperationsResponse
- type ApplicationDefinition
- type ApplicationDefinitionListResult
- type ApplicationDefinitionProperties
- type ApplicationDefinitionsClient
- func (client *ApplicationDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ApplicationDefinitionsClientCreateOrUpdateResponse], error)
- func (client *ApplicationDefinitionsClient) BeginCreateOrUpdateByID(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ApplicationDefinitionsClientCreateOrUpdateByIDResponse], error)
- func (client *ApplicationDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ApplicationDefinitionsClientDeleteResponse], error)
- func (client *ApplicationDefinitionsClient) BeginDeleteByID(ctx context.Context, resourceGroupName string, ...) (*runtime.Poller[ApplicationDefinitionsClientDeleteByIDResponse], error)
- func (client *ApplicationDefinitionsClient) Get(ctx context.Context, resourceGroupName string, ...) (ApplicationDefinitionsClientGetResponse, error)
- func (client *ApplicationDefinitionsClient) GetByID(ctx context.Context, resourceGroupName string, ...) (ApplicationDefinitionsClientGetByIDResponse, error)
- func (client *ApplicationDefinitionsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[ApplicationDefinitionsClientListByResourceGroupResponse]
- type ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions
- type ApplicationDefinitionsClientBeginCreateOrUpdateOptions
- type ApplicationDefinitionsClientBeginDeleteByIDOptions
- type ApplicationDefinitionsClientBeginDeleteOptions
- type ApplicationDefinitionsClientCreateOrUpdateByIDResponse
- type ApplicationDefinitionsClientCreateOrUpdateResponse
- type ApplicationDefinitionsClientDeleteByIDResponse
- type ApplicationDefinitionsClientDeleteResponse
- type ApplicationDefinitionsClientGetByIDOptions
- type ApplicationDefinitionsClientGetByIDResponse
- type ApplicationDefinitionsClientGetOptions
- type ApplicationDefinitionsClientGetResponse
- type ApplicationDefinitionsClientListByResourceGroupOptions
- type ApplicationDefinitionsClientListByResourceGroupResponse
- type ApplicationListResult
- type ApplicationLockLevel
- type ApplicationPatchable
- type ApplicationProperties
- type ApplicationPropertiesPatchable
- type ApplicationProviderAuthorization
- type ApplicationsClient
- func (client *ApplicationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, ...) (*runtime.Poller[ApplicationsClientCreateOrUpdateResponse], error)
- func (client *ApplicationsClient) BeginCreateOrUpdateByID(ctx context.Context, applicationID string, parameters Application, ...) (*runtime.Poller[ApplicationsClientCreateOrUpdateByIDResponse], error)
- func (client *ApplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationName string, ...) (*runtime.Poller[ApplicationsClientDeleteResponse], error)
- func (client *ApplicationsClient) BeginDeleteByID(ctx context.Context, applicationID string, ...) (*runtime.Poller[ApplicationsClientDeleteByIDResponse], error)
- func (client *ApplicationsClient) Get(ctx context.Context, resourceGroupName string, applicationName string, ...) (ApplicationsClientGetResponse, error)
- func (client *ApplicationsClient) GetByID(ctx context.Context, applicationID string, ...) (ApplicationsClientGetByIDResponse, error)
- func (client *ApplicationsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[ApplicationsClientListByResourceGroupResponse]
- func (client *ApplicationsClient) NewListBySubscriptionPager(options *ApplicationsClientListBySubscriptionOptions) *runtime.Pager[ApplicationsClientListBySubscriptionResponse]
- func (client *ApplicationsClient) Update(ctx context.Context, resourceGroupName string, applicationName string, ...) (ApplicationsClientUpdateResponse, error)
- func (client *ApplicationsClient) UpdateByID(ctx context.Context, applicationID string, ...) (ApplicationsClientUpdateByIDResponse, error)
- type ApplicationsClientBeginCreateOrUpdateByIDOptions
- type ApplicationsClientBeginCreateOrUpdateOptions
- type ApplicationsClientBeginDeleteByIDOptions
- type ApplicationsClientBeginDeleteOptions
- type ApplicationsClientCreateOrUpdateByIDResponse
- type ApplicationsClientCreateOrUpdateResponse
- type ApplicationsClientDeleteByIDResponse
- type ApplicationsClientDeleteResponse
- type ApplicationsClientGetByIDOptions
- type ApplicationsClientGetByIDResponse
- type ApplicationsClientGetOptions
- type ApplicationsClientGetResponse
- type ApplicationsClientListByResourceGroupOptions
- type ApplicationsClientListByResourceGroupResponse
- type ApplicationsClientListBySubscriptionOptions
- type ApplicationsClientListBySubscriptionResponse
- type ApplicationsClientUpdateByIDOptions
- type ApplicationsClientUpdateByIDResponse
- type ApplicationsClientUpdateOptions
- type ApplicationsClientUpdateResponse
- type ClientFactory
- type ErrorResponse
- type GenericResource
- type Identity
- type Operation
- type OperationDisplay
- type OperationListResult
- type Plan
- type PlanPatchable
- type ProvisioningState
- type Resource
- type SKU
Examples ¶
- ApplicationClient.NewListOperationsPager
- ApplicationDefinitionsClient.BeginCreateOrUpdate
- ApplicationDefinitionsClient.BeginDelete
- ApplicationDefinitionsClient.Get
- ApplicationDefinitionsClient.NewListByResourceGroupPager
- ApplicationsClient.BeginCreateOrUpdate
- ApplicationsClient.BeginCreateOrUpdateByID
- ApplicationsClient.BeginDelete
- ApplicationsClient.BeginDeleteByID
- ApplicationsClient.Get
- ApplicationsClient.GetByID
- ApplicationsClient.NewListByResourceGroupPager
- ApplicationsClient.NewListBySubscriptionPager
- ApplicationsClient.Update
- ApplicationsClient.UpdateByID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { // REQUIRED; The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. Kind *string // REQUIRED; The managed application properties. Properties *ApplicationProperties // The identity of the resource. Identity *Identity // Resource location Location *string // ID of the resource that manages this resource. ManagedBy *string // The plan information. Plan *Plan // The SKU of the resource. SKU *SKU // Resource tags Tags map[string]*string // READ-ONLY; Resource ID ID *string // READ-ONLY; Resource name Name *string // READ-ONLY; Resource type Type *string }
Application - Information about managed application.
func (Application) MarshalJSON ¶
func (a Application) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Application.
func (*Application) UnmarshalJSON ¶ added in v1.1.0
func (a *Application) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Application.
type ApplicationArtifact ¶
type ApplicationArtifact struct { // The managed application artifact name. Name *string // The managed application artifact type. Type *ApplicationArtifactType // The managed application artifact blob uri. URI *string }
ApplicationArtifact - Managed application artifact.
func (ApplicationArtifact) MarshalJSON ¶ added in v1.1.0
func (a ApplicationArtifact) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationArtifact.
func (*ApplicationArtifact) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationArtifact) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationArtifact.
type ApplicationArtifactType ¶
type ApplicationArtifactType string
ApplicationArtifactType - The managed application artifact type.
const ( ApplicationArtifactTypeCustom ApplicationArtifactType = "Custom" ApplicationArtifactTypeTemplate ApplicationArtifactType = "Template" )
func PossibleApplicationArtifactTypeValues ¶
func PossibleApplicationArtifactTypeValues() []ApplicationArtifactType
PossibleApplicationArtifactTypeValues returns the possible values for the ApplicationArtifactType const type.
type ApplicationClient ¶
type ApplicationClient struct {
// contains filtered or unexported fields
}
ApplicationClient contains the methods for the ApplicationClient group. Don't use this type directly, use NewApplicationClient() instead.
func NewApplicationClient ¶
func NewApplicationClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationClient, error)
NewApplicationClient creates a new instance of ApplicationClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ApplicationClient) NewListOperationsPager ¶ added in v0.4.0
func (client *ApplicationClient) NewListOperationsPager(options *ApplicationClientListOperationsOptions) *runtime.Pager[ApplicationClientListOperationsResponse]
NewListOperationsPager - Lists all of the available Microsoft.Solutions REST API operations.
Generated from API version 2018-06-01
- options - ApplicationClientListOperationsOptions contains the optional parameters for the ApplicationClient.NewListOperationsPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listSolutionsOperations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationClient().NewListOperationsPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OperationListResult = armmanagedapplications.OperationListResult{ // Value: []*armmanagedapplications.Operation{ // { // Name: to.Ptr("SolutionsOpeartion1"), // Display: &armmanagedapplications.OperationDisplay{ // Operation: to.Ptr("Read"), // Provider: to.Ptr("Microsoft.ResourceProvider"), // Resource: to.Ptr("Resource1"), // }, // }, // { // Name: to.Ptr("SolutionssOpeartion2"), // Display: &armmanagedapplications.OperationDisplay{ // Operation: to.Ptr("Write"), // Provider: to.Ptr("Microsoft.ResourceProvider"), // Resource: to.Ptr("Resource2"), // }, // }}, // } } }
Output:
type ApplicationClientListOperationsOptions ¶
type ApplicationClientListOperationsOptions struct { }
ApplicationClientListOperationsOptions contains the optional parameters for the ApplicationClient.NewListOperationsPager method.
type ApplicationClientListOperationsResponse ¶
type ApplicationClientListOperationsResponse struct { // Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the // next set of results. OperationListResult }
ApplicationClientListOperationsResponse contains the response from method ApplicationClient.NewListOperationsPager.
type ApplicationDefinition ¶
type ApplicationDefinition struct { // REQUIRED; The managed application definition properties. Properties *ApplicationDefinitionProperties // The identity of the resource. Identity *Identity // Resource location Location *string // ID of the resource that manages this resource. ManagedBy *string // The SKU of the resource. SKU *SKU // Resource tags Tags map[string]*string // READ-ONLY; Resource ID ID *string // READ-ONLY; Resource name Name *string // READ-ONLY; Resource type Type *string }
ApplicationDefinition - Information about managed application definition.
func (ApplicationDefinition) MarshalJSON ¶
func (a ApplicationDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationDefinition.
func (*ApplicationDefinition) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationDefinition.
type ApplicationDefinitionListResult ¶
type ApplicationDefinitionListResult struct { // The URL to use for getting the next set of results. NextLink *string // The array of managed application definitions. Value []*ApplicationDefinition }
ApplicationDefinitionListResult - List of managed application definitions.
func (ApplicationDefinitionListResult) MarshalJSON ¶
func (a ApplicationDefinitionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationDefinitionListResult.
func (*ApplicationDefinitionListResult) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationDefinitionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationDefinitionListResult.
type ApplicationDefinitionProperties ¶
type ApplicationDefinitionProperties struct { // REQUIRED; The managed application provider authorizations. Authorizations []*ApplicationProviderAuthorization // REQUIRED; The managed application lock level. LockLevel *ApplicationLockLevel // 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 // The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject // or well-formed JSON string. CreateUIDefinition any // The managed application definition description. Description *string // The managed application definition display name. DisplayName *string // A value indicating whether the package is enabled or not. IsEnabled *string // The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. MainTemplate any // The managed application definition package file Uri. Use this element PackageFileURI *string }
ApplicationDefinitionProperties - The managed application definition properties.
func (ApplicationDefinitionProperties) MarshalJSON ¶
func (a ApplicationDefinitionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationDefinitionProperties.
func (*ApplicationDefinitionProperties) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationDefinitionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationDefinitionProperties.
type ApplicationDefinitionsClient ¶
type ApplicationDefinitionsClient struct {
// contains filtered or unexported fields
}
ApplicationDefinitionsClient contains the methods for the ApplicationDefinitions group. Don't use this type directly, use NewApplicationDefinitionsClient() instead.
func NewApplicationDefinitionsClient ¶
func NewApplicationDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationDefinitionsClient, error)
NewApplicationDefinitionsClient creates a new instance of ApplicationDefinitionsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ApplicationDefinitionsClient) BeginCreateOrUpdate ¶
func (client *ApplicationDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition, options *ApplicationDefinitionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ApplicationDefinitionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a new managed application definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- 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.
- options - ApplicationDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationDefinitionsClient().BeginCreateOrUpdate(ctx, "rg", "myManagedApplicationDef", armmanagedapplications.ApplicationDefinition{ Location: to.Ptr("East US 2"), Properties: &armmanagedapplications.ApplicationDefinitionProperties{ Description: to.Ptr("myManagedApplicationDef description"), Authorizations: []*armmanagedapplications.ApplicationProviderAuthorization{ { PrincipalID: to.Ptr("validprincipalguid"), RoleDefinitionID: to.Ptr("validroleguid"), }}, DisplayName: to.Ptr("myManagedApplicationDef"), LockLevel: to.Ptr(armmanagedapplications.ApplicationLockLevelNone), PackageFileURI: to.Ptr("https://path/to/packagezipfile"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationDefinition = armmanagedapplications.ApplicationDefinition{ // Name: to.Ptr("myManagedApplicationDef"), // Type: to.Ptr("Microsoft.Solutions/applicationDefinitions"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef"), // Location: to.Ptr("East US 2"), // Properties: &armmanagedapplications.ApplicationDefinitionProperties{ // Description: to.Ptr("myManagedApplicationDef description"), // Artifacts: []*armmanagedapplications.ApplicationArtifact{ // { // Name: to.Ptr("CreateUiDefinition"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeCustom), // URI: to.Ptr("https://path/to/managedApplicationCreateUiDefinition.json"), // }, // { // Name: to.Ptr("ManagedApplicationResourceTemplate"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeTemplate), // URI: to.Ptr("https://path/to/mainTemplate.json"), // }}, // Authorizations: []*armmanagedapplications.ApplicationProviderAuthorization{ // { // PrincipalID: to.Ptr("validprincipalguid"), // RoleDefinitionID: to.Ptr("validroleguid"), // }}, // DisplayName: to.Ptr("myManagedApplicationDef"), // LockLevel: to.Ptr(armmanagedapplications.ApplicationLockLevelNone), // PackageFileURI: to.Ptr("https://path/to/packagezipfile"), // }, // } }
Output:
func (*ApplicationDefinitionsClient) BeginCreateOrUpdateByID ¶
func (client *ApplicationDefinitionsClient) BeginCreateOrUpdateByID(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition, options *ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions) (*runtime.Poller[ApplicationDefinitionsClientCreateOrUpdateByIDResponse], error)
BeginCreateOrUpdateByID - Creates a new managed application definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- 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 a managed application definition.
- options - ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdateByID method.
func (*ApplicationDefinitionsClient) BeginDelete ¶
func (client *ApplicationDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientBeginDeleteOptions) (*runtime.Poller[ApplicationDefinitionsClientDeleteResponse], error)
BeginDelete - Deletes the managed application definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- applicationDefinitionName - The name of the managed application definition to delete.
- options - ApplicationDefinitionsClientBeginDeleteOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationDefinitionsClient().BeginDelete(ctx, "rg", "myManagedApplicationDef", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ApplicationDefinitionsClient) BeginDeleteByID ¶
func (client *ApplicationDefinitionsClient) BeginDeleteByID(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientBeginDeleteByIDOptions) (*runtime.Poller[ApplicationDefinitionsClientDeleteByIDResponse], error)
BeginDeleteByID - Deletes the managed application definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- applicationDefinitionName - The name of the managed application definition.
- options - ApplicationDefinitionsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDeleteByID method.
func (*ApplicationDefinitionsClient) Get ¶
func (client *ApplicationDefinitionsClient) Get(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientGetOptions) (ApplicationDefinitionsClientGetResponse, error)
Get - Gets the managed application definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- applicationDefinitionName - The name of the managed application definition.
- options - ApplicationDefinitionsClientGetOptions contains the optional parameters for the ApplicationDefinitionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationDefinitionsClient().Get(ctx, "rg", "myManagedApplicationDef", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationDefinition = armmanagedapplications.ApplicationDefinition{ // Name: to.Ptr("myManagedApplicationDef"), // Type: to.Ptr("Microsoft.Solutions/applicationDefinitions"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef"), // Location: to.Ptr("East US 2"), // Properties: &armmanagedapplications.ApplicationDefinitionProperties{ // Description: to.Ptr("myManagedApplicationDef description"), // Artifacts: []*armmanagedapplications.ApplicationArtifact{ // { // Name: to.Ptr("CreateUiDefinition"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeCustom), // URI: to.Ptr("https://path/to/managedApplicationCreateUiDefinition.json"), // }, // { // Name: to.Ptr("ManagedApplicationResourceTemplate"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeTemplate), // URI: to.Ptr("https://path/to/mainTemplate.json"), // }}, // Authorizations: []*armmanagedapplications.ApplicationProviderAuthorization{ // { // PrincipalID: to.Ptr("validprincipalguid"), // RoleDefinitionID: to.Ptr("validroleguid"), // }}, // DisplayName: to.Ptr("myManagedApplicationDef"), // LockLevel: to.Ptr(armmanagedapplications.ApplicationLockLevelNone), // PackageFileURI: to.Ptr("https://path/to/packagezipfile"), // }, // } }
Output:
func (*ApplicationDefinitionsClient) GetByID ¶
func (client *ApplicationDefinitionsClient) GetByID(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientGetByIDOptions) (ApplicationDefinitionsClientGetByIDResponse, error)
GetByID - Gets the managed application definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- applicationDefinitionName - The name of the managed application definition.
- options - ApplicationDefinitionsClientGetByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.GetByID method.
func (*ApplicationDefinitionsClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *ApplicationDefinitionsClient) NewListByResourceGroupPager(resourceGroupName string, options *ApplicationDefinitionsClientListByResourceGroupOptions) *runtime.Pager[ApplicationDefinitionsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists the managed application definitions in a resource group.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - ApplicationDefinitionsClientListByResourceGroupOptions contains the optional parameters for the ApplicationDefinitionsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationDefinitionsClient().NewListByResourceGroupPager("rg", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ApplicationDefinitionListResult = armmanagedapplications.ApplicationDefinitionListResult{ // Value: []*armmanagedapplications.ApplicationDefinition{ // { // Name: to.Ptr("myManagedApplicationDef"), // Type: to.Ptr("Microsoft.Solutions/applicationDefinitions"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef"), // Location: to.Ptr("East US 2"), // Properties: &armmanagedapplications.ApplicationDefinitionProperties{ // Description: to.Ptr("myManagedApplicationDef description"), // Artifacts: []*armmanagedapplications.ApplicationArtifact{ // { // Name: to.Ptr("CreateUiDefinition"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeCustom), // URI: to.Ptr("https://path/to/managedApplicationCreateUiDefinition.json"), // }, // { // Name: to.Ptr("ManagedApplicationResourceTemplate"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeTemplate), // URI: to.Ptr("https://path/to/mainTemplate.json"), // }}, // Authorizations: []*armmanagedapplications.ApplicationProviderAuthorization{ // { // PrincipalID: to.Ptr("validprincipalguid"), // RoleDefinitionID: to.Ptr("validroleguid"), // }}, // DisplayName: to.Ptr("myManagedApplicationDef"), // LockLevel: to.Ptr(armmanagedapplications.ApplicationLockLevelNone), // PackageFileURI: to.Ptr("https://path/to/packagezipfile"), // }, // }, // { // Name: to.Ptr("myManagedApplicationDef2"), // Type: to.Ptr("Microsoft.Solutions/applicationDefinitions"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myManagedApplicationDef2"), // Location: to.Ptr("West US"), // Properties: &armmanagedapplications.ApplicationDefinitionProperties{ // Description: to.Ptr("myManagedApplicationDef2 description"), // Artifacts: []*armmanagedapplications.ApplicationArtifact{ // { // Name: to.Ptr("CreateUiDefinition"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeCustom), // URI: to.Ptr("https://path/to/managedApplicationCreateUiDefinition.json"), // }, // { // Name: to.Ptr("ManagedApplicationResourceTemplate"), // Type: to.Ptr(armmanagedapplications.ApplicationArtifactTypeTemplate), // URI: to.Ptr("https://path/to/mainTemplate.json"), // }}, // Authorizations: []*armmanagedapplications.ApplicationProviderAuthorization{ // { // PrincipalID: to.Ptr("validprincipalguid"), // RoleDefinitionID: to.Ptr("validroleguid"), // }}, // DisplayName: to.Ptr("myManagedApplicationDef2"), // LockLevel: to.Ptr(armmanagedapplications.ApplicationLockLevelNone), // PackageFileURI: to.Ptr("https://path/to/packagezipfile"), // }, // }}, // } } }
Output:
type ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions ¶ added in v0.2.0
type ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdateByID method.
type ApplicationDefinitionsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type ApplicationDefinitionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdate method.
type ApplicationDefinitionsClientBeginDeleteByIDOptions ¶ added in v0.2.0
type ApplicationDefinitionsClientBeginDeleteByIDOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationDefinitionsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDeleteByID method.
type ApplicationDefinitionsClientBeginDeleteOptions ¶ added in v0.2.0
type ApplicationDefinitionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationDefinitionsClientBeginDeleteOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDelete method.
type ApplicationDefinitionsClientCreateOrUpdateByIDResponse ¶ added in v0.2.0
type ApplicationDefinitionsClientCreateOrUpdateByIDResponse struct { // Information about managed application definition. ApplicationDefinition }
ApplicationDefinitionsClientCreateOrUpdateByIDResponse contains the response from method ApplicationDefinitionsClient.BeginCreateOrUpdateByID.
type ApplicationDefinitionsClientCreateOrUpdateResponse ¶ added in v0.2.0
type ApplicationDefinitionsClientCreateOrUpdateResponse struct { // Information about managed application definition. ApplicationDefinition }
ApplicationDefinitionsClientCreateOrUpdateResponse contains the response from method ApplicationDefinitionsClient.BeginCreateOrUpdate.
type ApplicationDefinitionsClientDeleteByIDResponse ¶ added in v0.2.0
type ApplicationDefinitionsClientDeleteByIDResponse struct { }
ApplicationDefinitionsClientDeleteByIDResponse contains the response from method ApplicationDefinitionsClient.BeginDeleteByID.
type ApplicationDefinitionsClientDeleteResponse ¶ added in v0.2.0
type ApplicationDefinitionsClientDeleteResponse struct { }
ApplicationDefinitionsClientDeleteResponse contains the response from method ApplicationDefinitionsClient.BeginDelete.
type ApplicationDefinitionsClientGetByIDOptions ¶ added in v0.2.0
type ApplicationDefinitionsClientGetByIDOptions struct { }
ApplicationDefinitionsClientGetByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.GetByID method.
type ApplicationDefinitionsClientGetByIDResponse ¶ added in v0.2.0
type ApplicationDefinitionsClientGetByIDResponse struct { // Information about managed application definition. ApplicationDefinition }
ApplicationDefinitionsClientGetByIDResponse contains the response from method ApplicationDefinitionsClient.GetByID.
type ApplicationDefinitionsClientGetOptions ¶ added in v0.2.0
type ApplicationDefinitionsClientGetOptions struct { }
ApplicationDefinitionsClientGetOptions contains the optional parameters for the ApplicationDefinitionsClient.Get method.
type ApplicationDefinitionsClientGetResponse ¶ added in v0.2.0
type ApplicationDefinitionsClientGetResponse struct { // Information about managed application definition. ApplicationDefinition }
ApplicationDefinitionsClientGetResponse contains the response from method ApplicationDefinitionsClient.Get.
type ApplicationDefinitionsClientListByResourceGroupOptions ¶ added in v0.2.0
type ApplicationDefinitionsClientListByResourceGroupOptions struct { }
ApplicationDefinitionsClientListByResourceGroupOptions contains the optional parameters for the ApplicationDefinitionsClient.NewListByResourceGroupPager method.
type ApplicationDefinitionsClientListByResourceGroupResponse ¶ added in v0.2.0
type ApplicationDefinitionsClientListByResourceGroupResponse struct { // List of managed application definitions. ApplicationDefinitionListResult }
ApplicationDefinitionsClientListByResourceGroupResponse contains the response from method ApplicationDefinitionsClient.NewListByResourceGroupPager.
type ApplicationListResult ¶
type ApplicationListResult struct { // The URL to use for getting the next set of results. NextLink *string // The array of managed applications. Value []*Application }
ApplicationListResult - List of managed applications.
func (ApplicationListResult) MarshalJSON ¶
func (a ApplicationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationListResult.
func (*ApplicationListResult) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationListResult.
type ApplicationLockLevel ¶
type ApplicationLockLevel string
ApplicationLockLevel - The managed application lock level.
const ( ApplicationLockLevelCanNotDelete ApplicationLockLevel = "CanNotDelete" ApplicationLockLevelNone ApplicationLockLevel = "None" ApplicationLockLevelReadOnly ApplicationLockLevel = "ReadOnly" )
func PossibleApplicationLockLevelValues ¶
func PossibleApplicationLockLevelValues() []ApplicationLockLevel
PossibleApplicationLockLevelValues returns the possible values for the ApplicationLockLevel const type.
type ApplicationPatchable ¶
type ApplicationPatchable struct { // The identity of the resource. Identity *Identity // The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. Kind *string // Resource location Location *string // ID of the resource that manages this resource. ManagedBy *string // The plan information. Plan *PlanPatchable // The managed application properties. Properties *ApplicationPropertiesPatchable // The SKU of the resource. SKU *SKU // Resource tags Tags map[string]*string // READ-ONLY; Resource ID ID *string // READ-ONLY; Resource name Name *string // READ-ONLY; Resource type Type *string }
ApplicationPatchable - Information about managed application.
func (ApplicationPatchable) MarshalJSON ¶
func (a ApplicationPatchable) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationPatchable.
func (*ApplicationPatchable) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationPatchable) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationPatchable.
type ApplicationProperties ¶
type ApplicationProperties struct { // REQUIRED; The managed resource group Id. ManagedResourceGroupID *string // The fully qualified path of managed application definition Id. ApplicationDefinitionID *string // Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. Parameters any // READ-ONLY; Name and value pairs that define the managed application outputs. Outputs any // READ-ONLY; The managed application provisioning state. ProvisioningState *ProvisioningState }
ApplicationProperties - The managed application properties.
func (ApplicationProperties) MarshalJSON ¶ added in v1.1.0
func (a ApplicationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationProperties.
func (*ApplicationProperties) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationProperties.
type ApplicationPropertiesPatchable ¶
type ApplicationPropertiesPatchable struct { // The fully qualified path of managed application definition Id. ApplicationDefinitionID *string // The managed resource group Id. ManagedResourceGroupID *string // Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. Parameters any // READ-ONLY; Name and value pairs that define the managed application outputs. Outputs any // READ-ONLY; The managed application provisioning state. ProvisioningState *ProvisioningState }
ApplicationPropertiesPatchable - The managed application properties.
func (ApplicationPropertiesPatchable) MarshalJSON ¶ added in v1.1.0
func (a ApplicationPropertiesPatchable) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationPropertiesPatchable.
func (*ApplicationPropertiesPatchable) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationPropertiesPatchable) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationPropertiesPatchable.
type ApplicationProviderAuthorization ¶
type ApplicationProviderAuthorization struct { // REQUIRED; 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 // REQUIRED; 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 }
ApplicationProviderAuthorization - The managed application provider authorization.
func (ApplicationProviderAuthorization) MarshalJSON ¶ added in v1.1.0
func (a ApplicationProviderAuthorization) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationProviderAuthorization.
func (*ApplicationProviderAuthorization) UnmarshalJSON ¶ added in v1.1.0
func (a *ApplicationProviderAuthorization) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationProviderAuthorization.
type ApplicationsClient ¶
type ApplicationsClient struct {
// contains filtered or unexported fields
}
ApplicationsClient contains the methods for the Applications group. Don't use this type directly, use NewApplicationsClient() instead.
func NewApplicationsClient ¶
func NewApplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationsClient, error)
NewApplicationsClient creates a new instance of ApplicationsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ApplicationsClient) BeginCreateOrUpdate ¶
func (client *ApplicationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters Application, options *ApplicationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ApplicationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates a new managed application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- 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.
- options - ApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationsClient().BeginCreateOrUpdate(ctx, "rg", "myManagedApplication", armmanagedapplications.Application{ Location: to.Ptr("East US 2"), Kind: to.Ptr("ServiceCatalog"), Properties: &armmanagedapplications.ApplicationProperties{ ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armmanagedapplications.Application{ // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Location: to.Ptr("East US 2"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // } }
Output:
func (*ApplicationsClient) BeginCreateOrUpdateByID ¶
func (client *ApplicationsClient) BeginCreateOrUpdateByID(ctx context.Context, applicationID string, parameters Application, options *ApplicationsClientBeginCreateOrUpdateByIDOptions) (*runtime.Poller[ApplicationsClientCreateOrUpdateByIDResponse], error)
BeginCreateOrUpdateByID - Creates a new managed application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- 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.
- options - ApplicationsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdateByID method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationsClient().BeginCreateOrUpdateByID(ctx, "myApplicationId", armmanagedapplications.Application{ Location: to.Ptr("East US 2"), Kind: to.Ptr("ServiceCatalog"), Properties: &armmanagedapplications.ApplicationProperties{ ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armmanagedapplications.Application{ // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Location: to.Ptr("East US 2"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // } }
Output:
func (*ApplicationsClient) BeginDelete ¶
func (client *ApplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationName string, options *ApplicationsClientBeginDeleteOptions) (*runtime.Poller[ApplicationsClientDeleteResponse], error)
BeginDelete - Deletes the managed application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- applicationName - The name of the managed application.
- options - ApplicationsClientBeginDeleteOptions contains the optional parameters for the ApplicationsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationsClient().BeginDelete(ctx, "rg", "myManagedApplication", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ApplicationsClient) BeginDeleteByID ¶
func (client *ApplicationsClient) BeginDeleteByID(ctx context.Context, applicationID string, options *ApplicationsClientBeginDeleteByIDOptions) (*runtime.Poller[ApplicationsClientDeleteByIDResponse], error)
BeginDeleteByID - Deletes the managed application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- 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}
- options - ApplicationsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationsClient.BeginDeleteByID method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewApplicationsClient().BeginDeleteByID(ctx, "myApplicationId", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ApplicationsClient) Get ¶
func (client *ApplicationsClient) Get(ctx context.Context, resourceGroupName string, applicationName string, options *ApplicationsClientGetOptions) (ApplicationsClientGetResponse, error)
Get - Gets the managed application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- applicationName - The name of the managed application.
- options - ApplicationsClientGetOptions contains the optional parameters for the ApplicationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().Get(ctx, "rg", "myManagedApplication", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armmanagedapplications.Application{ // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Location: to.Ptr("East US 2"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // } }
Output:
func (*ApplicationsClient) GetByID ¶
func (client *ApplicationsClient) GetByID(ctx context.Context, applicationID string, options *ApplicationsClientGetByIDOptions) (ApplicationsClientGetByIDResponse, error)
GetByID - Gets the managed application. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- 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}
- options - ApplicationsClientGetByIDOptions contains the optional parameters for the ApplicationsClient.GetByID method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().GetByID(ctx, "myApplicationId", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armmanagedapplications.Application{ // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Location: to.Ptr("East US 2"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // } }
Output:
func (*ApplicationsClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *ApplicationsClient) NewListByResourceGroupPager(resourceGroupName string, options *ApplicationsClientListByResourceGroupOptions) *runtime.Pager[ApplicationsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Gets all the applications within a resource group.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - ApplicationsClientListByResourceGroupOptions contains the optional parameters for the ApplicationsClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationsClient().NewListByResourceGroupPager("rg", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ApplicationListResult = armmanagedapplications.ApplicationListResult{ // Value: []*armmanagedapplications.Application{ // { // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Location: to.Ptr("East US 2"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // }, // { // Name: to.Ptr("myManagedApplication2"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2"), // Location: to.Ptr("West US"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // }}, // } } }
Output:
func (*ApplicationsClient) NewListBySubscriptionPager ¶ added in v0.4.0
func (client *ApplicationsClient) NewListBySubscriptionPager(options *ApplicationsClientListBySubscriptionOptions) *runtime.Pager[ApplicationsClientListBySubscriptionResponse]
NewListBySubscriptionPager - Gets all the applications within a subscription.
Generated from API version 2018-06-01
- options - ApplicationsClientListBySubscriptionOptions contains the optional parameters for the ApplicationsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationsClient().NewListBySubscriptionPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ApplicationListResult = armmanagedapplications.ApplicationListResult{ // Value: []*armmanagedapplications.Application{ // { // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Location: to.Ptr("East US 2"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // }, // { // Name: to.Ptr("myManagedApplication2"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2"), // Location: to.Ptr("West US"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // }}, // } } }
Output:
func (*ApplicationsClient) Update ¶
func (client *ApplicationsClient) Update(ctx context.Context, resourceGroupName string, applicationName string, options *ApplicationsClientUpdateOptions) (ApplicationsClientUpdateResponse, error)
Update - Updates an existing managed application. The only value that can be updated via PATCH currently is the tags. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- applicationName - The name of the managed application.
- options - ApplicationsClientUpdateOptions contains the optional parameters for the ApplicationsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().Update(ctx, "rg", "myManagedApplication", &armmanagedapplications.ApplicationsClientUpdateOptions{Parameters: &armmanagedapplications.ApplicationPatchable{ Kind: to.Ptr("ServiceCatalog"), Properties: &armmanagedapplications.ApplicationPropertiesPatchable{ ApplicationDefinitionID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef"), ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armmanagedapplications.Application{ // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ApplicationDefinitionID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef"), // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // } }
Output:
func (*ApplicationsClient) UpdateByID ¶
func (client *ApplicationsClient) UpdateByID(ctx context.Context, applicationID string, options *ApplicationsClientUpdateByIDOptions) (ApplicationsClientUpdateByIDResponse, error)
UpdateByID - Updates an existing managed application. The only value that can be updated via PATCH currently is the tags. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2018-06-01
- 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}
- options - ApplicationsClientUpdateByIDOptions contains the optional parameters for the ApplicationsClient.UpdateByID method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmanagedapplications.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().UpdateByID(ctx, "myApplicationId", &armmanagedapplications.ApplicationsClientUpdateByIDOptions{Parameters: &armmanagedapplications.Application{ Kind: to.Ptr("ServiceCatalog"), Properties: &armmanagedapplications.ApplicationProperties{ ApplicationDefinitionID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef"), ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armmanagedapplications.Application{ // Name: to.Ptr("myManagedApplication"), // Type: to.Ptr("Microsoft.Solutions/applications"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication"), // Kind: to.Ptr("ServiceCatalog"), // Properties: &armmanagedapplications.ApplicationProperties{ // ApplicationDefinitionID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef"), // ManagedResourceGroupID: to.Ptr("/subscriptions/subid/resourceGroups/myManagedRG"), // ProvisioningState: to.Ptr(armmanagedapplications.ProvisioningStateSucceeded), // }, // } }
Output:
type ApplicationsClientBeginCreateOrUpdateByIDOptions ¶ added in v0.2.0
type ApplicationsClientBeginCreateOrUpdateByIDOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdateByID method.
type ApplicationsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type ApplicationsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdate method.
type ApplicationsClientBeginDeleteByIDOptions ¶ added in v0.2.0
type ApplicationsClientBeginDeleteByIDOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationsClient.BeginDeleteByID method.
type ApplicationsClientBeginDeleteOptions ¶ added in v0.2.0
type ApplicationsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ApplicationsClientBeginDeleteOptions contains the optional parameters for the ApplicationsClient.BeginDelete method.
type ApplicationsClientCreateOrUpdateByIDResponse ¶ added in v0.2.0
type ApplicationsClientCreateOrUpdateByIDResponse struct { // Information about managed application. Application }
ApplicationsClientCreateOrUpdateByIDResponse contains the response from method ApplicationsClient.BeginCreateOrUpdateByID.
type ApplicationsClientCreateOrUpdateResponse ¶ added in v0.2.0
type ApplicationsClientCreateOrUpdateResponse struct { // Information about managed application. Application }
ApplicationsClientCreateOrUpdateResponse contains the response from method ApplicationsClient.BeginCreateOrUpdate.
type ApplicationsClientDeleteByIDResponse ¶ added in v0.2.0
type ApplicationsClientDeleteByIDResponse struct { }
ApplicationsClientDeleteByIDResponse contains the response from method ApplicationsClient.BeginDeleteByID.
type ApplicationsClientDeleteResponse ¶ added in v0.2.0
type ApplicationsClientDeleteResponse struct { }
ApplicationsClientDeleteResponse contains the response from method ApplicationsClient.BeginDelete.
type ApplicationsClientGetByIDOptions ¶ added in v0.2.0
type ApplicationsClientGetByIDOptions struct { }
ApplicationsClientGetByIDOptions contains the optional parameters for the ApplicationsClient.GetByID method.
type ApplicationsClientGetByIDResponse ¶ added in v0.2.0
type ApplicationsClientGetByIDResponse struct { // Information about managed application. Application }
ApplicationsClientGetByIDResponse contains the response from method ApplicationsClient.GetByID.
type ApplicationsClientGetOptions ¶ added in v0.2.0
type ApplicationsClientGetOptions struct { }
ApplicationsClientGetOptions contains the optional parameters for the ApplicationsClient.Get method.
type ApplicationsClientGetResponse ¶ added in v0.2.0
type ApplicationsClientGetResponse struct { // Information about managed application. Application }
ApplicationsClientGetResponse contains the response from method ApplicationsClient.Get.
type ApplicationsClientListByResourceGroupOptions ¶ added in v0.2.0
type ApplicationsClientListByResourceGroupOptions struct { }
ApplicationsClientListByResourceGroupOptions contains the optional parameters for the ApplicationsClient.NewListByResourceGroupPager method.
type ApplicationsClientListByResourceGroupResponse ¶ added in v0.2.0
type ApplicationsClientListByResourceGroupResponse struct { // List of managed applications. ApplicationListResult }
ApplicationsClientListByResourceGroupResponse contains the response from method ApplicationsClient.NewListByResourceGroupPager.
type ApplicationsClientListBySubscriptionOptions ¶ added in v0.2.0
type ApplicationsClientListBySubscriptionOptions struct { }
ApplicationsClientListBySubscriptionOptions contains the optional parameters for the ApplicationsClient.NewListBySubscriptionPager method.
type ApplicationsClientListBySubscriptionResponse ¶ added in v0.2.0
type ApplicationsClientListBySubscriptionResponse struct { // List of managed applications. ApplicationListResult }
ApplicationsClientListBySubscriptionResponse contains the response from method ApplicationsClient.NewListBySubscriptionPager.
type ApplicationsClientUpdateByIDOptions ¶ added in v0.2.0
type ApplicationsClientUpdateByIDOptions struct { // Parameters supplied to update an existing managed application. Parameters *Application }
ApplicationsClientUpdateByIDOptions contains the optional parameters for the ApplicationsClient.UpdateByID method.
type ApplicationsClientUpdateByIDResponse ¶ added in v0.2.0
type ApplicationsClientUpdateByIDResponse struct { // Information about managed application. Application }
ApplicationsClientUpdateByIDResponse contains the response from method ApplicationsClient.UpdateByID.
type ApplicationsClientUpdateOptions ¶ added in v0.2.0
type ApplicationsClientUpdateOptions struct { // Parameters supplied to update an existing managed application. Parameters *ApplicationPatchable }
ApplicationsClientUpdateOptions contains the optional parameters for the ApplicationsClient.Update method.
type ApplicationsClientUpdateResponse ¶ added in v0.2.0
type ApplicationsClientUpdateResponse struct { // Information about managed application. Application }
ApplicationsClientUpdateResponse contains the response from method ApplicationsClient.Update.
type ClientFactory ¶ added in v1.1.0
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶ added in v1.1.0
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewApplicationClient ¶ added in v1.1.0
func (c *ClientFactory) NewApplicationClient() *ApplicationClient
NewApplicationClient creates a new instance of ApplicationClient.
func (*ClientFactory) NewApplicationDefinitionsClient ¶ added in v1.1.0
func (c *ClientFactory) NewApplicationDefinitionsClient() *ApplicationDefinitionsClient
NewApplicationDefinitionsClient creates a new instance of ApplicationDefinitionsClient.
func (*ClientFactory) NewApplicationsClient ¶ added in v1.1.0
func (c *ClientFactory) NewApplicationsClient() *ApplicationsClient
NewApplicationsClient creates a new instance of ApplicationsClient.
type ErrorResponse ¶
type ErrorResponse struct { // Error code. ErrorCode *string // Error message indicating why the operation failed. ErrorMessage *string // Http status code. HTTPStatus *string }
ErrorResponse - Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message.
func (ErrorResponse) MarshalJSON ¶ added in v1.1.0
func (e ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponse.
func (*ErrorResponse) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.
type GenericResource ¶
type GenericResource struct { // The identity of the resource. Identity *Identity // Resource location Location *string // ID of the resource that manages this resource. ManagedBy *string // The SKU of the resource. SKU *SKU // Resource tags Tags map[string]*string // READ-ONLY; Resource ID ID *string // READ-ONLY; Resource name Name *string // READ-ONLY; Resource type Type *string }
GenericResource - Resource information.
func (GenericResource) MarshalJSON ¶
func (g GenericResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GenericResource.
func (*GenericResource) UnmarshalJSON ¶ added in v1.1.0
func (g *GenericResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GenericResource.
type Identity ¶
type Identity struct { // The identity type. Type *string // READ-ONLY; The principal ID of resource identity. PrincipalID *string // READ-ONLY; The tenant ID of resource. TenantID *string }
Identity for the resource.
func (Identity) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Identity.
func (*Identity) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Identity.
type Operation ¶
type Operation struct { // The object that represents the operation. Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} Name *string }
Operation - Microsoft.Solutions operation
func (Operation) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // Operation type: Read, write, delete, etc. Operation *string // Service provider: Microsoft.Solutions Provider *string // Resource on which the operation is performed: Application, JitRequest, etc. Resource *string }
OperationDisplay - The object that represents the operation.
func (OperationDisplay) MarshalJSON ¶ added in v1.1.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // URL to get the next set of operation list results if there are any. NextLink *string // List of Microsoft.Solutions operations. Value []*Operation }
OperationListResult - Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type Plan ¶
type Plan struct { // REQUIRED; The plan name. Name *string // REQUIRED; The product code. Product *string // REQUIRED; The publisher ID. Publisher *string // REQUIRED; The plan's version. Version *string // The promotion code. PromotionCode *string }
Plan for the managed application.
func (Plan) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Plan.
func (*Plan) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Plan.
type PlanPatchable ¶
type PlanPatchable struct { // The plan name. Name *string // The product code. Product *string // The promotion code. PromotionCode *string // The publisher ID. Publisher *string // The plan's version. Version *string }
PlanPatchable - Plan for the managed application.
func (PlanPatchable) MarshalJSON ¶ added in v1.1.0
func (p PlanPatchable) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PlanPatchable.
func (*PlanPatchable) UnmarshalJSON ¶ added in v1.1.0
func (p *PlanPatchable) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PlanPatchable.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Provisioning status of the managed application.
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateReady ProvisioningState = "Ready" ProvisioningStateRunning ProvisioningState = "Running" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type Resource ¶
type Resource struct { // Resource location Location *string // Resource tags Tags map[string]*string // READ-ONLY; Resource ID ID *string // READ-ONLY; Resource name Name *string // READ-ONLY; Resource type Type *string }
Resource information.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type SKU ¶
type SKU struct { // REQUIRED; The SKU name. Name *string // The SKU capacity. Capacity *int32 // The SKU family. Family *string // The SKU model. Model *string // The SKU size. Size *string // The SKU tier. Tier *string }
SKU for the resource.
func (SKU) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.