hanaonazure

package
v33.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hanaonazure implements the Azure ARM Hanaonazure service API version 2017-11-03-preview.

HANA on Azure Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Hanaonazure
	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 BaseClient

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

BaseClient is the base client for Hanaonazure.

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.

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 HANA instance

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 HANA operation information

type ErrorResponse

type ErrorResponse struct {
	// Code - Error code
	Code *string `json:"code,omitempty"`
	// Message - Error message indicating why the operation failed.
	Message *string `json:"message,omitempty"`
}

ErrorResponse describes the format of Error response.

type HanaHardwareTypeNamesEnum

type HanaHardwareTypeNamesEnum string

HanaHardwareTypeNamesEnum enumerates the values for hana hardware type names enum.

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

func PossibleHanaHardwareTypeNamesEnumValues

func PossibleHanaHardwareTypeNamesEnumValues() []HanaHardwareTypeNamesEnum

PossibleHanaHardwareTypeNamesEnumValues returns an array of possible values for the HanaHardwareTypeNamesEnum const type.

type HanaInstance

type HanaInstance struct {
	autorest.Response `json:"-"`
	// HanaInstanceProperties - HANA instance properties
	*HanaInstanceProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Resource tags
	Tags map[string]*string `json:"tags"`
}

HanaInstance HANA instance info on Azure (ARM properties and HANA properties)

func (HanaInstance) MarshalJSON

