const ( // DefaultBaseURI is the default URI used for the service Azuredata DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
BaseClient is the base client for Azuredata.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string SubscriptionID1 string }
func New(subscriptionID string, subscriptionID1 string) BaseClient
New creates an instance of the BaseClient client.
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).
CloudError an error response from the Azure Data service.
type CloudError struct { // Error - null Error *CloudErrorBody `json:"error,omitempty"` }
CloudErrorBody an error response from the Batch service.
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"` }
DataControllerProperties the data controller properties.
type DataControllerProperties struct { OnPremiseProperty *OnPremiseProperty `json:"onPremiseProperty,omitempty"` }
DataControllerResource data controller resource
type DataControllerResource struct { autorest.Response `json:"-"` // DataControllerProperties - The data controller's properties *DataControllerProperties `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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,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"` }
func (dcr DataControllerResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DataControllerResource.
func (dcr *DataControllerResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DataControllerResource struct.
DataControllerUpdate used for updating a data controller resource.
type DataControllerUpdate struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` }
func (dcu DataControllerUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DataControllerUpdate.
DataControllersClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.
type DataControllersClient struct { BaseClient }
func NewDataControllersClient(subscriptionID string, subscriptionID1 string) DataControllersClient
NewDataControllersClient creates an instance of the DataControllersClient client.
func NewDataControllersClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) DataControllersClient
NewDataControllersClientWithBaseURI creates an instance of the DataControllersClient 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 (client DataControllersClient) DeleteDataController(ctx context.Context, resourceGroupName string, dataControllerName string) (result autorest.Response, err error)
DeleteDataController deletes a dataController resource Parameters: resourceGroupName - the name of the Azure resource group
func (client DataControllersClient) DeleteDataControllerPreparer(ctx context.Context, resourceGroupName string, dataControllerName string) (*http.Request, error)
DeleteDataControllerPreparer prepares the DeleteDataController request.
func (client DataControllersClient) DeleteDataControllerResponder(resp *http.Response) (result autorest.Response, err error)
DeleteDataControllerResponder handles the response to the DeleteDataController request. The method always closes the http.Response Body.
func (client DataControllersClient) DeleteDataControllerSender(req *http.Request) (*http.Response, error)
DeleteDataControllerSender sends the DeleteDataController request. The method will close the http.Response Body if it receives an error.
func (client DataControllersClient) GetDataController(ctx context.Context, resourceGroupName string, dataControllerName string) (result DataControllerResource, err error)
GetDataController retrieves a dataController resource Parameters: resourceGroupName - the name of the Azure resource group
func (client DataControllersClient) GetDataControllerPreparer(ctx context.Context, resourceGroupName string, dataControllerName string) (*http.Request, error)
GetDataControllerPreparer prepares the GetDataController request.
func (client DataControllersClient) GetDataControllerResponder(resp *http.Response) (result DataControllerResource, err error)
GetDataControllerResponder handles the response to the GetDataController request. The method always closes the http.Response Body.
func (client DataControllersClient) GetDataControllerSender(req *http.Request) (*http.Response, error)
GetDataControllerSender sends the GetDataController request. The method will close the http.Response Body if it receives an error.
func (client DataControllersClient) ListInGroup(ctx context.Context, resourceGroupName string) (result PageOfDataControllerResourcePage, err error)
ListInGroup sends the list in group request. Parameters: resourceGroupName - the name of the Azure resource group
func (client DataControllersClient) ListInGroupComplete(ctx context.Context, resourceGroupName string) (result PageOfDataControllerResourceIterator, err error)
ListInGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client DataControllersClient) ListInGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListInGroupPreparer prepares the ListInGroup request.
func (client DataControllersClient) ListInGroupResponder(resp *http.Response) (result PageOfDataControllerResource, err error)
ListInGroupResponder handles the response to the ListInGroup request. The method always closes the http.Response Body.
func (client DataControllersClient) ListInGroupSender(req *http.Request) (*http.Response, error)
ListInGroupSender sends the ListInGroup request. The method will close the http.Response Body if it receives an error.
func (client DataControllersClient) ListInSubscription(ctx context.Context) (result PageOfDataControllerResourcePage, err error)
ListInSubscription sends the list in subscription request.
func (client DataControllersClient) ListInSubscriptionComplete(ctx context.Context) (result PageOfDataControllerResourceIterator, err error)
ListInSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client DataControllersClient) ListInSubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListInSubscriptionPreparer prepares the ListInSubscription request.
func (client DataControllersClient) ListInSubscriptionResponder(resp *http.Response) (result PageOfDataControllerResource, err error)
ListInSubscriptionResponder handles the response to the ListInSubscription request. The method always closes the http.Response Body.
func (client DataControllersClient) ListInSubscriptionSender(req *http.Request) (*http.Response, error)
ListInSubscriptionSender sends the ListInSubscription request. The method will close the http.Response Body if it receives an error.
func (client DataControllersClient) PatchDataController(ctx context.Context, resourceGroupName string, dataControllerName string, dataControllerResource DataControllerUpdate) (result DataControllerResource, err error)
PatchDataController updates a dataController resource Parameters: resourceGroupName - the name of the Azure resource group dataControllerResource - the update data controller resource
func (client DataControllersClient) PatchDataControllerPreparer(ctx context.Context, resourceGroupName string, dataControllerName string, dataControllerResource DataControllerUpdate) (*http.Request, error)
PatchDataControllerPreparer prepares the PatchDataController request.
func (client DataControllersClient) PatchDataControllerResponder(resp *http.Response) (result DataControllerResource, err error)
PatchDataControllerResponder handles the response to the PatchDataController request. The method always closes the http.Response Body.
func (client DataControllersClient) PatchDataControllerSender(req *http.Request) (*http.Response, error)
PatchDataControllerSender sends the PatchDataController request. The method will close the http.Response Body if it receives an error.
func (client DataControllersClient) PutDataController(ctx context.Context, resourceGroupName string, dataControllerResource DataControllerResource, dataControllerName string) (result DataControllerResource, err error)
PutDataController creates or replaces a dataController resource Parameters: resourceGroupName - the name of the Azure resource group dataControllerResource - desc
func (client DataControllersClient) PutDataControllerPreparer(ctx context.Context, resourceGroupName string, dataControllerResource DataControllerResource, dataControllerName string) (*http.Request, error)
PutDataControllerPreparer prepares the PutDataController request.
func (client DataControllersClient) PutDataControllerResponder(resp *http.Response) (result DataControllerResource, err error)
PutDataControllerResponder handles the response to the PutDataController request. The method always closes the http.Response Body.
func (client DataControllersClient) PutDataControllerSender(req *http.Request) (*http.Response, error)
PutDataControllerSender sends the PutDataController request. The method will close the http.Response Body if it receives an error.
Identity identity for the resource.
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"` }
func (i Identity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Identity.
IdentityType enumerates the values for identity type.
type IdentityType string
const ( // Application ... Application IdentityType = "application" // Key ... Key IdentityType = "key" // ManagedIdentity ... ManagedIdentity IdentityType = "managedIdentity" // User ... User IdentityType = "user" )
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.
ODataError information about an error.
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"` }
OnPremiseProperty properties from the on premise data controller
type OnPremiseProperty struct { // ID - A globally unique ID identifying the associated on premise cluster ID *uuid.UUID `json:"id,omitempty"` // PublicSigningKey - Certificate that contains the on premise cluster public key used to verify signing PublicSigningKey *string `json:"publicSigningKey,omitempty"` // SigningCertificateThumbprint - Unique thumbprint returned to customer to verify the certificate being uploaded SigningCertificateThumbprint *string `json:"signingCertificateThumbprint,omitempty"` }
Operation SQL REST API operation definition.
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: 'OperationOriginUser', 'OperationOriginSystem' Origin OperationOrigin `json:"origin,omitempty"` // Properties - READ-ONLY; Additional descriptions for the operation. Properties map[string]interface{} `json:"properties"` }
func (o Operation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Operation.
OperationDisplay display metadata associated with the operation.
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"` }
func (od OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationDisplay.
OperationListResult result of the request to list SQL operations.
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"` }
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (olr OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationListResult.
OperationListResultIterator provides access to a complete listing of Operation values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
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 (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 (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
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.
OperationListResultPage contains a page of Operation values.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
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 (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 (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
OperationOrigin enumerates the values for operation origin.
type OperationOrigin string
const ( // OperationOriginSystem ... OperationOriginSystem OperationOrigin = "system" // OperationOriginUser ... OperationOriginUser OperationOrigin = "user" )
func PossibleOperationOriginValues() []OperationOrigin
PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.
OperationsClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string, subscriptionID1 string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
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 (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists all of the available SQL Server Registration API operations.
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
PageOfDataControllerResource ...
type PageOfDataControllerResource struct { autorest.Response `json:"-"` Value *[]DataControllerResource `json:"value,omitempty"` // NextLink - Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
func (podcr PageOfDataControllerResource) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
PageOfDataControllerResourceIterator provides access to a complete listing of DataControllerResource values.
type PageOfDataControllerResourceIterator struct {
// contains filtered or unexported fields
}
func NewPageOfDataControllerResourceIterator(page PageOfDataControllerResourcePage) PageOfDataControllerResourceIterator
Creates a new instance of the PageOfDataControllerResourceIterator type.
func (iter *PageOfDataControllerResourceIterator) 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 (iter *PageOfDataControllerResourceIterator) 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 (iter PageOfDataControllerResourceIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter PageOfDataControllerResourceIterator) Response() PageOfDataControllerResource
Response returns the raw server response from the last page request.
func (iter PageOfDataControllerResourceIterator) Value() DataControllerResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
PageOfDataControllerResourcePage contains a page of DataControllerResource values.
type PageOfDataControllerResourcePage struct {
// contains filtered or unexported fields
}
func NewPageOfDataControllerResourcePage(cur PageOfDataControllerResource, getNextPage func(context.Context, PageOfDataControllerResource) (PageOfDataControllerResource, error)) PageOfDataControllerResourcePage
Creates a new instance of the PageOfDataControllerResourcePage type.
func (page *PageOfDataControllerResourcePage) 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 (page *PageOfDataControllerResourcePage) 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 (page PageOfDataControllerResourcePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page PageOfDataControllerResourcePage) Response() PageOfDataControllerResource
Response returns the raw server response from the last page request.
func (page PageOfDataControllerResourcePage) Values() []DataControllerResource
Values returns the slice of values for the current page or nil if there are no values.
Plan plan for the resource.
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"` }
PostgresInstance a Postgres Instance.
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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,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"` }
func (pi PostgresInstance) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PostgresInstance.
func (pi *PostgresInstance) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PostgresInstance struct.
PostgresInstanceListResult a list of PostgresInstance.
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"` }
func (pilr PostgresInstanceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (pilr PostgresInstanceListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PostgresInstanceListResult.
PostgresInstanceListResultIterator provides access to a complete listing of PostgresInstance values.
type PostgresInstanceListResultIterator struct {
// contains filtered or unexported fields
}
func NewPostgresInstanceListResultIterator(page PostgresInstanceListResultPage) PostgresInstanceListResultIterator
Creates a new instance of the PostgresInstanceListResultIterator type.
func (iter *PostgresInstanceListResultIterator) 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 (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 (iter PostgresInstanceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter PostgresInstanceListResultIterator) Response() PostgresInstanceListResult
Response returns the raw server response from the last page request.
func (iter PostgresInstanceListResultIterator) Value() PostgresInstance
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
PostgresInstanceListResultPage contains a page of PostgresInstance values.
type PostgresInstanceListResultPage struct {
// contains filtered or unexported fields
}
func NewPostgresInstanceListResultPage(cur PostgresInstanceListResult, getNextPage func(context.Context, PostgresInstanceListResult) (PostgresInstanceListResult, error)) PostgresInstanceListResultPage
Creates a new instance of the PostgresInstanceListResultPage type.
func (page *PostgresInstanceListResultPage) 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 (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 (page PostgresInstanceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page PostgresInstanceListResultPage) Response() PostgresInstanceListResult
Response returns the raw server response from the last page request.
func (page PostgresInstanceListResultPage) Values() []PostgresInstance
Values returns the slice of values for the current page or nil if there are no values.
PostgresInstanceProperties postgres Instance properties.
type PostgresInstanceProperties struct { // HybridDataManagerID - null HybridDataManagerID *string `json:"hybridDataManagerId,omitempty"` }
PostgresInstanceUpdate an update to a Postgres Instance.
type PostgresInstanceUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // HybridDataManagerID - null HybridDataManagerID *string `json:"hybridDataManagerId,omitempty"` }
func (piu PostgresInstanceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PostgresInstanceUpdate.
PostgresInstancesClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.
type PostgresInstancesClient struct { BaseClient }
func NewPostgresInstancesClient(subscriptionID string, subscriptionID1 string) PostgresInstancesClient
NewPostgresInstancesClient creates an instance of the PostgresInstancesClient client.
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 (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 (client PostgresInstancesClient) CreatePreparer(ctx context.Context, resourceGroupName string, postgresInstanceName string) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (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 (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 (client PostgresInstancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, postgresInstanceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client PostgresInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, postgresInstanceName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client PostgresInstancesClient) List(ctx context.Context) (result PostgresInstanceListResultPage, err error)
List sends the list request.
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 (client PostgresInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result PostgresInstanceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client PostgresInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client PostgresInstancesClient) ListComplete(ctx context.Context) (result PostgresInstanceListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client PostgresInstancesClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 (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 (client PostgresInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, postgresInstanceName string, parameters PostgresInstanceUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags
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"` }
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
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"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
ResourceIdentityType enumerates the values for resource identity type.
type ResourceIdentityType string
const ( // SystemAssigned ... SystemAssigned ResourceIdentityType = "SystemAssigned" )
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
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.
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"` }
func (rmwaps ResourceModelWithAllowedPropertySet) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySet.
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"` }
func (rmwaps ResourceModelWithAllowedPropertySetIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySetIdentity.
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"` }
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"` }
ResourceSku ...
type ResourceSku struct { Capacity *int32 `json:"capacity,omitempty"` Family *string `json:"family,omitempty"` Name *string `json:"name,omitempty"` Size *string `json:"size,omitempty"` Tier *string `json:"tier,omitempty"` }
SQLManagedInstance a SqlManagedInstance.
type SQLManagedInstance struct { autorest.Response `json:"-"` // SQLManagedInstanceProperties - null *SQLManagedInstanceProperties `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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,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"` }
func (smi SQLManagedInstance) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLManagedInstance.
func (smi *SQLManagedInstance) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SQLManagedInstance struct.
SQLManagedInstanceListResult a list of SqlManagedInstance.
type SQLManagedInstanceListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]SQLManagedInstance `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
func (smilr SQLManagedInstanceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (smilr SQLManagedInstanceListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLManagedInstanceListResult.
SQLManagedInstanceListResultIterator provides access to a complete listing of SQLManagedInstance values.
type SQLManagedInstanceListResultIterator struct {
// contains filtered or unexported fields
}
func NewSQLManagedInstanceListResultIterator(page SQLManagedInstanceListResultPage) SQLManagedInstanceListResultIterator
Creates a new instance of the SQLManagedInstanceListResultIterator type.
func (iter *SQLManagedInstanceListResultIterator) 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 (iter *SQLManagedInstanceListResultIterator) 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 (iter SQLManagedInstanceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SQLManagedInstanceListResultIterator) Response() SQLManagedInstanceListResult
Response returns the raw server response from the last page request.
func (iter SQLManagedInstanceListResultIterator) Value() SQLManagedInstance
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
SQLManagedInstanceListResultPage contains a page of SQLManagedInstance values.
type SQLManagedInstanceListResultPage struct {
// contains filtered or unexported fields
}
func NewSQLManagedInstanceListResultPage(cur SQLManagedInstanceListResult, getNextPage func(context.Context, SQLManagedInstanceListResult) (SQLManagedInstanceListResult, error)) SQLManagedInstanceListResultPage
Creates a new instance of the SQLManagedInstanceListResultPage type.
func (page *SQLManagedInstanceListResultPage) 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 (page *SQLManagedInstanceListResultPage) 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 (page SQLManagedInstanceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SQLManagedInstanceListResultPage) Response() SQLManagedInstanceListResult
Response returns the raw server response from the last page request.
func (page SQLManagedInstanceListResultPage) Values() []SQLManagedInstance
Values returns the slice of values for the current page or nil if there are no values.
SQLManagedInstanceProperties properties of sqlManagedInstance.
type SQLManagedInstanceProperties struct { // DataControllerID - null DataControllerID *string `json:"dataControllerId,omitempty"` // InstanceEndpoint - The on premise instance endpoint InstanceEndpoint *string `json:"instanceEndpoint,omitempty"` // Admin - The instance admin user Admin *string `json:"admin,omitempty"` // StartTime - The instance start time StartTime *string `json:"startTime,omitempty"` // EndTime - The instance end time EndTime *string `json:"endTime,omitempty"` // VCore - The instance vCore VCore *string `json:"vCore,omitempty"` }
SQLManagedInstanceUpdate an update to a SQL Managed Instance.
type SQLManagedInstanceUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
func (smiu SQLManagedInstanceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLManagedInstanceUpdate.
SQLManagedInstancesClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.
type SQLManagedInstancesClient struct { BaseClient }
func NewSQLManagedInstancesClient(subscriptionID string, subscriptionID1 string) SQLManagedInstancesClient
NewSQLManagedInstancesClient creates an instance of the SQLManagedInstancesClient client.
func NewSQLManagedInstancesClientWithBaseURI(baseURI string, subscriptionID string, subscriptionID1 string) SQLManagedInstancesClient
NewSQLManagedInstancesClientWithBaseURI creates an instance of the SQLManagedInstancesClient 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 (client SQLManagedInstancesClient) Create(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string, parameters SQLManagedInstance) (result SQLManagedInstance, err error)
Create creates or replaces a SQL Managed Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLManagedInstanceName - the name of SQL Managed Instances parameters - the SQL Managed Instance to be created or updated.
func (client SQLManagedInstancesClient) CreatePreparer(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string, parameters SQLManagedInstance) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client SQLManagedInstancesClient) CreateResponder(resp *http.Response) (result SQLManagedInstance, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client SQLManagedInstancesClient) 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 (client SQLManagedInstancesClient) Delete(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string) (result autorest.Response, err error)
Delete deletes a SQL Managed Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLManagedInstanceName - the name of Sql Managed Instances
func (client SQLManagedInstancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client SQLManagedInstancesClient) 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 (client SQLManagedInstancesClient) 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 (client SQLManagedInstancesClient) Get(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string) (result SQLManagedInstance, err error)
Get retrieves a SQL Managed Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLManagedInstanceName - name of SQL Managed Instance
func (client SQLManagedInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client SQLManagedInstancesClient) GetResponder(resp *http.Response) (result SQLManagedInstance, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client SQLManagedInstancesClient) 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 (client SQLManagedInstancesClient) List(ctx context.Context) (result SQLManagedInstanceListResultPage, err error)
List sends the list request.
func (client SQLManagedInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SQLManagedInstanceListResultPage, err error)
ListByResourceGroup gets all sqlManagedInstances in a resource group. Parameters: resourceGroupName - the name of the Azure resource group
func (client SQLManagedInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SQLManagedInstanceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client SQLManagedInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client SQLManagedInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result SQLManagedInstanceListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client SQLManagedInstancesClient) 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 (client SQLManagedInstancesClient) ListComplete(ctx context.Context) (result SQLManagedInstanceListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client SQLManagedInstancesClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client SQLManagedInstancesClient) ListResponder(resp *http.Response) (result SQLManagedInstanceListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client SQLManagedInstancesClient) 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 (client SQLManagedInstancesClient) Update(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string, parameters SQLManagedInstanceUpdate) (result SQLManagedInstance, err error)
Update updates a SQL Managed Instance resource Parameters: resourceGroupName - the name of the Azure resource group SQLManagedInstanceName - name of sqlManagedInstance parameters - the SQL Managed Instance.
func (client SQLManagedInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLManagedInstanceName string, parameters SQLManagedInstanceUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client SQLManagedInstancesClient) UpdateResponder(resp *http.Response) (result SQLManagedInstance, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client SQLManagedInstancesClient) 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.
SQLServer a SQL server.
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"` }
func (ss SQLServer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServer.
func (ss *SQLServer) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SQLServer struct.
SQLServerInstance a 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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,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"` }
func (ssi SQLServerInstance) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerInstance.
func (ssi *SQLServerInstance) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SQLServerInstance struct.
SQLServerInstanceListResult a list of SqlServerInstance.
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"` }
func (ssilr SQLServerInstanceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (ssilr SQLServerInstanceListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerInstanceListResult.
SQLServerInstanceListResultIterator provides access to a complete listing of SQLServerInstance values.
type SQLServerInstanceListResultIterator struct {
// contains filtered or unexported fields
}
func NewSQLServerInstanceListResultIterator(page SQLServerInstanceListResultPage) SQLServerInstanceListResultIterator
Creates a new instance of the SQLServerInstanceListResultIterator type.
func (iter *SQLServerInstanceListResultIterator) 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 (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 (iter SQLServerInstanceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SQLServerInstanceListResultIterator) Response() SQLServerInstanceListResult
Response returns the raw server response from the last page request.
func (iter SQLServerInstanceListResultIterator) Value() SQLServerInstance
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
SQLServerInstanceListResultPage contains a page of SQLServerInstance values.
type SQLServerInstanceListResultPage struct {
// contains filtered or unexported fields
}
func NewSQLServerInstanceListResultPage(cur SQLServerInstanceListResult, getNextPage func(context.Context, SQLServerInstanceListResult) (SQLServerInstanceListResult, error)) SQLServerInstanceListResultPage
Creates a new instance of the SQLServerInstanceListResultPage type.
func (page *SQLServerInstanceListResultPage) 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 (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 (page SQLServerInstanceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SQLServerInstanceListResultPage) Response() SQLServerInstanceListResult
Response returns the raw server response from the last page request.
func (page SQLServerInstanceListResultPage) Values() []SQLServerInstance
Values returns the slice of values for the current page or nil if there are no values.
SQLServerInstanceProperties properties of SqlServerInstance.
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"` }
func (ssip SQLServerInstanceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerInstanceProperties.
SQLServerInstanceUpdate an update to a SQL Server Instance.
type SQLServerInstanceUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
func (ssiu SQLServerInstanceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerInstanceUpdate.
SQLServerInstancesClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.
type SQLServerInstancesClient struct { BaseClient }
func NewSQLServerInstancesClient(subscriptionID string, subscriptionID1 string) SQLServerInstancesClient
NewSQLServerInstancesClient creates an instance of the SQLServerInstancesClient client.
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 (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 (client SQLServerInstancesClient) CreatePreparer(ctx context.Context, resourceGroupName string, SQLServerInstanceName string, parameters SQLServerInstance) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (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 (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 (client SQLServerInstancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLServerInstanceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client SQLServerInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLServerInstanceName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client SQLServerInstancesClient) List(ctx context.Context) (result SQLServerInstanceListResultPage, err error)
List sends the list request.
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 (client SQLServerInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SQLServerInstanceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client SQLServerInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client SQLServerInstancesClient) ListComplete(ctx context.Context) (result SQLServerInstanceListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client SQLServerInstancesClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 (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 (client SQLServerInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerInstanceName string, parameters SQLServerInstanceUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
SQLServerListResult a list of SQL servers.
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"` }
func (sslr SQLServerListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (sslr SQLServerListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerListResult.
SQLServerListResultIterator provides access to a complete listing of SQLServer values.
type SQLServerListResultIterator struct {
// contains filtered or unexported fields
}
func NewSQLServerListResultIterator(page SQLServerListResultPage) SQLServerListResultIterator
Creates a new instance of the SQLServerListResultIterator type.
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 (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 (iter SQLServerListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SQLServerListResultIterator) Response() SQLServerListResult
Response returns the raw server response from the last page request.
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.
SQLServerListResultPage contains a page of SQLServer values.
type SQLServerListResultPage struct {
// contains filtered or unexported fields
}
func NewSQLServerListResultPage(cur SQLServerListResult, getNextPage func(context.Context, SQLServerListResult) (SQLServerListResult, error)) SQLServerListResultPage
Creates a new instance of the SQLServerListResultPage type.
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 (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 (page SQLServerListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SQLServerListResultPage) Response() SQLServerListResult
Response returns the raw server response from the last page request.
func (page SQLServerListResultPage) Values() []SQLServer
Values returns the slice of values for the current page or nil if there are no values.
SQLServerProperties the SQL server properties.
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"` }
SQLServerRegistration a SQL server registration.
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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,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"` }
func (ssr SQLServerRegistration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerRegistration.
func (ssr *SQLServerRegistration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SQLServerRegistration struct.
SQLServerRegistrationListResult server
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"` }
func (ssrlr SQLServerRegistrationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (ssrlr SQLServerRegistrationListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerRegistrationListResult.
SQLServerRegistrationListResultIterator provides access to a complete listing of SQLServerRegistration values.
type SQLServerRegistrationListResultIterator struct {
// contains filtered or unexported fields
}
func NewSQLServerRegistrationListResultIterator(page SQLServerRegistrationListResultPage) SQLServerRegistrationListResultIterator
Creates a new instance of the SQLServerRegistrationListResultIterator type.
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 (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 (iter SQLServerRegistrationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SQLServerRegistrationListResultIterator) Response() SQLServerRegistrationListResult
Response returns the raw server response from the last page request.
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.
SQLServerRegistrationListResultPage contains a page of SQLServerRegistration values.
type SQLServerRegistrationListResultPage struct {
// contains filtered or unexported fields
}
func NewSQLServerRegistrationListResultPage(cur SQLServerRegistrationListResult, getNextPage func(context.Context, SQLServerRegistrationListResult) (SQLServerRegistrationListResult, error)) SQLServerRegistrationListResultPage
Creates a new instance of the SQLServerRegistrationListResultPage type.
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 (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 (page SQLServerRegistrationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SQLServerRegistrationListResultPage) Response() SQLServerRegistrationListResult
Response returns the raw server response from the last page request.
func (page SQLServerRegistrationListResultPage) Values() []SQLServerRegistration
Values returns the slice of values for the current page or nil if there are no values.
SQLServerRegistrationProperties the SQL server Registration properties.
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"` }
SQLServerRegistrationUpdate an update to a SQL Server Registration.
type SQLServerRegistrationUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
func (ssru SQLServerRegistrationUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLServerRegistrationUpdate.
SQLServerRegistrationsClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.
type SQLServerRegistrationsClient struct { BaseClient }
func NewSQLServerRegistrationsClient(subscriptionID string, subscriptionID1 string) SQLServerRegistrationsClient
NewSQLServerRegistrationsClient creates an instance of the SQLServerRegistrationsClient client.
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 (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 (client SQLServerRegistrationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, parameters SQLServerRegistration) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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 (client SQLServerRegistrationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client SQLServerRegistrationsClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client SQLServerRegistrationsClient) List(ctx context.Context) (result SQLServerRegistrationListResultPage, err error)
List gets all SQL Server registrations in a subscription.
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 (client SQLServerRegistrationsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SQLServerRegistrationListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client SQLServerRegistrationsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client SQLServerRegistrationsClient) ListComplete(ctx context.Context) (result SQLServerRegistrationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client SQLServerRegistrationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 (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 (client SQLServerRegistrationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, parameters SQLServerRegistrationUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
SQLServersClient is the the AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources.
type SQLServersClient struct { BaseClient }
func NewSQLServersClient(subscriptionID string, subscriptionID1 string) SQLServersClient
NewSQLServersClient creates an instance of the SQLServersClient client.
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 (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 (client SQLServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string, parameters SQLServer) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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 (client SQLServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client SQLServersClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, SQLServerName string, expand string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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 (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 (client SQLServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, SQLServerRegistrationName string, expand string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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.
Sku the resource model definition representing 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"` }
SkuTier enumerates the values for sku tier.
type SkuTier string
const ( // Basic ... Basic SkuTier = "Basic" // Free ... Free SkuTier = "Free" // Premium ... Premium SkuTier = "Premium" // Standard ... Standard SkuTier = "Standard" )
func PossibleSkuTierValues() []SkuTier
PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
SystemData read only system data
type SystemData struct { // CreatedBy - An identifier for the identity that created the resource CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' CreatedByType IdentityType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC) CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - An identifier for the identity that last modified the resource LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' LastModifiedByType IdentityType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
TrackedResource the resource model definition for a ARM tracked top level resource
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"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,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"` }
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
Name | Synopsis |
---|---|
.. | |
azuredataapi | Deprecated: Please note, this package has been deprecated. |