Documentation ¶
Index ¶
- type AdditionalIPConfiguration
- type ApplicationSecurityGroup
- type AttachStatefulNodeDataDiskInput
- type AttachStatefulNodeDataDiskOutput
- type BootDiagnostics
- type Compute
- func (o Compute) MarshalJSON() ([]byte, error)
- func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
- func (o *Compute) SetOS(v *string) *Compute
- func (o *Compute) SetPreferredZone(v *string) *Compute
- func (o *Compute) SetVMSizes(v *VMSizes) *Compute
- func (o *Compute) SetZones(v []string) *Compute
- type CreateStatefulNodeInput
- type CreateStatefulNodeOutput
- type CustomImage
- type DataDisk
- type DeallocationConfig
- type DeleteStatefulNodeInput
- type DeleteStatefulNodeOutput
- type DetachStatefulNodeDataDiskInput
- type DetachStatefulNodeDataDiskOutput
- type Extension
- func (o Extension) MarshalJSON() ([]byte, error)
- func (o *Extension) SetAPIVersion(v *string) *Extension
- func (o *Extension) SetMinorVersionAutoUpgrade(v *bool) *Extension
- func (o *Extension) SetName(v *string) *Extension
- func (o *Extension) SetProtectedSettings(v map[string]interface{}) *Extension
- func (o *Extension) SetPublicSettings(v map[string]interface{}) *Extension
- func (o *Extension) SetPublisher(v *string) *Extension
- func (o *Extension) SetType(v *string) *Extension
- type Gallery
- type GetStatefulNodeStateInput
- type GetStatefulNodeStateOutput
- type Health
- type Image
- type ImportVMStatefulNodeInput
- type ImportVMStatefulNodeOutput
- type LaunchSpecification
- func (o LaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecification) SetBootDiagnostics(v *BootDiagnostics) *LaunchSpecification
- func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetDataDisks(v []*DataDisk) *LaunchSpecification
- func (o *LaunchSpecification) SetExtensions(v []*Extension) *LaunchSpecification
- func (o *LaunchSpecification) SetImage(v *Image) *LaunchSpecification
- func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification
- func (o *LaunchSpecification) SetLogin(v *Login) *LaunchSpecification
- func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification
- func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification
- func (o *LaunchSpecification) SetOSDisk(v *OSDisk) *LaunchSpecification
- func (o *LaunchSpecification) SetSecrets(v []*Secret) *LaunchSpecification
- func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification
- type ListStatefulNodesInput
- type ListStatefulNodesOutput
- type LoadBalancer
- func (o LoadBalancer) MarshalJSON() ([]byte, error)
- func (o *LoadBalancer) SeBackendPoolNames(v []string) *LoadBalancer
- func (o *LoadBalancer) SetName(v *string) *LoadBalancer
- func (o *LoadBalancer) SetResourceGroupName(v *string) *LoadBalancer
- func (o *LoadBalancer) SetSKU(v *string) *LoadBalancer
- func (o *LoadBalancer) SetType(v *string) *LoadBalancer
- type LoadBalancersConfig
- type Login
- type ManagedServiceIdentity
- type MarketPlaceImage
- func (o MarketPlaceImage) MarshalJSON() ([]byte, error)
- func (o *MarketPlaceImage) SetOffer(v *string) *MarketPlaceImage
- func (o *MarketPlaceImage) SetPublisher(v *string) *MarketPlaceImage
- func (o *MarketPlaceImage) SetSKU(v *string) *MarketPlaceImage
- func (o *MarketPlaceImage) SetVersion(v *string) *MarketPlaceImage
- type Network
- type NetworkInterface
- func (o NetworkInterface) MarshalJSON() ([]byte, error)
- func (o *NetworkInterface) SetAdditionalIPConfigurations(v []*AdditionalIPConfiguration) *NetworkInterface
- func (o *NetworkInterface) SetApplicationSecurityGroups(v []*ApplicationSecurityGroup) *NetworkInterface
- func (o *NetworkInterface) SetAssignPublicIP(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetEnableIPForwarding(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetIsPrimary(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetNetworkSecurityGroup(v *NetworkSecurityGroup) *NetworkInterface
- func (o *NetworkInterface) SetPrivateIPAddresses(v []string) *NetworkInterface
- func (o *NetworkInterface) SetPublicIPSku(v *string) *NetworkInterface
- func (o *NetworkInterface) SetPublicIPs(v []*PublicIP) *NetworkInterface
- func (o *NetworkInterface) SetSubnetName(v *string) *NetworkInterface
- type NetworkSecurityGroup
- type OSDisk
- type Persistence
- func (o *Persistence) SetDataDisksPersistenceMode(v *string) *Persistence
- func (o *Persistence) SetOSDiskPersistenceMode(v *string) *Persistence
- func (o *Persistence) SetShouldPersistDataDisks(v *bool) *Persistence
- func (o *Persistence) SetShouldPersistNetwork(v *bool) *Persistence
- func (o *Persistence) SetShouldPersistOSDisk(v *bool) *Persistence
- func (o *Persistence) SetShouldPersistVM(v *bool) *Persistence
- type PublicIP
- type ReadStatefulNodeInput
- type ReadStatefulNodeOutput
- type ResourceDeallocationConfig
- type RevertToSpot
- type Scheduling
- type Secret
- type Service
- type ServiceOp
- func (s *ServiceOp) AttachDataDisk(ctx context.Context, input *AttachStatefulNodeDataDiskInput) (*AttachStatefulNodeDataDiskOutput, error)
- func (s *ServiceOp) Create(ctx context.Context, input *CreateStatefulNodeInput) (*CreateStatefulNodeOutput, error)
- func (s *ServiceOp) Delete(ctx context.Context, input *DeleteStatefulNodeInput) (*DeleteStatefulNodeOutput, error)
- func (s *ServiceOp) DetachDataDisk(ctx context.Context, input *DetachStatefulNodeDataDiskInput) (*DetachStatefulNodeDataDiskOutput, error)
- func (s *ServiceOp) GetState(ctx context.Context, input *GetStatefulNodeStateInput) (*GetStatefulNodeStateOutput, error)
- func (s *ServiceOp) ImportVM(ctx context.Context, input *ImportVMStatefulNodeInput) (*ImportVMStatefulNodeOutput, error)
- func (s *ServiceOp) List(ctx context.Context, input *ListStatefulNodesInput) (*ListStatefulNodesOutput, error)
- func (s *ServiceOp) Read(ctx context.Context, input *ReadStatefulNodeInput) (*ReadStatefulNodeOutput, error)
- func (s *ServiceOp) Update(ctx context.Context, input *UpdateStatefulNodeInput) (*UpdateStatefulNodeOutput, error)
- func (s *ServiceOp) UpdateState(ctx context.Context, input *UpdateStatefulNodeStateInput) (*UpdateStatefulNodeStateOutput, error)
- type Signal
- type SourceVault
- type StatefulNode
- func (o StatefulNode) MarshalJSON() ([]byte, error)
- func (o *StatefulNode) SetCompute(v *Compute) *StatefulNode
- func (o *StatefulNode) SetDescription(v *string) *StatefulNode
- func (o *StatefulNode) SetHealth(v *Health) *StatefulNode
- func (o *StatefulNode) SetID(v *string) *StatefulNode
- func (o *StatefulNode) SetName(v *string) *StatefulNode
- func (o *StatefulNode) SetPersistence(v *Persistence) *StatefulNode
- func (o *StatefulNode) SetRegion(v *string) *StatefulNode
- func (o *StatefulNode) SetResourceGroupName(v *string) *StatefulNode
- func (o *StatefulNode) SetScheduling(v *Scheduling) *StatefulNode
- func (o *StatefulNode) SetStrategy(v *Strategy) *StatefulNode
- type StatefulNodeImport
- type StatefulNodeState
- type Strategy
- func (o Strategy) MarshalJSON() ([]byte, error)
- func (o *Strategy) SetDrainingTimeout(v *int) *Strategy
- func (o *Strategy) SetFallbackToOnDemand(v *bool) *Strategy
- func (o *Strategy) SetOptimizationWindows(v []string) *Strategy
- func (o *Strategy) SetPreferredLifecycle(v *string) *Strategy
- func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy
- func (o *Strategy) SetSignals(v []*Signal) *Strategy
- type Tag
- type Task
- type UpdateStatefulNodeInput
- type UpdateStatefulNodeOutput
- type UpdateStatefulNodeStateInput
- type UpdateStatefulNodeStateOutput
- type VMSizes
- type VaultCertificate
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 (o *AdditionalIPConfiguration) SetName(v *string) *AdditionalIPConfiguration
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 (o *ApplicationSecurityGroup) SetName(v *string) *ApplicationSecurityGroup
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 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 (*Compute) SetLaunchSpecification ¶
func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
func (*Compute) SetPreferredZone ¶
func (*Compute) SetVMSizes ¶
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 ¶
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"` }
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 (*Extension) SetAPIVersion ¶
func (*Extension) SetMinorVersionAutoUpgrade ¶
func (*Extension) SetProtectedSettings ¶
func (*Extension) SetPublicSettings ¶
func (*Extension) SetPublisher ¶
type Gallery ¶
type Gallery struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` GalleryName *string `json:"galleryName,omitempty"` ImageName *string `json:"imageName,omitempty"` VersionName *string `json:"versionName,omitempty"` // contains filtered or unexported fields }
func (Gallery) MarshalJSON ¶
func (*Gallery) SetGalleryName ¶
func (*Gallery) SetImageName ¶
func (*Gallery) SetResourceGroupName ¶
func (*Gallery) SetVersionName ¶
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 (*Health) SetAutoHealing ¶
func (*Health) SetGracePeriod ¶
func (*Health) SetHealthCheckTypes ¶
func (*Health) SetUnhealthyDuration ¶
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 (*Image) SetCustom ¶
func (o *Image) SetCustom(v *CustomImage) *Image
func (*Image) SetGallery ¶
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"` // 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 (o *LaunchSpecification) SetImage(v *Image) *LaunchSpecification
func (*LaunchSpecification) SetLoadBalancersConfig ¶
func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification
func (*LaunchSpecification) SetLogin ¶
func (o *LaunchSpecification) SetLogin(v *Login) *LaunchSpecification
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 (o *LaunchSpecification) SetOSDisk(v *OSDisk) *LaunchSpecification
func (*LaunchSpecification) SetSecrets ¶
func (o *LaunchSpecification) SetSecrets(v []*Secret) *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
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:"sku,omitempty"` BackendPoolNames []string `json:"backendPoolNames,omitempty"` // contains filtered or unexported fields }
func (LoadBalancer) MarshalJSON ¶
func (o LoadBalancer) MarshalJSON() ([]byte, error)
func (*LoadBalancer) SeBackendPoolNames ¶
func (o *LoadBalancer) SeBackendPoolNames(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 (*Login) SetPassword ¶
func (*Login) SetSSHPublicKey ¶
func (*Login) SetUserName ¶
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 (o *ManagedServiceIdentity) SetName(v *string) *ManagedServiceIdentity
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 (*Network) SetNetworkInterfaces ¶
func (o *Network) SetNetworkInterfaces(v []*NetworkInterface) *Network
func (*Network) SetResourceGroupName ¶
func (*Network) SetVirtualNetworkName ¶
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 (o *NetworkSecurityGroup) SetName(v *string) *NetworkSecurityGroup
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"` // contains filtered or unexported fields }
func (OSDisk) MarshalJSON ¶
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 PublicIP ¶
type PublicIP struct { Name *string `json:"name,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` // contains filtered or unexported fields }
func (PublicIP) MarshalJSON ¶
func (*PublicIP) SetResourceGroupName ¶
type ReadStatefulNodeInput ¶
type ReadStatefulNodeInput struct {
ID *string `json:"id,omitempty"`
}
type ReadStatefulNodeOutput ¶
type ReadStatefulNodeOutput struct {
StatefulNode *StatefulNode `json:"statefulNode,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 (*Secret) SetSourceVault ¶
func (o *Secret) SetSourceVault(v *SourceVault) *Secret
func (*Secret) SetVaultCertificates ¶
func (o *Secret) SetVaultCertificates(v []*VaultCertificate) *Secret
type Service ¶
type Service interface { Create(context.Context, *CreateStatefulNodeInput) (*CreateStatefulNodeOutput, error) Read(context.Context, *ReadStatefulNodeInput) (*ReadStatefulNodeOutput, error) Update(context.Context, *UpdateStatefulNodeInput) (*UpdateStatefulNodeOutput, error) Delete(context.Context, *DeleteStatefulNodeInput) (*DeleteStatefulNodeOutput, error) List(context.Context, *ListStatefulNodesInput) (*ListStatefulNodesOutput, error) UpdateState(context.Context, *UpdateStatefulNodeStateInput) (*UpdateStatefulNodeStateOutput, error) DetachDataDisk(context.Context, *DetachStatefulNodeDataDiskInput) (*DetachStatefulNodeDataDiskOutput, error) AttachDataDisk(context.Context, *AttachStatefulNodeDataDiskInput) (*AttachStatefulNodeDataDiskOutput, error) ImportVM(context.Context, *ImportVMStatefulNodeInput) (*ImportVMStatefulNodeOutput, error) GetState(context.Context, *GetStatefulNodeStateInput) (*GetStatefulNodeStateOutput, error) }
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) AttachDataDisk ¶
func (s *ServiceOp) AttachDataDisk(ctx context.Context, input *AttachStatefulNodeDataDiskInput) (*AttachStatefulNodeDataDiskOutput, error)
func (*ServiceOp) Create ¶
func (s *ServiceOp) Create(ctx context.Context, input *CreateStatefulNodeInput) (*CreateStatefulNodeOutput, error)
func (*ServiceOp) Delete ¶
func (s *ServiceOp) Delete(ctx context.Context, input *DeleteStatefulNodeInput) (*DeleteStatefulNodeOutput, error)
func (*ServiceOp) DetachDataDisk ¶
func (s *ServiceOp) DetachDataDisk(ctx context.Context, input *DetachStatefulNodeDataDiskInput) (*DetachStatefulNodeDataDiskOutput, error)
func (*ServiceOp) GetState ¶ added in v1.119.0
func (s *ServiceOp) GetState(ctx context.Context, input *GetStatefulNodeStateInput) (*GetStatefulNodeStateOutput, error)
func (*ServiceOp) ImportVM ¶
func (s *ServiceOp) ImportVM(ctx context.Context, input *ImportVMStatefulNodeInput) (*ImportVMStatefulNodeOutput, error)
func (*ServiceOp) List ¶
func (s *ServiceOp) List(ctx context.Context, input *ListStatefulNodesInput) (*ListStatefulNodesOutput, error)
func (*ServiceOp) Read ¶
func (s *ServiceOp) Read(ctx context.Context, input *ReadStatefulNodeInput) (*ReadStatefulNodeOutput, error)
func (*ServiceOp) Update ¶
func (s *ServiceOp) Update(ctx context.Context, input *UpdateStatefulNodeInput) (*UpdateStatefulNodeOutput, error)
func (*ServiceOp) UpdateState ¶
func (s *ServiceOp) UpdateState(ctx context.Context, input *UpdateStatefulNodeStateInput) (*UpdateStatefulNodeStateOutput, error)
type Signal ¶
type Signal struct { Type *string `json:"type,omitempty"` Timeout *int `json:"timeout,omitempty"` // contains filtered or unexported fields }
func (Signal) MarshalJSON ¶
func (*Signal) SetTimeout ¶
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 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"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetDrainingTimeout ¶
func (*Strategy) SetFallbackToOnDemand ¶
func (*Strategy) SetOptimizationWindows ¶
func (*Strategy) SetPreferredLifecycle ¶
func (*Strategy) SetRevertToSpot ¶
func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy
func (*Strategy) SetSignals ¶
type Tag ¶
type Tag struct { TagKey *string `json:"tagKey,omitempty"` TagValue *string `json:"tagValue,omitempty"` // contains filtered or unexported fields }
func (Tag) MarshalJSON ¶
func (*Tag) SetTagValue ¶
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 (*Task) SetCronExpression ¶
func (*Task) SetIsEnabled ¶
type UpdateStatefulNodeInput ¶
type UpdateStatefulNodeInput struct {
StatefulNode *StatefulNode `json:"statefulNode,omitempty"`
}
type UpdateStatefulNodeOutput ¶
type UpdateStatefulNodeOutput struct {
StatefulNode *StatefulNode `json:"statefulNode,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"` // contains filtered or unexported fields }
func (VMSizes) MarshalJSON ¶
func (*VMSizes) SetOnDemandSizes ¶
func (*VMSizes) SetPreferredSpotSizes ¶
func (*VMSizes) SetSpotSizes ¶
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
Click to show internal directories.
Click to hide internal directories.