azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers Index | Files | Directories

package postgresqlflexibleservers

import "github.com/Azure/azure-sdk-for-go/services/preview/postgresql/mgmt/2020-02-14-preview/postgresqlflexibleservers"

Package postgresqlflexibleservers implements the Azure ARM Postgresqlflexibleservers service API version 2020-02-14-preview.

The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

Index

Package Files

checknameavailability.go client.go configurations.go enums.go firewallrules.go locationbasedcapabilities.go models.go operations.go servers.go version.go virtualnetworksubnetusage.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type AzureEntityResource Uses

type AzureEntityResource struct {
    // Etag - READ-ONLY; Resource Etag.
    Etag *string `json:"etag,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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Postgresqlflexibleservers.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type CapabilitiesListResult Uses

type CapabilitiesListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; A list of supported capabilities.
    Value *[]CapabilityProperties `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link to retrieve next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

CapabilitiesListResult location capability

func (CapabilitiesListResult) IsEmpty Uses

func (clr CapabilitiesListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CapabilitiesListResultIterator Uses

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

CapabilitiesListResultIterator provides access to a complete listing of CapabilityProperties values.

func NewCapabilitiesListResultIterator Uses

func NewCapabilitiesListResultIterator(page CapabilitiesListResultPage) CapabilitiesListResultIterator

Creates a new instance of the CapabilitiesListResultIterator type.

func (*CapabilitiesListResultIterator) Next Uses

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

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

func (iter CapabilitiesListResultIterator) NotDone() bool

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

func (CapabilitiesListResultIterator) Response Uses

func (iter CapabilitiesListResultIterator) Response() CapabilitiesListResult

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

func (CapabilitiesListResultIterator) Value Uses

func (iter CapabilitiesListResultIterator) Value() CapabilityProperties

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

type CapabilitiesListResultPage Uses

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

CapabilitiesListResultPage contains a page of CapabilityProperties values.

func NewCapabilitiesListResultPage Uses

func NewCapabilitiesListResultPage(cur CapabilitiesListResult, getNextPage func(context.Context, CapabilitiesListResult) (CapabilitiesListResult, error)) CapabilitiesListResultPage

Creates a new instance of the CapabilitiesListResultPage type.

func (*CapabilitiesListResultPage) Next Uses

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

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

func (page CapabilitiesListResultPage) NotDone() bool

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

func (CapabilitiesListResultPage) Response Uses

func (page CapabilitiesListResultPage) Response() CapabilitiesListResult

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

func (CapabilitiesListResultPage) Values Uses

func (page CapabilitiesListResultPage) Values() []CapabilityProperties

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

type CapabilityProperties Uses

type CapabilityProperties struct {
    // Zone - READ-ONLY; zone name
    Zone *string `json:"zone,omitempty"`
    // SupportedFlexibleServerEditions - READ-ONLY
    SupportedFlexibleServerEditions *[]ServerEditionCapability `json:"supportedFlexibleServerEditions,omitempty"`
}

CapabilityProperties location capabilities.

type CheckNameAvailabilityClient Uses

type CheckNameAvailabilityClient struct {
    BaseClient
}

CheckNameAvailabilityClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

func NewCheckNameAvailabilityClient Uses

func NewCheckNameAvailabilityClient(subscriptionID string) CheckNameAvailabilityClient

NewCheckNameAvailabilityClient creates an instance of the CheckNameAvailabilityClient client.

func NewCheckNameAvailabilityClientWithBaseURI Uses

func NewCheckNameAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckNameAvailabilityClient

NewCheckNameAvailabilityClientWithBaseURI creates an instance of the CheckNameAvailabilityClient 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 (CheckNameAvailabilityClient) Execute Uses

func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (result NameAvailability, err error)

Execute check the availability of name for resource Parameters: nameAvailabilityRequest - the required parameters for checking if resource name is available.

func (CheckNameAvailabilityClient) ExecutePreparer Uses

func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (CheckNameAvailabilityClient) ExecuteResponder Uses

func (client CheckNameAvailabilityClient) ExecuteResponder(resp *http.Response) (result NameAvailability, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (CheckNameAvailabilityClient) ExecuteSender Uses

func (client CheckNameAvailabilityClient) ExecuteSender(req *http.Request) (*http.Response, error)

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

type CloudError Uses

type CloudError struct {
    Error *ErrorResponse `json:"error,omitempty"`
}

CloudError an error response from the Batch service.

type Configuration Uses

type Configuration struct {
    autorest.Response `json:"-"`
    // ConfigurationProperties - The properties of a configuration.
    *ConfigurationProperties `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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

Configuration represents a Configuration.

func (Configuration) MarshalJSON Uses

func (c Configuration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Configuration.

func (*Configuration) UnmarshalJSON Uses

func (c *Configuration) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Configuration struct.

type ConfigurationDataType Uses

type ConfigurationDataType string

ConfigurationDataType enumerates the values for configuration data type.

const (
    // Boolean ...
    Boolean ConfigurationDataType = "Boolean"
    // Enumeration ...
    Enumeration ConfigurationDataType = "Enumeration"
    // Integer ...
    Integer ConfigurationDataType = "Integer"
    // Numeric ...
    Numeric ConfigurationDataType = "Numeric"
)

func PossibleConfigurationDataTypeValues Uses

func PossibleConfigurationDataTypeValues() []ConfigurationDataType

PossibleConfigurationDataTypeValues returns an array of possible values for the ConfigurationDataType const type.

type ConfigurationListResult Uses

type ConfigurationListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of server configurations.
    Value *[]Configuration `json:"value,omitempty"`
    // NextLink - The link used to get the next page of operations.
    NextLink *string `json:"nextLink,omitempty"`
}

ConfigurationListResult a list of server configurations.

func (ConfigurationListResult) IsEmpty Uses

func (clr ConfigurationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConfigurationListResultIterator Uses

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

ConfigurationListResultIterator provides access to a complete listing of Configuration values.

func NewConfigurationListResultIterator Uses

func NewConfigurationListResultIterator(page ConfigurationListResultPage) ConfigurationListResultIterator

Creates a new instance of the ConfigurationListResultIterator type.

func (*ConfigurationListResultIterator) Next Uses

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

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

func (iter ConfigurationListResultIterator) NotDone() bool

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

func (ConfigurationListResultIterator) Response Uses

func (iter ConfigurationListResultIterator) Response() ConfigurationListResult

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

func (ConfigurationListResultIterator) Value Uses

func (iter ConfigurationListResultIterator) Value() Configuration

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

type ConfigurationListResultPage Uses

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

ConfigurationListResultPage contains a page of Configuration values.

func NewConfigurationListResultPage Uses

func NewConfigurationListResultPage(cur ConfigurationListResult, getNextPage func(context.Context, ConfigurationListResult) (ConfigurationListResult, error)) ConfigurationListResultPage

Creates a new instance of the ConfigurationListResultPage type.

func (*ConfigurationListResultPage) Next Uses

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

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

func (page ConfigurationListResultPage) NotDone() bool

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

func (ConfigurationListResultPage) Response Uses

func (page ConfigurationListResultPage) Response() ConfigurationListResult

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

func (ConfigurationListResultPage) Values Uses

func (page ConfigurationListResultPage) Values() []Configuration

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

type ConfigurationProperties Uses

type ConfigurationProperties struct {
    // Value - Value of the configuration.
    Value *string `json:"value,omitempty"`
    // Description - READ-ONLY; Description of the configuration.
    Description *string `json:"description,omitempty"`
    // DefaultValue - READ-ONLY; Default value of the configuration.
    DefaultValue *string `json:"defaultValue,omitempty"`
    // DataType - READ-ONLY; Data type of the configuration. Possible values include: 'Boolean', 'Numeric', 'Integer', 'Enumeration'
    DataType ConfigurationDataType `json:"dataType,omitempty"`
    // AllowedValues - READ-ONLY; Allowed values of the configuration.
    AllowedValues *string `json:"allowedValues,omitempty"`
    // Source - Source of the configuration.
    Source *string `json:"source,omitempty"`
}

ConfigurationProperties the properties of a configuration.

func (ConfigurationProperties) MarshalJSON Uses

func (cp ConfigurationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConfigurationProperties.

type ConfigurationsClient Uses

type ConfigurationsClient struct {
    BaseClient
}

ConfigurationsClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

func NewConfigurationsClient Uses

func NewConfigurationsClient(subscriptionID string) ConfigurationsClient

NewConfigurationsClient creates an instance of the ConfigurationsClient client.

func NewConfigurationsClientWithBaseURI Uses

func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient

NewConfigurationsClientWithBaseURI creates an instance of the ConfigurationsClient 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 (ConfigurationsClient) Get Uses

func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (result Configuration, err error)

Get gets information about a configuration of server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. configurationName - the name of the server configuration.

func (ConfigurationsClient) GetPreparer Uses

func (client ConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ConfigurationsClient) GetResponder Uses

func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Configuration, err error)

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

func (ConfigurationsClient) GetSender Uses

func (client ConfigurationsClient) 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 (ConfigurationsClient) ListByServer Uses

func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultPage, err error)

ListByServer list all the configurations in a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.

func (ConfigurationsClient) ListByServerComplete Uses

func (client ConfigurationsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultIterator, err error)

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

func (ConfigurationsClient) ListByServerPreparer Uses

func (client ConfigurationsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ConfigurationsClient) ListByServerResponder Uses

func (client ConfigurationsClient) ListByServerResponder(resp *http.Response) (result ConfigurationListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ConfigurationsClient) ListByServerSender Uses

func (client ConfigurationsClient) ListByServerSender(req *http.Request) (*http.Response, error)

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

func (ConfigurationsClient) Update Uses

func (client ConfigurationsClient) Update(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (result ConfigurationsUpdateFuture, err error)

Update updates a configuration of a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. configurationName - the name of the server configuration. parameters - the required parameters for updating a server configuration.

func (ConfigurationsClient) UpdatePreparer Uses

func (client ConfigurationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ConfigurationsClient) UpdateResponder Uses

func (client ConfigurationsClient) UpdateResponder(resp *http.Response) (result Configuration, err error)

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

func (ConfigurationsClient) UpdateSender Uses

func (client ConfigurationsClient) UpdateSender(req *http.Request) (future ConfigurationsUpdateFuture, err error)

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

type ConfigurationsUpdateFuture Uses

type ConfigurationsUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ConfigurationsClient) (Configuration, error)
}

ConfigurationsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CreateMode Uses

type CreateMode string

CreateMode enumerates the values for create mode.

const (
    // Default ...
    Default CreateMode = "Default"
    // PointInTimeRestore ...
    PointInTimeRestore CreateMode = "PointInTimeRestore"
)

func PossibleCreateModeValues Uses

func PossibleCreateModeValues() []CreateMode

PossibleCreateModeValues returns an array of possible values for the CreateMode const type.

type DelegatedSubnetUsage Uses

type DelegatedSubnetUsage struct {
    // SubnetName - READ-ONLY; name of the subnet
    SubnetName *string `json:"subnetName,omitempty"`
    // Usage - READ-ONLY; Number of used delegated subnets
    Usage *int64 `json:"usage,omitempty"`
}

DelegatedSubnetUsage delegated subnet usage data.

type ErrorAdditionalInfo Uses

type ErrorAdditionalInfo struct {
    // Type - READ-ONLY; The additional info type.
    Type *string `json:"type,omitempty"`
    // Info - READ-ONLY; The additional info.
    Info interface{} `json:"info,omitempty"`
}

ErrorAdditionalInfo the resource management error additional info.

type ErrorResponse Uses

type ErrorResponse struct {
    // Code - READ-ONLY; The error code.
    Code *string `json:"code,omitempty"`
    // Message - READ-ONLY; The error message.
    Message *string `json:"message,omitempty"`
    // Target - READ-ONLY; The error target.
    Target *string `json:"target,omitempty"`
    // Details - READ-ONLY; The error details.
    Details *[]ErrorResponse `json:"details,omitempty"`
    // AdditionalInfo - READ-ONLY; The error additional info.
    AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
}

ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)

type FirewallRule Uses

type FirewallRule struct {
    autorest.Response `json:"-"`
    // FirewallRuleProperties - The properties of a firewall rule.
    *FirewallRuleProperties `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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

FirewallRule represents a server firewall rule.

func (FirewallRule) MarshalJSON Uses

func (fr FirewallRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirewallRule.

func (*FirewallRule) UnmarshalJSON Uses

func (fr *FirewallRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FirewallRule struct.

type FirewallRuleListResult Uses

type FirewallRuleListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of firewall rules in a server.
    Value *[]FirewallRule `json:"value,omitempty"`
    // NextLink - The link used to get the next page of operations.
    NextLink *string `json:"nextLink,omitempty"`
}

FirewallRuleListResult a list of firewall rules.

func (FirewallRuleListResult) IsEmpty Uses

func (frlr FirewallRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type FirewallRuleListResultIterator Uses

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

FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values.

func NewFirewallRuleListResultIterator Uses

func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator

Creates a new instance of the FirewallRuleListResultIterator type.

func (*FirewallRuleListResultIterator) Next Uses

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

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

func (iter FirewallRuleListResultIterator) NotDone() bool

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

func (FirewallRuleListResultIterator) Response Uses

func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult

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

func (FirewallRuleListResultIterator) Value Uses

func (iter FirewallRuleListResultIterator) Value() FirewallRule

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

type FirewallRuleListResultPage Uses

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

FirewallRuleListResultPage contains a page of FirewallRule values.

func NewFirewallRuleListResultPage Uses

func NewFirewallRuleListResultPage(cur FirewallRuleListResult, getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage

Creates a new instance of the FirewallRuleListResultPage type.

func (*FirewallRuleListResultPage) Next Uses

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

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

func (page FirewallRuleListResultPage) NotDone() bool

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

func (FirewallRuleListResultPage) Response Uses

func (page FirewallRuleListResultPage) Response() FirewallRuleListResult

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

func (FirewallRuleListResultPage) Values Uses

func (page FirewallRuleListResultPage) Values() []FirewallRule

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

type FirewallRuleProperties Uses

type FirewallRuleProperties struct {
    // StartIPAddress - The start IP address of the server firewall rule. Must be IPv4 format.
    StartIPAddress *string `json:"startIpAddress,omitempty"`
    // EndIPAddress - The end IP address of the server firewall rule. Must be IPv4 format.
    EndIPAddress *string `json:"endIpAddress,omitempty"`
}

FirewallRuleProperties the properties of a server firewall rule.

type FirewallRulesClient Uses

type FirewallRulesClient struct {
    BaseClient
}

FirewallRulesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

func NewFirewallRulesClient Uses

func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient

NewFirewallRulesClient creates an instance of the FirewallRulesClient client.

func NewFirewallRulesClientWithBaseURI Uses

func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient

NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient 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 (FirewallRulesClient) CreateOrUpdate Uses

func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (result FirewallRulesCreateOrUpdateFuture, err error)

CreateOrUpdate creates a new firewall rule or updates an existing firewall rule. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. firewallRuleName - the name of the server firewall rule. parameters - the required parameters for creating or updating a firewall rule.

func (FirewallRulesClient) CreateOrUpdatePreparer Uses

func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FirewallRulesClient) CreateOrUpdateResponder Uses

func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)

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

func (FirewallRulesClient) CreateOrUpdateSender Uses

func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (future FirewallRulesCreateOrUpdateFuture, err error)

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

func (FirewallRulesClient) Delete Uses

func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRulesDeleteFuture, err error)

Delete deletes a PostgreSQL server firewall rule. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. firewallRuleName - the name of the server firewall rule.

func (FirewallRulesClient) DeletePreparer Uses

func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (FirewallRulesClient) DeleteResponder Uses

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

func (client FirewallRulesClient) DeleteSender(req *http.Request) (future FirewallRulesDeleteFuture, err error)

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

func (FirewallRulesClient) Get Uses

func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)

Get list all the firewall rules in a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. firewallRuleName - the name of the server firewall rule.

func (FirewallRulesClient) GetPreparer Uses

func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (FirewallRulesClient) GetResponder Uses

func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)

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

func (FirewallRulesClient) GetSender Uses

func (client FirewallRulesClient) 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 (FirewallRulesClient) ListByServer Uses

func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultPage, err error)

ListByServer list all the firewall rules in a given PostgreSQL server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.

func (FirewallRulesClient) ListByServerComplete Uses

func (client FirewallRulesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultIterator, err error)

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

func (FirewallRulesClient) ListByServerPreparer Uses

func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (FirewallRulesClient) ListByServerResponder Uses

func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (FirewallRulesClient) ListByServerSender Uses

func (client FirewallRulesClient) ListByServerSender(req *http.Request) (*http.Response, error)

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

type FirewallRulesCreateOrUpdateFuture Uses

type FirewallRulesCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(FirewallRulesClient) (FirewallRule, error)
}

FirewallRulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type FirewallRulesDeleteFuture Uses

type FirewallRulesDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(FirewallRulesClient) (autorest.Response, error)
}

FirewallRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type HAEnabledEnum Uses

type HAEnabledEnum string

HAEnabledEnum enumerates the values for ha enabled enum.

const (
    // Disabled ...
    Disabled HAEnabledEnum = "Disabled"
    // Enabled ...
    Enabled HAEnabledEnum = "Enabled"
)

func PossibleHAEnabledEnumValues Uses

func PossibleHAEnabledEnumValues() []HAEnabledEnum

PossibleHAEnabledEnumValues returns an array of possible values for the HAEnabledEnum const type.

type Identity Uses

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

Identity identity for the resource.

func (Identity) MarshalJSON Uses

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Identity.

type LocationBasedCapabilitiesClient Uses

type LocationBasedCapabilitiesClient struct {
    BaseClient
}

LocationBasedCapabilitiesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

func NewLocationBasedCapabilitiesClient Uses

func NewLocationBasedCapabilitiesClient(subscriptionID string) LocationBasedCapabilitiesClient

NewLocationBasedCapabilitiesClient creates an instance of the LocationBasedCapabilitiesClient client.

func NewLocationBasedCapabilitiesClientWithBaseURI Uses

func NewLocationBasedCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) LocationBasedCapabilitiesClient

NewLocationBasedCapabilitiesClientWithBaseURI creates an instance of the LocationBasedCapabilitiesClient 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 (LocationBasedCapabilitiesClient) Execute Uses

func (client LocationBasedCapabilitiesClient) Execute(ctx context.Context, locationName string) (result CapabilitiesListResultPage, err error)

Execute get capabilities at specified location in a given subscription. Parameters: locationName - the name of the location.

func (LocationBasedCapabilitiesClient) ExecuteComplete Uses

func (client LocationBasedCapabilitiesClient) ExecuteComplete(ctx context.Context, locationName string) (result CapabilitiesListResultIterator, err error)

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

func (LocationBasedCapabilitiesClient) ExecutePreparer Uses

func (client LocationBasedCapabilitiesClient) ExecutePreparer(ctx context.Context, locationName string) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (LocationBasedCapabilitiesClient) ExecuteResponder Uses

func (client LocationBasedCapabilitiesClient) ExecuteResponder(resp *http.Response) (result CapabilitiesListResult, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (LocationBasedCapabilitiesClient) ExecuteSender Uses

func (client LocationBasedCapabilitiesClient) ExecuteSender(req *http.Request) (*http.Response, error)

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

type MaintenanceWindow Uses

type MaintenanceWindow struct {
    // CustomWindow - indicates whether custom window is enabled or disabled
    CustomWindow *string `json:"customWindow,omitempty"`
    // StartHour - start hour for maintenance window
    StartHour *int32 `json:"startHour,omitempty"`
    // StartMinute - start minute for maintenance window
    StartMinute *int32 `json:"startMinute,omitempty"`
    // DayOfWeek - day of week for maintenance window
    DayOfWeek *int32 `json:"dayOfWeek,omitempty"`
}

MaintenanceWindow maintenance window of a server.

type NameAvailability Uses

type NameAvailability struct {
    autorest.Response `json:"-"`
    // Message - Error Message.
    Message *string `json:"message,omitempty"`
    // NameAvailable - Indicates whether the resource name is available.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Name - name of the PostgreSQL server.
    Name *string `json:"name,omitempty"`
    // Type - type of the server
    Type *string `json:"type,omitempty"`
}

NameAvailability represents a resource name availability.

type NameAvailabilityRequest Uses

type NameAvailabilityRequest struct {
    // Name - Resource name to verify.
    Name *string `json:"name,omitempty"`
    // Type - Resource type used for verification.
    Type *string `json:"type,omitempty"`
}

NameAvailabilityRequest request from client to check resource name availability.

type Operation Uses

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 or action.
    Display *OperationDisplay `json:"display,omitempty"`
    // IsDataAction - Indicates whether the operation is a data action
    IsDataAction *bool `json:"isDataAction,omitempty"`
    // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System'
    Origin OperationOrigin `json:"origin,omitempty"`
    // Properties - READ-ONLY; Additional descriptions for the operation.
    Properties map[string]interface{} `json:"properties"`
}

