hanaonazure

package
v15.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package hanaonazure implements the Azure ARM Hanaonazure service API version 2017-06-15-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 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"
)

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 HanaInstanceProperties

type HanaInstanceProperties struct {
	// HardwareType - Name of the hardware type (vendor and/or thrie product name). Possible values include: 'CiscoUCS'
	HardwareType HanaHardwareTypeNamesEnum `json:"hardwareType,omitempty"`
	// HanaInstanceGenericProperties - Properties of an SAP HANA on Azure instance. Currently an arbitrary JSON object because the RP is currently in active design and development.
	HanaInstanceGenericProperties interface{} `json:"hanaInstanceGenericProperties,omitempty"`
}

HanaInstanceProperties HANA instance properties

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.

resourceGroupName is name of the resource group. hanaInstanceName is 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.

resourceGroupName is 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.

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 (*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.

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 (*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.

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

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

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

MarshalJSON is the custom marshaler for Resource.

Jump to

Keyboard shortcuts

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