agentpools

package
v0.20240229.1102109 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/agentpools Documentation

The agentpools SDK allows for interaction with the Azure Resource Manager Service containerservice (API Version 2023-04-02-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/agentpools"

Client Initialization

client := agentpools.NewAgentPoolsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AgentPoolsClient.AbortLatestOperation

ctx := context.TODO()
id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue")

if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: AgentPoolsClient.CreateOrUpdate

ctx := context.TODO()
id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue")

payload := agentpools.AgentPool{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: AgentPoolsClient.Delete

ctx := context.TODO()
id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue")

if err := client.DeleteThenPoll(ctx, id, agentpools.DefaultDeleteOperationOptions()); err != nil {
	// handle the error
}

Example Usage: AgentPoolsClient.Get

ctx := context.TODO()
id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue")

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: AgentPoolsClient.GetAvailableAgentPoolVersions

ctx := context.TODO()
id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue")

read, err := client.GetAvailableAgentPoolVersions(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AgentPoolsClient.GetUpgradeProfile

ctx := context.TODO()
id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue")

read, err := client.GetUpgradeProfile(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AgentPoolsClient.List

ctx := context.TODO()
id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AgentPoolsClient.UpgradeNodeImageVersion

ctx := context.TODO()
id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue")

if err := client.UpgradeNodeImageVersionThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAgentPoolMode

func PossibleValuesForAgentPoolMode() []string

func PossibleValuesForAgentPoolType

func PossibleValuesForAgentPoolType() []string

func PossibleValuesForCode

func PossibleValuesForCode() []string

func PossibleValuesForGPUInstanceProfile

func PossibleValuesForGPUInstanceProfile() []string

func PossibleValuesForKubeletDiskType

func PossibleValuesForKubeletDiskType() []string

func PossibleValuesForOSDiskType

func PossibleValuesForOSDiskType() []string

func PossibleValuesForOSSKU

func PossibleValuesForOSSKU() []string

func PossibleValuesForOSType

func PossibleValuesForOSType() []string

func PossibleValuesForProtocol

func PossibleValuesForProtocol() []string

func PossibleValuesForScaleDownMode

func PossibleValuesForScaleDownMode() []string

func PossibleValuesForScaleSetEvictionPolicy

func PossibleValuesForScaleSetEvictionPolicy() []string

func PossibleValuesForScaleSetPriority

func PossibleValuesForScaleSetPriority() []string

func PossibleValuesForWorkloadRuntime

func PossibleValuesForWorkloadRuntime() []string

func ValidateAgentPoolID

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

ValidateAgentPoolID checks that 'input' can be parsed as a Agent Pool ID

Types

type AbortLatestOperationOperationResponse

type AbortLatestOperationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type AgentPool

type AgentPool struct {
	Id         *string                                   `json:"id,omitempty"`
	Name       *string                                   `json:"name,omitempty"`
	Properties *ManagedClusterAgentPoolProfileProperties `json:"properties,omitempty"`
	Type       *string                                   `json:"type,omitempty"`
}

type AgentPoolAvailableVersions

type AgentPoolAvailableVersions struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties AgentPoolAvailableVersionsProperties `json:"properties"`
	Type       *string                              `json:"type,omitempty"`
}

type AgentPoolAvailableVersionsProperties

type AgentPoolAvailableVersionsProperties struct {
	AgentPoolVersions *[]AgentPoolAvailableVersionsPropertiesAgentPoolVersionsInlined `json:"agentPoolVersions,omitempty"`
}

type AgentPoolAvailableVersionsPropertiesAgentPoolVersionsInlined

type AgentPoolAvailableVersionsPropertiesAgentPoolVersionsInlined struct {
	Default           *bool   `json:"default,omitempty"`
	IsPreview         *bool   `json:"isPreview,omitempty"`
	KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
}

type AgentPoolId

type AgentPoolId struct {
	SubscriptionId     string
	ResourceGroupName  string
	ManagedClusterName string
	AgentPoolName      string
}

AgentPoolId is a struct representing the Resource ID for a Agent Pool

func NewAgentPoolID

func NewAgentPoolID(subscriptionId string, resourceGroupName string, managedClusterName string, agentPoolName string) AgentPoolId

NewAgentPoolID returns a new AgentPoolId struct

func ParseAgentPoolID

func ParseAgentPoolID(input string) (*AgentPoolId, error)

ParseAgentPoolID parses 'input' into a AgentPoolId

func ParseAgentPoolIDInsensitively

func ParseAgentPoolIDInsensitively(input string) (*AgentPoolId, error)

ParseAgentPoolIDInsensitively parses 'input' case-insensitively into a AgentPoolId note: this method should only be used for API response data and not user input

func (*AgentPoolId) FromParseResult

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

func (AgentPoolId) ID

func (id AgentPoolId) ID() string

ID returns the formatted Agent Pool ID

func (AgentPoolId) Segments

func (id AgentPoolId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Agent Pool ID

func (AgentPoolId) String

func (id AgentPoolId) String() string

String returns a human-readable description of this Agent Pool ID

type AgentPoolMode

type AgentPoolMode string
const (
	AgentPoolModeSystem AgentPoolMode = "System"
	AgentPoolModeUser   AgentPoolMode = "User"
)

func (*AgentPoolMode) UnmarshalJSON added in v0.20240213.1120950

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

type AgentPoolNetworkProfile

type AgentPoolNetworkProfile struct {
	AllowedHostPorts          *[]PortRange `json:"allowedHostPorts,omitempty"`
	ApplicationSecurityGroups *[]string    `json:"applicationSecurityGroups,omitempty"`
	NodePublicIPTags          *[]IPTag     `json:"nodePublicIPTags,omitempty"`
}

type AgentPoolOperationPredicate

type AgentPoolOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (AgentPoolOperationPredicate) Matches

func (p AgentPoolOperationPredicate) Matches(input AgentPool) bool

type AgentPoolType

type AgentPoolType string
const (
	AgentPoolTypeAvailabilitySet         AgentPoolType = "AvailabilitySet"
	AgentPoolTypeVirtualMachineScaleSets AgentPoolType = "VirtualMachineScaleSets"
)

func (*AgentPoolType) UnmarshalJSON added in v0.20240213.1120950

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

type AgentPoolUpgradeProfile

type AgentPoolUpgradeProfile struct {
	Id         *string                           `json:"id,omitempty"`
	Name       *string                           `json:"name,omitempty"`
	Properties AgentPoolUpgradeProfileProperties `json:"properties"`
	Type       *string                           `json:"type,omitempty"`
}

type AgentPoolUpgradeProfileProperties

type AgentPoolUpgradeProfileProperties struct {
	KubernetesVersion      string                                              `json:"kubernetesVersion"`
	LatestNodeImageVersion *string                                             `json:"latestNodeImageVersion,omitempty"`
	OsType                 OSType                                              `json:"osType"`
	Upgrades               *[]AgentPoolUpgradeProfilePropertiesUpgradesInlined `json:"upgrades,omitempty"`
}

type AgentPoolUpgradeProfilePropertiesUpgradesInlined

type AgentPoolUpgradeProfilePropertiesUpgradesInlined struct {
	IsPreview         *bool   `json:"isPreview,omitempty"`
	KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
}

type AgentPoolUpgradeSettings

type AgentPoolUpgradeSettings struct {
	MaxSurge *string `json:"maxSurge,omitempty"`
}

type AgentPoolWindowsProfile

type AgentPoolWindowsProfile struct {
	DisableOutboundNat *bool `json:"disableOutboundNat,omitempty"`
}

type AgentPoolsClient

type AgentPoolsClient struct {
	Client *resourcemanager.Client
}

func NewAgentPoolsClientWithBaseURI

func NewAgentPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgentPoolsClient, error)

func (AgentPoolsClient) AbortLatestOperation

func (c AgentPoolsClient) AbortLatestOperation(ctx context.Context, id AgentPoolId) (result AbortLatestOperationOperationResponse, err error)

AbortLatestOperation ...

func (AgentPoolsClient) AbortLatestOperationThenPoll

func (c AgentPoolsClient) AbortLatestOperationThenPoll(ctx context.Context, id AgentPoolId) error

AbortLatestOperationThenPoll performs AbortLatestOperation then polls until it's completed

func (AgentPoolsClient) CreateOrUpdate

func (c AgentPoolsClient) CreateOrUpdate(ctx context.Context, id AgentPoolId, input AgentPool) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (AgentPoolsClient) CreateOrUpdateThenPoll

func (c AgentPoolsClient) CreateOrUpdateThenPoll(ctx context.Context, id AgentPoolId, input AgentPool) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (AgentPoolsClient) Delete

Delete ...

func (AgentPoolsClient) DeleteThenPoll

func (c AgentPoolsClient) DeleteThenPoll(ctx context.Context, id AgentPoolId, options DeleteOperationOptions) error

DeleteThenPoll performs Delete then polls until it's completed

func (AgentPoolsClient) Get

Get ...

func (AgentPoolsClient) GetAvailableAgentPoolVersions

GetAvailableAgentPoolVersions ...

func (AgentPoolsClient) GetUpgradeProfile

func (c AgentPoolsClient) GetUpgradeProfile(ctx context.Context, id AgentPoolId) (result GetUpgradeProfileOperationResponse, err error)

GetUpgradeProfile ...

func (AgentPoolsClient) List

List ...

func (AgentPoolsClient) ListComplete

ListComplete retrieves all the results into a single object

func (AgentPoolsClient) ListCompleteMatchingPredicate

func (c AgentPoolsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.KubernetesClusterId, predicate AgentPoolOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AgentPoolsClient) UpgradeNodeImageVersion

func (c AgentPoolsClient) UpgradeNodeImageVersion(ctx context.Context, id AgentPoolId) (result UpgradeNodeImageVersionOperationResponse, err error)

UpgradeNodeImageVersion ...

func (AgentPoolsClient) UpgradeNodeImageVersionThenPoll

func (c AgentPoolsClient) UpgradeNodeImageVersionThenPoll(ctx context.Context, id AgentPoolId) error

UpgradeNodeImageVersionThenPoll performs UpgradeNodeImageVersion then polls until it's completed

type Code

type Code string
const (
	CodeRunning Code = "Running"
	CodeStopped Code = "Stopped"
)

func (*Code) UnmarshalJSON added in v0.20240213.1120950

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AgentPool
}

type CreationData

type CreationData struct {
	SourceResourceId *string `json:"sourceResourceId,omitempty"`
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IgnorePodDisruptionBudget *bool
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders added in v0.20240213.1120950

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData added in v0.20240213.1120950

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery added in v0.20240213.1120950

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GPUInstanceProfile

type GPUInstanceProfile string
const (
	GPUInstanceProfileMIGFourg  GPUInstanceProfile = "MIG4g"
	GPUInstanceProfileMIGOneg   GPUInstanceProfile = "MIG1g"
	GPUInstanceProfileMIGSeveng GPUInstanceProfile = "MIG7g"
	GPUInstanceProfileMIGThreeg GPUInstanceProfile = "MIG3g"
	GPUInstanceProfileMIGTwog   GPUInstanceProfile = "MIG2g"
)

func (*GPUInstanceProfile) UnmarshalJSON added in v0.20240213.1120950

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

type GetAvailableAgentPoolVersionsOperationResponse

type GetAvailableAgentPoolVersionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AgentPoolAvailableVersions
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AgentPool
}

type GetUpgradeProfileOperationResponse

type GetUpgradeProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AgentPoolUpgradeProfile
}

type IPTag

type IPTag struct {
	IPTagType *string `json:"ipTagType,omitempty"`
	Tag       *string `json:"tag,omitempty"`
}

type KubeletConfig

type KubeletConfig struct {
	AllowedUnsafeSysctls  *[]string `json:"allowedUnsafeSysctls,omitempty"`
	ContainerLogMaxFiles  *int64    `json:"containerLogMaxFiles,omitempty"`
	ContainerLogMaxSizeMB *int64    `json:"containerLogMaxSizeMB,omitempty"`
	CpuCfsQuota           *bool     `json:"cpuCfsQuota,omitempty"`
	CpuCfsQuotaPeriod     *string   `json:"cpuCfsQuotaPeriod,omitempty"`
	CpuManagerPolicy      *string   `json:"cpuManagerPolicy,omitempty"`
	FailSwapOn            *bool     `json:"failSwapOn,omitempty"`
	ImageGcHighThreshold  *int64    `json:"imageGcHighThreshold,omitempty"`
	ImageGcLowThreshold   *int64    `json:"imageGcLowThreshold,omitempty"`
	PodMaxPids            *int64    `json:"podMaxPids,omitempty"`
	TopologyManagerPolicy *string   `json:"topologyManagerPolicy,omitempty"`
}

type KubeletDiskType

type KubeletDiskType string
const (
	KubeletDiskTypeOS        KubeletDiskType = "OS"
	KubeletDiskTypeTemporary KubeletDiskType = "Temporary"
)

func (*KubeletDiskType) UnmarshalJSON added in v0.20240213.1120950

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

type LinuxOSConfig

type LinuxOSConfig struct {
	SwapFileSizeMB             *int64        `json:"swapFileSizeMB,omitempty"`
	Sysctls                    *SysctlConfig `json:"sysctls,omitempty"`
	TransparentHugePageDefrag  *string       `json:"transparentHugePageDefrag,omitempty"`
	TransparentHugePageEnabled *string       `json:"transparentHugePageEnabled,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []AgentPool
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AgentPool
}

type ManagedClusterAgentPoolProfileProperties

type ManagedClusterAgentPoolProfileProperties struct {
	AvailabilityZones          *zones.Schema             `json:"availabilityZones,omitempty"`
	CapacityReservationGroupID *string                   `json:"capacityReservationGroupID,omitempty"`
	Count                      *int64                    `json:"count,omitempty"`
	CreationData               *CreationData             `json:"creationData,omitempty"`
	CurrentOrchestratorVersion *string                   `json:"currentOrchestratorVersion,omitempty"`
	EnableAutoScaling          *bool                     `json:"enableAutoScaling,omitempty"`
	EnableCustomCATrust        *bool                     `json:"enableCustomCATrust,omitempty"`
	EnableEncryptionAtHost     *bool                     `json:"enableEncryptionAtHost,omitempty"`
	EnableFIPS                 *bool                     `json:"enableFIPS,omitempty"`
	EnableNodePublicIP         *bool                     `json:"enableNodePublicIP,omitempty"`
	EnableUltraSSD             *bool                     `json:"enableUltraSSD,omitempty"`
	GpuInstanceProfile         *GPUInstanceProfile       `json:"gpuInstanceProfile,omitempty"`
	HostGroupID                *string                   `json:"hostGroupID,omitempty"`
	KubeletConfig              *KubeletConfig            `json:"kubeletConfig,omitempty"`
	KubeletDiskType            *KubeletDiskType          `json:"kubeletDiskType,omitempty"`
	LinuxOSConfig              *LinuxOSConfig            `json:"linuxOSConfig,omitempty"`
	MaxCount                   *int64                    `json:"maxCount,omitempty"`
	MaxPods                    *int64                    `json:"maxPods,omitempty"`
	MessageOfTheDay            *string                   `json:"messageOfTheDay,omitempty"`
	MinCount                   *int64                    `json:"minCount,omitempty"`
	Mode                       *AgentPoolMode            `json:"mode,omitempty"`
	NetworkProfile             *AgentPoolNetworkProfile  `json:"networkProfile,omitempty"`
	NodeImageVersion           *string                   `json:"nodeImageVersion,omitempty"`
	NodeLabels                 *map[string]string        `json:"nodeLabels,omitempty"`
	NodePublicIPPrefixID       *string                   `json:"nodePublicIPPrefixID,omitempty"`
	NodeTaints                 *[]string                 `json:"nodeTaints,omitempty"`
	OrchestratorVersion        *string                   `json:"orchestratorVersion,omitempty"`
	OsDiskSizeGB               *int64                    `json:"osDiskSizeGB,omitempty"`
	OsDiskType                 *OSDiskType               `json:"osDiskType,omitempty"`
	OsSKU                      *OSSKU                    `json:"osSKU,omitempty"`
	OsType                     *OSType                   `json:"osType,omitempty"`
	PodSubnetID                *string                   `json:"podSubnetID,omitempty"`
	PowerState                 *PowerState               `json:"powerState,omitempty"`
	ProvisioningState          *string                   `json:"provisioningState,omitempty"`
	ProximityPlacementGroupID  *string                   `json:"proximityPlacementGroupID,omitempty"`
	ScaleDownMode              *ScaleDownMode            `json:"scaleDownMode,omitempty"`
	ScaleSetEvictionPolicy     *ScaleSetEvictionPolicy   `json:"scaleSetEvictionPolicy,omitempty"`
	ScaleSetPriority           *ScaleSetPriority         `json:"scaleSetPriority,omitempty"`
	SpotMaxPrice               *float64                  `json:"spotMaxPrice,omitempty"`
	Tags                       *map[string]string        `json:"tags,omitempty"`
	Type                       *AgentPoolType            `json:"type,omitempty"`
	UpgradeSettings            *AgentPoolUpgradeSettings `json:"upgradeSettings,omitempty"`
	VMSize                     *string                   `json:"vmSize,omitempty"`
	VnetSubnetID               *string                   `json:"vnetSubnetID,omitempty"`
	WindowsProfile             *AgentPoolWindowsProfile  `json:"windowsProfile,omitempty"`
	WorkloadRuntime            *WorkloadRuntime          `json:"workloadRuntime,omitempty"`
}

type OSDiskType

type OSDiskType string
const (
	OSDiskTypeEphemeral OSDiskType = "Ephemeral"
	OSDiskTypeManaged   OSDiskType = "Managed"
)

func (*OSDiskType) UnmarshalJSON added in v0.20240213.1120950

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

type OSSKU

type OSSKU string
const (
	OSSKUAzureLinux            OSSKU = "AzureLinux"
	OSSKUCBLMariner            OSSKU = "CBLMariner"
	OSSKUMariner               OSSKU = "Mariner"
	OSSKUUbuntu                OSSKU = "Ubuntu"
	OSSKUWindowsTwoZeroOneNine OSSKU = "Windows2019"
	OSSKUWindowsTwoZeroTwoTwo  OSSKU = "Windows2022"
)

func (*OSSKU) UnmarshalJSON added in v0.20240213.1120950

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

type OSType

type OSType string
const (
	OSTypeLinux   OSType = "Linux"
	OSTypeWindows OSType = "Windows"
)

func (*OSType) UnmarshalJSON added in v0.20240213.1120950

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

type PortRange

type PortRange struct {
	PortEnd   *int64    `json:"portEnd,omitempty"`
	PortStart *int64    `json:"portStart,omitempty"`
	Protocol  *Protocol `json:"protocol,omitempty"`
}

type PowerState

type PowerState struct {
	Code *Code `json:"code,omitempty"`
}

type Protocol

type Protocol string
const (
	ProtocolTCP Protocol = "TCP"
	ProtocolUDP Protocol = "UDP"
)

func (*Protocol) UnmarshalJSON added in v0.20240213.1120950

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

type ScaleDownMode

type ScaleDownMode string
const (
	ScaleDownModeDeallocate ScaleDownMode = "Deallocate"
	ScaleDownModeDelete     ScaleDownMode = "Delete"
)

func (*ScaleDownMode) UnmarshalJSON added in v0.20240213.1120950

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

type ScaleSetEvictionPolicy

type ScaleSetEvictionPolicy string
const (
	ScaleSetEvictionPolicyDeallocate ScaleSetEvictionPolicy = "Deallocate"
	ScaleSetEvictionPolicyDelete     ScaleSetEvictionPolicy = "Delete"
)

func (*ScaleSetEvictionPolicy) UnmarshalJSON added in v0.20240213.1120950

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

type ScaleSetPriority

type ScaleSetPriority string
const (
	ScaleSetPriorityRegular ScaleSetPriority = "Regular"
	ScaleSetPrioritySpot    ScaleSetPriority = "Spot"
)

func (*ScaleSetPriority) UnmarshalJSON added in v0.20240213.1120950

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

type SysctlConfig

type SysctlConfig struct {
	FsAioMaxNr                     *int64  `json:"fsAioMaxNr,omitempty"`
	FsFileMax                      *int64  `json:"fsFileMax,omitempty"`
	FsInotifyMaxUserWatches        *int64  `json:"fsInotifyMaxUserWatches,omitempty"`
	FsNrOpen                       *int64  `json:"fsNrOpen,omitempty"`
	KernelThreadsMax               *int64  `json:"kernelThreadsMax,omitempty"`
	NetCoreNetdevMaxBacklog        *int64  `json:"netCoreNetdevMaxBacklog,omitempty"`
	NetCoreOptmemMax               *int64  `json:"netCoreOptmemMax,omitempty"`
	NetCoreRmemDefault             *int64  `json:"netCoreRmemDefault,omitempty"`
	NetCoreRmemMax                 *int64  `json:"netCoreRmemMax,omitempty"`
	NetCoreSomaxconn               *int64  `json:"netCoreSomaxconn,omitempty"`
	NetCoreWmemDefault             *int64  `json:"netCoreWmemDefault,omitempty"`
	NetCoreWmemMax                 *int64  `json:"netCoreWmemMax,omitempty"`
	NetIPv4IPLocalPortRange        *string `json:"netIpv4IpLocalPortRange,omitempty"`
	NetIPv4NeighDefaultGcThresh1   *int64  `json:"netIpv4NeighDefaultGcThresh1,omitempty"`
	NetIPv4NeighDefaultGcThresh2   *int64  `json:"netIpv4NeighDefaultGcThresh2,omitempty"`
	NetIPv4NeighDefaultGcThresh3   *int64  `json:"netIpv4NeighDefaultGcThresh3,omitempty"`
	NetIPv4TcpFinTimeout           *int64  `json:"netIpv4TcpFinTimeout,omitempty"`
	NetIPv4TcpKeepaliveProbes      *int64  `json:"netIpv4TcpKeepaliveProbes,omitempty"`
	NetIPv4TcpKeepaliveTime        *int64  `json:"netIpv4TcpKeepaliveTime,omitempty"`
	NetIPv4TcpMaxSynBacklog        *int64  `json:"netIpv4TcpMaxSynBacklog,omitempty"`
	NetIPv4TcpMaxTwBuckets         *int64  `json:"netIpv4TcpMaxTwBuckets,omitempty"`
	NetIPv4TcpTwReuse              *bool   `json:"netIpv4TcpTwReuse,omitempty"`
	NetIPv4TcpkeepaliveIntvl       *int64  `json:"netIpv4TcpkeepaliveIntvl,omitempty"`
	NetNetfilterNfConntrackBuckets *int64  `json:"netNetfilterNfConntrackBuckets,omitempty"`
	NetNetfilterNfConntrackMax     *int64  `json:"netNetfilterNfConntrackMax,omitempty"`
	VMMaxMapCount                  *int64  `json:"vmMaxMapCount,omitempty"`
	VMSwappiness                   *int64  `json:"vmSwappiness,omitempty"`
	VMVfsCachePressure             *int64  `json:"vmVfsCachePressure,omitempty"`
}

type UpgradeNodeImageVersionOperationResponse

type UpgradeNodeImageVersionOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AgentPool
}

type WorkloadRuntime

type WorkloadRuntime string
const (
	WorkloadRuntimeKataMshvVMIsolation WorkloadRuntime = "KataMshvVmIsolation"
	WorkloadRuntimeOCIContainer        WorkloadRuntime = "OCIContainer"
	WorkloadRuntimeWasmWasi            WorkloadRuntime = "WasmWasi"
)

func (*WorkloadRuntime) UnmarshalJSON added in v0.20240213.1120950

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

Jump to

Keyboard shortcuts

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