nodecountinformation

package
v0.20240404.1103618 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/nodecountinformation Documentation

The nodecountinformation SDK allows for interaction with the Azure Resource Manager Service automation (API Version 2020-01-13-preview).

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/2020-01-13-preview/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

func ValidateCountTypeID(input interface{}, key string) (warnings []string, errors []error)

ValidateCountTypeID checks that 'input' can be parsed as a Count Type ID

Types

type CountType

type CountType string
const (
	CountTypeNodeconfiguration CountType = "nodeconfiguration"
	CountTypeStatus            CountType = "status"
)

func (*CountType) UnmarshalJSON added in v0.20240209.1164150

func (s *CountType) UnmarshalJSON(bytes []byte) error

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

func (id *CountTypeId) FromParseResult(input resourceids.ParseResult) error

func (CountTypeId) ID

func (id CountTypeId) ID() string

ID returns the formatted Count Type ID

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
	OData        *odata.OData
	Model        *NodeCounts
}

type NodeCount

type NodeCount struct {
	Name       *string              `json:"name,omitempty"`
	Properties *NodeCountProperties `json:"properties,omitempty"`
}

type NodeCountInformationClient

type NodeCountInformationClient struct {
	Client *resourcemanager.Client
}

func NewNodeCountInformationClientWithBaseURI

func NewNodeCountInformationClientWithBaseURI(sdkApi sdkEnv.Api) (*NodeCountInformationClient, error)

func (NodeCountInformationClient) Get

Get ...

type NodeCountProperties

type NodeCountProperties struct {
	Count *int64 `json:"count,omitempty"`
}

type NodeCounts

type NodeCounts struct {
	TotalCount *int64       `json:"totalCount,omitempty"`
	Value      *[]NodeCount `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL