package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2019-07-01/applications
Documentation
The applications
SDK allows for interaction with the Azure Resource Manager Service managedapplications
(API Version 2019-07-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2019-07-01/applications"
Client Initialization
client := applications.NewApplicationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ApplicationsClient.CreateOrUpdate
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
payload := applications.Application{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ApplicationsClient.CreateOrUpdateById
ctx := context.TODO()
id := applications.NewApplicationIdID("applicationIdValue")
payload := applications.Application{
// ...
}
if err := client.CreateOrUpdateByIdThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ApplicationsClient.Delete
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ApplicationsClient.DeleteById
ctx := context.TODO()
id := applications.NewApplicationIdID("applicationIdValue")
if err := client.DeleteByIdThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ApplicationsClient.Get
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ApplicationsClient.GetById
ctx := context.TODO()
id := applications.NewApplicationIdID("applicationIdValue")
read, err := client.GetById(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ApplicationsClient.ListAllowedUpgradePlans
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
read, err := client.ListAllowedUpgradePlans(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ApplicationsClient.ListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ApplicationsClient.ListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ApplicationsClient.ListTokens
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
payload := applications.ListTokenRequest{
// ...
}
read, err := client.ListTokens(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ApplicationsClient.RefreshPermissions
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
if err := client.RefreshPermissionsThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ApplicationsClient.Update
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
payload := applications.ApplicationPatchable{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ApplicationsClient.UpdateAccess
ctx := context.TODO()
id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue")
payload := applications.UpdateAccessDefinition{
// ...
}
if err := client.UpdateAccessThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ApplicationsClient.UpdateById
ctx := context.TODO()
id := applications.NewApplicationIdID("applicationIdValue")
payload := applications.ApplicationPatchable{
// ...
}
if err := client.UpdateByIdThenPoll(ctx, id, payload); err != nil {
// handle the error
}
# Functions
NewApplicationID returns a new ApplicationId struct.
NewApplicationIdID returns a new ApplicationIdId struct.
No description provided by the author
ParseApplicationID parses 'input' into a ApplicationId.
ParseApplicationIdID parses 'input' into a ApplicationIdId.
ParseApplicationIdIDInsensitively parses 'input' case-insensitively into a ApplicationIdId note: this method should only be used for API response data and not user input.
ParseApplicationIDInsensitively parses 'input' case-insensitively into a ApplicationId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateApplicationID checks that 'input' can be parsed as a Application ID.
ValidateApplicationIdID checks that 'input' can be parsed as a Application Id ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ApplicationId is a struct representing the Resource ID for a Application.
ApplicationIdId is a struct representing the Resource ID for a Application Id.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author