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/resources/2024-03-01/deploymentstacks
Documentation
The deploymentstacks
SDK allows for interaction with the Azure Resource Manager Service resources
(API Version 2024-03-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/resources/2024-03-01/deploymentstacks"
Client Initialization
client := deploymentstacks.NewDeploymentStacksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DeploymentStacksClient.CreateOrUpdateAtManagementGroup
ctx := context.TODO()
id := deploymentstacks.NewProviders2DeploymentStackID("managementGroupIdValue", "deploymentStackValue")
payload := deploymentstacks.DeploymentStack{
// ...
}
if err := client.CreateOrUpdateAtManagementGroupThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.CreateOrUpdateAtResourceGroup
ctx := context.TODO()
id := deploymentstacks.NewProviderDeploymentStackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentStackValue")
payload := deploymentstacks.DeploymentStack{
// ...
}
if err := client.CreateOrUpdateAtResourceGroupThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.CreateOrUpdateAtSubscription
ctx := context.TODO()
id := deploymentstacks.NewDeploymentStackID("12345678-1234-9876-4563-123456789012", "deploymentStackValue")
payload := deploymentstacks.DeploymentStack{
// ...
}
if err := client.CreateOrUpdateAtSubscriptionThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.DeleteAtManagementGroup
ctx := context.TODO()
id := deploymentstacks.NewProviders2DeploymentStackID("managementGroupIdValue", "deploymentStackValue")
if err := client.DeleteAtManagementGroupThenPoll(ctx, id, deploymentstacks.DefaultDeleteAtManagementGroupOperationOptions()); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.DeleteAtResourceGroup
ctx := context.TODO()
id := deploymentstacks.NewProviderDeploymentStackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentStackValue")
if err := client.DeleteAtResourceGroupThenPoll(ctx, id, deploymentstacks.DefaultDeleteAtResourceGroupOperationOptions()); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.DeleteAtSubscription
ctx := context.TODO()
id := deploymentstacks.NewDeploymentStackID("12345678-1234-9876-4563-123456789012", "deploymentStackValue")
if err := client.DeleteAtSubscriptionThenPoll(ctx, id, deploymentstacks.DefaultDeleteAtSubscriptionOperationOptions()); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.ExportTemplateAtManagementGroup
ctx := context.TODO()
id := deploymentstacks.NewProviders2DeploymentStackID("managementGroupIdValue", "deploymentStackValue")
read, err := client.ExportTemplateAtManagementGroup(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DeploymentStacksClient.ExportTemplateAtResourceGroup
ctx := context.TODO()
id := deploymentstacks.NewProviderDeploymentStackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentStackValue")
read, err := client.ExportTemplateAtResourceGroup(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DeploymentStacksClient.ExportTemplateAtSubscription
ctx := context.TODO()
id := deploymentstacks.NewDeploymentStackID("12345678-1234-9876-4563-123456789012", "deploymentStackValue")
read, err := client.ExportTemplateAtSubscription(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DeploymentStacksClient.GetAtManagementGroup
ctx := context.TODO()
id := deploymentstacks.NewProviders2DeploymentStackID("managementGroupIdValue", "deploymentStackValue")
read, err := client.GetAtManagementGroup(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DeploymentStacksClient.GetAtResourceGroup
ctx := context.TODO()
id := deploymentstacks.NewProviderDeploymentStackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentStackValue")
read, err := client.GetAtResourceGroup(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DeploymentStacksClient.GetAtSubscription
ctx := context.TODO()
id := deploymentstacks.NewDeploymentStackID("12345678-1234-9876-4563-123456789012", "deploymentStackValue")
read, err := client.GetAtSubscription(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DeploymentStacksClient.ListAtManagementGroup
ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")
// alternatively `client.ListAtManagementGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListAtManagementGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DeploymentStacksClient.ListAtResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.ListAtResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListAtResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DeploymentStacksClient.ListAtSubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.ListAtSubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListAtSubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DeploymentStacksClient.ValidateStackAtManagementGroup
ctx := context.TODO()
id := deploymentstacks.NewProviders2DeploymentStackID("managementGroupIdValue", "deploymentStackValue")
payload := deploymentstacks.DeploymentStack{
// ...
}
if err := client.ValidateStackAtManagementGroupThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.ValidateStackAtResourceGroup
ctx := context.TODO()
id := deploymentstacks.NewProviderDeploymentStackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentStackValue")
payload := deploymentstacks.DeploymentStack{
// ...
}
if err := client.ValidateStackAtResourceGroupThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: DeploymentStacksClient.ValidateStackAtSubscription
ctx := context.TODO()
id := deploymentstacks.NewDeploymentStackID("12345678-1234-9876-4563-123456789012", "deploymentStackValue")
payload := deploymentstacks.DeploymentStack{
// ...
}
if err := client.ValidateStackAtSubscriptionThenPoll(ctx, id, payload); err != nil {
// handle the error
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
NewDeploymentStackID returns a new DeploymentStackId struct.
No description provided by the author
NewProviderDeploymentStackID returns a new ProviderDeploymentStackId struct.
NewProviders2DeploymentStackID returns a new Providers2DeploymentStackId struct.
ParseDeploymentStackID parses 'input' into a DeploymentStackId.
ParseDeploymentStackIDInsensitively parses 'input' case-insensitively into a DeploymentStackId note: this method should only be used for API response data and not user input.
ParseProviderDeploymentStackID parses 'input' into a ProviderDeploymentStackId.
ParseProviderDeploymentStackIDInsensitively parses 'input' case-insensitively into a ProviderDeploymentStackId note: this method should only be used for API response data and not user input.
ParseProviders2DeploymentStackID parses 'input' into a Providers2DeploymentStackId.
ParseProviders2DeploymentStackIDInsensitively parses 'input' case-insensitively into a Providers2DeploymentStackId 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
ValidateDeploymentStackID checks that 'input' can be parsed as a Deployment Stack ID.
ValidateProviderDeploymentStackID checks that 'input' can be parsed as a Provider Deployment Stack ID.
ValidateProviders2DeploymentStackID checks that 'input' can be parsed as a Providers 2 Deployment Stack 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
# 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
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
DeploymentStackId is a struct representing the Resource ID for a Deployment Stack.
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
ProviderDeploymentStackId is a struct representing the Resource ID for a Provider Deployment Stack.
Providers2DeploymentStackId is a struct representing the Resource ID for a Providers 2 Deployment Stack.
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