sql

package
v5.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sql implements the Azure ARM Sql service API version 2015-05-01-preview.

The Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete Databases, Servers and related resources.

Index

Constants

View Source
const (
	// APIVersion is the version of the Sql
	APIVersion = "2015-05-01-preview"

	// DefaultBaseURI is the default URI used for the service Sql
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type EmailAccountAdmins

type EmailAccountAdmins string

EmailAccountAdmins enumerates the values for email account admins.

const (
	// Disabled specifies the disabled state for email account admins.
	Disabled EmailAccountAdmins = "Disabled"
	// Enabled specifies the enabled state for email account admins.
	Enabled EmailAccountAdmins = "Enabled"
)

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	APIVersion     string
	SubscriptionID string
}

ManagementClient is the base client for Sql.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is

type SecurityAlertPolicyClient

type SecurityAlertPolicyClient struct {
	ManagementClient
}

SecurityAlertPolicyClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete Databases, Servers and related resources.

func NewSecurityAlertPolicyClient

func NewSecurityAlertPolicyClient(subscriptionID string) SecurityAlertPolicyClient

NewSecurityAlertPolicyClient creates an instance of the SecurityAlertPolicyClient client.

func NewSecurityAlertPolicyClientWithBaseURI

func NewSecurityAlertPolicyClientWithBaseURI(baseURI string, subscriptionID string) SecurityAlertPolicyClient

NewSecurityAlertPolicyClientWithBaseURI creates an instance of the SecurityAlertPolicyClient client.

func (SecurityAlertPolicyClient) CreateOrUpdate

func (client SecurityAlertPolicyClient) CreateOrUpdate(parameters ServerSecurityAlertPolicyCreateOrUpdateParameters, resourceGroupName string, serverName string, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate creates or updates an Azure SQL Server security alert policy. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

parameters is the required parameters for creating or updating a Azure SQL Server security alert policy. resourceGroupName is the name of the Resource Group to which the server belongs. serverName is the name of the Azure SQL Server.

func (SecurityAlertPolicyClient) CreateOrUpdatePreparer

func (client SecurityAlertPolicyClient) CreateOrUpdatePreparer(parameters ServerSecurityAlertPolicyCreateOrUpdateParameters, resourceGroupName string, serverName string, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SecurityAlertPolicyClient) CreateOrUpdateResponder

func (client SecurityAlertPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (SecurityAlertPolicyClient) CreateOrUpdateSender

func (client SecurityAlertPolicyClient) 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 (SecurityAlertPolicyClient) Get

func (client SecurityAlertPolicyClient) Get(resourceGroupName string, serverName string) (result ServerSecurityAlertPolicy, err error)

Get returns an Azure SQL Server security alert policy.

resourceGroupName is the name of the Resource Group to which the server belongs. serverName is the name of the Azure SQL Server.

func (SecurityAlertPolicyClient) GetPreparer

func (client SecurityAlertPolicyClient) GetPreparer(resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SecurityAlertPolicyClient) GetResponder

func (client SecurityAlertPolicyClient) GetResponder(resp *http.Response) (result ServerSecurityAlertPolicy, err error)

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

func (SecurityAlertPolicyClient) GetSender

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

type ServerSecurityAlertPolicy

type ServerSecurityAlertPolicy struct {
	autorest.Response `json:"-"`
	ID                *string                              `json:"id,omitempty"`
	Name              *string                              `json:"name,omitempty"`
	Type              *string                              `json:"type,omitempty"`
	Location          *string                              `json:"location,omitempty"`
	Tags              *map[string]*string                  `json:"tags,omitempty"`
	Properties        *ServerSecurityAlertPolicyProperties `json:"properties,omitempty"`
}

ServerSecurityAlertPolicy is represents an Azure SQL Server Security Alert Policy.

type ServerSecurityAlertPolicyCreateOrUpdateParameters

type ServerSecurityAlertPolicyCreateOrUpdateParameters struct {
	Properties *ServerSecurityAlertPolicyProperties `json:"properties,omitempty"`
}

ServerSecurityAlertPolicyCreateOrUpdateParameters is create or update server security alert policy parameters.

type ServerSecurityAlertPolicyProperties

type ServerSecurityAlertPolicyProperties struct {
	State              State              `json:"state,omitempty"`
	DisabledAlerts     *string            `json:"disabledAlerts,omitempty"`
	EmailAddresses     *string            `json:"emailAddresses,omitempty"`
	EmailAccountAdmins EmailAccountAdmins `json:"emailAccountAdmins,omitempty"`
}

ServerSecurityAlertPolicyProperties is represents the properties of an Azure SQL Security alert policy.

type State

type State string

State enumerates the values for state.

const (
	// StateDisabled specifies the state disabled state for state.
	StateDisabled State = "Disabled"
	// StateEnabled specifies the state enabled state for state.
	StateEnabled State = "Enabled"
	// StateNew specifies the state new state for state.
	StateNew State = "New"
)

Jump to

Keyboard shortcuts

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