baremetalinfrastructure

package
v61.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package baremetalinfrastructure implements the Azure ARM Baremetalinfrastructure service API version 2020-08-06-preview.

The BareMetalInfrastructure Management client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Baremetalinfrastructure
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AzureBareMetalHardwareTypeNamesEnum

type AzureBareMetalHardwareTypeNamesEnum string

AzureBareMetalHardwareTypeNamesEnum enumerates the values for azure bare metal hardware type names enum.

const (
	// CiscoUCS ...
	CiscoUCS AzureBareMetalHardwareTypeNamesEnum = "Cisco_UCS"
	// HPE ...
	HPE AzureBareMetalHardwareTypeNamesEnum = "HPE"
)

func PossibleAzureBareMetalHardwareTypeNamesEnumValues

func PossibleAzureBareMetalHardwareTypeNamesEnumValues() []AzureBareMetalHardwareTypeNamesEnum

PossibleAzureBareMetalHardwareTypeNamesEnumValues returns an array of possible values for the AzureBareMetalHardwareTypeNamesEnum const type.

type AzureBareMetalInstance

type AzureBareMetalInstance struct {
	autorest.Response `json:"-"`
	// AzureBareMetalInstanceProperties - AzureBareMetal instance properties
	*AzureBareMetalInstanceProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

AzureBareMetalInstance azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)

func (AzureBareMetalInstance) MarshalJSON

