README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/nodecountinformation
Documentation
The nodecountinformation
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/nodecountinformation"
Client Initialization
client := nodecountinformation.NewNodeCountInformationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: NodeCountInformationClient.Get
ctx := context.TODO()
id := nodecountinformation.NewCountTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "nodeconfiguration")
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
}
Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCountType ¶
func PossibleValuesForCountType() []string
func ValidateCountTypeID ¶
ValidateCountTypeID checks that 'input' can be parsed as a Count Type ID
Types ¶
type CountTypeId ¶
type CountTypeId struct { SubscriptionId string ResourceGroupName string AutomationAccountName string CountType CountType }
CountTypeId is a struct representing the Resource ID for a Count Type
func NewCountTypeID ¶
func NewCountTypeID(subscriptionId string, resourceGroupName string, automationAccountName string, countType CountType) CountTypeId
NewCountTypeID returns a new CountTypeId struct
func ParseCountTypeID ¶
func ParseCountTypeID(input string) (*CountTypeId, error)
ParseCountTypeID parses 'input' into a CountTypeId
func ParseCountTypeIDInsensitively ¶
func ParseCountTypeIDInsensitively(input string) (*CountTypeId, error)
ParseCountTypeIDInsensitively parses 'input' case-insensitively into a CountTypeId note: this method should only be used for API response data and not user input
func (*CountTypeId) FromParseResult ¶ added in v0.20231127.1171502
func (id *CountTypeId) FromParseResult(input resourceids.ParseResult) error
func (CountTypeId) Segments ¶
func (id CountTypeId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Count Type ID
func (CountTypeId) String ¶
func (id CountTypeId) String() string
String returns a human-readable description of this Count Type ID
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *NodeCounts }
type NodeCount ¶
type NodeCount struct { Name *string `json:"name,omitempty"` Properties *NodeCountProperties `json:"properties,omitempty"` }
type NodeCountInformationClient ¶
type NodeCountInformationClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewNodeCountInformationClientWithBaseURI ¶
func NewNodeCountInformationClientWithBaseURI(endpoint string) NodeCountInformationClient
func (NodeCountInformationClient) Get ¶
func (c NodeCountInformationClient) Get(ctx context.Context, id CountTypeId) (result GetOperationResponse, err error)
Get ...
type NodeCountProperties ¶
type NodeCountProperties struct {
Count *int64 `json:"count,omitempty"`
}