Operation REST API operation definition.

func (Operation) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - READ-ONLY; Operation resource provider name.
    Provider *string `json:"provider,omitempty"`
    // Resource - READ-ONLY; Resource on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - READ-ONLY; Localized friendly name for the operation.
    Operation *string `json:"operation,omitempty"`
    // Description - READ-ONLY; Operation description.
    Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - Collection of available operation details
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - URL client should use to fetch the next page (per server side paging).
    // It's null for now, added for future use.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult a list of resource provider operations.

type OperationOrigin Uses

type OperationOrigin string

OperationOrigin enumerates the values for operation origin.

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

func PossibleOperationOriginValues Uses

func PossibleOperationOriginValues() []OperationOrigin

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

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

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

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

List lists all of the available REST API operations.

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

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

type Plan Uses

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

Plan plan for the resource.

type ProxyResource Uses

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

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

type Resource Uses

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

Resource common fields that are returned in the response for all Azure Resource Manager resources

type ResourceIdentityType Uses

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

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

func PossibleResourceIdentityTypeValues Uses

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

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

type ResourceModelWithAllowedPropertySet Uses

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

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

func (ResourceModelWithAllowedPropertySet) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySet.

type ResourceModelWithAllowedPropertySetIdentity Uses

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

ResourceModelWithAllowedPropertySetIdentity ...