func (hi HanaInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HanaInstance.

func (*HanaInstance) UnmarshalJSON

func (hi *HanaInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for HanaInstance struct.

type HanaInstancePowerStateEnum

type HanaInstancePowerStateEnum string

HanaInstancePowerStateEnum enumerates the values for hana instance power state enum.

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

func PossibleHanaInstancePowerStateEnumValues

func PossibleHanaInstancePowerStateEnumValues() []HanaInstancePowerStateEnum

PossibleHanaInstancePowerStateEnumValues returns an array of possible values for the HanaInstancePowerStateEnum const type.

type HanaInstanceProperties

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

HanaInstanceProperties describes the properties of a HANA instance.

type HanaInstanceSizeNamesEnum

type HanaInstanceSizeNamesEnum string

HanaInstanceSizeNamesEnum enumerates the values for hana instance size names enum.

const (
	// S144 ...
	S144 HanaInstanceSizeNamesEnum = "S144"
	// S144m ...
	S144m HanaInstanceSizeNamesEnum = "S144m"
	// S192 ...
	S192 HanaInstanceSizeNamesEnum = "S192"
	// S192m ...
	S192m HanaInstanceSizeNamesEnum = "S192m"
	// S192xm ...
	S192xm HanaInstanceSizeNamesEnum = "S192xm"
	// S224m ...
	S224m HanaInstanceSizeNamesEnum = "S224m"
	// S224o ...
	S224o HanaInstanceSizeNamesEnum = "S224o"
	// S224om ...
	S224om HanaInstanceSizeNamesEnum = "S224om"
	// S224oxm ...
	S224oxm HanaInstanceSizeNamesEnum = "S224oxm"
	// S224oxxm ...
	S224oxxm HanaInstanceSizeNamesEnum = "S224oxxm"
	// S384 ...
	S384 HanaInstanceSizeNamesEnum = "S384"
	// S384m ...
	S384m HanaInstanceSizeNamesEnum = "S384m"
	// S384xm ...
	S384xm HanaInstanceSizeNamesEnum = "S384xm"
	// S384xxm ...
	S384xxm HanaInstanceSizeNamesEnum = "S384xxm"
	// S576m ...
	S576m HanaInstanceSizeNamesEnum = "S576m"
	// S576xm ...
	S576xm HanaInstanceSizeNamesEnum = "S576xm"
	// S72 ...
	S72 HanaInstanceSizeNamesEnum = "S72"
	// S72m ...
	S72m HanaInstanceSizeNamesEnum = "S72m"
	// S768 ...
	S768 HanaInstanceSizeNamesEnum = "S768"
	// S768m ...
	S768m HanaInstanceSizeNamesEnum = "S768m"
	// S768xm ...
	S768xm HanaInstanceSizeNamesEnum = "S768xm"
	// S96 ...
	S96 HanaInstanceSizeNamesEnum = "S96"
	// S960m ...
	S960m HanaInstanceSizeNamesEnum = "S960m"
)

func PossibleHanaInstanceSizeNamesEnumValues

func PossibleHanaInstanceSizeNamesEnumValues() []HanaInstanceSizeNamesEnum

PossibleHanaInstanceSizeNamesEnumValues returns an array of possible values for the HanaInstanceSizeNamesEnum const type.

type HanaInstancesClient

type HanaInstancesClient struct {
	BaseClient
}

HanaInstancesClient is the HANA on Azure Client

func NewHanaInstancesClient

func NewHanaInstancesClient(subscriptionID string) HanaInstancesClient

NewHanaInstancesClient creates an instance of the HanaInstancesClient client.

func NewHanaInstancesClientWithBaseURI

func NewHanaInstancesClientWithBaseURI(baseURI string, subscriptionID string) HanaInstancesClient

NewHanaInstancesClientWithBaseURI creates an instance of the HanaInstancesClient client.

func (HanaInstancesClient) Create

func (client HanaInstancesClient) Create(ctx context.Context, resourceGroupName string, hanaInstanceName string, hanaInstanceParameter HanaInstance) (result HanaInstancesCreateFuture, err error)

Create creates a SAP HANA instance for the specified subscription, resource group, and instance name. Parameters: resourceGroupName - name of the resource group. hanaInstanceName - name of the SAP HANA on Azure instance. hanaInstanceParameter - request body representing a HanaInstance

func (HanaInstancesClient) CreatePreparer

func (client HanaInstancesClient) CreatePreparer(ctx context.Context, resourceGroupName string, hanaInstanceName string, hanaInstanceParameter HanaInstance) (*http.Request, error)

CreatePreparer prepares the Create request.

func (HanaInstancesClient) CreateResponder

func (client HanaInstancesClient) CreateResponder(resp *http.Response) (result HanaInstance, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (HanaInstancesClient) CreateSender

func (client HanaInstancesClient) CreateSender(req *http.Request) (future HanaInstancesCreateFuture, err error)

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

func (HanaInstancesClient) Delete

func (client HanaInstancesClient) Delete(ctx context.Context, resourceGroupName string, hanaInstanceName string) (result HanaInstancesDeleteFuture, err error)

Delete deletes a SAP HANA instance with the specified subscription, resource group, and instance name. Parameters: resourceGroupName - name of the resource group. hanaInstanceName - name of the SAP HANA on Azure instance.

func (HanaInstancesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (HanaInstancesClient) DeleteResponder

func (client HanaInstancesClient) 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 (HanaInstancesClient) DeleteSender

func (client HanaInstancesClient) DeleteSender(req *http.Request) (future HanaInstancesDeleteFuture, err error)

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

func (HanaInstancesClient) Get

func (client HanaInstancesClient) Get(ctx context.Context, resourceGroupName string, hanaInstanceName string) (result HanaInstance, err error)

Get gets properties of a SAP HANA instance for the specified subscription, resource group, and instance name. Parameters: resourceGroupName - name of the resource group. hanaInstanceName - name of the SAP HANA on Azure instance.

func (HanaInstancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (HanaInstancesClient) GetResponder

func (client HanaInstancesClient) GetResponder(resp *http.Response) (result HanaInstance, err error)

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

func (HanaInstancesClient) GetSender

func (client HanaInstancesClient) 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 (HanaInstancesClient) List

func (client HanaInstancesClient) List(ctx context.Context) (result HanaInstancesListResultPage, err error)

List gets a list of SAP HANA instances in the specified subscription. The operations returns various properties of each SAP HANA on Azure instance.

func (HanaInstancesClient) ListByResourceGroup

func (client HanaInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result HanaInstancesListResultPage, err error)

ListByResourceGroup gets a list of SAP HANA instances in the specified subscription and the resource group. The operations returns various properties of each SAP HANA on Azure instance. Parameters: resourceGroupName - name of the resource group.

func (HanaInstancesClient) ListByResourceGroupComplete

func (client HanaInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result HanaInstancesListResultIterator, err error)

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

func (HanaInstancesClient) ListByResourceGroupPreparer

func (client HanaInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (HanaInstancesClient) ListByResourceGroupResponder

func (client HanaInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result HanaInstancesListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (HanaInstancesClient) ListByResourceGroupSender

func (client HanaInstancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (HanaInstancesClient) ListComplete

func (client HanaInstancesClient) ListComplete(ctx context.Context) (result HanaInstancesListResultIterator, err error)

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

func (HanaInstancesClient) ListPreparer

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

ListPreparer prepares the List request.

func (HanaInstancesClient) ListResponder

func (client HanaInstancesClient) ListResponder(resp *http.Response) (result HanaInstancesListResult, err error)

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

func (HanaInstancesClient) ListSender

func (client HanaInstancesClient) 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 (HanaInstancesClient) Restart

func (client HanaInstancesClient) Restart(ctx context.Context, resourceGroupName string, hanaInstanceName string) (result HanaInstancesRestartFuture, err error)

Restart the operation to restart a SAP HANA instance. Parameters: resourceGroupName - name of the resource group. hanaInstanceName - name of the SAP HANA on Azure instance.

func (HanaInstancesClient) RestartPreparer

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

RestartPreparer prepares the Restart request.

func (HanaInstancesClient) RestartResponder

func (client HanaInstancesClient) 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 (HanaInstancesClient) RestartSender

func (client HanaInstancesClient) RestartSender(req *http.Request) (future HanaInstancesRestartFuture, err error)

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

func (HanaInstancesClient) Shutdown

func (client HanaInstancesClient) Shutdown(ctx context.Context, resourceGroupName string, hanaInstanceName string) (result HanaInstancesShutdownFuture, err error)

Shutdown the operation to shutdown a SAP HANA instance. Parameters: resourceGroupName - name of the resource group. hanaInstanceName - name of the SAP HANA on Azure instance.

func (HanaInstancesClient) ShutdownPreparer

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

ShutdownPreparer prepares the Shutdown request.

func (HanaInstancesClient) ShutdownResponder

func (client HanaInstancesClient) 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 (HanaInstancesClient) ShutdownSender

func (client HanaInstancesClient) ShutdownSender(req *http.Request) (future HanaInstancesShutdownFuture, err error)

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

func (HanaInstancesClient) Start

func (client HanaInstancesClient) Start(ctx context.Context, resourceGroupName string, hanaInstanceName string) (result HanaInstancesStartFuture, err error)

Start the operation to start a SAP HANA instance. Parameters: resourceGroupName - name of the resource group. hanaInstanceName - name of the SAP HANA on Azure instance.

func (HanaInstancesClient) StartPreparer

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

StartPreparer prepares the Start request.

func (HanaInstancesClient) StartResponder

func (client HanaInstancesClient) 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 (HanaInstancesClient) StartSender

func (client HanaInstancesClient) StartSender(req *http.Request) (future HanaInstancesStartFuture, err error)

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

func (HanaInstancesClient) Update

func (client HanaInstancesClient) Update(ctx context.Context, resourceGroupName string, hanaInstanceName string, tagsParameter Tags) (result HanaInstance, err error)

Update patches the Tags field of a SAP HANA instance for the specified subscription, resource group, and instance name. Parameters: resourceGroupName - name of the resource group. hanaInstanceName - name of the SAP HANA on Azure instance. tagsParameter - request body that only contains the new Tags field

func (HanaInstancesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (HanaInstancesClient) UpdateResponder

func (client HanaInstancesClient) UpdateResponder(resp *http.Response) (result HanaInstance, err error)

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

func (HanaInstancesClient) UpdateSender

func (client HanaInstancesClient) 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 HanaInstancesCreateFuture

type HanaInstancesCreateFuture struct {
	azure.Future
}

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

func (*HanaInstancesCreateFuture) Result

func (future *HanaInstancesCreateFuture) Result(client HanaInstancesClient) (hi HanaInstance, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type HanaInstancesDeleteFuture

type HanaInstancesDeleteFuture struct {
	azure.Future
}

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

func (*HanaInstancesDeleteFuture) Result

func (future *HanaInstancesDeleteFuture) Result(client HanaInstancesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type HanaInstancesListResult

type HanaInstancesListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of SAP HANA on Azure instances.
	Value *[]HanaInstance `json:"value,omitempty"`
	// NextLink - The URL to get the next set of HANA instances.
	NextLink *string `json:"nextLink,omitempty"`
}

HanaInstancesListResult the response from the List HANA Instances operation.

func (HanaInstancesListResult) IsEmpty

func (hilr HanaInstancesListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HanaInstancesListResultIterator

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

HanaInstancesListResultIterator provides access to a complete listing of HanaInstance values.

func NewHanaInstancesListResultIterator

func NewHanaInstancesListResultIterator(page HanaInstancesListResultPage) HanaInstancesListResultIterator

Creates a new instance of the HanaInstancesListResultIterator type.

func (*HanaInstancesListResultIterator) 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 (*HanaInstancesListResultIterator) NextWithContext

func (iter *HanaInstancesListResultIterator) 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 (HanaInstancesListResultIterator) NotDone

func (iter HanaInstancesListResultIterator) NotDone() bool

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

func (HanaInstancesListResultIterator) Response

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

func (HanaInstancesListResultIterator) Value

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

type HanaInstancesListResultPage

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

HanaInstancesListResultPage contains a page of HanaInstance values.

func NewHanaInstancesListResultPage

func NewHanaInstancesListResultPage(getNextPage func(context.Context, HanaInstancesListResult) (HanaInstancesListResult, error)) HanaInstancesListResultPage

Creates a new instance of the HanaInstancesListResultPage type.

func (*HanaInstancesListResultPage) Next

func (page *HanaInstancesListResultPage) Next() error

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 (*HanaInstancesListResultPage) NextWithContext

func (page *HanaInstancesListResultPage) 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 (HanaInstancesListResultPage) NotDone

func (page HanaInstancesListResultPage) NotDone() bool

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

func (HanaInstancesListResultPage) Response

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

func (HanaInstancesListResultPage) Values

func (page HanaInstancesListResultPage) Values() []HanaInstance

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

type HanaInstancesRestartFuture

type HanaInstancesRestartFuture struct {
	azure.Future
}

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

func (*HanaInstancesRestartFuture) Result

func (future *HanaInstancesRestartFuture) Result(client HanaInstancesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type HanaInstancesShutdownFuture

type HanaInstancesShutdownFuture struct {
	azure.Future
}

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

func (*HanaInstancesShutdownFuture) Result

func (future *HanaInstancesShutdownFuture) Result(client HanaInstancesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type HanaInstancesStartFuture

type HanaInstancesStartFuture struct {
	azure.Future
}

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

func (*HanaInstancesStartFuture) Result

func (future *HanaInstancesStartFuture) Result(client HanaInstancesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type HanaProvisioningStatesEnum

type HanaProvisioningStatesEnum string

HanaProvisioningStatesEnum enumerates the values for hana provisioning states enum.

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

func PossibleHanaProvisioningStatesEnumValues

func PossibleHanaProvisioningStatesEnumValues() []HanaProvisioningStatesEnum

PossibleHanaProvisioningStatesEnumValues returns an array of possible values for the HanaProvisioningStatesEnum const type.

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 HanaHardwareTypeNamesEnum `json:"hardwareType,omitempty"`
	// HanaInstanceSize - READ-ONLY; Specifies the HANA instance SKU. Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S96', 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m', 'S224o', 'S224m', 'S224om', 'S224oxm', 'S224oxxm'
	HanaInstanceSize HanaInstanceSizeNamesEnum `json:"hanaInstanceSize,omitempty"`
}

HardwareProfile specifies the hardware settings for the HANA instance.

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 MonitoringDetails

type MonitoringDetails struct {
	// HanaSubnet - ARM ID of an Azure Subnet with access to the HANA instance.
	HanaSubnet *string `json:"hanaSubnet,omitempty"`
	// HanaHostname - Hostname of the HANA Instance blade.
	HanaHostname *string `json:"hanaHostname,omitempty"`
	// HanaDbName - Name of the database itself.
	HanaDbName *string `json:"hanaDbName,omitempty"`
	// HanaDbSQLPort - The port number of the tenant DB. Used to connect to the DB.
	HanaDbSQLPort *int32 `json:"hanaDbSqlPort,omitempty"`
	// HanaDbUsername - Username for the HANA database to login to for monitoring
	HanaDbUsername *string `json:"hanaDbUsername,omitempty"`
	// HanaDbPassword - Password for the HANA database to login for monitoring
	HanaDbPassword *string `json:"hanaDbPassword,omitempty"`
}

MonitoringDetails details needed to monitor a Hana Instance

type NetworkProfile

type NetworkProfile struct {
	// NetworkInterfaces - Specifies the network interfaces for the HANA 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 HANA instance disks.

type OSProfile

type OSProfile struct {
	// ComputerName - Specifies the host OS name of the HANA 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 HANA instance.

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 HANA operation information
	Display *Display `json:"display,omitempty"`
}

Operation HANA operation information

type OperationList

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

OperationList list of HANA operations

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the HANA on Azure 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.

func (OperationsClient) List

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

List gets a list of SAP HANA 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 Resource

type Resource struct {
	// ID - READ-ONLY; Resource ID
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Resource tags
	Tags map[string]*string `json:"tags"`
}

Resource the resource model definition.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type SapMonitor

type SapMonitor struct {
	autorest.Response `json:"-"`
	// SapMonitorProperties - SAP monitor properties
	*SapMonitorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Resource tags
	Tags map[string]*string `json:"tags"`
}

SapMonitor SAP monitor info on Azure (ARM properties and SAP monitor properties)

func (SapMonitor) MarshalJSON

func (sm SapMonitor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SapMonitor.

func (*SapMonitor) UnmarshalJSON

func (sm *SapMonitor) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SapMonitor struct.

type SapMonitorListResult

type SapMonitorListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of SAP monitors.
	Value *[]SapMonitor `json:"value,omitempty"`
	// NextLink - The URL to get the next set of SAP monitors.
	NextLink *string `json:"nextLink,omitempty"`
}

SapMonitorListResult the response from the List SAP monitors operation.

func (SapMonitorListResult) IsEmpty

func (smlr SapMonitorListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SapMonitorListResultIterator

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

SapMonitorListResultIterator provides access to a complete listing of SapMonitor values.

func NewSapMonitorListResultIterator

func NewSapMonitorListResultIterator(page SapMonitorListResultPage) SapMonitorListResultIterator

Creates a new instance of the SapMonitorListResultIterator type.

func (*SapMonitorListResultIterator) Next

func (iter *SapMonitorListResultIterator) Next() error

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 (*SapMonitorListResultIterator) NextWithContext

func (iter *SapMonitorListResultIterator) 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 (SapMonitorListResultIterator) NotDone

func (iter SapMonitorListResultIterator) NotDone() bool

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

func (SapMonitorListResultIterator) Response

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

func (SapMonitorListResultIterator) Value

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

type SapMonitorListResultPage

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

SapMonitorListResultPage contains a page of SapMonitor values.

func NewSapMonitorListResultPage

func NewSapMonitorListResultPage(getNextPage func(context.Context, SapMonitorListResult) (SapMonitorListResult, error)) SapMonitorListResultPage

Creates a new instance of the SapMonitorListResultPage type.

func (*SapMonitorListResultPage) Next

func (page *SapMonitorListResultPage) Next() error

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 (*SapMonitorListResultPage) NextWithContext

func (page *SapMonitorListResultPage) 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 (SapMonitorListResultPage) NotDone

func (page SapMonitorListResultPage) NotDone() bool

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

func (SapMonitorListResultPage) Response

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

func (SapMonitorListResultPage) Values

func (page SapMonitorListResultPage) Values() []SapMonitor

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

type SapMonitorProperties

type SapMonitorProperties struct {
	// HanaSubnet - Specifies the SAP monitor unique ID.
	HanaSubnet *string `json:"hanaSubnet,omitempty"`
	// HanaHostname - Hostname of the HANA instance.
	HanaHostname *string `json:"hanaHostname,omitempty"`
	// HanaDbName - Database name of the HANA instance.
	HanaDbName *string `json:"hanaDbName,omitempty"`
	// HanaDbSQLPort - Database port of the HANA instance.
	HanaDbSQLPort *int32 `json:"hanaDbSqlPort,omitempty"`
	// HanaDbUsername - Database username of the HANA instance.
	HanaDbUsername *string `json:"hanaDbUsername,omitempty"`
	// HanaDbPassword - Database password of the HANA instance.
	HanaDbPassword *string `json:"hanaDbPassword,omitempty"`
	// HanaDbPasswordKeyVaultURL - KeyVault URL link to the password for the HANA database.
	HanaDbPasswordKeyVaultURL *string `json:"hanaDbPasswordKeyVaultUrl,omitempty"`
	// HanaDbCredentialsMsiID - MSI ID passed by customer which has access to customer's KeyVault and to be assigned to the Collector VM.
	HanaDbCredentialsMsiID *string `json:"hanaDbCredentialsMsiId,omitempty"`
	// KeyVaultID - Key Vault ID containing customer's HANA credentials.
	KeyVaultID *string `json:"keyVaultId,omitempty"`
	// ProvisioningState - READ-ONLY; State of provisioning of the HanaInstance. Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'
	ProvisioningState HanaProvisioningStatesEnum `json:"provisioningState,omitempty"`
	// ManagedResourceGroupName - READ-ONLY; The name of the resource group the SAP Monitor resources get deployed into.
	ManagedResourceGroupName *string `json:"managedResourceGroupName,omitempty"`
	// LogAnalyticsWorkspaceArmID - READ-ONLY; The ARM ID of the Log Analytics Workspace that is used for monitoring
	LogAnalyticsWorkspaceArmID *string `json:"logAnalyticsWorkspaceArmId,omitempty"`
}

SapMonitorProperties describes the properties of a SAP monitor.

type SapMonitorsClient

type SapMonitorsClient struct {
	BaseClient
}

SapMonitorsClient is the HANA on Azure Client

func NewSapMonitorsClient

func NewSapMonitorsClient(subscriptionID string) SapMonitorsClient

NewSapMonitorsClient creates an instance of the SapMonitorsClient client.

func NewSapMonitorsClientWithBaseURI

func NewSapMonitorsClientWithBaseURI(baseURI string, subscriptionID string) SapMonitorsClient

NewSapMonitorsClientWithBaseURI creates an instance of the SapMonitorsClient client.

func (SapMonitorsClient) Create

func (client SapMonitorsClient) Create(ctx context.Context, resourceGroupName string, sapMonitorName string, sapMonitorParameter SapMonitor) (result SapMonitorsCreateFuture, err error)

Create creates a SAP monitor for the specified subscription, resource group, and resource name. Parameters: resourceGroupName - name of the resource group. sapMonitorName - name of the SAP monitor resource. sapMonitorParameter - request body representing a SAP Monitor

func (SapMonitorsClient) CreatePreparer

func (client SapMonitorsClient) CreatePreparer(ctx context.Context, resourceGroupName string, sapMonitorName string, sapMonitorParameter SapMonitor) (*http.Request, error)

CreatePreparer prepares the Create request.

func (SapMonitorsClient) CreateResponder

func (client SapMonitorsClient) CreateResponder(resp *http.Response) (result SapMonitor, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (SapMonitorsClient) CreateSender

func (client SapMonitorsClient) CreateSender(req *http.Request) (future SapMonitorsCreateFuture, err error)

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

func (SapMonitorsClient) Delete

func (client SapMonitorsClient) Delete(ctx context.Context, resourceGroupName string, sapMonitorName string) (result SapMonitorsDeleteFuture, err error)

Delete deletes a SAP monitor with the specified subscription, resource group, and monitor name. Parameters: resourceGroupName - name of the resource group. sapMonitorName - name of the SAP monitor resource.

func (SapMonitorsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SapMonitorsClient) DeleteResponder

func (client SapMonitorsClient) 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 (SapMonitorsClient) DeleteSender

func (client SapMonitorsClient) DeleteSender(req *http.Request) (future SapMonitorsDeleteFuture, err error)

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

func (SapMonitorsClient) Get

func (client SapMonitorsClient) Get(ctx context.Context, resourceGroupName string, sapMonitorName string) (result SapMonitor, err error)

Get gets properties of a SAP monitor for the specified subscription, resource group, and resource name. Parameters: resourceGroupName - name of the resource group. sapMonitorName - name of the SAP monitor resource.

func (SapMonitorsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SapMonitorsClient) GetResponder

func (client SapMonitorsClient) GetResponder(resp *http.Response) (result SapMonitor, err error)

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

func (SapMonitorsClient) GetSender

func (client SapMonitorsClient) 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 (SapMonitorsClient) List

func (client SapMonitorsClient) List(ctx context.Context) (result SapMonitorListResultPage, err error)

List gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.

func (SapMonitorsClient) ListComplete

func (client SapMonitorsClient) ListComplete(ctx context.Context) (result SapMonitorListResultIterator, err error)

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

func (SapMonitorsClient) ListPreparer

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

ListPreparer prepares the List request.

func (SapMonitorsClient) ListResponder

func (client SapMonitorsClient) ListResponder(resp *http.Response) (result SapMonitorListResult, err error)

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

func (SapMonitorsClient) ListSender

func (client SapMonitorsClient) 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 (SapMonitorsClient) Update

func (client SapMonitorsClient) Update(ctx context.Context, resourceGroupName string, sapMonitorName string, tagsParameter Tags) (result SapMonitor, err error)

Update patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name. Parameters: resourceGroupName - name of the resource group. sapMonitorName - name of the SAP monitor resource. tagsParameter - request body that only contains the new Tags field

func (SapMonitorsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (SapMonitorsClient) UpdateResponder

func (client SapMonitorsClient) UpdateResponder(resp *http.Response) (result SapMonitor, err error)

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

func (SapMonitorsClient) UpdateSender

func (client SapMonitorsClient) 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 SapMonitorsCreateFuture

type SapMonitorsCreateFuture struct {
	azure.Future
}

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

func (*SapMonitorsCreateFuture) Result

func (future *SapMonitorsCreateFuture) Result(client SapMonitorsClient) (sm SapMonitor, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SapMonitorsDeleteFuture

type SapMonitorsDeleteFuture struct {
	azure.Future
}

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

func (*SapMonitorsDeleteFuture) Result

func (future *SapMonitorsDeleteFuture) Result(client SapMonitorsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

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 the hana instance.
	OsDisks *[]Disk `json:"osDisks,omitempty"`
}

StorageProfile specifies the storage settings for the HANA instance disks.

type Tags

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

Tags tags field of the HANA instance.

func (Tags) MarshalJSON

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

MarshalJSON is the custom marshaler for Tags.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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