azuredata

package
v43.3.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package azuredata implements the Azure ARM Azuredata service API version 2017-03-01-preview.

The AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources. For example, register, delete and retrieve a SQL Server, SQL Server registration.

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
}

BaseClient is the base client for Azuredata.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type 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. For example, register, delete and retrieve a SQL Server, SQL Server registration.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

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

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result 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 ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ProxyResource ARM proxy resource.

type Resource

type Resource struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Resource ARM resource.

type SQLServer

type SQLServer struct {
	autorest.Response `json:"-"`
	// SQLServerProperties - Resource properties.
	*SQLServerProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

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 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"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

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 *uuid.UUID `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. For example, register, delete and retrieve a SQL Server, SQL Server registration.

func NewSQLServerRegistrationsClient

func NewSQLServerRegistrationsClient(subscriptionID string) SQLServerRegistrationsClient

NewSQLServerRegistrationsClient creates an instance of the SQLServerRegistrationsClient client.

func NewSQLServerRegistrationsClientWithBaseURI

func NewSQLServerRegistrationsClientWithBaseURI(baseURI string, subscriptionID 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. For example, register, delete and retrieve a SQL Server, SQL Server registration.

func NewSQLServersClient

func NewSQLServersClient(subscriptionID string) SQLServersClient

NewSQLServersClient creates an instance of the SQLServersClient client.

func NewSQLServersClientWithBaseURI

func NewSQLServersClientWithBaseURI(baseURI string, subscriptionID 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 TrackedResource

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

TrackedResource 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