func (ResourceModelWithAllowedPropertySetIdentity) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySetIdentity.

type ResourceModelWithAllowedPropertySetPlan Uses

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

ResourceModelWithAllowedPropertySetPlan ...

type ResourceModelWithAllowedPropertySetSku Uses

type ResourceModelWithAllowedPropertySetSku struct {
    // Name - The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
    Name *string `json:"name,omitempty"`
    // Tier - The tier of the particular SKU, e.g. Burstable. Possible values include: 'Burstable', 'GeneralPurpose', 'MemoryOptimized'
    Tier SkuTier `json:"tier,omitempty"`
}

ResourceModelWithAllowedPropertySetSku ...

type Server Uses

type Server struct {
    autorest.Response `json:"-"`
    // Identity - The Azure Active Directory identity of the server.
    Identity *Identity `json:"identity,omitempty"`
    // Sku - The SKU (pricing tier) of the server.
    Sku *Sku `json:"sku,omitempty"`
    // ServerProperties - Properties of the server.
    *ServerProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

Server represents a server.

func (Server) MarshalJSON Uses

func (s Server) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Server.

func (*Server) UnmarshalJSON Uses

func (s *Server) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Server struct.

type ServerEditionCapability Uses

type ServerEditionCapability struct {
    // Name - READ-ONLY; Server edition name
    Name *string `json:"name,omitempty"`
    // SupportedStorageEditions - READ-ONLY
    SupportedStorageEditions *[]StorageEditionCapability `json:"supportedStorageEditions,omitempty"`
    // SupportedServerVersions - READ-ONLY
    SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"`
}

ServerEditionCapability server edition capabilities.

type ServerForUpdate Uses

type ServerForUpdate struct {
    // Location - The location the resource resides in.
    Location *string `json:"location,omitempty"`
    // Sku - The SKU (pricing tier) of the server.
    Sku *Sku `json:"sku,omitempty"`
    // ServerPropertiesForUpdate - Properties of the server.
    *ServerPropertiesForUpdate `json:"properties,omitempty"`
    // Tags - Application-specific metadata in the form of key-value pairs.
    Tags map[string]*string `json:"tags"`
}

ServerForUpdate represents a server to be updated.

func (ServerForUpdate) MarshalJSON Uses

func (sfu ServerForUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerForUpdate.

func (*ServerForUpdate) UnmarshalJSON Uses

func (sfu *ServerForUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerForUpdate struct.

type ServerHAState Uses

type ServerHAState string

ServerHAState enumerates the values for server ha state.

const (
    // CreatingStandby ...
    CreatingStandby ServerHAState = "CreatingStandby"
    // FailingOver ...
    FailingOver ServerHAState = "FailingOver"
    // Healthy ...
    Healthy ServerHAState = "Healthy"
    // NotEnabled ...
    NotEnabled ServerHAState = "NotEnabled"
    // RemovingStandby ...
    RemovingStandby ServerHAState = "RemovingStandby"
    // ReplicatingData ...
    ReplicatingData ServerHAState = "ReplicatingData"
)

func PossibleServerHAStateValues Uses

func PossibleServerHAStateValues() []ServerHAState

PossibleServerHAStateValues returns an array of possible values for the ServerHAState const type.

type ServerListResult Uses

type ServerListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of flexible servers
    Value *[]Server `json:"value,omitempty"`
    // NextLink - The link used to get the next page of operations.
    NextLink *string `json:"nextLink,omitempty"`
}

ServerListResult a list of servers.

func (ServerListResult) IsEmpty Uses

func (slr ServerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServerListResultIterator Uses

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

ServerListResultIterator provides access to a complete listing of Server values.

func NewServerListResultIterator Uses

func NewServerListResultIterator(page ServerListResultPage) ServerListResultIterator

Creates a new instance of the ServerListResultIterator type.

func (*ServerListResultIterator) Next Uses

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

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

func (iter ServerListResultIterator) NotDone() bool

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

func (ServerListResultIterator) Response Uses

func (iter ServerListResultIterator) Response() ServerListResult

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

func (ServerListResultIterator) Value Uses

func (iter ServerListResultIterator) Value() Server

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

type ServerListResultPage Uses

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

ServerListResultPage contains a page of Server values.

func NewServerListResultPage Uses

func NewServerListResultPage(cur ServerListResult, getNextPage func(context.Context, ServerListResult) (ServerListResult, error)) ServerListResultPage

Creates a new instance of the ServerListResultPage type.

func (*ServerListResultPage) Next Uses

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

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

func (page ServerListResultPage) NotDone() bool

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

func (ServerListResultPage) Response Uses

func (page ServerListResultPage) Response() ServerListResult

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

func (ServerListResultPage) Values Uses

func (page ServerListResultPage) Values() []Server

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

type ServerProperties Uses

type ServerProperties struct {
    // AdministratorLogin - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
    AdministratorLogin *string `json:"administratorLogin,omitempty"`
    // AdministratorLoginPassword - The administrator login password (required for server creation).
    AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
    // Version - PostgreSQL Server version. Possible values include: 'OneTwo', 'OneOne'
    Version ServerVersion `json:"version,omitempty"`
    // State - READ-ONLY; A state of a server that is visible to user. Possible values include: 'ServerStateReady', 'ServerStateDropping', 'ServerStateDisabled', 'ServerStateStarting', 'ServerStateStopping', 'ServerStateStopped', 'ServerStateUpdating'
    State ServerState `json:"state,omitempty"`
    // HaState - READ-ONLY; A state of a HA server that is visible to user. Possible values include: 'NotEnabled', 'CreatingStandby', 'ReplicatingData', 'FailingOver', 'Healthy', 'RemovingStandby'
    HaState ServerHAState `json:"haState,omitempty"`
    // FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of a server.
    FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
    // DisplayName - The display name of a server.
    DisplayName *string `json:"displayName,omitempty"`
    // StorageProfile - Storage profile of a server.
    StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
    // PublicNetworkAccess - READ-ONLY; public network access is enabled or not. Possible values include: 'ServerPublicNetworkAccessStateEnabled', 'ServerPublicNetworkAccessStateDisabled'
    PublicNetworkAccess ServerPublicNetworkAccessState `json:"publicNetworkAccess,omitempty"`
    // MaintenanceWindow - Maintenance window of a server.
    MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
    // HaEnabled - stand by count value can be either enabled or disabled. Possible values include: 'Enabled', 'Disabled'
    HaEnabled HAEnabledEnum `json:"haEnabled,omitempty"`
    // SourceServerName - The source PostgreSQL server name to restore from.
    SourceServerName *string `json:"sourceServerName,omitempty"`
    // PointInTimeUTC - Restore point creation time (ISO8601 format), specifying the time to restore from.
    PointInTimeUTC *date.Time `json:"pointInTimeUTC,omitempty"`
    // AvailabilityZone - availability Zone information of the server.
    AvailabilityZone *string `json:"availabilityZone,omitempty"`
    // StandbyAvailabilityZone - READ-ONLY; availability Zone information of the server.
    StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"`
    // ByokEnforcement - READ-ONLY; Status showing whether the data encryption is enabled with customer-managed keys.
    ByokEnforcement          *string                                   `json:"byokEnforcement,omitempty"`
    DelegatedSubnetArguments *ServerPropertiesDelegatedSubnetArguments `json:"delegatedSubnetArguments,omitempty"`
    // CreateMode - The mode to create a new PostgreSQL server. Possible values include: 'Default', 'PointInTimeRestore'
    CreateMode CreateMode `json:"createMode,omitempty"`
    // Tags - Application-specific metadata in the form of key-value pairs.
    Tags map[string]*string `json:"tags"`
}

ServerProperties the properties of a server.

func (ServerProperties) MarshalJSON Uses

func (sp ServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerProperties.

type ServerPropertiesDelegatedSubnetArguments Uses

type ServerPropertiesDelegatedSubnetArguments struct {
    // SubnetArmResourceID - delegated subnet arm resource id.
    SubnetArmResourceID *string `json:"subnetArmResourceId,omitempty"`
}

ServerPropertiesDelegatedSubnetArguments ...

type ServerPropertiesForUpdate Uses

type ServerPropertiesForUpdate struct {
    // AdministratorLoginPassword - The password of the administrator login.
    AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
    // StorageProfile - Storage profile of a server.
    StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
    // HaEnabled - stand by count value can be either enabled or disabled. Possible values include: 'Enabled', 'Disabled'
    HaEnabled HAEnabledEnum `json:"haEnabled,omitempty"`
    // MaintenanceWindow - Maintenance window of a server.
    MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
}

ServerPropertiesForUpdate ...

type ServerPublicNetworkAccessState Uses

type ServerPublicNetworkAccessState string

ServerPublicNetworkAccessState enumerates the values for server public network access state.

const (
    // ServerPublicNetworkAccessStateDisabled ...
    ServerPublicNetworkAccessStateDisabled ServerPublicNetworkAccessState = "Disabled"
    // ServerPublicNetworkAccessStateEnabled ...
    ServerPublicNetworkAccessStateEnabled ServerPublicNetworkAccessState = "Enabled"
)

func PossibleServerPublicNetworkAccessStateValues Uses

func PossibleServerPublicNetworkAccessStateValues() []ServerPublicNetworkAccessState

PossibleServerPublicNetworkAccessStateValues returns an array of possible values for the ServerPublicNetworkAccessState const type.

type ServerState Uses

type ServerState string

ServerState enumerates the values for server state.

const (
    // ServerStateDisabled ...
    ServerStateDisabled ServerState = "Disabled"
    // ServerStateDropping ...
    ServerStateDropping ServerState = "Dropping"
    // ServerStateReady ...
    ServerStateReady ServerState = "Ready"
    // ServerStateStarting ...
    ServerStateStarting ServerState = "Starting"
    // ServerStateStopped ...
    ServerStateStopped ServerState = "Stopped"
    // ServerStateStopping ...
    ServerStateStopping ServerState = "Stopping"
    // ServerStateUpdating ...
    ServerStateUpdating ServerState = "Updating"
)

func PossibleServerStateValues Uses

func PossibleServerStateValues() []ServerState

PossibleServerStateValues returns an array of possible values for the ServerState const type.

type ServerVersion Uses

type ServerVersion string

ServerVersion enumerates the values for server version.

const (
    // OneOne ...
    OneOne ServerVersion = "11"
    // OneTwo ...
    OneTwo ServerVersion = "12"
)

func PossibleServerVersionValues Uses

func PossibleServerVersionValues() []ServerVersion

PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.

type ServerVersionCapability Uses

type ServerVersionCapability struct {
    // Name - READ-ONLY; server version
    Name *string `json:"name,omitempty"`
    // SupportedVcores - READ-ONLY
    SupportedVcores *[]VcoreCapability `json:"supportedVcores,omitempty"`
}

ServerVersionCapability server version capabilities.

type ServersClient Uses

type ServersClient struct {
    BaseClient
}

ServersClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

func NewServersClient Uses

func NewServersClient(subscriptionID string) ServersClient

NewServersClient creates an instance of the ServersClient client.

func NewServersClientWithBaseURI Uses

func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient

NewServersClientWithBaseURI creates an instance of the ServersClient 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 (ServersClient) Create Uses

func (client ServersClient) Create(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (result ServersCreateFuture, err error)

Create creates a new server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. parameters - the required parameters for creating or updating a server.

func (ServersClient) CreatePreparer Uses

func (client ServersClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ServersClient) CreateResponder Uses

func (client ServersClient) CreateResponder(resp *http.Response) (result Server, err error)

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

func (ServersClient) CreateSender Uses

func (client ServersClient) CreateSender(req *http.Request) (future ServersCreateFuture, err error)

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

func (ServersClient) Delete Uses

func (client ServersClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServersDeleteFuture, err error)

Delete deletes a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.

func (ServersClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ServersClient) DeleteResponder Uses

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

func (client ServersClient) DeleteSender(req *http.Request) (future ServersDeleteFuture, err error)

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

func (ServersClient) Get Uses

func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)

Get gets information about a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.

func (ServersClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ServersClient) GetResponder Uses

func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)

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

func (ServersClient) GetSender Uses

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

func (client ServersClient) List(ctx context.Context) (result ServerListResultPage, err error)

List list all the servers in a given subscription.

func (ServersClient) ListByResourceGroup Uses

func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResultPage, err error)

ListByResourceGroup list all the servers in a given resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (ServersClient) ListByResourceGroupComplete Uses

func (client ServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServerListResultIterator, err error)

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

func (ServersClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServersClient) ListByResourceGroupResponder Uses

func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)

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

func (ServersClient) ListByResourceGroupSender Uses

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

func (client ServersClient) ListComplete(ctx context.Context) (result ServerListResultIterator, err error)

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

func (ServersClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ServersClient) ListResponder Uses

func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)

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

