package
0.20240125.1100331
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-08-01/publishers
Documentation
The publishers
SDK allows for interaction with the Azure Resource Manager Service azurestackhci
(API Version 2023-08-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/azurestackhci/2023-08-01/publishers"
Client Initialization
client := publishers.NewPublishersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: PublishersClient.Get
ctx := context.TODO()
id := publishers.NewPublisherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue")
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: PublishersClient.ListByCluster
ctx := context.TODO()
id := publishers.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
// alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination
items, err := client.ListByClusterComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
# Functions
NewClusterID returns a new ClusterId struct.
NewPublisherID returns a new PublisherId struct.
No description provided by the author
ParseClusterID parses 'input' into a ClusterId.
ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId note: this method should only be used for API response data and not user input.
ParsePublisherID parses 'input' into a PublisherId.
ParsePublisherIDInsensitively parses 'input' case-insensitively into a PublisherId note: this method should only be used for API response data and not user input.
ValidateClusterID checks that 'input' can be parsed as a Cluster ID.
ValidatePublisherID checks that 'input' can be parsed as a Publisher ID.
# Structs
ClusterId is a struct representing the Resource ID for a Cluster.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PublisherId is a struct representing the Resource ID for a Publisher.
No description provided by the author
No description provided by the author
No description provided by the author