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
- func UserAgent() string
- func Version() string
- type BaseClient
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationOrigin
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type ProxyResource
- type Resource
- type SQLServer
- type SQLServerListResult
- type SQLServerListResultIterator
- func (iter *SQLServerListResultIterator) Next() error
- func (iter *SQLServerListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter SQLServerListResultIterator) NotDone() bool
- func (iter SQLServerListResultIterator) Response() SQLServerListResult
- func (iter SQLServerListResultIterator) Value() SQLServer
- type SQLServerListResultPage
- func (page *SQLServerListResultPage) Next() error
- func (page *SQLServerListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page SQLServerListResultPage) NotDone() bool
- func (page SQLServerListResultPage) Response() SQLServerListResult
- func (page SQLServerListResultPage) Values() []SQLServer
- type SQLServerProperties
- type SQLServerRegistration
- type SQLServerRegistrationListResult
- type SQLServerRegistrationListResultIterator
- func (iter *SQLServerRegistrationListResultIterator) Next() error
- func (iter *SQLServerRegistrationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter SQLServerRegistrationListResultIterator) NotDone() bool
- func (iter SQLServerRegistrationListResultIterator) Response() SQLServerRegistrationListResult
- func (iter SQLServerRegistrationListResultIterator) Value() SQLServerRegistration
- type SQLServerRegistrationListResultPage
- func (page *SQLServerRegistrationListResultPage) Next() error
- func (page *SQLServerRegistrationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page SQLServerRegistrationListResultPage) NotDone() bool
- func (page SQLServerRegistrationListResultPage) Response() SQLServerRegistrationListResult
- func (page SQLServerRegistrationListResultPage) Values() []SQLServerRegistration
- type SQLServerRegistrationProperties
- type SQLServerRegistrationUpdate
- type SQLServerRegistrationsClient
- func (client SQLServerRegistrationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (result SQLServerRegistration, err error)
- func (client SQLServerRegistrationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServerRegistrationsClient) CreateOrUpdateResponder(resp *http.Response) (result SQLServerRegistration, err error)
- func (client SQLServerRegistrationsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client SQLServerRegistrationsClient) Delete(ctx context.Context, resourceGroupName string, ...) (result autorest.Response, err error)
- func (client SQLServerRegistrationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServerRegistrationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client SQLServerRegistrationsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client SQLServerRegistrationsClient) Get(ctx context.Context, resourceGroupName string, ...) (result SQLServerRegistration, err error)
- func (client SQLServerRegistrationsClient) GetPreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServerRegistrationsClient) GetResponder(resp *http.Response) (result SQLServerRegistration, err error)
- func (client SQLServerRegistrationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client SQLServerRegistrationsClient) List(ctx context.Context) (result SQLServerRegistrationListResultPage, err error)
- func (client SQLServerRegistrationsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SQLServerRegistrationListResultPage, err error)
- func (client SQLServerRegistrationsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SQLServerRegistrationListResultIterator, err error)
- func (client SQLServerRegistrationsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client SQLServerRegistrationsClient) ListByResourceGroupResponder(resp *http.Response) (result SQLServerRegistrationListResult, err error)
- func (client SQLServerRegistrationsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client SQLServerRegistrationsClient) ListComplete(ctx context.Context) (result SQLServerRegistrationListResultIterator, err error)
- func (client SQLServerRegistrationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client SQLServerRegistrationsClient) ListResponder(resp *http.Response) (result SQLServerRegistrationListResult, err error)
- func (client SQLServerRegistrationsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client SQLServerRegistrationsClient) Update(ctx context.Context, resourceGroupName string, ...) (result SQLServerRegistration, err error)
- func (client SQLServerRegistrationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServerRegistrationsClient) UpdateResponder(resp *http.Response) (result SQLServerRegistration, err error)
- func (client SQLServerRegistrationsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type SQLServersClient
- func (client SQLServersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ...) (result SQLServer, err error)
- func (client SQLServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServersClient) CreateOrUpdateResponder(resp *http.Response) (result SQLServer, err error)
- func (client SQLServersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client SQLServersClient) Delete(ctx context.Context, resourceGroupName string, ...) (result autorest.Response, err error)
- func (client SQLServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client SQLServersClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client SQLServersClient) Get(ctx context.Context, resourceGroupName string, ...) (result SQLServer, err error)
- func (client SQLServersClient) GetPreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServersClient) GetResponder(resp *http.Response) (result SQLServer, err error)
- func (client SQLServersClient) GetSender(req *http.Request) (*http.Response, error)
- func (client SQLServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, ...) (result SQLServerListResultPage, err error)
- func (client SQLServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, ...) (result SQLServerListResultIterator, err error)
- func (client SQLServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client SQLServersClient) ListByResourceGroupResponder(resp *http.Response) (result SQLServerListResult, err error)
- func (client SQLServersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- type TrackedResource
Constants ¶
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 ¶
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.
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 ¶
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 ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
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 ¶
func (page OperationListResultPage) Response() OperationListResult
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.
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 ¶
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 ¶
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 ¶
MarshalJSON is the custom marshaler for SQLServer.
func (*SQLServer) UnmarshalJSON ¶
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 ¶
func (iter SQLServerListResultIterator) Response() SQLServerListResult
Response returns the raw server response from the last page request.
func (SQLServerListResultIterator) Value ¶
func (iter SQLServerListResultIterator) Value() SQLServer
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 ¶
func (page SQLServerListResultPage) Response() SQLServerListResult
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 ¶
func (iter *SQLServerRegistrationListResultIterator) 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 (*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 ¶
func (iter SQLServerRegistrationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (SQLServerRegistrationListResultIterator) Response ¶
func (iter SQLServerRegistrationListResultIterator) Response() SQLServerRegistrationListResult
Response returns the raw server response from the last page request.
func (SQLServerRegistrationListResultIterator) Value ¶
func (iter SQLServerRegistrationListResultIterator) Value() SQLServerRegistration
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 ¶
func NewSQLServerRegistrationListResultPage(getNextPage func(context.Context, SQLServerRegistrationListResult) (SQLServerRegistrationListResult, error)) SQLServerRegistrationListResultPage
Creates a new instance of the SQLServerRegistrationListResultPage type.
func (*SQLServerRegistrationListResultPage) Next ¶
func (page *SQLServerRegistrationListResultPage) 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 (*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 ¶
func (page SQLServerRegistrationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (SQLServerRegistrationListResultPage) Response ¶
func (page SQLServerRegistrationListResultPage) Response() SQLServerRegistrationListResult
Response returns the raw server response from the last page request.
func (SQLServerRegistrationListResultPage) Values ¶
func (page SQLServerRegistrationListResultPage) Values() []SQLServerRegistration
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.
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 ¶
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 ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (SQLServerRegistrationsClient) List ¶
func (client SQLServerRegistrationsClient) List(ctx context.Context) (result SQLServerRegistrationListResultPage, err error)
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 ¶
func (client SQLServerRegistrationsClient) ListComplete(ctx context.Context) (result SQLServerRegistrationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (SQLServerRegistrationsClient) ListPreparer ¶
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 ¶
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 ¶
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.
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 ¶
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 ¶
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 ¶
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 ¶
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.