func (ServersClient) ListSender Uses

func (client ServersClient) 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 (ServersClient) Restart Uses

func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (result ServersRestartFuture, err error)

Restart restarts a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.

func (ServersClient) RestartPreparer Uses

func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

RestartPreparer prepares the Restart request.

func (ServersClient) RestartResponder Uses

func (client ServersClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)

RestartResponder handles the response to the Restart request. The method always closes the http.Response Body.

func (ServersClient) RestartSender Uses

func (client ServersClient) RestartSender(req *http.Request) (future ServersRestartFuture, err error)

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

func (ServersClient) Start Uses

func (client ServersClient) Start(ctx context.Context, resourceGroupName string, serverName string) (result ServersStartFuture, err error)

Start starts a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.

func (ServersClient) StartPreparer Uses

func (client ServersClient) StartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

StartPreparer prepares the Start request.

func (ServersClient) StartResponder Uses

func (client ServersClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (ServersClient) StartSender Uses

func (client ServersClient) StartSender(req *http.Request) (future ServersStartFuture, err error)

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

func (ServersClient) Stop Uses

func (client ServersClient) Stop(ctx context.Context, resourceGroupName string, serverName string) (result ServersStopFuture, err error)

Stop stops a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.

func (ServersClient) StopPreparer Uses

func (client ServersClient) StopPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

StopPreparer prepares the Stop request.

func (ServersClient) StopResponder Uses

func (client ServersClient) StopResponder(resp *http.Response) (result autorest.Response, err error)

StopResponder handles the response to the Stop request. The method always closes the http.Response Body.

func (ServersClient) StopSender Uses

func (client ServersClient) StopSender(req *http.Request) (future ServersStopFuture, err error)

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

func (ServersClient) Update Uses

func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate) (result ServersUpdateFuture, err error)

