azure

package
v1.377.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalIPConfiguration

type AdditionalIPConfiguration struct {
	PrivateIPAddressVersion *string `json:"privateIpAddressVersion,omitempty"`
	Name                    *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (AdditionalIPConfiguration) MarshalJSON

func (o AdditionalIPConfiguration) MarshalJSON() ([]byte, error)

func (*AdditionalIPConfiguration) SetName

func (*AdditionalIPConfiguration) SetPrivateIPAddressVersion added in v1.117.1

func (o *AdditionalIPConfiguration) SetPrivateIPAddressVersion(v *string) *AdditionalIPConfiguration

type ApplicationSecurityGroup

type ApplicationSecurityGroup struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (ApplicationSecurityGroup) MarshalJSON

func (o ApplicationSecurityGroup) MarshalJSON() ([]byte, error)

func (*ApplicationSecurityGroup) SetName

func (*ApplicationSecurityGroup) SetResourceGroupName

func (o *ApplicationSecurityGroup) SetResourceGroupName(v *string) *ApplicationSecurityGroup

type AttachStatefulNodeDataDiskInput

type AttachStatefulNodeDataDiskInput struct {
	ID                        *string `json:"id,omitempty"`
	DataDiskName              *string `json:"dataDiskName,omitempty"`
	DataDiskResourceGroupName *string `json:"dataDiskResourceGroupName,omitempty"`
	StorageAccountType        *string `json:"storageAccountType,omitempty"`
	SizeGB                    *int    `json:"sizeGB,omitempty"`
	LUN                       *int    `json:"lun,omitempty"`
	Zone                      *string `json:"zone,omitempty"`
}

type AttachStatefulNodeDataDiskOutput

type AttachStatefulNodeDataDiskOutput struct{}

type BootDiagnostics

type BootDiagnostics struct {
	IsEnabled  *bool   `json:"isEnabled,omitempty"`
	Type       *string `json:"type,omitempty"`
	StorageURL *string `json:"storageUrl,omitempty"`
	// contains filtered or unexported fields
}

func (BootDiagnostics) MarshalJSON

func (o BootDiagnostics) MarshalJSON() ([]byte, error)

func (*BootDiagnostics) SetIsEnabled

func (o *BootDiagnostics) SetIsEnabled(v *bool) *BootDiagnostics

func (*BootDiagnostics) SetStorageURL

func (o *BootDiagnostics) SetStorageURL(v *string) *BootDiagnostics

func (*BootDiagnostics) SetType

func (o *BootDiagnostics) SetType(v *string) *BootDiagnostics

type CapacityReservation added in v1.171.0

type CapacityReservation struct {
	ShouldUtilize             *bool                       `json:"shouldUtilize,omitempty"`
	UtilizationStrategy       *string                     `json:"utilizationStrategy,omitempty"`
	CapacityReservationGroups []*CapacityReservationGroup `json:"capacityReservationGroups,omitempty"`
	// contains filtered or unexported fields
}

func (CapacityReservation) MarshalJSON added in v1.171.0

func (o CapacityReservation) MarshalJSON() ([]byte, error)

func (*CapacityReservation) SetCapacityReservationGroups added in v1.171.0

func (o *CapacityReservation) SetCapacityReservationGroups(v []*CapacityReservationGroup) *CapacityReservation

func (*CapacityReservation) SetShouldUtilize added in v1.171.0

func (o *CapacityReservation) SetShouldUtilize(v *bool) *CapacityReservation

func (*CapacityReservation) SetUtilizationStrategy added in v1.171.0

func (o *CapacityReservation) SetUtilizationStrategy(v *string) *CapacityReservation

type CapacityReservationGroup added in v1.171.0

type CapacityReservationGroup struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	ShouldPrioritize  *bool   `json:"shouldPrioritize,omitempty"`
	// contains filtered or unexported fields
}

func (CapacityReservationGroup) MarshalJSON added in v1.171.0

func (o CapacityReservationGroup) MarshalJSON() ([]byte, error)

func (*CapacityReservationGroup) SetCRGName added in v1.171.0

func (*CapacityReservationGroup) SetCRGResourceGroupName added in v1.171.0

func (o *CapacityReservationGroup) SetCRGResourceGroupName(v *string) *CapacityReservationGroup

func (*CapacityReservationGroup) SetShouldPrioritize added in v1.171.0

func (o *CapacityReservationGroup) SetShouldPrioritize(v *bool) *CapacityReservationGroup

type Compute

type Compute struct {
	OS                  *string              `json:"os,omitempty"`
	VMSizes             *VMSizes             `json:"vmSizes,omitempty"`
	Zones               []string             `json:"zones,omitempty"`
	PreferredZone       *string              `json:"preferredZone,omitempty"`
	LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"`
	// contains filtered or unexported fields
}

func (Compute) MarshalJSON

func (o Compute) MarshalJSON() ([]byte, error)

func (*Compute) SetLaunchSpecification

func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute

func (*Compute) SetOS

func (o *Compute) SetOS(v *string) *Compute

func (*Compute) SetPreferredZone

func (o *Compute) SetPreferredZone(v *string) *Compute

func (*Compute) SetVMSizes

func (o *Compute) SetVMSizes(v *VMSizes) *Compute

func (*Compute) SetZones