func (abmi AzureBareMetalInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureBareMetalInstance.

func (*AzureBareMetalInstance) UnmarshalJSON

func (abmi *AzureBareMetalInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AzureBareMetalInstance struct.

type AzureBareMetalInstancePowerStateEnum

type AzureBareMetalInstancePowerStateEnum string

AzureBareMetalInstancePowerStateEnum enumerates the values for azure bare metal instance power state enum.

const (
	// Restarting ...
	Restarting AzureBareMetalInstancePowerStateEnum = "restarting"
	// Started ...
	Started AzureBareMetalInstancePowerStateEnum = "started"
	// Starting ...
	Starting AzureBareMetalInstancePowerStateEnum = "starting"
	// Stopped ...
	Stopped AzureBareMetalInstancePowerStateEnum = "stopped"
	// Stopping ...
	Stopping AzureBareMetalInstancePowerStateEnum = "stopping"
	// Unknown ...
	Unknown AzureBareMetalInstancePowerStateEnum = "unknown"
)

func PossibleAzureBareMetalInstancePowerStateEnumValues

func PossibleAzureBareMetalInstancePowerStateEnumValues() []AzureBareMetalInstancePowerStateEnum

PossibleAzureBareMetalInstancePowerStateEnumValues returns an array of possible values for the AzureBareMetalInstancePowerStateEnum const type.

type AzureBareMetalInstanceProperties

type AzureBareMetalInstanceProperties struct {
	// HardwareProfile - Specifies the hardware settings for the AzureBareMetal instance.
	HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"`
	// StorageProfile - Specifies the storage settings for the AzureBareMetal instance disks.
	StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
	// OsProfile - Specifies the operating system settings for the AzureBareMetal instance.
	OsProfile *OSProfile `json:"osProfile,omitempty"`
	// NetworkProfile - Specifies the network settings for the AzureBareMetal instance.
	NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
	// AzureBareMetalInstanceID - READ-ONLY; Specifies the AzureBareMetal instance unique ID.
	AzureBareMetalInstanceID *string `json:"azureBareMetalInstanceId,omitempty"`
	// PowerState - READ-ONLY; Resource power state. Possible values include: 'Starting', 'Started', 'Stopping', 'Stopped', 'Restarting', 'Unknown'
	PowerState AzureBareMetalInstancePowerStateEnum `json:"powerState,omitempty"`
	// ProximityPlacementGroup - READ-ONLY; Resource proximity placement group
	ProximityPlacementGroup *string `json:"proximityPlacementGroup,omitempty"`
	// HwRevision - READ-ONLY; Hardware revision of an AzureBareMetal instance
	HwRevision *string `json:"hwRevision,omitempty"`
	// PartnerNodeID - ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance
	PartnerNodeID *string `json:"partnerNodeId,omitempty"`
	// ProvisioningState - READ-ONLY; State of provisioning of the AzureBareMetalInstance. Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'
	ProvisioningState AzureBareMetalProvisioningStatesEnum `json:"provisioningState,omitempty"`
}

AzureBareMetalInstanceProperties describes the properties of an AzureBareMetal instance.

func (AzureBareMetalInstanceProperties) MarshalJSON

func (abmip AzureBareMetalInstanceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureBareMetalInstanceProperties.

type AzureBareMetalInstanceSizeNamesEnum

type AzureBareMetalInstanceSizeNamesEnum string

AzureBareMetalInstanceSizeNamesEnum enumerates the values for azure bare metal instance size names enum.

const (
	// S112 ...
	S112 AzureBareMetalInstanceSizeNamesEnum = "S112"
	// S144 ...
	S144 AzureBareMetalInstanceSizeNamesEnum = "S144"
	// S144m ...
	S144m AzureBareMetalInstanceSizeNamesEnum = "S144m"
	// S192 ...
	S192 AzureBareMetalInstanceSizeNamesEnum = "S192"
	// S192m ...
	S192m AzureBareMetalInstanceSizeNamesEnum = "S192m"
	// S192xm ...
	S192xm AzureBareMetalInstanceSizeNamesEnum = "S192xm"
	// S224 ...
	S224 AzureBareMetalInstanceSizeNamesEnum = "S224"
	// S224m ...
	S224m AzureBareMetalInstanceSizeNamesEnum = "S224m"
	// S224om ...
	S224om AzureBareMetalInstanceSizeNamesEnum = "S224om"
	// S224oo ...
	S224oo AzureBareMetalInstanceSizeNamesEnum = "S224oo"
	// S224oom ...
	S224oom AzureBareMetalInstanceSizeNamesEnum = "S224oom"
	// S224ooo ...
	S224ooo AzureBareMetalInstanceSizeNamesEnum = "S224ooo"
	// S384 ...
	S384 AzureBareMetalInstanceSizeNamesEnum = "S384"
	// S384m ...
	S384m AzureBareMetalInstanceSizeNamesEnum = "S384m"
	// S384xm ...
	S384xm AzureBareMetalInstanceSizeNamesEnum = "S384xm"
	// S384xxm ...
	S384xxm AzureBareMetalInstanceSizeNamesEnum = "S384xxm"
	// S448 ...
	S448 AzureBareMetalInstanceSizeNamesEnum = "S448"
	// S448m ...
	S448m AzureBareMetalInstanceSizeNamesEnum = "S448m"
	// S448om ...
	S448om AzureBareMetalInstanceSizeNamesEnum = "S448om"
	// S448oo ...
	S448oo AzureBareMetalInstanceSizeNamesEnum = "S448oo"
	// S448oom ...
	S448oom AzureBareMetalInstanceSizeNamesEnum = "S448oom"
	// S448ooo ...
	S448ooo AzureBareMetalInstanceSizeNamesEnum = "S448ooo"
	// S576m ...
	S576m AzureBareMetalInstanceSizeNamesEnum = "S576m"
	// S576xm ...
	S576xm AzureBareMetalInstanceSizeNamesEnum = "S576xm"
	// S672 ...
	S672 AzureBareMetalInstanceSizeNamesEnum = "S672"
	// S672m ...
	S672m AzureBareMetalInstanceSizeNamesEnum = "S672m"
	// S672om ...
	S672om AzureBareMetalInstanceSizeNamesEnum = "S672om"
	// S672oo ...
	S672oo AzureBareMetalInstanceSizeNamesEnum = "S672oo"
	// S672oom ...
	S672oom AzureBareMetalInstanceSizeNamesEnum = "S672oom"
	// S672ooo ...
	S672ooo AzureBareMetalInstanceSizeNamesEnum = "S672ooo"
	// S72 ...
	S72 AzureBareMetalInstanceSizeNamesEnum = "S72"
	// S72m ...
	S72m AzureBareMetalInstanceSizeNamesEnum = "S72m"
	// S768 ...
	S768 AzureBareMetalInstanceSizeNamesEnum = "S768"
	// S768m ...
	S768m AzureBareMetalInstanceSizeNamesEnum = "S768m"
	// S768xm ...
	S768xm AzureBareMetalInstanceSizeNamesEnum = "S768xm"
	// S896 ...
	S896 AzureBareMetalInstanceSizeNamesEnum = "S896"
	// S896m ...
	S896m AzureBareMetalInstanceSizeNamesEnum = "S896m"
	// S896om ...
	S896om AzureBareMetalInstanceSizeNamesEnum = "S896om"
	// S896oo ...
	S896oo AzureBareMetalInstanceSizeNamesEnum = "S896oo"
	// S896oom ...
	S896oom AzureBareMetalInstanceSizeNamesEnum = "S896oom"
	// S896ooo ...
	S896ooo AzureBareMetalInstanceSizeNamesEnum = "S896ooo"
	// S96 ...
	S96 AzureBareMetalInstanceSizeNamesEnum = "S96"
	// S960m ...
	S960m AzureBareMetalInstanceSizeNamesEnum = "S960m"
)

func PossibleAzureBareMetalInstanceSizeNamesEnumValues

func PossibleAzureBareMetalInstanceSizeNamesEnumValues() []AzureBareMetalInstanceSizeNamesEnum

PossibleAzureBareMetalInstanceSizeNamesEnumValues returns an array of possible values for the AzureBareMetalInstanceSizeNamesEnum const type.

type AzureBareMetalInstancesClient

type AzureBareMetalInstancesClient struct {
	BaseClient
}

AzureBareMetalInstancesClient is the the BareMetalInfrastructure Management client

func NewAzureBareMetalInstancesClient

func NewAzureBareMetalInstancesClient(subscriptionID string) AzureBareMetalInstancesClient

NewAzureBareMetalInstancesClient creates an instance of the AzureBareMetalInstancesClient client.

func NewAzureBareMetalInstancesClientWithBaseURI

func NewAzureBareMetalInstancesClientWithBaseURI(baseURI string, subscriptionID string) AzureBareMetalInstancesClient

NewAzureBareMetalInstancesClientWithBaseURI creates an instance of the AzureBareMetalInstancesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AzureBareMetalInstancesClient) Delete

func (client AzureBareMetalInstancesClient) Delete(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (result AzureBareMetalInstancesDeleteFuture, err error)

Delete deletes a Azure BareMetal instance with the specified subscription, resource group, and instance name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. azureBareMetalInstanceName - name of the Azure BareMetal on Azure instance.

func (AzureBareMetalInstancesClient) DeletePreparer

func (client AzureBareMetalInstancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AzureBareMetalInstancesClient) DeleteResponder

func (client AzureBareMetalInstancesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AzureBareMetalInstancesClient) Get

func (client AzureBareMetalInstancesClient) Get(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (result AzureBareMetalInstance, err error)

Get gets an Azure BareMetal instance for the specified subscription, resource group, and instance name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. azureBareMetalInstanceName - name of the Azure BareMetal on Azure instance.

func (AzureBareMetalInstancesClient) GetPreparer

func (client AzureBareMetalInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AzureBareMetalInstancesClient) GetResponder

func (client AzureBareMetalInstancesClient) GetResponder(resp *http.Response) (result AzureBareMetalInstance, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) GetSender

func (client AzureBareMetalInstancesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AzureBareMetalInstancesClient) List

func (client AzureBareMetalInstancesClient) List(ctx context.Context, resourceGroupName string) (result AzureBareMetalInstancesListResultPage, err error)

List gets a list of AzureBareMetal instances in the specified subscription and resource group Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (AzureBareMetalInstancesClient) ListBySubscription

func (client AzureBareMetalInstancesClient) ListBySubscription(ctx context.Context) (result AzureBareMetalInstancesListResultPage, err error)

ListBySubscription gets a list of AzureBareMetal instances in the specified subscription. The operations returns various properties of each Azure BareMetal instance.

func (AzureBareMetalInstancesClient) ListBySubscriptionComplete

func (client AzureBareMetalInstancesClient) ListBySubscriptionComplete(ctx context.Context) (result AzureBareMetalInstancesListResultIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (AzureBareMetalInstancesClient) ListBySubscriptionPreparer

func (client AzureBareMetalInstancesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (AzureBareMetalInstancesClient) ListBySubscriptionResponder

func (client AzureBareMetalInstancesClient) ListBySubscriptionResponder(resp *http.Response) (result AzureBareMetalInstancesListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) ListBySubscriptionSender

func (client AzureBareMetalInstancesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (AzureBareMetalInstancesClient) ListComplete

func (client AzureBareMetalInstancesClient) ListComplete(ctx context.Context, resourceGroupName string) (result AzureBareMetalInstancesListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AzureBareMetalInstancesClient) ListPreparer

func (client AzureBareMetalInstancesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (AzureBareMetalInstancesClient) ListResponder

func (client AzureBareMetalInstancesClient) ListResponder(resp *http.Response) (result AzureBareMetalInstancesListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) ListSender

func (client AzureBareMetalInstancesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AzureBareMetalInstancesClient) Restart

func (client AzureBareMetalInstancesClient) Restart(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (result AzureBareMetalInstancesRestartFuture, err error)

Restart the operation to restart an AzureBareMetal instance Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. azureBareMetalInstanceName - name of the Azure BareMetal on Azure instance.

func (AzureBareMetalInstancesClient) RestartPreparer

func (client AzureBareMetalInstancesClient) RestartPreparer(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (*http.Request, error)

RestartPreparer prepares the Restart request.

func (AzureBareMetalInstancesClient) RestartResponder

func (client AzureBareMetalInstancesClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)

RestartResponder handles the response to the Restart request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) RestartSender

func (client AzureBareMetalInstancesClient) RestartSender(req *http.Request) (future AzureBareMetalInstancesRestartFuture, err error)

RestartSender sends the Restart request. The method will close the http.Response Body if it receives an error.

func (AzureBareMetalInstancesClient) Shutdown

func (client AzureBareMetalInstancesClient) Shutdown(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (result AzureBareMetalInstancesShutdownFuture, err error)

Shutdown the operation to shutdown an AzureBareMetal instance Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. azureBareMetalInstanceName - name of the Azure BareMetal on Azure instance.

func (AzureBareMetalInstancesClient) ShutdownPreparer

func (client AzureBareMetalInstancesClient) ShutdownPreparer(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (*http.Request, error)

ShutdownPreparer prepares the Shutdown request.

func (AzureBareMetalInstancesClient) ShutdownResponder

func (client AzureBareMetalInstancesClient) ShutdownResponder(resp *http.Response) (result autorest.Response, err error)

ShutdownResponder handles the response to the Shutdown request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) ShutdownSender

func (client AzureBareMetalInstancesClient) ShutdownSender(req *http.Request) (future AzureBareMetalInstancesShutdownFuture, err error)

ShutdownSender sends the Shutdown request. The method will close the http.Response Body if it receives an error.

func (AzureBareMetalInstancesClient) Start

func (client AzureBareMetalInstancesClient) Start(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (result AzureBareMetalInstancesStartFuture, err error)

Start the operation to start an AzureBareMetal instance Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. azureBareMetalInstanceName - name of the Azure BareMetal on Azure instance.

func (AzureBareMetalInstancesClient) StartPreparer

func (client AzureBareMetalInstancesClient) StartPreparer(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string) (*http.Request, error)

StartPreparer prepares the Start request.

func (AzureBareMetalInstancesClient) StartResponder

func (client AzureBareMetalInstancesClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) StartSender

StartSender sends the Start request. The method will close the http.Response Body if it receives an error.

func (AzureBareMetalInstancesClient) Update

func (client AzureBareMetalInstancesClient) Update(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string, tagsParameter Tags) (result AzureBareMetalInstance, err error)

Update patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. azureBareMetalInstanceName - name of the Azure BareMetal on Azure instance. tagsParameter - request body that only contains the new Tags field

func (AzureBareMetalInstancesClient) UpdatePreparer

func (client AzureBareMetalInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string, tagsParameter Tags) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AzureBareMetalInstancesClient) UpdateResponder

func (client AzureBareMetalInstancesClient) UpdateResponder(resp *http.Response) (result AzureBareMetalInstance, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AzureBareMetalInstancesClient) UpdateSender

func (client AzureBareMetalInstancesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type AzureBareMetalInstancesDeleteFuture

type AzureBareMetalInstancesDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AzureBareMetalInstancesClient) (autorest.Response, error)
}

AzureBareMetalInstancesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AzureBareMetalInstancesDeleteFuture) UnmarshalJSON

func (future *AzureBareMetalInstancesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AzureBareMetalInstancesListResult

type AzureBareMetalInstancesListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of Azure BareMetal instances.
	Value *[]AzureBareMetalInstance `json:"value,omitempty"`
	// NextLink - The URL to get the next set of AzureBareMetal instances.
	NextLink *string `json:"nextLink,omitempty"`
}

AzureBareMetalInstancesListResult the response from the List AzureBareMetal Instances operation.

func (AzureBareMetalInstancesListResult) IsEmpty

func (abmilr AzureBareMetalInstancesListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AzureBareMetalInstancesListResultIterator

type AzureBareMetalInstancesListResultIterator struct {
	// contains filtered or unexported fields
}

AzureBareMetalInstancesListResultIterator provides access to a complete listing of AzureBareMetalInstance values.

func NewAzureBareMetalInstancesListResultIterator

func NewAzureBareMetalInstancesListResultIterator(page AzureBareMetalInstancesListResultPage) AzureBareMetalInstancesListResultIterator

Creates a new instance of the AzureBareMetalInstancesListResultIterator type.

func (*AzureBareMetalInstancesListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AzureBareMetalInstancesListResultIterator) NextWithContext

func (iter *AzureBareMetalInstancesListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AzureBareMetalInstancesListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (AzureBareMetalInstancesListResultIterator) Response

Response returns the raw server response from the last page request.

func (AzureBareMetalInstancesListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AzureBareMetalInstancesListResultPage

type AzureBareMetalInstancesListResultPage struct {
	// contains filtered or unexported fields
}

AzureBareMetalInstancesListResultPage contains a page of AzureBareMetalInstance values.

func NewAzureBareMetalInstancesListResultPage

Creates a new instance of the AzureBareMetalInstancesListResultPage type.

func (*AzureBareMetalInstancesListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AzureBareMetalInstancesListResultPage) NextWithContext

func (page *AzureBareMetalInstancesListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AzureBareMetalInstancesListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AzureBareMetalInstancesListResultPage) Response

Response returns the raw server response from the last page request.

func (AzureBareMetalInstancesListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type AzureBareMetalInstancesRestartFuture

type AzureBareMetalInstancesRestartFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AzureBareMetalInstancesClient) (autorest.Response, error)
}

AzureBareMetalInstancesRestartFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AzureBareMetalInstancesRestartFuture) UnmarshalJSON

func (future *AzureBareMetalInstancesRestartFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AzureBareMetalInstancesShutdownFuture

type AzureBareMetalInstancesShutdownFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AzureBareMetalInstancesClient) (autorest.Response, error)
}

AzureBareMetalInstancesShutdownFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AzureBareMetalInstancesShutdownFuture) UnmarshalJSON

func (future *AzureBareMetalInstancesShutdownFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AzureBareMetalInstancesStartFuture

type AzureBareMetalInstancesStartFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AzureBareMetalInstancesClient) (autorest.Response, error)
}

AzureBareMetalInstancesStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AzureBareMetalInstancesStartFuture) UnmarshalJSON

func (future *AzureBareMetalInstancesStartFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AzureBareMetalProvisioningStatesEnum

type AzureBareMetalProvisioningStatesEnum string

AzureBareMetalProvisioningStatesEnum enumerates the values for azure bare metal provisioning states enum.

const (
	// Accepted ...
	Accepted AzureBareMetalProvisioningStatesEnum = "Accepted"
	// Creating ...
	Creating AzureBareMetalProvisioningStatesEnum = "Creating"
	// Deleting ...
	Deleting AzureBareMetalProvisioningStatesEnum = "Deleting"
	// Failed ...
	Failed AzureBareMetalProvisioningStatesEnum = "Failed"
	// Migrating ...
	Migrating AzureBareMetalProvisioningStatesEnum = "Migrating"
	// Succeeded ...
	Succeeded AzureBareMetalProvisioningStatesEnum = "Succeeded"
	// Updating ...
	Updating AzureBareMetalProvisioningStatesEnum = "Updating"
)

func PossibleAzureBareMetalProvisioningStatesEnumValues

func PossibleAzureBareMetalProvisioningStatesEnumValues() []AzureBareMetalProvisioningStatesEnum

PossibleAzureBareMetalProvisioningStatesEnumValues returns an array of possible values for the AzureBareMetalProvisioningStatesEnum const type.

type AzureEntityResource

type AzureEntityResource struct {
	// Etag - READ-ONLY; Resource Etag.
	Etag *string `json:"etag,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

func (AzureEntityResource) MarshalJSON

func (aer AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEntityResource.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Baremetalinfrastructure.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Disk

type Disk struct {
	// Name - The disk name.
	Name *string `json:"name,omitempty"`
	// DiskSizeGB - Specifies the size of an empty data disk in gigabytes.
	DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
	// Lun - READ-ONLY; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
	Lun *int32 `json:"lun,omitempty"`
}

Disk specifies the disk information fo the AzureBareMetal instance

func (Disk) MarshalJSON

func (d Disk) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Disk.

type Display

type Display struct {
	// Provider - READ-ONLY; The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with "Microsoft" for 1st party services.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the “name” section.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies.
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views.
	Description *string `json:"description,omitempty"`
	// Origin - READ-ONLY; The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system'
	Origin *string `json:"origin,omitempty"`
}

Display detailed BareMetal operation information

func (Display) MarshalJSON

func (d Display) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Display.

type ErrorDefinition

type ErrorDefinition struct {
	// Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Description of the error.
	Message *string `json:"message,omitempty"`
	// Details - READ-ONLY; Internal error details.
	Details *[]ErrorDefinition `json:"details,omitempty"`
}

ErrorDefinition error definition.

func (ErrorDefinition) MarshalJSON

func (ed ErrorDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDefinition.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error details.
	Error *ErrorDefinition `json:"error,omitempty"`
}

ErrorResponse error response.

type HardwareProfile

type HardwareProfile struct {
	// HardwareType - READ-ONLY; Name of the hardware type (vendor and/or their product name). Possible values include: 'CiscoUCS', 'HPE'
	HardwareType AzureBareMetalHardwareTypeNamesEnum `json:"hardwareType,omitempty"`
	// AzureBareMetalInstanceSize - READ-ONLY; Specifies the AzureBareMetal instance SKU. Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S96', 'S112', 'S224', 'S224m', 'S224om', 'S224oo', 'S224oom', 'S224ooo', 'S384', 'S384m', 'S384xm', 'S384xxm', 'S448', 'S448m', 'S448om', 'S448oo', 'S448oom', 'S448ooo', 'S576m', 'S576xm', 'S672', 'S672m', 'S672om', 'S672oo', 'S672oom', 'S672ooo', 'S768', 'S768m', 'S768xm', 'S896', 'S896m', 'S896om', 'S896oo', 'S896oom', 'S896ooo', 'S960m'
	AzureBareMetalInstanceSize AzureBareMetalInstanceSizeNamesEnum `json:"azureBareMetalInstanceSize,omitempty"`
}

HardwareProfile specifies the hardware settings for the AzureBareMetal instance.

func (HardwareProfile) MarshalJSON

func (hp HardwareProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HardwareProfile.

type IPAddress

type IPAddress struct {
	// IPAddress - Specifies the IP address of the network interface.
	IPAddress *string `json:"ipAddress,omitempty"`
}

IPAddress specifies the IP address of the network interface.

type NetworkProfile

type NetworkProfile struct {
	// NetworkInterfaces - Specifies the network interfaces for the AzureBareMetal instance.
	NetworkInterfaces *[]IPAddress `json:"networkInterfaces,omitempty"`
	// CircuitID - READ-ONLY; Specifies the circuit id for connecting to express route.
	CircuitID *string `json:"circuitId,omitempty"`
}

NetworkProfile specifies the network settings for the AzureBareMetal instance disks.

func (NetworkProfile) MarshalJSON

func (np NetworkProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NetworkProfile.

type OSProfile

type OSProfile struct {
	// ComputerName - Specifies the host OS name of the AzureBareMetal instance.
	ComputerName *string `json:"computerName,omitempty"`
	// OsType - READ-ONLY; This property allows you to specify the type of the OS.
	OsType *string `json:"osType,omitempty"`
	// Version - READ-ONLY; Specifies version of operating system.
	Version *string `json:"version,omitempty"`
	// SSHPublicKey - Specifies the SSH public key used to access the operating system.
	SSHPublicKey *string `json:"sshPublicKey,omitempty"`
}

OSProfile specifies the operating system settings for the AzureBareMetal instance.

func (OSProfile) MarshalJSON

func (op OSProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OSProfile.

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service.
	Name *string `json:"name,omitempty"`
	// Display - Displayed AzureBareMetal operation information
	Display *Display `json:"display,omitempty"`
	// IsDataAction - indicates whether an operation is a data action or not.
	IsDataAction *bool `json:"isDataAction,omitempty"`
}

Operation azureBareMetal operation information

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

type OperationList

type OperationList struct {
	autorest.Response `json:"-"`
	// Value - List of AzureBareMetal operations
	Value *[]Operation `json:"value,omitempty"`
}

OperationList list of AzureBareMetal operations

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the the BareMetalInfrastructure Management client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationList, err error)

List gets a list of AzureBareMetal management operations.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Resource common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type Result

type Result struct {
	// SampleProperty - Sample property of type string
	SampleProperty *string `json:"sampleProperty,omitempty"`
}

Result sample result definition

type StorageProfile

type StorageProfile struct {
	// NfsIPAddress - READ-ONLY; IP Address to connect to storage.
	NfsIPAddress *string `json:"nfsIpAddress,omitempty"`
	// OsDisks - Specifies information about the operating system disk used by baremetal instance.
	OsDisks *[]Disk `json:"osDisks,omitempty"`
}

StorageProfile specifies the storage settings for the AzureBareMetal instance disks.

func (StorageProfile) MarshalJSON

func (sp StorageProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StorageProfile.

type Tags

type Tags struct {
	// Tags - Tags field of the AzureBareMetal instance.
	Tags map[string]*string `json:"tags"`
}

Tags tags field of the AzureBareMetal instance.

func (Tags) MarshalJSON

func (t Tags) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Tags.

type TrackedResource

type TrackedResource struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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