Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentstacks
modulepackage
1.0.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Resources Module for Go

PkgGoDev

The armdeploymentstacks module provides operations for working with Azure Resources.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Resources module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentstacks

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Resources. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Resources module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armdeploymentstacks.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armdeploymentstacks.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Resources label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Packages

No description provided by the author

# Functions

NewClient creates a new instance of Client with the specified values.
NewClientFactory creates a new instance of ClientFactory with the specified values.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleDenySettingsModeValues returns the possible values for the DenySettingsMode const type.
PossibleDenyStatusModeValues returns the possible values for the DenyStatusMode const type.
PossibleDeploymentStackProvisioningStateValues returns the possible values for the DeploymentStackProvisioningState const type.
PossibleDeploymentStacksDeleteDetachEnumValues returns the possible values for the DeploymentStacksDeleteDetachEnum const type.
PossibleResourceStatusModeValues returns the possible values for the ResourceStatusMode const type.
PossibleUnmanageActionManagementGroupModeValues returns the possible values for the UnmanageActionManagementGroupMode const type.
PossibleUnmanageActionResourceGroupModeValues returns the possible values for the UnmanageActionResourceGroupMode const type.
PossibleUnmanageActionResourceModeValues returns the possible values for the UnmanageActionResourceMode const type.

# 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
DenySettingsModeDenyDelete - Authorized users are able to read and modify the resources, but cannot delete.
DenySettingsModeDenyWriteAndDelete - Authorized users can read from a resource, but cannot modify or delete it.
DenySettingsModeNone - No denyAssignments have been applied.
DenyStatusModeDenyDelete - Authorized users are able to read and modify the resources, but cannot delete.
DenyStatusModeDenyWriteAndDelete - Authorized users can only read from a resource, but cannot modify or delete it.
DenyStatusModeInapplicable - denyAssignments are not supported on resources outside the scope of the deployment stack.
DenyStatusModeNone - No denyAssignments have been applied.
DenyStatusModeNotSupported - Resource type does not support denyAssignments.
DenyStatusModeRemovedBySystem - Deny assignment has been removed by Azure due to a resource management change (management group move, etc.).
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
ResourceStatusModeDeleteFailed - Unable to delete the resource from Azure.
ResourceStatusModeManaged - This resource is managed by the deployment stack.
ResourceStatusModeRemoveDenyFailed - Unable to remove the deny assignment on resource.
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