Update updates an existing server. The request body can contain one to many of the properties present in the normal server definition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. parameters - the required parameters for updating a server.

func (ServersClient) UpdatePreparer Uses

func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServersClient) UpdateResponder Uses

func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)

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

func (ServersClient) UpdateSender Uses

func (client ServersClient) UpdateSender(req *http.Request) (future ServersUpdateFuture, err error)

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

type ServersCreateFuture Uses

type ServersCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServersClient) (Server, error)
}

ServersCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServersDeleteFuture Uses

type ServersDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServersClient) (autorest.Response, error)
}

ServersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServersRestartFuture Uses

type ServersRestartFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServersClient) (autorest.Response, error)
}

ServersRestartFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServersStartFuture Uses

type ServersStartFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServersClient) (autorest.Response, error)
}

ServersStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServersStopFuture Uses

type ServersStopFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServersClient) (autorest.Response, error)
}

ServersStopFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServersUpdateFuture Uses

type ServersUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServersClient) (Server, error)
}

ServersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type Sku Uses

type Sku struct {
    // Name - The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
    Name *string `json:"name,omitempty"`
    // Tier - The tier of the particular SKU, e.g. Burstable. Possible values include: 'Burstable', 'GeneralPurpose', 'MemoryOptimized'
    Tier SkuTier `json:"tier,omitempty"`
}

