cluster

package
v0.20240516.1080701 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster Documentation

The cluster SDK allows for interaction with the Azure Resource Manager Service azurestackhci (API Version 2024-01-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster"

Client Initialization

client := cluster.NewClusterClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ClusterClient.CreateIdentity

ctx := context.TODO()
id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

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

Example Usage: ClusterClient.ExtendSoftwareAssuranceBenefit

ctx := context.TODO()
id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

payload := cluster.SoftwareAssuranceChangeRequest{
	// ...
}


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

Example Usage: ClusterClient.UploadCertificate

ctx := context.TODO()
id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

payload := cluster.UploadCertificateRequest{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForClusterNodeType

func PossibleValuesForClusterNodeType() []string

func PossibleValuesForConnectivityStatus

func PossibleValuesForConnectivityStatus() []string

func PossibleValuesForDiagnosticLevel

func PossibleValuesForDiagnosticLevel() []string

func PossibleValuesForImdsAttestation

func PossibleValuesForImdsAttestation() []string

func PossibleValuesForOemActivation

func PossibleValuesForOemActivation() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSoftwareAssuranceIntent

func PossibleValuesForSoftwareAssuranceIntent() []string

func PossibleValuesForSoftwareAssuranceStatus

func PossibleValuesForSoftwareAssuranceStatus() []string

func PossibleValuesForStatus

func PossibleValuesForStatus() []string

func PossibleValuesForWindowsServerSubscription

func PossibleValuesForWindowsServerSubscription() []string

func ValidateClusterID

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

ValidateClusterID checks that 'input' can be parsed as a Cluster ID

Types

type Cluster

type Cluster struct {
	Id         *string                            `json:"id,omitempty"`
	Identity   *identity.SystemAndUserAssignedMap `json:"identity,omitempty"`
	Location   string                             `json:"location"`
	Name       *string                            `json:"name,omitempty"`
	Properties *ClusterProperties                 `json:"properties,omitempty"`
	SystemData *systemdata.SystemData             `json:"systemData,omitempty"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type ClusterClient

type ClusterClient struct {
	Client *resourcemanager.Client
}

func NewClusterClientWithBaseURI

func NewClusterClientWithBaseURI(sdkApi sdkEnv.Api) (*ClusterClient, error)

func (ClusterClient) CreateIdentity

func (c ClusterClient) CreateIdentity(ctx context.Context, id ClusterId) (result CreateIdentityOperationResponse, err error)

CreateIdentity ...

func (ClusterClient) CreateIdentityThenPoll

func (c ClusterClient) CreateIdentityThenPoll(ctx context.Context, id ClusterId) error

CreateIdentityThenPoll performs CreateIdentity then polls until it's completed

func (ClusterClient) ExtendSoftwareAssuranceBenefit

ExtendSoftwareAssuranceBenefit ...

func (ClusterClient) ExtendSoftwareAssuranceBenefitThenPoll

func (c ClusterClient) ExtendSoftwareAssuranceBenefitThenPoll(ctx context.Context, id ClusterId, input SoftwareAssuranceChangeRequest) error

ExtendSoftwareAssuranceBenefitThenPoll performs ExtendSoftwareAssuranceBenefit then polls until it's completed

func (ClusterClient) UploadCertificate

UploadCertificate ...

func (ClusterClient) UploadCertificateThenPoll

func (c ClusterClient) UploadCertificateThenPoll(ctx context.Context, id ClusterId, input UploadCertificateRequest) error

UploadCertificateThenPoll performs UploadCertificate then polls until it's completed

type ClusterDesiredProperties

type ClusterDesiredProperties struct {
	DiagnosticLevel           *DiagnosticLevel           `json:"diagnosticLevel,omitempty"`
	WindowsServerSubscription *WindowsServerSubscription `json:"windowsServerSubscription,omitempty"`
}

type ClusterId

type ClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ClusterId is a struct representing the Resource ID for a Cluster

func NewClusterID

func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId

NewClusterID returns a new ClusterId struct

func ParseClusterID

func ParseClusterID(input string) (*ClusterId, error)

ParseClusterID parses 'input' into a ClusterId

func ParseClusterIDInsensitively

func ParseClusterIDInsensitively(input string) (*ClusterId, error)

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

func (*ClusterId) FromParseResult

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

func (ClusterId) ID

func (id ClusterId) ID() string

ID returns the formatted Cluster ID

func (ClusterId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Cluster ID

func (ClusterId) String

func (id ClusterId) String() string

String returns a human-readable description of this Cluster ID

type ClusterIdentityResponse

type ClusterIdentityResponse struct {
	Properties *ClusterIdentityResponseProperties `json:"properties,omitempty"`
}

type ClusterIdentityResponseProperties

type ClusterIdentityResponseProperties struct {
	AadApplicationObjectId      *string `json:"aadApplicationObjectId,omitempty"`
	AadClientId                 *string `json:"aadClientId,omitempty"`
	AadServicePrincipalObjectId *string `json:"aadServicePrincipalObjectId,omitempty"`
	AadTenantId                 *string `json:"aadTenantId,omitempty"`
}

type ClusterNode

type ClusterNode struct {
	CoreCount                 *float64                   `json:"coreCount,omitempty"`
	EhcResourceId             *string                    `json:"ehcResourceId,omitempty"`
	Id                        *float64                   `json:"id,omitempty"`
	LastLicensingTimestamp    *string                    `json:"lastLicensingTimestamp,omitempty"`
	Manufacturer              *string                    `json:"manufacturer,omitempty"`
	MemoryInGiB               *float64                   `json:"memoryInGiB,omitempty"`
	Model                     *string                    `json:"model,omitempty"`
	Name                      *string                    `json:"name,omitempty"`
	NodeType                  *ClusterNodeType           `json:"nodeType,omitempty"`
	OemActivation             *OemActivation             `json:"oemActivation,omitempty"`
	OsDisplayVersion          *string                    `json:"osDisplayVersion,omitempty"`
	OsName                    *string                    `json:"osName,omitempty"`
	OsVersion                 *string                    `json:"osVersion,omitempty"`
	SerialNumber              *string                    `json:"serialNumber,omitempty"`
	WindowsServerSubscription *WindowsServerSubscription `json:"windowsServerSubscription,omitempty"`
}

func (*ClusterNode) GetLastLicensingTimestampAsTime

func (o *ClusterNode) GetLastLicensingTimestampAsTime() (*time.Time, error)

func (*ClusterNode) SetLastLicensingTimestampAsTime

func (o *ClusterNode) SetLastLicensingTimestampAsTime(input time.Time)

type ClusterNodeType

type ClusterNodeType string
const (
	ClusterNodeTypeFirstParty ClusterNodeType = "FirstParty"
	ClusterNodeTypeThirdParty ClusterNodeType = "ThirdParty"
)

func (*ClusterNodeType) UnmarshalJSON

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

type ClusterProperties

type ClusterProperties struct {
	AadApplicationObjectId             *string                             `json:"aadApplicationObjectId,omitempty"`
	AadClientId                        *string                             `json:"aadClientId,omitempty"`
	AadServicePrincipalObjectId        *string                             `json:"aadServicePrincipalObjectId,omitempty"`
	AadTenantId                        *string                             `json:"aadTenantId,omitempty"`
	BillingModel                       *string                             `json:"billingModel,omitempty"`
	CloudId                            *string                             `json:"cloudId,omitempty"`
	CloudManagementEndpoint            *string                             `json:"cloudManagementEndpoint,omitempty"`
	ConnectivityStatus                 *ConnectivityStatus                 `json:"connectivityStatus,omitempty"`
	DesiredProperties                  *ClusterDesiredProperties           `json:"desiredProperties,omitempty"`
	IsolatedVMAttestationConfiguration *IsolatedVMAttestationConfiguration `json:"isolatedVmAttestationConfiguration,omitempty"`
	LastBillingTimestamp               *string                             `json:"lastBillingTimestamp,omitempty"`
	LastSyncTimestamp                  *string                             `json:"lastSyncTimestamp,omitempty"`
	ProvisioningState                  *ProvisioningState                  `json:"provisioningState,omitempty"`
	RegistrationTimestamp              *string                             `json:"registrationTimestamp,omitempty"`
	ReportedProperties                 *ClusterReportedProperties          `json:"reportedProperties,omitempty"`
	ResourceProviderObjectId           *string                             `json:"resourceProviderObjectId,omitempty"`
	ServiceEndpoint                    *string                             `json:"serviceEndpoint,omitempty"`
	SoftwareAssuranceProperties        *SoftwareAssuranceProperties        `json:"softwareAssuranceProperties,omitempty"`
	Status                             *Status                             `json:"status,omitempty"`
	TrialDaysRemaining                 *float64                            `json:"trialDaysRemaining,omitempty"`
}

func (*ClusterProperties) GetLastBillingTimestampAsTime

func (o *ClusterProperties) GetLastBillingTimestampAsTime() (*time.Time, error)

func (*ClusterProperties) GetLastSyncTimestampAsTime

func (o *ClusterProperties) GetLastSyncTimestampAsTime() (*time.Time, error)

func (*ClusterProperties) GetRegistrationTimestampAsTime

func (o *ClusterProperties) GetRegistrationTimestampAsTime() (*time.Time, error)

func (*ClusterProperties) SetLastBillingTimestampAsTime

func (o *ClusterProperties) SetLastBillingTimestampAsTime(input time.Time)

func (*ClusterProperties) SetLastSyncTimestampAsTime

func (o *ClusterProperties) SetLastSyncTimestampAsTime(input time.Time)

func (*ClusterProperties) SetRegistrationTimestampAsTime

func (o *ClusterProperties) SetRegistrationTimestampAsTime(input time.Time)

type ClusterReportedProperties

type ClusterReportedProperties struct {
	ClusterId             *string          `json:"clusterId,omitempty"`
	ClusterName           *string          `json:"clusterName,omitempty"`
	ClusterType           *ClusterNodeType `json:"clusterType,omitempty"`
	ClusterVersion        *string          `json:"clusterVersion,omitempty"`
	DiagnosticLevel       *DiagnosticLevel `json:"diagnosticLevel,omitempty"`
	ImdsAttestation       *ImdsAttestation `json:"imdsAttestation,omitempty"`
	LastUpdated           *string          `json:"lastUpdated,omitempty"`
	Manufacturer          *string          `json:"manufacturer,omitempty"`
	Nodes                 *[]ClusterNode   `json:"nodes,omitempty"`
	OemActivation         *OemActivation   `json:"oemActivation,omitempty"`
	SupportedCapabilities *[]string        `json:"supportedCapabilities,omitempty"`
}

func (*ClusterReportedProperties) GetLastUpdatedAsTime

func (o *ClusterReportedProperties) GetLastUpdatedAsTime() (*time.Time, error)

func (*ClusterReportedProperties) SetLastUpdatedAsTime

func (o *ClusterReportedProperties) SetLastUpdatedAsTime(input time.Time)

type ConnectivityStatus

type ConnectivityStatus string
const (
	ConnectivityStatusConnected            ConnectivityStatus = "Connected"
	ConnectivityStatusDisconnected         ConnectivityStatus = "Disconnected"
	ConnectivityStatusNotConnectedRecently ConnectivityStatus = "NotConnectedRecently"
	ConnectivityStatusNotSpecified         ConnectivityStatus = "NotSpecified"
	ConnectivityStatusNotYetRegistered     ConnectivityStatus = "NotYetRegistered"
	ConnectivityStatusPartiallyConnected   ConnectivityStatus = "PartiallyConnected"
)

func (*ConnectivityStatus) UnmarshalJSON

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

type CreateIdentityOperationResponse

type CreateIdentityOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ClusterIdentityResponse
}

type DiagnosticLevel

type DiagnosticLevel string
const (
	DiagnosticLevelBasic    DiagnosticLevel = "Basic"
	DiagnosticLevelEnhanced DiagnosticLevel = "Enhanced"
	DiagnosticLevelOff      DiagnosticLevel = "Off"
)

func (*DiagnosticLevel) UnmarshalJSON

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

type ExtendSoftwareAssuranceBenefitOperationResponse

type ExtendSoftwareAssuranceBenefitOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Cluster
}

type ImdsAttestation

type ImdsAttestation string
const (
	ImdsAttestationDisabled ImdsAttestation = "Disabled"
	ImdsAttestationEnabled  ImdsAttestation = "Enabled"
)

func (*ImdsAttestation) UnmarshalJSON

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

type IsolatedVMAttestationConfiguration

type IsolatedVMAttestationConfiguration struct {
	AttestationResourceId       *string `json:"attestationResourceId,omitempty"`
	AttestationServiceEndpoint  *string `json:"attestationServiceEndpoint,omitempty"`
	RelyingPartyServiceEndpoint *string `json:"relyingPartyServiceEndpoint,omitempty"`
}

type OemActivation

type OemActivation string
const (
	OemActivationDisabled OemActivation = "Disabled"
	OemActivationEnabled  OemActivation = "Enabled"
)

func (*OemActivation) UnmarshalJSON

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

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted           ProvisioningState = "Accepted"
	ProvisioningStateCanceled           ProvisioningState = "Canceled"
	ProvisioningStateConnected          ProvisioningState = "Connected"
	ProvisioningStateCreating           ProvisioningState = "Creating"
	ProvisioningStateDeleted            ProvisioningState = "Deleted"
	ProvisioningStateDeleting           ProvisioningState = "Deleting"
	ProvisioningStateDisableInProgress  ProvisioningState = "DisableInProgress"
	ProvisioningStateDisconnected       ProvisioningState = "Disconnected"
	ProvisioningStateFailed             ProvisioningState = "Failed"
	ProvisioningStateInProgress         ProvisioningState = "InProgress"
	ProvisioningStateMoving             ProvisioningState = "Moving"
	ProvisioningStateNotSpecified       ProvisioningState = "NotSpecified"
	ProvisioningStatePartiallyConnected ProvisioningState = "PartiallyConnected"
	ProvisioningStatePartiallySucceeded ProvisioningState = "PartiallySucceeded"
	ProvisioningStateProvisioning       ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded          ProvisioningState = "Succeeded"
	ProvisioningStateUpdating           ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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

type RawCertificateData

type RawCertificateData struct {
	Certificates *[]string `json:"certificates,omitempty"`
}

type SoftwareAssuranceChangeRequest

type SoftwareAssuranceChangeRequest struct {
	Properties *SoftwareAssuranceChangeRequestProperties `json:"properties,omitempty"`
}

type SoftwareAssuranceChangeRequestProperties

type SoftwareAssuranceChangeRequestProperties struct {
	SoftwareAssuranceIntent *SoftwareAssuranceIntent `json:"softwareAssuranceIntent,omitempty"`
}

type SoftwareAssuranceIntent

type SoftwareAssuranceIntent string
const (
	SoftwareAssuranceIntentDisable SoftwareAssuranceIntent = "Disable"
	SoftwareAssuranceIntentEnable  SoftwareAssuranceIntent = "Enable"
)

func (*SoftwareAssuranceIntent) UnmarshalJSON

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

type SoftwareAssuranceProperties

type SoftwareAssuranceProperties struct {
	LastUpdated             *string                  `json:"lastUpdated,omitempty"`
	SoftwareAssuranceIntent *SoftwareAssuranceIntent `json:"softwareAssuranceIntent,omitempty"`
	SoftwareAssuranceStatus *SoftwareAssuranceStatus `json:"softwareAssuranceStatus,omitempty"`
}

func (*SoftwareAssuranceProperties) GetLastUpdatedAsTime

func (o *SoftwareAssuranceProperties) GetLastUpdatedAsTime() (*time.Time, error)

func (*SoftwareAssuranceProperties) SetLastUpdatedAsTime

func (o *SoftwareAssuranceProperties) SetLastUpdatedAsTime(input time.Time)

type SoftwareAssuranceStatus

type SoftwareAssuranceStatus string
const (
	SoftwareAssuranceStatusDisabled SoftwareAssuranceStatus = "Disabled"
	SoftwareAssuranceStatusEnabled  SoftwareAssuranceStatus = "Enabled"
)

func (*SoftwareAssuranceStatus) UnmarshalJSON

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

type Status

type Status string
const (
	StatusConnectedRecently    Status = "ConnectedRecently"
	StatusDeploymentFailed     Status = "DeploymentFailed"
	StatusDeploymentInProgress Status = "DeploymentInProgress"
	StatusDeploymentSuccess    Status = "DeploymentSuccess"
	StatusDisconnected         Status = "Disconnected"
	StatusError                Status = "Error"
	StatusNotConnectedRecently Status = "NotConnectedRecently"
	StatusNotSpecified         Status = "NotSpecified"
	StatusNotYetRegistered     Status = "NotYetRegistered"
	StatusValidationFailed     Status = "ValidationFailed"
	StatusValidationInProgress Status = "ValidationInProgress"
	StatusValidationSuccess    Status = "ValidationSuccess"
)

func (*Status) UnmarshalJSON

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

type UploadCertificateOperationResponse

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

type UploadCertificateRequest

type UploadCertificateRequest struct {
	Properties *RawCertificateData `json:"properties,omitempty"`
}

type WindowsServerSubscription

type WindowsServerSubscription string
const (
	WindowsServerSubscriptionDisabled WindowsServerSubscription = "Disabled"
	WindowsServerSubscriptionEnabled  WindowsServerSubscription = "Enabled"
)

func (*WindowsServerSubscription) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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