ActionOnUnmanage - Defines the behavior of resources that are no longer managed after the stack is updated or deleted.
Client contains the methods for the DeploymentStacks group.
ClientBeginCreateOrUpdateAtManagementGroupOptions contains the optional parameters for the Client.BeginCreateOrUpdateAtManagementGroup method.
ClientBeginCreateOrUpdateAtResourceGroupOptions contains the optional parameters for the Client.BeginCreateOrUpdateAtResourceGroup method.
ClientBeginCreateOrUpdateAtSubscriptionOptions contains the optional parameters for the Client.BeginCreateOrUpdateAtSubscription method.
ClientBeginDeleteAtManagementGroupOptions contains the optional parameters for the Client.BeginDeleteAtManagementGroup method.
ClientBeginDeleteAtResourceGroupOptions contains the optional parameters for the Client.BeginDeleteAtResourceGroup method.
ClientBeginDeleteAtSubscriptionOptions contains the optional parameters for the Client.BeginDeleteAtSubscription method.
ClientBeginValidateStackAtManagementGroupOptions contains the optional parameters for the Client.BeginValidateStackAtManagementGroup method.
ClientBeginValidateStackAtResourceGroupOptions contains the optional parameters for the Client.BeginValidateStackAtResourceGroup method.
ClientBeginValidateStackAtSubscriptionOptions contains the optional parameters for the Client.BeginValidateStackAtSubscription method.
ClientCreateOrUpdateAtManagementGroupResponse contains the response from method Client.BeginCreateOrUpdateAtManagementGroup.
ClientCreateOrUpdateAtResourceGroupResponse contains the response from method Client.BeginCreateOrUpdateAtResourceGroup.
ClientCreateOrUpdateAtSubscriptionResponse contains the response from method Client.BeginCreateOrUpdateAtSubscription.
ClientDeleteAtManagementGroupResponse contains the response from method Client.BeginDeleteAtManagementGroup.
ClientDeleteAtResourceGroupResponse contains the response from method Client.BeginDeleteAtResourceGroup.
ClientDeleteAtSubscriptionResponse contains the response from method Client.BeginDeleteAtSubscription.
ClientExportTemplateAtManagementGroupOptions contains the optional parameters for the Client.ExportTemplateAtManagementGroup method.
ClientExportTemplateAtManagementGroupResponse contains the response from method Client.ExportTemplateAtManagementGroup.
ClientExportTemplateAtResourceGroupOptions contains the optional parameters for the Client.ExportTemplateAtResourceGroup method.
ClientExportTemplateAtResourceGroupResponse contains the response from method Client.ExportTemplateAtResourceGroup.
ClientExportTemplateAtSubscriptionOptions contains the optional parameters for the Client.ExportTemplateAtSubscription method.
ClientExportTemplateAtSubscriptionResponse contains the response from method Client.ExportTemplateAtSubscription.
ClientFactory is a client factory used to create any client in this module.
ClientGetAtManagementGroupOptions contains the optional parameters for the Client.GetAtManagementGroup method.
ClientGetAtManagementGroupResponse contains the response from method Client.GetAtManagementGroup.
ClientGetAtResourceGroupOptions contains the optional parameters for the Client.GetAtResourceGroup method.
ClientGetAtResourceGroupResponse contains the response from method Client.GetAtResourceGroup.
ClientGetAtSubscriptionOptions contains the optional parameters for the Client.GetAtSubscription method.
ClientGetAtSubscriptionResponse contains the response from method Client.GetAtSubscription.
ClientListAtManagementGroupOptions contains the optional parameters for the Client.NewListAtManagementGroupPager method.
ClientListAtManagementGroupResponse contains the response from method Client.NewListAtManagementGroupPager.
ClientListAtResourceGroupOptions contains the optional parameters for the Client.NewListAtResourceGroupPager method.
ClientListAtResourceGroupResponse contains the response from method Client.NewListAtResourceGroupPager.
ClientListAtSubscriptionOptions contains the optional parameters for the Client.NewListAtSubscriptionPager method.
ClientListAtSubscriptionResponse contains the response from method Client.NewListAtSubscriptionPager.
ClientValidateStackAtManagementGroupResponse contains the response from method Client.BeginValidateStackAtManagementGroup.
ClientValidateStackAtResourceGroupResponse contains the response from method Client.BeginValidateStackAtResourceGroup.
ClientValidateStackAtSubscriptionResponse contains the response from method Client.BeginValidateStackAtSubscription.
DebugSetting - The debug setting.
DenySettings - Defines how resources deployed by the Deployment stack are locked.
DeploymentParameter - Deployment parameter for the template.
DeploymentStack - Deployment stack object.
DeploymentStackListResult - List of Deployment stacks.
DeploymentStackProperties - Deployment stack properties.
DeploymentStackTemplateDefinition - Export Template specific properties of the Deployment stack.
DeploymentStackValidateProperties - The Deployment stack validation result details.
DeploymentStackValidateResult - The Deployment stack validation result.
ErrorAdditionalInfo - The resource management error additional info.
ErrorDetail - The error detail.
KeyVaultParameterReference - Azure Key Vault parameter reference.
KeyVaultReference - Azure Key Vault reference.
ManagedResourceReference - The managed resource model.
ParametersLink - Entity representing the reference to the deployment parameters.
ResourceReference - The resourceId model.
ResourceReferenceExtended - The resourceId extended model.
SystemData - Metadata pertaining to creation and last modification of the resource.
TemplateLink - Entity representing the reference to the template.

# Type aliases

CreatedByType - The type of identity that created the resource.
DenySettingsMode - denySettings Mode that defines denied actions.
DenyStatusMode - denyAssignment settings applied to the resource.
DeploymentStackProvisioningState - State of the deployment stack.
DeploymentStacksDeleteDetachEnum - Specifies an action for a newly unmanaged resource.
ResourceStatusMode - Current management state of the resource in the deployment stack.
No description provided by the author
No description provided by the author
No description provided by the author