Sku sku information related properties of a server.

type SkuTier Uses

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
    // Burstable ...
    Burstable SkuTier = "Burstable"
    // GeneralPurpose ...
    GeneralPurpose SkuTier = "GeneralPurpose"
    // MemoryOptimized ...
    MemoryOptimized SkuTier = "MemoryOptimized"
)

func PossibleSkuTierValues Uses

func PossibleSkuTierValues() []SkuTier

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

type StorageEditionCapability Uses

type StorageEditionCapability struct {
    // Name - READ-ONLY; storage edition name
    Name *string `json:"name,omitempty"`
    // SupportedStorageMB - READ-ONLY
    SupportedStorageMB *[]StorageMBCapability `json:"supportedStorageMB,omitempty"`
}

StorageEditionCapability storage edition capability

type StorageMBCapability Uses

type StorageMBCapability struct {
    // Name - READ-ONLY; storage MB name
    Name *string `json:"name,omitempty"`
    // SupportedIops - READ-ONLY; supported IOPS
    SupportedIops *int64 `json:"supportedIops,omitempty"`
    // StorageSizeMB - READ-ONLY; storage size in MB
    StorageSizeMB *int64 `json:"storageSizeMB,omitempty"`
}

StorageMBCapability storage size in MB capability

type StorageProfile Uses

type StorageProfile struct {
    // BackupRetentionDays - Backup retention days for the server.
    BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"`
    // StorageMB - Max storage allowed for a server.
    StorageMB *int32 `json:"storageMB,omitempty"`
}

StorageProfile storage Profile properties of a server

type TrackedResource Uses

type TrackedResource struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON Uses

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type VcoreCapability Uses

type VcoreCapability struct {
    // Name - READ-ONLY; vCore name
    Name *string `json:"name,omitempty"`
    // VCores - READ-ONLY; supported vCores
    VCores *int64 `json:"vCores,omitempty"`
    // SupportedIops - READ-ONLY; supported IOPS
    SupportedIops *int64 `json:"supportedIops,omitempty"`
    // SupportedMemoryPerVcoreMB - READ-ONLY; supported memory per vCore in MB
    SupportedMemoryPerVcoreMB *int64 `json:"supportedMemoryPerVcoreMB,omitempty"`
}

VcoreCapability vcores capability

type VirtualNetworkSubnetUsageClient Uses

type VirtualNetworkSubnetUsageClient struct {
    BaseClient
}

VirtualNetworkSubnetUsageClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.

func NewVirtualNetworkSubnetUsageClient Uses

func NewVirtualNetworkSubnetUsageClient(subscriptionID string) VirtualNetworkSubnetUsageClient

NewVirtualNetworkSubnetUsageClient creates an instance of the VirtualNetworkSubnetUsageClient client.

func NewVirtualNetworkSubnetUsageClientWithBaseURI Uses

func NewVirtualNetworkSubnetUsageClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkSubnetUsageClient

NewVirtualNetworkSubnetUsageClientWithBaseURI creates an instance of the VirtualNetworkSubnetUsageClient 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 (VirtualNetworkSubnetUsageClient) Execute Uses

func (client VirtualNetworkSubnetUsageClient) Execute(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter) (result VirtualNetworkSubnetUsageResult, err error)

Execute get virtual network subnet usage for a given vNet resource id. Parameters: locationName - the name of the location. parameters - the required parameters for creating or updating a server.

func (VirtualNetworkSubnetUsageClient) ExecutePreparer Uses

func (client VirtualNetworkSubnetUsageClient) ExecutePreparer(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (VirtualNetworkSubnetUsageClient) ExecuteResponder Uses

func (client VirtualNetworkSubnetUsageClient) ExecuteResponder(resp *http.Response) (result VirtualNetworkSubnetUsageResult, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (VirtualNetworkSubnetUsageClient) ExecuteSender Uses

func (client VirtualNetworkSubnetUsageClient) ExecuteSender(req *http.Request) (*http.Response, error)

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

type VirtualNetworkSubnetUsageParameter Uses

type VirtualNetworkSubnetUsageParameter struct {
    // VirtualNetworkArmResourceID - Virtual network resource id.
    VirtualNetworkArmResourceID *string `json:"virtualNetworkArmResourceId,omitempty"`
}

VirtualNetworkSubnetUsageParameter virtual network subnet usage parameter

type VirtualNetworkSubnetUsageResult Uses

type VirtualNetworkSubnetUsageResult struct {
    autorest.Response `json:"-"`
    // DelegatedSubnetsUsage - READ-ONLY
    DelegatedSubnetsUsage *[]DelegatedSubnetUsage `json:"delegatedSubnetsUsage,omitempty"`
}

VirtualNetworkSubnetUsageResult virtual network subnet usage data.

Directories

PathSynopsis
postgresqlflexibleserversapi

Package postgresqlflexibleservers imports 10 packages (graph) and is imported by 1 packages. Updated 2021-01-25. Refresh now. Tools for package owners.