func (o *Compute) SetZones(v []string) *Compute

type CreateStatefulNodeInput

type CreateStatefulNodeInput struct {
	StatefulNode *StatefulNode `json:"statefulNode,omitempty"`
}

type CreateStatefulNodeOutput

type CreateStatefulNodeOutput struct {
	StatefulNode *StatefulNode `json:"statefulNode,omitempty"`
}

type CustomImage

type CustomImage struct {
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	Name              *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (CustomImage) MarshalJSON

func (o CustomImage) MarshalJSON() ([]byte, error)

func (*CustomImage) SetName

func (o *CustomImage) SetName(v *string) *CustomImage

func (*CustomImage) SetResourceGroupName

func (o *CustomImage) SetResourceGroupName(v *string) *CustomImage

type DataDisk

type DataDisk struct {
	SizeGB *int    `json:"sizeGB,omitempty"`
	LUN    *int    `json:"lun,omitempty"`
	Type   *string `json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (DataDisk) MarshalJSON

func (o DataDisk) MarshalJSON() ([]byte, error)

func (*DataDisk) SetLUN

func (o *DataDisk) SetLUN(v *int) *DataDisk

func (*DataDisk) SetSizeGB

func (o *DataDisk) SetSizeGB(v *int) *DataDisk

func (*DataDisk) SetType

func (o *DataDisk) SetType(v *string) *DataDisk

type DeallocationConfig

type DeallocationConfig struct {
	ShouldTerminateVM          *bool                       `json:"shouldTerminateVm,omitempty"`
	NetworkDeallocationConfig  *ResourceDeallocationConfig `json:"networkDeallocationConfig,omitempty"`
	DiskDeallocationConfig     *ResourceDeallocationConfig `json:"diskDeallocationConfig,omitempty"`
	SnapshotDeallocationConfig *ResourceDeallocationConfig `json:"snapshotDeallocationConfig,omitempty"`
	PublicIPDeallocationConfig *ResourceDeallocationConfig `json:"publicIpDeallocationConfig,omitempty"`
	ShouldDeregisterFromLb     *bool                       `json:"shouldDeregisterFromLb,omitempty"`
}

type DeleteStatefulNodeInput

type DeleteStatefulNodeInput struct {
	ID                 *string             `json:"id,omitempty"`
	DeallocationConfig *DeallocationConfig `json:"deallocationConfig,omitempty"`
}

type DeleteStatefulNodeOutput

type DeleteStatefulNodeOutput struct{}

type DetachStatefulNodeDataDiskInput

type DetachStatefulNodeDataDiskInput struct {
	ID                        *string `json:"id,omitempty"`
	DataDiskName              *string `json:"dataDiskName,omitempty"`
	DataDiskResourceGroupName *string `json:"dataDiskResourceGroupName,omitempty"`
	ShouldDeallocate          *bool   `json:"shouldDeallocate,omitempty"`
	TTLInHours                *int    `json:"ttlInHours,omitempty"`
}

type DetachStatefulNodeDataDiskOutput

type DetachStatefulNodeDataDiskOutput struct{}

type Extension

type Extension struct {
	Name                    *string                `json:"name,omitempty"`
	Type                    *string                `json:"type,omitempty"`
	Publisher               *string                `json:"publisher,omitempty"`
	APIVersion              *string                `json:"apiVersion,omitempty"`
	MinorVersionAutoUpgrade *bool                  `json:"minorVersionAutoUpgrade,omitempty"`
	ProtectedSettings       map[string]interface{} `json:"protectedSettings,omitempty"`
	PublicSettings          map[string]interface{} `json:"publicSettings,omitempty"`
	// contains filtered or unexported fields
}

func (Extension) MarshalJSON

func (o Extension) MarshalJSON() ([]byte, error)

func (*Extension) SetAPIVersion

func (o *Extension) SetAPIVersion(v *string) *Extension

func (*Extension) SetMinorVersionAutoUpgrade

func (o *Extension) SetMinorVersionAutoUpgrade(v *bool) *Extension

func (*Extension) SetName

func (o *Extension) SetName(v *string) *Extension

func (*Extension) SetProtectedSettings

func (o *Extension) SetProtectedSettings(v map[string]interface{}) *Extension

func (*Extension) SetPublicSettings

func (o *Extension) SetPublicSettings(v map[string]interface{}) *Extension

func (*Extension) SetPublisher

func (o *Extension) SetPublisher(v *string) *Extension

func (*Extension) SetType

func (o *Extension) SetType(v *string) *Extension
type Gallery struct {
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	GalleryName       *string `json:"galleryName,omitempty"`
	ImageName         *string `json:"imageName,omitempty"`
	VersionName       *string `json:"versionName,omitempty"`
	SpotAccountId     *string `json:"spotAccountId,omitempty"`
	// contains filtered or unexported fields
}

func (Gallery) MarshalJSON

func (o Gallery) MarshalJSON() ([]byte, error)

func (*Gallery) SetGalleryName

func (o *Gallery) SetGalleryName(v *string) *Gallery

func (*Gallery) SetImageName

func (o *Gallery) SetImageName(v *string) *Gallery

func (*Gallery) SetResourceGroupName

func (o *Gallery) SetResourceGroupName(v *string) *Gallery

func (*Gallery) SetSpotAccountId added in v1.352.0

func (o *Gallery) SetSpotAccountId(v *string) *Gallery

func (*Gallery) SetVersionName

func (o *Gallery) SetVersionName(v *string) *Gallery

type GetStatefulNodeStateInput added in v1.119.0

type GetStatefulNodeStateInput struct {
	ID *string `json:"id,omitempty"`
}

type GetStatefulNodeStateOutput added in v1.119.0

type GetStatefulNodeStateOutput struct {
	StatefulNodeState *StatefulNodeState `json:"statefulNodeState,omitempty"`
}

type Health

type Health struct {
	HealthCheckTypes  []string `json:"healthCheckTypes,omitempty"`
	GracePeriod       *int     `json:"gracePeriod,omitempty"`
	UnhealthyDuration *int     `json:"unhealthyDuration,omitempty"`
	AutoHealing       *bool    `json:"autoHealing,omitempty"`
	// contains filtered or unexported fields
}

func (Health) MarshalJSON

func (o Health) MarshalJSON() ([]byte, error)

func (*Health) SetAutoHealing

func (o *Health) SetAutoHealing(v *bool) *Health

func (*Health) SetGracePeriod

func (o *Health) SetGracePeriod(v *int) *Health

func (*Health) SetHealthCheckTypes

func (o *Health) SetHealthCheckTypes(v []string) *Health

func (*Health) SetUnhealthyDuration

func (o *Health) SetUnhealthyDuration(v *int) *Health

type Image

type Image struct {
	MarketPlace *MarketPlaceImage `json:"marketplace,omitempty"`
	Custom      *CustomImage      `json:"custom,omitempty"`
	Gallery     *Gallery          `json:"gallery,omitempty"`
	// contains filtered or unexported fields
}

func (Image) MarshalJSON

func (o Image) MarshalJSON() ([]byte, error)

func (*Image) SetCustom

func (o *Image) SetCustom(v *CustomImage) *Image

func (*Image) SetGallery

func (o *Image) SetGallery(v *Gallery) *Image

func (*Image) SetMarketPlaceImage

func (o *Image) SetMarketPlaceImage(v *MarketPlaceImage) *Image

type ImportVMStatefulNodeInput

type ImportVMStatefulNodeInput struct {
	StatefulNodeImport *StatefulNodeImport `json:"statefulNodeImport,omitempty"`
}

type ImportVMStatefulNodeOutput

type ImportVMStatefulNodeOutput struct {
	StatefulNodeImport *StatefulNodeImport `json:"statefulNodeImport,omitempty"`
}

type LaunchSpecification

type LaunchSpecification struct {
	Image                    *Image                      `json:"image,omitempty"`
	Network                  *Network                    `json:"network,omitempty"`
	Login                    *Login                      `json:"login,omitempty"`
	CustomData               *string                     `json:"customData,omitempty"`
	ShutdownScript           *string                     `json:"shutdownScript,omitempty"`
	LoadBalancersConfig      *LoadBalancersConfig        `json:"loadBalancersConfig,omitempty"`
	Tags                     []*Tag                      `json:"tags,omitempty"`
	ManagedServiceIdentities []*ManagedServiceIdentity   `json:"managedServiceIdentities,omitempty"`
	Extensions               []*Extension                `json:"extensions,omitempty"`
	OSDisk                   *OSDisk                     `json:"osDisk,omitempty"`
	DataDisks                []*DataDisk                 `json:"dataDisks,omitempty"`
	Secrets                  []*Secret                   `json:"secrets,omitempty"`
	BootDiagnostics          *BootDiagnostics            `json:"bootDiagnostics,omitempty"`
	UserData                 *string                     `json:"userData,omitempty"`
	VMName                   *string                     `json:"vmName,omitempty"`
	Security                 *Security                   `json:"security,omitempty"`
	ProximityPlacementGroups []*ProximityPlacementGroups `json:"proximityPlacementGroups,omitempty"`
	LicenseType              *string                     `json:"licenseType,omitempty"`
	VMNamePrefix             *string                     `json:"vmNamePrefix,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecification) MarshalJSON

func (o LaunchSpecification) MarshalJSON() ([]byte, error)

func (*LaunchSpecification) SetBootDiagnostics

func (o *LaunchSpecification) SetBootDiagnostics(v *BootDiagnostics) *LaunchSpecification

func (*LaunchSpecification) SetCustomData

func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification

func (*LaunchSpecification) SetDataDisks

func (o *LaunchSpecification) SetDataDisks(v []*DataDisk) *LaunchSpecification

func (*LaunchSpecification) SetExtensions added in v1.117.1

func (o *LaunchSpecification) SetExtensions(v []*Extension) *LaunchSpecification

func (*LaunchSpecification) SetImage

func (*LaunchSpecification) SetLicenseType added in v1.338.0

func (o *LaunchSpecification) SetLicenseType(v *string) *LaunchSpecification

func (*LaunchSpecification) SetLoadBalancersConfig

func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification

func (*LaunchSpecification) SetLogin

func (*LaunchSpecification) SetManagedServiceIdentities added in v1.117.1

func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification

func (*LaunchSpecification) SetNetwork

func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification

func (*LaunchSpecification) SetOSDisk

func (*LaunchSpecification) SetProximityPlacementGroups added in v1.186.0

func (o *LaunchSpecification) SetProximityPlacementGroups(v []*ProximityPlacementGroups) *LaunchSpecification

func (*LaunchSpecification) SetSecrets

func (o *LaunchSpecification) SetSecrets(v []*Secret) *LaunchSpecification

func (*LaunchSpecification) SetSecurity added in v1.169.0

func (o *LaunchSpecification) SetSecurity(v *Security) *LaunchSpecification

func (*LaunchSpecification) SetShutdownScript

func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification

func (*LaunchSpecification) SetTags added in v1.117.1

func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification

func (*LaunchSpecification) SetUserData added in v1.166.0

func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification

func (*LaunchSpecification) SetVMName added in v1.168.0

func (*LaunchSpecification) SetVMNamePrefix added in v1.338.0

func (o *LaunchSpecification) SetVMNamePrefix(v *string) *LaunchSpecification

type ListStatefulNodesInput

type ListStatefulNodesInput struct{}

type ListStatefulNodesOutput

type ListStatefulNodesOutput struct {
	StatefulNodes []*StatefulNode `json:"statefulNodes,omitempty"`
}

type LoadBalancer

type LoadBalancer struct {
	Type              *string  `json:"type,omitempty"`
	ResourceGroupName *string  `json:"resourceGroupName,omitempty"`
	Name              *string  `json:"name,omitempty"`
	SKU               *string  `json:"loadBalancerSku,omitempty"`
	BackendPoolNames  []string `json:"backendPoolNames,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancer) MarshalJSON

func (o LoadBalancer) MarshalJSON() ([]byte, error)

func (*LoadBalancer) SetBackendPoolNames added in v1.169.0

func (o *LoadBalancer) SetBackendPoolNames(v []string) *LoadBalancer

func (*LoadBalancer) SetName

func (o *LoadBalancer) SetName(v *string) *LoadBalancer

func (*LoadBalancer) SetResourceGroupName

func (o *LoadBalancer) SetResourceGroupName(v *string) *LoadBalancer

func (*LoadBalancer) SetSKU

func (o *LoadBalancer) SetSKU(v *string) *LoadBalancer

func (*LoadBalancer) SetType

func (o *LoadBalancer) SetType(v *string) *LoadBalancer

type LoadBalancersConfig

type LoadBalancersConfig struct {
	LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancersConfig) MarshalJSON

func (o LoadBalancersConfig) MarshalJSON() ([]byte, error)

func (*LoadBalancersConfig) SetLoadBalancers

func (o *LoadBalancersConfig) SetLoadBalancers(v []*LoadBalancer) *LoadBalancersConfig

type Login

type Login struct {
	UserName     *string `json:"userName,omitempty"`
	SSHPublicKey *string `json:"sshPublicKey,omitempty"`
	Password     *string `json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (Login) MarshalJSON

func (o Login) MarshalJSON() ([]byte, error)

func (*Login) SetPassword

func (o *Login) SetPassword(v *string) *Login

func (*Login) SetSSHPublicKey

func (o *Login) SetSSHPublicKey(v *string) *Login

func (*Login) SetUserName

func (o *Login) SetUserName(v *string) *Login

type ManagedServiceIdentity

type ManagedServiceIdentity struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (ManagedServiceIdentity) MarshalJSON

func (o ManagedServiceIdentity) MarshalJSON() ([]byte, error)

func (*ManagedServiceIdentity) SetName

func (*ManagedServiceIdentity) SetResourceGroupName

func (o *ManagedServiceIdentity) SetResourceGroupName(v *string) *ManagedServiceIdentity

type MarketPlaceImage

type MarketPlaceImage struct {
	Publisher *string `json:"publisher,omitempty"`
	Offer     *string `json:"offer,omitempty"`
	SKU       *string `json:"sku,omitempty"`
	Version   *string `json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (MarketPlaceImage) MarshalJSON

func (o MarketPlaceImage) MarshalJSON() ([]byte, error)

func (*MarketPlaceImage) SetOffer

func (o *MarketPlaceImage) SetOffer(v *string) *MarketPlaceImage

func (*MarketPlaceImage) SetPublisher

func (o *MarketPlaceImage) SetPublisher(v *string) *MarketPlaceImage

func (*MarketPlaceImage) SetSKU

func (o *MarketPlaceImage) SetSKU(v *string) *MarketPlaceImage

func (*MarketPlaceImage) SetVersion

func (o *MarketPlaceImage) SetVersion(v *string) *MarketPlaceImage

type Network

type Network struct {
	VirtualNetworkName *string             `json:"virtualNetworkName,omitempty"`
	ResourceGroupName  *string             `json:"resourceGroupName,omitempty"`
	NetworkInterfaces  []*NetworkInterface `json:"networkInterfaces,omitempty"`
	// contains filtered or unexported fields
}

func (Network) MarshalJSON

func (o Network) MarshalJSON() ([]byte, error)

func (*Network) SetNetworkInterfaces

func (o *Network) SetNetworkInterfaces(v []*NetworkInterface) *Network

func (*Network) SetResourceGroupName

func (o *Network) SetResourceGroupName(v *string) *Network

func (*Network) SetVirtualNetworkName

func (o *Network) SetVirtualNetworkName(v *string) *Network

type NetworkInterface

type NetworkInterface struct {
	SubnetName                 *string                      `json:"subnetName,omitempty"`
	AssignPublicIP             *bool                        `json:"assignPublicIp,omitempty"`
	IsPrimary                  *bool                        `json:"isPrimary,omitempty"`
	PublicIPSku                *string                      `json:"publicIpSku,omitempty"`
	NetworkSecurityGroup       *NetworkSecurityGroup        `json:"networkSecurityGroup,omitempty"`
	EnableIPForwarding         *bool                        `json:"enableIpForwarding,omitempty"`
	PrivateIPAddresses         []string                     `json:"privateIpAddresses,omitempty"`
	AdditionalIPConfigurations []*AdditionalIPConfiguration `json:"additionalIpConfigurations,omitempty"`
	PublicIPs                  []*PublicIP                  `json:"publicIps,omitempty"`
	ApplicationSecurityGroups  []*ApplicationSecurityGroup  `json:"applicationSecurityGroups,omitempty"`
	// contains filtered or unexported fields
}

func (NetworkInterface) MarshalJSON

func (o NetworkInterface) MarshalJSON() ([]byte, error)

func (*NetworkInterface) SetAdditionalIPConfigurations

func (o *NetworkInterface) SetAdditionalIPConfigurations(v []*AdditionalIPConfiguration) *NetworkInterface

func (*NetworkInterface) SetApplicationSecurityGroups

func (o *NetworkInterface) SetApplicationSecurityGroups(v []*ApplicationSecurityGroup) *NetworkInterface

func (*NetworkInterface) SetAssignPublicIP

func (o *NetworkInterface) SetAssignPublicIP(v *bool) *NetworkInterface

func (*NetworkInterface) SetEnableIPForwarding

func (o *NetworkInterface) SetEnableIPForwarding(v *bool) *NetworkInterface

func (*NetworkInterface) SetIsPrimary

func (o *NetworkInterface) SetIsPrimary(v *bool) *NetworkInterface

func (*NetworkInterface) SetNetworkSecurityGroup

func (o *NetworkInterface) SetNetworkSecurityGroup(v *NetworkSecurityGroup) *NetworkInterface

func (*NetworkInterface) SetPrivateIPAddresses

func (o *NetworkInterface) SetPrivateIPAddresses(v []string) *NetworkInterface

func (*NetworkInterface) SetPublicIPSku

func (o *NetworkInterface) SetPublicIPSku(v *string) *NetworkInterface

func (*NetworkInterface) SetPublicIPs

func (o *NetworkInterface) SetPublicIPs(v []*PublicIP) *NetworkInterface

func (*NetworkInterface) SetSubnetName

func (o *NetworkInterface) SetSubnetName(v *string) *NetworkInterface

type NetworkSecurityGroup

type NetworkSecurityGroup struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (NetworkSecurityGroup) MarshalJSON

func (o NetworkSecurityGroup) MarshalJSON() ([]byte, error)

func (*NetworkSecurityGroup) SetName

func (*NetworkSecurityGroup) SetResourceGroupName

func (o *NetworkSecurityGroup) SetResourceGroupName(v *string) *NetworkSecurityGroup

type OSDisk

type OSDisk struct {
	SizeGB  *int    `json:"sizeGB,omitempty"`
	Type    *string `json:"type,omitempty"`
	Caching *string `json:"caching,omitempty"`
	// contains filtered or unexported fields
}

func (OSDisk) MarshalJSON

func (o OSDisk) MarshalJSON() ([]byte, error)

func (*OSDisk) SetCaching added in v1.338.0

func (o *OSDisk) SetCaching(v *string) *OSDisk

func (*OSDisk) SetSizeGB

func (o *OSDisk) SetSizeGB(v *int) *OSDisk

func (*OSDisk) SetType

func (o *OSDisk) SetType(v *string) *OSDisk

type Persistence

type Persistence struct {
	ShouldPersistOSDisk      *bool   `json:"shouldPersistOsDisk,omitempty"`
	OSDiskPersistenceMode    *string `json:"osDiskPersistenceMode,omitempty"`
	ShouldPersistDataDisks   *bool   `json:"shouldPersistDataDisks,omitempty"`
	DataDisksPersistenceMode *string `json:"dataDisksPersistenceMode,omitempty"`
	ShouldPersistNetwork     *bool   `json:"shouldPersistNetwork,omitempty"`
	ShouldPersistVM          *bool   `json:"shouldPersistVm,omitempty"`
	// contains filtered or unexported fields
}

func (*Persistence) SetDataDisksPersistenceMode

func (o *Persistence) SetDataDisksPersistenceMode(v *string) *Persistence

func (*Persistence) SetOSDiskPersistenceMode

func (o *Persistence) SetOSDiskPersistenceMode(v *string) *Persistence

func (*Persistence) SetShouldPersistDataDisks

func (o *Persistence) SetShouldPersistDataDisks(v *bool) *Persistence

func (*Persistence) SetShouldPersistNetwork

func (o *Persistence) SetShouldPersistNetwork(v *bool) *Persistence

func (*Persistence) SetShouldPersistOSDisk

func (o *Persistence) SetShouldPersistOSDisk(v *bool) *Persistence

func (*Persistence) SetShouldPersistVM

func (o *Persistence) SetShouldPersistVM(v *bool) *Persistence

type ProximityPlacementGroups added in v1.186.0

type ProximityPlacementGroups struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (ProximityPlacementGroups) MarshalJSON added in v1.186.0

func (o ProximityPlacementGroups) MarshalJSON() ([]byte, error)

func (*ProximityPlacementGroups) SetName added in v1.186.0

func (*ProximityPlacementGroups) SetResourceGroupName added in v1.186.0

func (o *ProximityPlacementGroups) SetResourceGroupName(v *string) *ProximityPlacementGroups

type PublicIP

type PublicIP struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (PublicIP) MarshalJSON

func (o PublicIP) MarshalJSON() ([]byte, error)

func (*PublicIP) SetName

func (o *PublicIP) SetName(v *string) *PublicIP

func (*PublicIP) SetResourceGroupName

func (o *PublicIP) SetResourceGroupName(v *string) *PublicIP

type ReadStatefulNodeInput

type ReadStatefulNodeInput struct {
	ID *string `json:"id,omitempty"`
}

type ReadStatefulNodeOutput

type ReadStatefulNodeOutput struct {
	StatefulNode *StatefulNode `json:"statefulNode,omitempty"`
}

type ResourceDeallocationConfig

type ResourceDeallocationConfig struct {
	ShouldDeallocate *bool `json:"shouldDeallocate,omitempty"`
	TTLInHours       *int  `json:"ttlInHours,omitempty"`
}

type RevertToSpot

type RevertToSpot struct {
	PerformAt *string `json:"performAt,omitempty"`
	// contains filtered or unexported fields
}

func (RevertToSpot) MarshalJSON

func (o RevertToSpot) MarshalJSON() ([]byte, error)

func (*RevertToSpot) SetPerformAt

func (o *RevertToSpot) SetPerformAt(v *string) *RevertToSpot

type Scheduling

type Scheduling struct {
	Tasks []*Task `json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (Scheduling) MarshalJSON

func (o Scheduling) MarshalJSON() ([]byte, error)

func (*Scheduling) SetTasks

func (o *Scheduling) SetTasks(v []*Task) *Scheduling

type Secret

type Secret struct {
	SourceVault       *SourceVault        `json:"sourceVault,omitempty"`
	VaultCertificates []*VaultCertificate `json:"vaultCertificates,omitempty"`
	// contains filtered or unexported fields
}

func (Secret) MarshalJSON

func (o Secret) MarshalJSON() ([]byte, error)

func (*Secret) SetSourceVault

func (o *Secret) SetSourceVault(v *SourceVault) *Secret

func (*Secret) SetVaultCertificates

func (o *Secret) SetVaultCertificates(v []*VaultCertificate) *Secret

type Security added in v1.169.0

type Security struct {
	SecureBootEnabled            *bool   `json:"secureBootEnabled,omitempty"`
	SecurityType                 *string `json:"securityType,omitempty"`
	VTpmEnabled                  *bool   `json:"vTpmEnabled,omitempty"`
	EncryptionAtHost             *bool   `json:"encryptionAtHost,omitempty"`
	ConfidentialOsDiskEncryption *bool   `json:"confidentialOsDiskEncryption,omitempty"`
	// contains filtered or unexported fields
}

func (Security) MarshalJSON added in v1.169.0

func (o Security) MarshalJSON() ([]byte, error)

func (*Security) SetConfidentialOsDiskEncryption added in v1.361.0

func (o *Security) SetConfidentialOsDiskEncryption(v *bool) *Security

func (*Security) SetEncryptionAtHost added in v1.361.0

func (o *Security) SetEncryptionAtHost(v *bool) *Security

func (*Security) SetSecureBootEnabled added in v1.169.0

func (o *Security) SetSecureBootEnabled(v *bool) *Security

func (*Security) SetSecurityType added in v1.169.0

func (o *Security) SetSecurityType(v *string) *Security

func (*Security) SetVTpmEnabled added in v1.169.0

func (o *Security) SetVTpmEnabled(v *bool) *Security

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp

func (*ServiceOp) Create

func (*ServiceOp) Delete

func (*ServiceOp) GetState added in v1.119.0

func (*ServiceOp) ImportVM

func (*ServiceOp) List

func (*ServiceOp) Read

func (*ServiceOp) Update

func (*ServiceOp) UpdateState

type Signal

type Signal struct {
	Type    *string `json:"type,omitempty"`
	Timeout *int    `json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (Signal) MarshalJSON

func (o Signal) MarshalJSON() ([]byte, error)

func (*Signal) SetTimeout

func (o *Signal) SetTimeout(v *int) *Signal

func (*Signal) SetType

func (o *Signal) SetType(v *string) *Signal

type SourceVault

type SourceVault struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (SourceVault) MarshalJSON

func (o SourceVault) MarshalJSON() ([]byte, error)

func (*SourceVault) SetName

func (o *SourceVault) SetName(v *string) *SourceVault

func (*SourceVault) SetResourceGroupName

func (o *SourceVault) SetResourceGroupName(v *string) *SourceVault

type SpotSizeAttributes added in v1.376.0

type SpotSizeAttributes struct {
	MaxCpu     *int `json:"maxCpu,omitempty"`
	MaxMemory  *int `json:"maxMemory,omitempty"`
	MaxStorage *int `json:"maxStorage,omitempty"`
	MinCpu     *int `json:"minCpu,omitempty"`
	MinMemory  *int `json:"minMemory,omitempty"`
	MinStorage *int `json:"minStorage,omitempty"`
	// contains filtered or unexported fields
}

func (SpotSizeAttributes) MarshalJSON added in v1.376.0

func (o SpotSizeAttributes) MarshalJSON() ([]byte, error)

func (*SpotSizeAttributes) SetMaxCpu added in v1.376.0

func (o *SpotSizeAttributes) SetMaxCpu(v *int) *SpotSizeAttributes

func (*SpotSizeAttributes) SetMaxMemory added in v1.376.0

func (o *SpotSizeAttributes) SetMaxMemory(v *int) *SpotSizeAttributes

func (*SpotSizeAttributes) SetMaxStorage added in v1.376.0

func (o *SpotSizeAttributes) SetMaxStorage(v *int) *SpotSizeAttributes

func (*SpotSizeAttributes) SetMinCpu added in v1.376.0

func (o *SpotSizeAttributes) SetMinCpu(v *int) *SpotSizeAttributes

func (*SpotSizeAttributes) SetMinMemory added in v1.376.0

func (o *SpotSizeAttributes) SetMinMemory(v *int) *SpotSizeAttributes

func (*SpotSizeAttributes) SetMinStorage added in v1.376.0

func (o *SpotSizeAttributes) SetMinStorage(v *int) *SpotSizeAttributes

type StatefulNode

type StatefulNode struct {
	ID                *string      `json:"id,omitempty"`
	Name              *string      `json:"name,omitempty"`
	ResourceGroupName *string      `json:"resourceGroupName,omitempty"`
	Region            *string      `json:"region,omitempty"`
	Description       *string      `json:"description,omitempty"`
	Strategy          *Strategy    `json:"strategy,omitempty"`
	Compute           *Compute     `json:"compute,omitempty"`
	Persistence       *Persistence `json:"persistence,omitempty"`
	Scheduling        *Scheduling  `json:"scheduling,omitempty"`
	Health            *Health      `json:"health,omitempty"`

	// Read-only fields.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (StatefulNode) MarshalJSON

func (o StatefulNode) MarshalJSON() ([]byte, error)

func (*StatefulNode) SetCompute

func (o *StatefulNode) SetCompute(v *Compute) *StatefulNode

func (*StatefulNode) SetDescription

func (o *StatefulNode) SetDescription(v *string) *StatefulNode

func (*StatefulNode) SetHealth

func (o *StatefulNode) SetHealth(v *Health) *StatefulNode

func (*StatefulNode) SetID

func (o *StatefulNode) SetID(v *string) *StatefulNode

func (*StatefulNode) SetName

func (o *StatefulNode) SetName(v *string) *StatefulNode

func (*StatefulNode) SetPersistence

func (o *StatefulNode) SetPersistence(v *Persistence) *StatefulNode

func (*StatefulNode) SetRegion

func (o *StatefulNode) SetRegion(v *string) *StatefulNode

func (*StatefulNode) SetResourceGroupName

func (o *StatefulNode) SetResourceGroupName(v *string) *StatefulNode

func (*StatefulNode) SetScheduling

func (o *StatefulNode) SetScheduling(v *Scheduling) *StatefulNode

func (*StatefulNode) SetStrategy

func (o *StatefulNode) SetStrategy(v *Strategy) *StatefulNode

type StatefulNodeImport

type StatefulNodeImport struct {
	StatefulImportID       *string       `json:"statefulImportId,omitempty"`
	ResourceGroupName      *string       `json:"resourceGroupName,omitempty"`
	OriginalVMName         *string       `json:"originalVmName,omitempty"`
	DrainingTimeout        *int          `json:"drainingTimeout,omitempty"`
	ResourcesRetentionTime *int          `json:"resourcesRetentionTime,omitempty"`
	StatefulNode           *StatefulNode `json:"node,omitempty"`
}

type StatefulNodeState added in v1.119.0

type StatefulNodeState struct {
	ID                *string `json:"id,omitempty"`
	Name              *string `json:"name,omitempty"`
	Region            *string `json:"region,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	Status            *string `json:"status,omitempty"`
	VMName            *string `json:"vmName,omitempty"`
	VMSize            *string `json:"vmSize,omitempty"`
	LifeCycle         *string `json:"lifeCycle,omitempty"`
	RollbackReason    *string `json:"rollbackReason,omitempty"`
	ErrorReason       *string `json:"errorReason,omitempty"`
	PrivateIP         *string `json:"privateIP,omitempty"`
	PublicIP          *string `json:"publicIP,omitempty"`
}

type Strategy

type Strategy struct {
	PreferredLifecycle  *string              `json:"preferredLifecycle,omitempty"`
	Signals             []*Signal            `json:"signals,omitempty"`
	FallbackToOnDemand  *bool                `json:"fallbackToOd,omitempty"`
	DrainingTimeout     *int                 `json:"drainingTimeout,omitempty"`
	RevertToSpot        *RevertToSpot        `json:"revertToSpot,omitempty"`
	OptimizationWindows []string             `json:"optimizationWindows,omitempty"`
	CapacityReservation *CapacityReservation `json:"capacityReservation,omitempty"`
	AvailabilityVsCost  *int                 `json:"availabilityVsCost,omitempty"`
	OdWindows           []string             `json:"odWindows,omitempty"`
	VmAdmins            []string             `json:"vmAdmins,omitempty"`
	// contains filtered or unexported fields
}

func (Strategy) MarshalJSON

func (o Strategy) MarshalJSON() ([]byte, error)

func (*Strategy) SetAvailabilityVsCost added in v1.338.0

func (o *Strategy) SetAvailabilityVsCost(v *int) *Strategy

func (*Strategy) SetCapacityReservation added in v1.171.0

func (o *Strategy) SetCapacityReservation(v *CapacityReservation) *Strategy

func (*Strategy) SetDrainingTimeout

func (o *Strategy) SetDrainingTimeout(v *int) *Strategy

func (*Strategy) SetFallbackToOnDemand

func (o *Strategy) SetFallbackToOnDemand(v *bool) *Strategy

func (*Strategy) SetOdWindows added in v1.338.0

func (o *Strategy) SetOdWindows(v []string) *Strategy

func (*Strategy) SetOptimizationWindows

func (o *Strategy) SetOptimizationWindows(v []string) *Strategy

func (*Strategy) SetPreferredLifecycle

func (o *Strategy) SetPreferredLifecycle(v *string) *Strategy

func (*Strategy) SetRevertToSpot

func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy

func (*Strategy) SetSignals

func (o *Strategy) SetSignals(v []*Signal) *Strategy

func (*Strategy) SetVmAdmins added in v1.366.0

func (o *Strategy) SetVmAdmins(v []string) *Strategy

type Tag

type Tag struct {
	TagKey   *string `json:"tagKey,omitempty"`
	TagValue *string `json:"tagValue,omitempty"`
	// contains filtered or unexported fields
}

func (Tag) MarshalJSON

func (o Tag) MarshalJSON() ([]byte, error)

func (*Tag) SetTagKey

func (o *Tag) SetTagKey(v *string) *Tag

func (*Tag) SetTagValue

func (o *Tag) SetTagValue(v *string) *Tag

type Task

type Task struct {
	IsEnabled      *bool   `json:"isEnabled,omitempty"`
	Type           *string `json:"type,omitempty"`
	CronExpression *string `json:"cronExpression,omitempty"`
	// contains filtered or unexported fields
}

func (Task) MarshalJSON

func (o Task) MarshalJSON() ([]byte, error)

func (*Task) SetCronExpression

func (o *Task) SetCronExpression(v *string) *Task

func (*Task) SetIsEnabled

func (o *Task) SetIsEnabled(v *bool) *Task

func (*Task) SetType

func (o *Task) SetType(v *string) *Task

type UpdateStatefulNodeInput

type UpdateStatefulNodeInput struct {
	StatefulNode *StatefulNode `json:"statefulNode,omitempty"`
}

type UpdateStatefulNodeOutput

type UpdateStatefulNodeOutput struct {
	StatefulNode *StatefulNode `json:"statefulNode,omitempty"`
}

type UpdateStatefulNodeStateInput

type UpdateStatefulNodeStateInput struct {
	ID                *string `json:"id,omitempty"`
	StatefulNodeState *string `json:"state,omitempty"`
}

type UpdateStatefulNodeStateOutput

type UpdateStatefulNodeStateOutput struct{}

type VMSizes

type VMSizes struct {
	OnDemandSizes      []string            `json:"odSizes,omitempty"`
	SpotSizes          []string            `json:"spotSizes,omitempty"`
	PreferredSpotSizes []string            `json:"preferredSpotSizes,omitempty"`
	ExcludedVmSizes    []string            `json:"excludedVmSizes,omitempty"`
	SpotSizeAttributes *SpotSizeAttributes `json:"spotSizeAttributes,omitempty"`
	// contains filtered or unexported fields
}

func (VMSizes) MarshalJSON

func (o VMSizes) MarshalJSON() ([]byte, error)

func (*VMSizes) SetExcludedVmSizes added in v1.376.0

func (o *VMSizes) SetExcludedVmSizes(v []string) *VMSizes

func (*VMSizes) SetOnDemandSizes

func (o *VMSizes) SetOnDemandSizes(v []string) *VMSizes

func (*VMSizes) SetPreferredSpotSizes

func (o *VMSizes) SetPreferredSpotSizes(v []string) *VMSizes

func (*VMSizes) SetSpotSizeAttributes added in v1.376.0

func (o *VMSizes) SetSpotSizeAttributes(v *SpotSizeAttributes) *VMSizes

func (*VMSizes) SetSpotSizes

func (o *VMSizes) SetSpotSizes(v []string) *VMSizes

type VaultCertificate

type VaultCertificate struct {
	CertificateURL   *string `json:"certificateUrl,omitempty"`
	CertificateStore *string `json:"certificateStore,omitempty"`
	// contains filtered or unexported fields
}

func (VaultCertificate) MarshalJSON

func (o VaultCertificate) MarshalJSON() ([]byte, error)

func (*VaultCertificate) SetCertificateStore

func (o *VaultCertificate) SetCertificateStore(v *string) *VaultCertificate

func (*VaultCertificate) SetCertificateURL

func (o *VaultCertificate) SetCertificateURL(v *string) *VaultCertificate

Jump to

Keyboard shortcuts

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