azuredata

package
v43.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package azuredata implements the Azure ARM Azuredata service API version 2019-07-24-preview.

The AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Azuredata
	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
	SubscriptionID1 string
}

BaseClient is the base client for Azuredata.

func New

func New(subscriptionID string, subscriptionID1 string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 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 CloudError

type CloudError struct {
	// Error - null
	Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError an error response from the Azure Data service.

type CloudErrorBody

type CloudErrorBody struct {
	// Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code *string `json:"code,omitempty"`
	// Message - A message describing the error, intended to be suitable for display in a user interface.
	Message *string `json:"message,omitempty"`
	// Target - The target of the particular error. For example, the name of the property in error.
	Target *string `json:"target,omitempty"`
	// Details - A list of additional details about the error.
	Details *[]CloudErrorBody `json:"details,omitempty"`
}

CloudErrorBody an error response from the Batch service.

type HybridDataManager

type HybridDataManager struct {
	autorest.Response `json:"-"`
	// Properties - null
	Properties interface{} `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

HybridDataManager hybrid data manager resource

func (HybridDataManager) MarshalJSON

func (hdm HybridDataManager) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HybridDataManager.

type HybridDataManagerListResult

type HybridDataManagerListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]HybridDataManager `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

HybridDataManagerListResult a list of HybridDataManager.

func (HybridDataManagerListResult) IsEmpty

func (hdmlr HybridDataManagerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HybridDataManagerListResultIterator

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

HybridDataManagerListResultIterator provides access to a complete listing of HybridDataManager values.

func NewHybridDataManagerListResultIterator

func NewHybridDataManagerListResultIterator(page HybridDataManagerListResultPage) HybridDataManagerListResultIterator

Creates a new instance of the HybridDataManagerListResultIterator type.

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

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

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

func (HybridDataManagerListResultIterator) Response

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

func (HybridDataManagerListResultIterator) Value

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

type HybridDataManagerListResultPage

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

HybridDataManagerListResultPage contains a page of HybridDataManager values.

func NewHybridDataManagerListResultPage

func NewHybridDataManagerListResultPage(getNextPage func(context.Context, HybridDataManagerListResult) (HybridDataManagerListResult, error)) HybridDataManagerListResultPage

Creates a new instance of the HybridDataManagerListResultPage type.

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

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

func (page HybridDataManagerListResultPage) NotDone() bool

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

func (HybridDataManagerListResultPage) Response

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

func (HybridDataManagerListResultPage) Values

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

type HybridDataManagerUpdate

type HybridDataManagerUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

HybridDataManagerUpdate an update to a HybridDataManager.

func (HybridDataManagerUpdate) MarshalJSON

func (hdmu HybridDataManagerUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HybridDataManagerUpdate.

type HybridDataManagersClient

type HybridDataManagersClient struct {
	BaseClient
}

HybridDataManagersClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

func NewHybridDataManagersClient

func NewHybridDataManagersClient(subscriptionID string, subscriptionID1 string) HybridDataManagersClient

NewHybridDataManagersClient creates an instance of the HybridDataManagersClient client.

func NewHybridDataManagersClientWithBaseURI

func NewHybridDataManagersClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) HybridDataManagersClient

NewHybridDataManagersClientWithBaseURI creates an instance of the HybridDataManagersClient 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 (HybridDataManagersClient) Create

func (client HybridDataManagersClient) Create(ctx context.Context, resourceGroupName string, hybridDataManagerName string) (result HybridDataManager, err error)

Create creates or replaces a hybridDataManager resource Parameters: resourceGroupName - the name of the Azure resource group hybridDataManagerName - name of HybridDataManagerName

func (HybridDataManagersClient) CreatePreparer

func (client HybridDataManagersClient) CreatePreparer(ctx context.Context, resourceGroupName string, hybridDataManagerName string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (HybridDataManagersClient) CreateResponder

func (client HybridDataManagersClient) CreateResponder(resp *http.Response) (result HybridDataManager, err error)

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

func (HybridDataManagersClient) CreateSender

func (client HybridDataManagersClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (HybridDataManagersClient) Delete

func (client HybridDataManagersClient) Delete(ctx context.Context, resourceGroupName string, hybridDataManagerName string) (result autorest.Response, err error)

Delete deletes a hybridDataManager resource Parameters: resourceGroupName - the name of the Azure resource group hybridDataManagerName - name of HybridDataManager

func (HybridDataManagersClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (HybridDataManagersClient) DeleteResponder

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

func (client HybridDataManagersClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (HybridDataManagersClient) Get

func (client HybridDataManagersClient) Get(ctx context.Context, resourceGroupName string, hybridDataManagerName string) (result HybridDataManager, err error)

Get retrieves a hybridDataManager resource Parameters: resourceGroupName - the name of the Azure resource group hybridDataManagerName - name of HybridDataManager

func (HybridDataManagersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (HybridDataManagersClient) GetResponder

func (client HybridDataManagersClient) GetResponder(resp *http.Response) (result HybridDataManager, err error)

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

func (HybridDataManagersClient) GetSender

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

List sends the list request.

func (HybridDataManagersClient) ListByResourceGroup

func (client HybridDataManagersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result HybridDataManagerListResultPage, err error)

ListByResourceGroup get a hybridDataManager list by Resource group name. Parameters: resourceGroupName - the name of the Azure resource group

func (HybridDataManagersClient) ListByResourceGroupComplete

func (client HybridDataManagersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result HybridDataManagerListResultIterator, err error)

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

func (HybridDataManagersClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (HybridDataManagersClient) ListByResourceGroupResponder

func (client HybridDataManagersClient) ListByResourceGroupResponder(resp *http.Response) (result HybridDataManagerListResult, err error)

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

func (HybridDataManagersClient) ListByResourceGroupSender

func (client HybridDataManagersClient) 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 (HybridDataManagersClient) ListComplete

func (client HybridDataManagersClient) ListComplete(ctx context.Context) (result HybridDataManagerListResultIterator, err error)

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

func (HybridDataManagersClient) ListPreparer

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

ListPreparer prepares the List request.

func (HybridDataManagersClient) ListResponder

func (client HybridDataManagersClient) ListResponder(resp *http.Response) (result HybridDataManagerListResult, err error)

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

func (HybridDataManagersClient) ListSender

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

func (client HybridDataManagersClient) Update(ctx context.Context, resourceGroupName string, hybridDataManagerName string, parameters HybridDataManagerUpdate) (result HybridDataManager, err error)

Update updates a hybridDataManager resource Parameters: resourceGroupName - the name of the Azure resource group hybridDataManagerName - name of HybridDataManager parameters - the HybridDataManager.

func (HybridDataManagersClient) UpdatePreparer

func (client HybridDataManagersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, hybridDataManagerName string, parameters HybridDataManagerUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (HybridDataManagersClient) UpdateResponder

func (client HybridDataManagersClient) UpdateResponder(resp *http.Response) (result HybridDataManager, err error)

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

func (HybridDataManagersClient) UpdateSender

func (client HybridDataManagersClient) 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 Identity

type Identity struct {
	// PrincipalID - READ-ONLY; The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - The identity type. Possible values include: 'SystemAssigned'
	Type ResourceIdentityType `json:"type,omitempty"`
}

Identity identity for the resource.

type ODataError

type ODataError struct {
	// Code - A language-independent error name.
	Code *string `json:"code,omitempty"`
	// Message - The error message.
	Message *string `json:"message,omitempty"`
	// Target - The target of the error (for example, the name of the property in error).
	Target *string `json:"target,omitempty"`
	// Details - The error details.
	Details *[]ODataError `json:"details,omitempty"`
}

ODataError information about an error.

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation being performed on this particular object.
	Name *string `json:"name,omitempty"`
	// Display - READ-ONLY; The localized display information for this particular operation / action.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'User', 'System'
	Origin OperationOrigin `json:"origin,omitempty"`
	// Properties - READ-ONLY; Additional descriptions for the operation.
	Properties map[string]interface{} `json:"properties"`
}

Operation SQL REST API operation definition.

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; The localized friendly form of the resource provider name.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The localized friendly form of the resource type related to this action/operation.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The localized friendly name for the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The localized friendly description for the operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list SQL operations.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationOrigin

type OperationOrigin string

OperationOrigin enumerates the values for operation origin.

const (
	// System ...
	System OperationOrigin = "system"
	// User ...
	User OperationOrigin = "user"
)

func PossibleOperationOriginValues

func PossibleOperationOriginValues() []OperationOrigin

PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

func NewOperationsClient

func NewOperationsClient(subscriptionID string, subscriptionID1 string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 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 OperationListResultPage, err error)

List lists all of the available SQL Server Registration API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

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

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 OperationListResult, 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 Plan

type Plan struct {
	// Name - A user defined name of the 3rd Party Artifact that is being procured.
	Name *string `json:"name,omitempty"`
	// Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
	Publisher *string `json:"publisher,omitempty"`
	// Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
	Product *string `json:"product,omitempty"`
	// PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
	PromotionCode *string `json:"promotionCode,omitempty"`
	// Version - The version of the desired product/artifact.
	Version *string `json:"version,omitempty"`
}

Plan plan for the resource.

type PostgresInstance

type PostgresInstance struct {
	autorest.Response `json:"-"`
	// PostgresInstanceProperties - null
	*PostgresInstanceProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

PostgresInstance a Postgres Instance.

func (PostgresInstance) MarshalJSON

func (pi PostgresInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PostgresInstance.

func (*PostgresInstance) UnmarshalJSON

func (pi *PostgresInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PostgresInstance struct.

type PostgresInstanceListResult

type PostgresInstanceListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]PostgresInstance `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

PostgresInstanceListResult a list of PostgresInstance.

func (PostgresInstanceListResult) IsEmpty

func (pilr PostgresInstanceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PostgresInstanceListResultIterator

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

PostgresInstanceListResultIterator provides access to a complete listing of PostgresInstance values.

func NewPostgresInstanceListResultIterator

func NewPostgresInstanceListResultIterator(page PostgresInstanceListResultPage) PostgresInstanceListResultIterator

Creates a new instance of the PostgresInstanceListResultIterator type.

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

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

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

func (PostgresInstanceListResultIterator) Response

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

func (PostgresInstanceListResultIterator) Value

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

type PostgresInstanceListResultPage

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

PostgresInstanceListResultPage contains a page of PostgresInstance values.

func NewPostgresInstanceListResultPage

func NewPostgresInstanceListResultPage(getNextPage func(context.Context, PostgresInstanceListResult) (PostgresInstanceListResult, error)) PostgresInstanceListResultPage

Creates a new instance of the PostgresInstanceListResultPage type.

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

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

func (page PostgresInstanceListResultPage) NotDone() bool

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

func (PostgresInstanceListResultPage) Response

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

func (PostgresInstanceListResultPage) Values

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

type PostgresInstanceProperties

type PostgresInstanceProperties struct {
	// HybridDataManagerID - null
	HybridDataManagerID *string `json:"hybridDataManagerId,omitempty"`
}

PostgresInstanceProperties postgres Instance properties.

type PostgresInstanceUpdate

type PostgresInstanceUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// HybridDataManagerID - null
	HybridDataManagerID *string `json:"hybridDataManagerId,omitempty"`
}

PostgresInstanceUpdate an update to a Postgres Instance.

func (PostgresInstanceUpdate) MarshalJSON

func (piu PostgresInstanceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PostgresInstanceUpdate.

type PostgresInstancesClient

type PostgresInstancesClient struct {
	BaseClient
}

PostgresInstancesClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

func NewPostgresInstancesClient

func NewPostgresInstancesClient(subscriptionID string, subscriptionID1 string) PostgresInstancesClient

NewPostgresInstancesClient creates an instance of the PostgresInstancesClient client.

func NewPostgresInstancesClientWithBaseURI

func NewPostgresInstancesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) PostgresInstancesClient

NewPostgresInstancesClientWithBaseURI creates an instance of the PostgresInstancesClient 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 (PostgresInstancesClient) Create

func (client PostgresInstancesClient) Create(ctx context.Context, resourceGroupName string, postgresInstanceName string) (result PostgresInstance, err error)

Create creates or replaces a postgres Instance resource Parameters: resourceGroupName - the name of the Azure resource group postgresInstanceName - name of PostgresInstance

func (PostgresInstancesClient) CreatePreparer

func (client PostgresInstancesClient) CreatePreparer(ctx context.Context, resourceGroupName string, postgresInstanceName string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (PostgresInstancesClient) CreateResponder

func (client PostgresInstancesClient) CreateResponder(resp *http.Response) (result PostgresInstance, err error)

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

func (PostgresInstancesClient) CreateSender

func (client PostgresInstancesClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (PostgresInstancesClient) Delete

func (client PostgresInstancesClient) Delete(ctx context.Context, resourceGroupName string, postgresInstanceName string) (result autorest.Response, err error)

Delete deletes a postgres Instance resource Parameters: resourceGroupName - the name of the Azure resource group postgresInstanceName - name of Postgres Instance

func (PostgresInstancesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PostgresInstancesClient) DeleteResponder

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

func (client PostgresInstancesClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (PostgresInstancesClient) Get

func (client PostgresInstancesClient) Get(ctx context.Context, resourceGroupName string, postgresInstanceName string) (result PostgresInstance, err error)

Get retrieves a postgres Instance resource Parameters: resourceGroupName - the name of the Azure resource group postgresInstanceName - name of Postgres Instance

func (PostgresInstancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PostgresInstancesClient) GetResponder

func (client PostgresInstancesClient) GetResponder(resp *http.Response) (result PostgresInstance, err error)

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

func (PostgresInstancesClient) GetSender

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

List sends the list request.

func (PostgresInstancesClient) ListByResourceGroup

func (client PostgresInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result PostgresInstanceListResultPage, err error)

ListByResourceGroup get a postgres Instances list by Resource group name. Parameters: resourceGroupName - the name of the Azure resource group

func (PostgresInstancesClient) ListByResourceGroupComplete

func (client PostgresInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result PostgresInstanceListResultIterator, err error)

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

func (PostgresInstancesClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (PostgresInstancesClient) ListByResourceGroupResponder

func (client PostgresInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result PostgresInstanceListResult, err error)

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

func (PostgresInstancesClient) ListByResourceGroupSender

func (client PostgresInstancesClient) 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 (PostgresInstancesClient) ListComplete

func (client PostgresInstancesClient) ListComplete(ctx context.Context) (result PostgresInstanceListResultIterator, err error)

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

func (PostgresInstancesClient) ListPreparer

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

ListPreparer prepares the List request.

func (PostgresInstancesClient) ListResponder

func (client PostgresInstancesClient) ListResponder(resp *http.Response) (result PostgresInstanceListResult, err error)

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

func (PostgresInstancesClient) ListSender

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

func (client PostgresInstancesClient) Update(ctx context.Context, resourceGroupName string, postgresInstanceName string, parameters PostgresInstanceUpdate) (result PostgresInstance, err error)

Update updates a postgres Instance resource Parameters: resourceGroupName - the name of the Azure resource group postgresInstanceName - name of Postgres Instance parameters - the Postgres Instance.

func (PostgresInstancesClient) UpdatePreparer

func (client PostgresInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, postgresInstanceName string, parameters PostgresInstanceUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PostgresInstancesClient) UpdateResponder

func (client PostgresInstancesClient) UpdateResponder(resp *http.Response) (result PostgresInstance, err error)

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

func (PostgresInstancesClient) UpdateSender

func (client PostgresInstancesClient) 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 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Resource ...

type ResourceIdentityType

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
	// SystemAssigned ...
	SystemAssigned ResourceIdentityType = "SystemAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type ResourceModelWithAllowedPropertySet

type ResourceModelWithAllowedPropertySet 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts..
	Type *string `json:"type,omitempty"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ManagedBy - The  fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// Kind - Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
	Kind *string `json:"kind,omitempty"`
	// Etag - READ-ONLY; The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
	Etag *string `json:"etag,omitempty"`
	// Tags - Resource tags.
	Tags     map[string]*string                           `json:"tags"`
	Identity *ResourceModelWithAllowedPropertySetIdentity `json:"identity,omitempty"`
	Sku      *ResourceModelWithAllowedPropertySetSku      `json:"sku,omitempty"`
	Plan     *ResourceModelWithAllowedPropertySetPlan     `json:"plan,omitempty"`
}

ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.

func (ResourceModelWithAllowedPropertySet) MarshalJSON

func (rmwaps ResourceModelWithAllowedPropertySet) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySet.

type ResourceModelWithAllowedPropertySetIdentity

type ResourceModelWithAllowedPropertySetIdentity struct {
	// PrincipalID - READ-ONLY; The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - The identity type. Possible values include: 'SystemAssigned'
	Type ResourceIdentityType `json:"type,omitempty"`
}

ResourceModelWithAllowedPropertySetIdentity ...

type ResourceModelWithAllowedPropertySetPlan

type ResourceModelWithAllowedPropertySetPlan struct {
	// Name - A user defined name of the 3rd Party Artifact that is being procured.
	Name *string `json:"name,omitempty"`
	// Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
	Publisher *string `json:"publisher,omitempty"`
	// Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
	Product *string `json:"product,omitempty"`
	// PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
	PromotionCode *string `json:"promotionCode,omitempty"`
	// Version - The version of the desired product/artifact.
	Version *string `json:"version,omitempty"`
}

ResourceModelWithAllowedPropertySetPlan ...

type ResourceModelWithAllowedPropertySetSku

type ResourceModelWithAllowedPropertySetSku struct {
	// Name - The name of the SKU. Ex - P3. It is typically a letter+number code
	Name *string `json:"name,omitempty"`
	// Tier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'
	Tier SkuTier `json:"tier,omitempty"`
	// Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
	Size *string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
	Capacity *int32 `json:"capacity,omitempty"`
}

ResourceModelWithAllowedPropertySetSku ...

type SQLInstance

type SQLInstance struct {
	autorest.Response `json:"-"`
	// SQLInstanceProperties - null
	*SQLInstanceProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

SQLInstance a SqlInstance.

func (SQLInstance) MarshalJSON

func (si SQLInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLInstance.

func (*SQLInstance) UnmarshalJSON

func (si *SQLInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SQLInstance struct.

type SQLInstanceListResult

type SQLInstanceListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SQLInstance `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SQLInstanceListResult a list of SqlInstance.

func (SQLInstanceListResult) IsEmpty

func (silr SQLInstanceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SQLInstanceListResultIterator

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

SQLInstanceListResultIterator provides access to a complete listing of SQLInstance values.

func NewSQLInstanceListResultIterator

func NewSQLInstanceListResultIterator(page SQLInstanceListResultPage) SQLInstanceListResultIterator

Creates a new instance of the SQLInstanceListResultIterator type.

func (*SQLInstanceListResultIterator) Next

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

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

func (iter SQLInstanceListResultIterator) NotDone() bool

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

func (SQLInstanceListResultIterator) Response

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

func (SQLInstanceListResultIterator) Value

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

type SQLInstanceListResultPage

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

SQLInstanceListResultPage contains a page of SQLInstance values.

func NewSQLInstanceListResultPage

func NewSQLInstanceListResultPage(getNextPage func(context.Context, SQLInstanceListResult) (SQLInstanceListResult, error)) SQLInstanceListResultPage

Creates a new instance of the SQLInstanceListResultPage type.

func (*SQLInstanceListResultPage) Next

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

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

func (page SQLInstanceListResultPage) NotDone() bool

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

func (SQLInstanceListResultPage) Response

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

func (SQLInstanceListResultPage) Values

func (page SQLInstanceListResultPage) Values() []SQLInstance

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

type SQLInstanceProperties

type SQLInstanceProperties struct {
	// HybridDataManagerID - null
	HybridDataManagerID *string `json:"hybridDataManagerId,omitempty"`
}

SQLInstanceProperties properties of PostgresInstance.

type SQLInstanceUpdate

type SQLInstanceUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

SQLInstanceUpdate an update to a SQL Instance.

func (SQLInstanceUpdate) MarshalJSON

func (siu SQLInstanceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLInstanceUpdate.

type SQLInstancesClient

type SQLInstancesClient struct {
	BaseClient
}

SQLInstancesClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

func NewSQLInstancesClient

func NewSQLInstancesClient(subscriptionID string, subscriptionID1 string) SQLInstancesClient

NewSQLInstancesClient creates an instance of the SQLInstancesClient client.

func NewSQLInstancesClientWithBaseURI

func NewSQLInstancesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SQLInstancesClient

NewSQLInstancesClientWithBaseURI creates an instance of the SQLInstancesClient 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 (SQLInstancesClient) Create

func (client SQLInstancesClient) Create(ctx context.Context, resourceGroupName string, SQLInstanceName string, parameters SQLInstance) (result SQLInstance, err error)

Create creates or replaces a SQL Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLInstanceName - the name of SQL Instances parameters - the SQL Instance to be created or updated.

func (SQLInstancesClient) CreatePreparer

func (client SQLInstancesClient) CreatePreparer(ctx context.Context, resourceGroupName string, SQLInstanceName string, parameters SQLInstance) (*http.Request, error)

CreatePreparer prepares the Create request.

func (SQLInstancesClient) CreateResponder

func (client SQLInstancesClient) CreateResponder(resp *http.Response) (result SQLInstance, err error)

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

func (SQLInstancesClient) CreateSender

func (client SQLInstancesClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (SQLInstancesClient) Delete

func (client SQLInstancesClient) Delete(ctx context.Context, resourceGroupName string, SQLInstanceName string) (result autorest.Response, err error)

Delete deletes a SQL Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLInstanceName - the name of Sql Instances

func (SQLInstancesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SQLInstancesClient) DeleteResponder

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

func (client SQLInstancesClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (SQLInstancesClient) Get

func (client SQLInstancesClient) Get(ctx context.Context, resourceGroupName string, SQLInstanceName string) (result SQLInstance, err error)

Get retrieves a SQL Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLInstanceName - name of SQL Instance

func (SQLInstancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SQLInstancesClient) GetResponder

func (client SQLInstancesClient) GetResponder(resp *http.Response) (result SQLInstance, err error)

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

func (SQLInstancesClient) GetSender

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

func (client SQLInstancesClient) List(ctx context.Context) (result SQLInstanceListResultPage, err error)

List sends the list request.

func (SQLInstancesClient) ListByResourceGroup

func (client SQLInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SQLInstanceListResultPage, err error)

ListByResourceGroup gets all sqlInstances in a resource group. Parameters: resourceGroupName - the name of the Azure resource group

func (SQLInstancesClient) ListByResourceGroupComplete

func (client SQLInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SQLInstanceListResultIterator, err error)

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

func (SQLInstancesClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (SQLInstancesClient) ListByResourceGroupResponder

func (client SQLInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result SQLInstanceListResult, err error)

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

func (SQLInstancesClient) ListByResourceGroupSender

func (client SQLInstancesClient) 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 (SQLInstancesClient) ListComplete

func (client SQLInstancesClient) ListComplete(ctx context.Context) (result SQLInstanceListResultIterator, err error)

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

func (SQLInstancesClient) ListPreparer

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

ListPreparer prepares the List request.

func (SQLInstancesClient) ListResponder

func (client SQLInstancesClient) ListResponder(resp *http.Response) (result SQLInstanceListResult, err error)

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

func (SQLInstancesClient) ListSender

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

func (client SQLInstancesClient) Update(ctx context.Context, resourceGroupName string, SQLInstanceName string, parameters SQLInstanceUpdate) (result SQLInstance, err error)

Update updates a SQL Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLInstanceName - name of sqlInstance parameters - the SQL Instance.

func (SQLInstancesClient) UpdatePreparer

func (client SQLInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLInstanceName string, parameters SQLInstanceUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SQLInstancesClient) UpdateResponder

func (client SQLInstancesClient) UpdateResponder(resp *http.Response) (result SQLInstance, err error)

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

func (SQLInstancesClient) UpdateSender

func (client SQLInstancesClient) 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 SQLServer

type SQLServer struct {
	autorest.Response `json:"-"`
	// SQLServerProperties - Resource properties.
	*SQLServerProperties `json:"properties,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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

SQLServer a SQL server.

func (SQLServer) MarshalJSON

func (ss SQLServer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLServer.

func (*SQLServer) UnmarshalJSON

func (ss *SQLServer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SQLServer struct.

type SQLServerInstance

type SQLServerInstance struct {
	autorest.Response `json:"-"`
	// SQLServerInstanceProperties - null
	*SQLServerInstanceProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

SQLServerInstance a SqlServerInstance.

func (SQLServerInstance) MarshalJSON

func (ssi SQLServerInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLServerInstance.

func (*SQLServerInstance) UnmarshalJSON

func (ssi *SQLServerInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SQLServerInstance struct.

type SQLServerInstanceListResult

type SQLServerInstanceListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SQLServerInstance `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SQLServerInstanceListResult a list of SqlServerInstance.

func (SQLServerInstanceListResult) IsEmpty

func (ssilr SQLServerInstanceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SQLServerInstanceListResultIterator

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

SQLServerInstanceListResultIterator provides access to a complete listing of SQLServerInstance values.

func NewSQLServerInstanceListResultIterator

func NewSQLServerInstanceListResultIterator(page SQLServerInstanceListResultPage) SQLServerInstanceListResultIterator

Creates a new instance of the SQLServerInstanceListResultIterator type.

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

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

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

func (SQLServerInstanceListResultIterator) Response

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

func (SQLServerInstanceListResultIterator) Value

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

type SQLServerInstanceListResultPage

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

SQLServerInstanceListResultPage contains a page of SQLServerInstance values.

func NewSQLServerInstanceListResultPage

func NewSQLServerInstanceListResultPage(getNextPage func(context.Context, SQLServerInstanceListResult) (SQLServerInstanceListResult, error)) SQLServerInstanceListResultPage

Creates a new instance of the SQLServerInstanceListResultPage type.

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

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

func (page SQLServerInstanceListResultPage) NotDone() bool

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

func (SQLServerInstanceListResultPage) Response

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

func (SQLServerInstanceListResultPage) Values

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

type SQLServerInstanceProperties

type SQLServerInstanceProperties struct {
	// Version - SQL Server version.
	Version *string `json:"version,omitempty"`
	// Edition - SQL Server edition.
	Edition *string `json:"edition,omitempty"`
	// ContainerResourceID - ARM Resource id of the container resource (Azure Arc for Servers)
	ContainerResourceID *string `json:"containerResourceId,omitempty"`
	// CreateTime - READ-ONLY; The time when the resource was created.
	CreateTime *string `json:"createTime,omitempty"`
	// UpdateTime - READ-ONLY; The time when the resource was last updated.
	UpdateTime *string `json:"updateTime,omitempty"`
	// VCore - The number of logical processors used by the SQL Server instance.
	VCore *string `json:"vCore,omitempty"`
	// Status - The cloud connectivity status.
	Status *string `json:"status,omitempty"`
}

SQLServerInstanceProperties properties of SqlServerInstance.

type SQLServerInstanceUpdate

type SQLServerInstanceUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

SQLServerInstanceUpdate an update to a SQL Server Instance.

func (SQLServerInstanceUpdate) MarshalJSON

func (ssiu SQLServerInstanceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLServerInstanceUpdate.

type SQLServerInstancesClient

type SQLServerInstancesClient struct {
	BaseClient
}

SQLServerInstancesClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

func NewSQLServerInstancesClient

func NewSQLServerInstancesClient(subscriptionID string, subscriptionID1 string) SQLServerInstancesClient

NewSQLServerInstancesClient creates an instance of the SQLServerInstancesClient client.

func NewSQLServerInstancesClientWithBaseURI

func NewSQLServerInstancesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SQLServerInstancesClient

NewSQLServerInstancesClientWithBaseURI creates an instance of the SQLServerInstancesClient 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 (SQLServerInstancesClient) Create

func (client SQLServerInstancesClient) Create(ctx context.Context, resourceGroupName string, SQLServerInstanceName string, parameters SQLServerInstance) (result SQLServerInstance, err error)

Create creates or replaces a SQL Server Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLServerInstanceName - the name of SQL Server Instance parameters - the SQL Server Instance to be created or updated.

func (SQLServerInstancesClient) CreatePreparer

func (client SQLServerInstancesClient) CreatePreparer(ctx context.Context, resourceGroupName string, SQLServerInstanceName string, parameters SQLServerInstance) (*http.Request, error)

CreatePreparer prepares the Create request.

func (SQLServerInstancesClient) CreateResponder

func (client SQLServerInstancesClient) CreateResponder(resp *http.Response) (result SQLServerInstance, err error)

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

func (SQLServerInstancesClient) CreateSender

func (client SQLServerInstancesClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (SQLServerInstancesClient) Delete

func (client SQLServerInstancesClient) Delete(ctx context.Context, resourceGroupName string, SQLServerInstanceName string) (result autorest.Response, err error)

Delete deletes a SQL Server Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLServerInstanceName - the name of SQL Server Instance

func (SQLServerInstancesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SQLServerInstancesClient) DeleteResponder

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

func (client SQLServerInstancesClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (SQLServerInstancesClient) Get

func (client SQLServerInstancesClient) Get(ctx context.Context, resourceGroupName string, SQLServerInstanceName string) (result SQLServerInstance, err error)

Get retrieves a SQL Server Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLServerInstanceName - name of SQL Server Instance

func (SQLServerInstancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SQLServerInstancesClient) GetResponder

func (client SQLServerInstancesClient) GetResponder(resp *http.Response) (result SQLServerInstance, err error)

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

func (SQLServerInstancesClient) GetSender

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

List sends the list request.

func (SQLServerInstancesClient) ListByResourceGroup

func (client SQLServerInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SQLServerInstanceListResultPage, err error)

ListByResourceGroup gets all sqlServerInstances in a resource group. Parameters: resourceGroupName - the name of the Azure resource group

func (SQLServerInstancesClient) ListByResourceGroupComplete

func (client SQLServerInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SQLServerInstanceListResultIterator, err error)

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

func (SQLServerInstancesClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (SQLServerInstancesClient) ListByResourceGroupResponder

func (client SQLServerInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result SQLServerInstanceListResult, err error)

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

func (SQLServerInstancesClient) ListByResourceGroupSender

func (client SQLServerInstancesClient) 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 (SQLServerInstancesClient) ListComplete

func (client SQLServerInstancesClient) ListComplete(ctx context.Context) (result SQLServerInstanceListResultIterator, err error)

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

func (SQLServerInstancesClient) ListPreparer

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

ListPreparer prepares the List request.

func (SQLServerInstancesClient) ListResponder

func (client SQLServerInstancesClient) ListResponder(resp *http.Response) (result SQLServerInstanceListResult, err error)

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

func (SQLServerInstancesClient) ListSender

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

func (client SQLServerInstancesClient) Update(ctx context.Context, resourceGroupName string, SQLServerInstanceName string, parameters SQLServerInstanceUpdate) (result SQLServerInstance, err error)

Update updates a SQL Server Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLServerInstanceName - name of sqlServerInstance parameters - the SQL Server Instance.

func (SQLServerInstancesClient) UpdatePreparer

func (client SQLServerInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerInstanceName string, parameters SQLServerInstanceUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SQLServerInstancesClient) UpdateResponder

func (client SQLServerInstancesClient) UpdateResponder(resp *http.Response) (result SQLServerInstance, err error)

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

func (SQLServerInstancesClient) UpdateSender

func (client SQLServerInstancesClient) 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 SQLServerListResult

type SQLServerListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SQLServer `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SQLServerListResult a list of SQL servers.

func (SQLServerListResult) IsEmpty

func (sslr SQLServerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SQLServerListResultIterator

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

SQLServerListResultIterator provides access to a complete listing of SQLServer values.

func NewSQLServerListResultIterator

func NewSQLServerListResultIterator(page SQLServerListResultPage) SQLServerListResultIterator

Creates a new instance of the SQLServerListResultIterator type.

func (*SQLServerListResultIterator) Next

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

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

func (iter SQLServerListResultIterator) NotDone() bool

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

func (SQLServerListResultIterator) Response

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

func (SQLServerListResultIterator) Value

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

type SQLServerListResultPage

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

SQLServerListResultPage contains a page of SQLServer values.

func NewSQLServerListResultPage

func NewSQLServerListResultPage(getNextPage func(context.Context, SQLServerListResult) (SQLServerListResult, error)) SQLServerListResultPage

Creates a new instance of the SQLServerListResultPage type.

func (*SQLServerListResultPage) Next

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

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

func (page SQLServerListResultPage) NotDone() bool

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

func (SQLServerListResultPage) Response

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

func (SQLServerListResultPage) Values

func (page SQLServerListResultPage) Values() []SQLServer

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

type SQLServerProperties

type SQLServerProperties struct {
	// Cores - Cores of the Sql Server.
	Cores *int32 `json:"cores,omitempty"`
	// Version - Version of the Sql Server.
	Version *string `json:"version,omitempty"`
	// Edition - Sql Server Edition.
	Edition *string `json:"edition,omitempty"`
	// RegistrationID - ID for Parent Sql Server Registration.
	RegistrationID *string `json:"registrationID,omitempty"`
	// PropertyBag - Sql Server Json Property Bag.
	PropertyBag *string `json:"propertyBag,omitempty"`
}

SQLServerProperties the SQL server properties.

type SQLServerRegistration

type SQLServerRegistration struct {
	autorest.Response `json:"-"`
	// SQLServerRegistrationProperties - Resource properties.
	*SQLServerRegistrationProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

SQLServerRegistration a SQL server registration.

func (SQLServerRegistration) MarshalJSON

func (ssr SQLServerRegistration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLServerRegistration.

func (*SQLServerRegistration) UnmarshalJSON

func (ssr *SQLServerRegistration) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SQLServerRegistration struct.

type SQLServerRegistrationListResult

type SQLServerRegistrationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SQLServerRegistration `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SQLServerRegistrationListResult server

func (SQLServerRegistrationListResult) IsEmpty

func (ssrlr SQLServerRegistrationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SQLServerRegistrationListResultIterator

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

SQLServerRegistrationListResultIterator provides access to a complete listing of SQLServerRegistration values.

func NewSQLServerRegistrationListResultIterator

func NewSQLServerRegistrationListResultIterator(page SQLServerRegistrationListResultPage) SQLServerRegistrationListResultIterator

Creates a new instance of the SQLServerRegistrationListResultIterator type.

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

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

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

func (SQLServerRegistrationListResultIterator) Response

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

func (SQLServerRegistrationListResultIterator) Value

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

type SQLServerRegistrationListResultPage

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

SQLServerRegistrationListResultPage contains a page of SQLServerRegistration values.

func NewSQLServerRegistrationListResultPage

Creates a new instance of the SQLServerRegistrationListResultPage type.

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

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

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

func (SQLServerRegistrationListResultPage) Response

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

func (SQLServerRegistrationListResultPage) Values

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

type SQLServerRegistrationProperties

type SQLServerRegistrationProperties struct {
	// SubscriptionID - Subscription Id
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// ResourceGroup - Resource Group Name
	ResourceGroup *string `json:"resourceGroup,omitempty"`
	// PropertyBag - Optional Properties as JSON string
	PropertyBag *string `json:"propertyBag,omitempty"`
}

SQLServerRegistrationProperties the SQL server Registration properties.

type SQLServerRegistrationUpdate

type SQLServerRegistrationUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

SQLServerRegistrationUpdate an update to a SQL Server Registration.

func (SQLServerRegistrationUpdate) MarshalJSON

func (ssru SQLServerRegistrationUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLServerRegistrationUpdate.

type SQLServerRegistrationsClient

type SQLServerRegistrationsClient struct {
	BaseClient
}

SQLServerRegistrationsClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

func NewSQLServerRegistrationsClient

func NewSQLServerRegistrationsClient(subscriptionID string, subscriptionID1 string) SQLServerRegistrationsClient

NewSQLServerRegistrationsClient creates an instance of the SQLServerRegistrationsClient client.

func NewSQLServerRegistrationsClientWithBaseURI

func NewSQLServerRegistrationsClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SQLServerRegistrationsClient

NewSQLServerRegistrationsClientWithBaseURI creates an instance of the SQLServerRegistrationsClient 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 (SQLServerRegistrationsClient) CreateOrUpdate

func (client SQLServerRegistrationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, parameters SQLServerRegistration) (result SQLServerRegistration, err error)

CreateOrUpdate creates or updates a SQL Server registration. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration. parameters - the SQL Server registration to be created or updated.

func (SQLServerRegistrationsClient) CreateOrUpdatePreparer

func (client SQLServerRegistrationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, parameters SQLServerRegistration) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SQLServerRegistrationsClient) CreateOrUpdateResponder

func (client SQLServerRegistrationsClient) CreateOrUpdateResponder(resp *http.Response) (result SQLServerRegistration, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SQLServerRegistrationsClient) CreateOrUpdateSender

func (client SQLServerRegistrationsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (SQLServerRegistrationsClient) Delete

func (client SQLServerRegistrationsClient) Delete(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string) (result autorest.Response, err error)

Delete deletes a SQL Server registration. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration.

func (SQLServerRegistrationsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SQLServerRegistrationsClient) DeleteResponder

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

func (client SQLServerRegistrationsClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (SQLServerRegistrationsClient) Get

func (client SQLServerRegistrationsClient) Get(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string) (result SQLServerRegistration, err error)

Get gets a SQL Server registration. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration.

func (SQLServerRegistrationsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SQLServerRegistrationsClient) GetResponder

func (client SQLServerRegistrationsClient) GetResponder(resp *http.Response) (result SQLServerRegistration, err error)

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

func (SQLServerRegistrationsClient) GetSender

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

List gets all SQL Server registrations in a subscription.

func (SQLServerRegistrationsClient) ListByResourceGroup

func (client SQLServerRegistrationsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SQLServerRegistrationListResultPage, err error)

ListByResourceGroup gets all SQL Server registrations in a resource group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (SQLServerRegistrationsClient) ListByResourceGroupComplete

func (client SQLServerRegistrationsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SQLServerRegistrationListResultIterator, err error)

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

func (SQLServerRegistrationsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (SQLServerRegistrationsClient) ListByResourceGroupResponder

func (client SQLServerRegistrationsClient) ListByResourceGroupResponder(resp *http.Response) (result SQLServerRegistrationListResult, err error)

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

func (SQLServerRegistrationsClient) ListByResourceGroupSender

func (client SQLServerRegistrationsClient) 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 (SQLServerRegistrationsClient) ListComplete

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

func (SQLServerRegistrationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (SQLServerRegistrationsClient) ListResponder

func (client SQLServerRegistrationsClient) ListResponder(resp *http.Response) (result SQLServerRegistrationListResult, err error)

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

func (SQLServerRegistrationsClient) ListSender

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

func (client SQLServerRegistrationsClient) Update(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, parameters SQLServerRegistrationUpdate) (result SQLServerRegistration, err error)

Update updates SQL Server Registration tags. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration. parameters - the SQL Server Registration.

func (SQLServerRegistrationsClient) UpdatePreparer

func (client SQLServerRegistrationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, parameters SQLServerRegistrationUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SQLServerRegistrationsClient) UpdateResponder

func (client SQLServerRegistrationsClient) UpdateResponder(resp *http.Response) (result SQLServerRegistration, err error)

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

func (SQLServerRegistrationsClient) UpdateSender

func (client SQLServerRegistrationsClient) 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 SQLServersClient

type SQLServersClient struct {
	BaseClient
}

SQLServersClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.

func NewSQLServersClient

func NewSQLServersClient(subscriptionID string, subscriptionID1 string) SQLServersClient

NewSQLServersClient creates an instance of the SQLServersClient client.

func NewSQLServersClientWithBaseURI

func NewSQLServersClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SQLServersClient

NewSQLServersClientWithBaseURI creates an instance of the SQLServersClient 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 (SQLServersClient) CreateOrUpdate

func (client SQLServersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string, parameters SQLServer) (result SQLServer, err error)

CreateOrUpdate creates or updates a SQL Server. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration. SQLServerName - name of the SQL Server. parameters - the SQL Server to be created or updated.

func (SQLServersClient) CreateOrUpdatePreparer

func (client SQLServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string, parameters SQLServer) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SQLServersClient) CreateOrUpdateResponder

func (client SQLServersClient) CreateOrUpdateResponder(resp *http.Response) (result SQLServer, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SQLServersClient) CreateOrUpdateSender

func (client SQLServersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (SQLServersClient) Delete

func (client SQLServersClient) Delete(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string) (result autorest.Response, err error)

Delete deletes a SQL Server. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration. SQLServerName - name of the SQL Server.

func (SQLServersClient) DeletePreparer

func (client SQLServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SQLServersClient) DeleteResponder

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

func (client SQLServersClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (SQLServersClient) Get

func (client SQLServersClient) Get(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string, expand string) (result SQLServer, err error)

Get gets a SQL Server. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration. SQLServerName - name of the SQL Server. expand - the child resources to include in the response.

func (SQLServersClient) GetPreparer

func (client SQLServersClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SQLServersClient) GetResponder

func (client SQLServersClient) GetResponder(resp *http.Response) (result SQLServer, err error)

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

func (SQLServersClient) GetSender

func (client SQLServersClient) 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 (SQLServersClient) ListByResourceGroup

func (client SQLServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, expand string) (result SQLServerListResultPage, err error)

ListByResourceGroup gets all SQL Servers in a SQL Server Registration. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLServerRegistrationName - name of the SQL Server registration. expand - the child resources to include in the response.

func (SQLServersClient) ListByResourceGroupComplete

func (client SQLServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, expand string) (result SQLServerListResultIterator, err error)

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

func (SQLServersClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (SQLServersClient) ListByResourceGroupResponder

func (client SQLServersClient) ListByResourceGroupResponder(resp *http.Response) (result SQLServerListResult, err error)

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

func (SQLServersClient) ListByResourceGroupSender

func (client SQLServersClient) 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.

type Sku

type Sku struct {
	// Name - The name of the SKU. Ex - P3. It is typically a letter+number code
	Name *string `json:"name,omitempty"`
	// Tier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'
	Tier SkuTier `json:"tier,omitempty"`
	// Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
	Size *string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
	Capacity *int32 `json:"capacity,omitempty"`
}

Sku the resource model definition representing SKU

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// Basic ...
	Basic SkuTier = "Basic"
	// Free ...
	Free SkuTier = "Free"
	// Premium ...
	Premium SkuTier = "Premium"
	// Standard ...
	Standard SkuTier = "Standard"
)

func PossibleSkuTierValues

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource

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