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/automation/2019-06-01/activity
Documentation
The activity
SDK allows for interaction with the Azure Resource Manager Service automation
(API Version 2019-06-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-sdk/resource-manager/automation/2019-06-01/activity"
Client Initialization
client := activity.NewActivityClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ActivityClient.Get
ctx := context.TODO()
id := activity.NewActivityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue", "activityValue")
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: ActivityClient.ListByModule
ctx := context.TODO()
id := activity.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue")
// alternatively `client.ListByModule(ctx, id)` can be used to do batched pagination
items, err := client.ListByModuleComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
# Functions
No description provided by the author
NewActivityID returns a new ActivityId struct.
NewModuleID returns a new ModuleId struct.
ParseActivityID parses 'input' into a ActivityId.
ParseActivityIDInsensitively parses 'input' case-insensitively into a ActivityId note: this method should only be used for API response data and not user input.
ParseModuleID parses 'input' into a ModuleId.
ParseModuleIDInsensitively parses 'input' case-insensitively into a ModuleId note: this method should only be used for API response data and not user input.
ValidateActivityID checks that 'input' can be parsed as a Activity ID.
ValidateModuleID checks that 'input' can be parsed as a Module ID.
# Structs
No description provided by the author
No description provided by the author
ActivityId is a struct representing the Resource ID for a Activity.
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
ModuleId is a struct representing the Resource ID for a Module.