Documentation ¶
Overview ¶
Package hanaonazure implements the Azure ARM Hanaonazure service API version 2017-11-03-preview.
HANA on Azure Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type Disk
- type Display
- type ErrorResponse
- type HanaHardwareTypeNamesEnum
- type HanaInstance
- type HanaInstancePowerStateEnum
- type HanaInstanceProperties
- type HanaInstanceSizeNamesEnum
- type HanaInstancesClient
- func (client HanaInstancesClient) Get(ctx context.Context, resourceGroupName string, hanaInstanceName string) (result HanaInstance, err error)
- func (client HanaInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, hanaInstanceName string) (*http.Request, error)
- func (client HanaInstancesClient) GetResponder(resp *http.Response) (result HanaInstance, err error)
- func (client HanaInstancesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client HanaInstancesClient) List(ctx context.Context) (result HanaInstancesListResultPage, err error)
- func (client HanaInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result HanaInstancesListResultPage, err error)
- func (client HanaInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result HanaInstancesListResultIterator, err error)
- func (client HanaInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client HanaInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result HanaInstancesListResult, err error)
- func (client HanaInstancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client HanaInstancesClient) ListComplete(ctx context.Context) (result HanaInstancesListResultIterator, err error)
- func (client HanaInstancesClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client HanaInstancesClient) ListResponder(resp *http.Response) (result HanaInstancesListResult, err error)
- func (client HanaInstancesClient) ListSender(req *http.Request) (*http.Response, error)
- func (client HanaInstancesClient) Restart(ctx context.Context, resourceGroupName string, hanaInstanceName string) (result autorest.Response, err error)
- func (client HanaInstancesClient) RestartPreparer(ctx context.Context, resourceGroupName string, hanaInstanceName string) (*http.Request, error)
- func (client HanaInstancesClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)
- func (client HanaInstancesClient) RestartSender(req *http.Request) (*http.Response, error)
- type HanaInstancesListResult
- type HanaInstancesListResultIterator
- func (iter *HanaInstancesListResultIterator) Next() error
- func (iter *HanaInstancesListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter HanaInstancesListResultIterator) NotDone() bool
- func (iter HanaInstancesListResultIterator) Response() HanaInstancesListResult
- func (iter HanaInstancesListResultIterator) Value() HanaInstance
- type HanaInstancesListResultPage
- func (page *HanaInstancesListResultPage) Next() error
- func (page *HanaInstancesListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page HanaInstancesListResultPage) NotDone() bool
- func (page HanaInstancesListResultPage) Response() HanaInstancesListResult
- func (page HanaInstancesListResultPage) Values() []HanaInstance
- type HardwareProfile
- type IPAddress
- type NetworkProfile
- type OSProfile
- type Operation
- type OperationList
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationList, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Resource
- type StorageProfile
Constants ¶
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 ¶
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 - 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 - 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 - 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 - 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 - 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 - 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 - Resource ID ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` // Type - Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - 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 - Specifies the HANA instance unique ID. HanaInstanceID *string `json:"hanaInstanceId,omitempty"` // PowerState - Resource power state. Possible values include: 'Starting', 'Started', 'Stopping', 'Stopped', 'Restarting', 'Unknown' PowerState HanaInstancePowerStateEnum `json:"powerState,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" // 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" // 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) 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 ¶
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 ¶
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 ¶
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 autorest.Response, 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 ¶
RestartSender sends the Restart request. The method will close the http.Response Body if it receives 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 ¶
func (iter *HanaInstancesListResultIterator) 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 (*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 ¶
func (iter HanaInstancesListResultIterator) Response() HanaInstancesListResult
Response returns the raw server response from the last page request.
func (HanaInstancesListResultIterator) Value ¶
func (iter HanaInstancesListResultIterator) Value() HanaInstance
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 ¶
func (page HanaInstancesListResultPage) Response() HanaInstancesListResult
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 HardwareProfile ¶
type HardwareProfile struct { // HardwareType - Name of the hardware type (vendor and/or their product name). Possible values include: 'CiscoUCS', 'HPE' HardwareType HanaHardwareTypeNamesEnum `json:"hardwareType,omitempty"` // HanaInstanceSize - Specifies the HANA instance SKU. Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m' 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 interaface.
type NetworkProfile ¶
type NetworkProfile struct { // NetworkInterfaces - Specifies the network interfaces for the HANA instance. NetworkInterfaces *[]IPAddress `json:"networkInterfaces,omitempty"` // CircuitID - 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 - This property allows you to specify the type of the OS. OsType *string `json:"osType,omitempty"` // Version - Specifies version of operating system. Version *string `json:"version,omitempty"` }
OSProfile specifies the operating system settings for the HANA instance.
type Operation ¶
type Operation struct { // Name - 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 ¶
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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Resource ¶
type Resource struct { // ID - Resource ID ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` // Type - Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
Resource the resource model definition.
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type StorageProfile ¶
type StorageProfile struct { // NfsIPAddress - 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.