...

Package postgresqlflexibleservers

import "github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2021-06-01/postgresqlflexibleservers"
Overview
Index
Subdirectories

Overview ▾

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package postgresqlflexibleservers implements the Azure ARM Postgresqlflexibleservers service API version 2021-06-01.

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 ▾

Constants
func UserAgent() string
func Version() string
type AzureEntityResource
    func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
type Backup
    func (b Backup) MarshalJSON() ([]byte, error)
type BaseClient
    func New(subscriptionID string) BaseClient
    func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
type CapabilitiesListResult
    func (clr CapabilitiesListResult) IsEmpty() bool
    func (clr CapabilitiesListResult) MarshalJSON() ([]byte, error)
type CapabilitiesListResultIterator
    func NewCapabilitiesListResultIterator(page CapabilitiesListResultPage) CapabilitiesListResultIterator
    func (iter *CapabilitiesListResultIterator) Next() error
    func (iter *CapabilitiesListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter CapabilitiesListResultIterator) NotDone() bool
    func (iter CapabilitiesListResultIterator) Response() CapabilitiesListResult
    func (iter CapabilitiesListResultIterator) Value() CapabilityProperties
type CapabilitiesListResultPage
    func NewCapabilitiesListResultPage(cur CapabilitiesListResult, getNextPage func(context.Context, CapabilitiesListResult) (CapabilitiesListResult, error)) CapabilitiesListResultPage
    func (page *CapabilitiesListResultPage) Next() error
    func (page *CapabilitiesListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page CapabilitiesListResultPage) NotDone() bool
    func (page CapabilitiesListResultPage) Response() CapabilitiesListResult
    func (page CapabilitiesListResultPage) Values() []CapabilityProperties
type CapabilityProperties
    func (cp CapabilityProperties) MarshalJSON() ([]byte, error)
type CheckNameAvailabilityClient
    func NewCheckNameAvailabilityClient(subscriptionID string) CheckNameAvailabilityClient
    func NewCheckNameAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckNameAvailabilityClient
    func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (result NameAvailability, err error)
    func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (*http.Request, error)
    func (client CheckNameAvailabilityClient) ExecuteResponder(resp *http.Response) (result NameAvailability, err error)
    func (client CheckNameAvailabilityClient) ExecuteSender(req *http.Request) (*http.Response, error)
type CloudError
type Configuration
    func (c Configuration) MarshalJSON() ([]byte, error)
    func (c *Configuration) UnmarshalJSON(body []byte) error
type ConfigurationDataType
    func PossibleConfigurationDataTypeValues() []ConfigurationDataType
type ConfigurationListResult
    func (clr ConfigurationListResult) IsEmpty() bool
type ConfigurationListResultIterator
    func NewConfigurationListResultIterator(page ConfigurationListResultPage) ConfigurationListResultIterator
    func (iter *ConfigurationListResultIterator) Next() error
    func (iter *ConfigurationListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter ConfigurationListResultIterator) NotDone() bool
    func (iter ConfigurationListResultIterator) Response() ConfigurationListResult
    func (iter ConfigurationListResultIterator) Value() Configuration
type ConfigurationListResultPage
    func NewConfigurationListResultPage(cur ConfigurationListResult, getNextPage func(context.Context, ConfigurationListResult) (ConfigurationListResult, error)) ConfigurationListResultPage
    func (page *ConfigurationListResultPage) Next() error
    func (page *ConfigurationListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page ConfigurationListResultPage) NotDone() bool
    func (page ConfigurationListResultPage) Response() ConfigurationListResult
    func (page ConfigurationListResultPage) Values() []Configuration
type ConfigurationProperties
    func (cp ConfigurationProperties) MarshalJSON() ([]byte, error)
type ConfigurationsClient
    func NewConfigurationsClient(subscriptionID string) ConfigurationsClient
    func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient
    func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (result Configuration, err error)
    func (client ConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (*http.Request, error)
    func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Configuration, err error)
    func (client ConfigurationsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultPage, err error)
    func (client ConfigurationsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultIterator, err error)
    func (client ConfigurationsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
    func (client ConfigurationsClient) ListByServerResponder(resp *http.Response) (result ConfigurationListResult, err error)
    func (client ConfigurationsClient) ListByServerSender(req *http.Request) (*http.Response, error)
    func (client ConfigurationsClient) Put(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (result ConfigurationsPutFuture, err error)
    func (client ConfigurationsClient) PutPreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (*http.Request, error)
    func (client ConfigurationsClient) PutResponder(resp *http.Response) (result Configuration, err error)
    func (client ConfigurationsClient) PutSender(req *http.Request) (future ConfigurationsPutFuture, err error)
    func (client ConfigurationsClient) Update(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (result ConfigurationsUpdateFuture, err error)
    func (client ConfigurationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (*http.Request, error)
    func (client ConfigurationsClient) UpdateResponder(resp *http.Response) (result Configuration, err error)
    func (client ConfigurationsClient) UpdateSender(req *http.Request) (future ConfigurationsUpdateFuture, err error)
type ConfigurationsPutFuture
    func (future *ConfigurationsPutFuture) UnmarshalJSON(body []byte) error
type ConfigurationsUpdateFuture
    func (future *ConfigurationsUpdateFuture) UnmarshalJSON(body []byte) error
type CreateMode
    func PossibleCreateModeValues() []CreateMode
type CreateModeForUpdate
    func PossibleCreateModeForUpdateValues() []CreateModeForUpdate
type CreatedByType
    func PossibleCreatedByTypeValues() []CreatedByType
type Database
    func (d Database) MarshalJSON() ([]byte, error)
    func (d *Database) UnmarshalJSON(body []byte) error
type DatabaseListResult
    func (dlr DatabaseListResult) IsEmpty() bool
type DatabaseListResultIterator
    func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator
    func (iter *DatabaseListResultIterator) Next() error
    func (iter *DatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter DatabaseListResultIterator) NotDone() bool
    func (iter DatabaseListResultIterator) Response() DatabaseListResult
    func (iter DatabaseListResultIterator) Value() Database
type DatabaseListResultPage
    func NewDatabaseListResultPage(cur DatabaseListResult, getNextPage func(context.Context, DatabaseListResult) (DatabaseListResult, error)) DatabaseListResultPage
    func (page *DatabaseListResultPage) Next() error
    func (page *DatabaseListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page DatabaseListResultPage) NotDone() bool
    func (page DatabaseListResultPage) Response() DatabaseListResult
    func (page DatabaseListResultPage) Values() []Database
type DatabaseProperties
type DatabasesClient
    func NewDatabasesClient(subscriptionID string) DatabasesClient
    func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient
    func (client DatabasesClient) Create(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateFuture, err error)
    func (client DatabasesClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (*http.Request, error)
    func (client DatabasesClient) CreateResponder(resp *http.Response) (result Database, err error)
    func (client DatabasesClient) CreateSender(req *http.Request) (future DatabasesCreateFuture, err error)
    func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesDeleteFuture, err error)
    func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
    func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error)
    func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result Database, err error)
    func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
    func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error)
    func (client DatabasesClient) GetSender(req *http.Request) (*http.Response, error)
    func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultPage, err error)
    func (client DatabasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultIterator, err error)
    func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
    func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error)
    func (client DatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
type DatabasesCreateFuture
    func (future *DatabasesCreateFuture) UnmarshalJSON(body []byte) error
type DatabasesDeleteFuture
    func (future *DatabasesDeleteFuture) UnmarshalJSON(body []byte) error
type DelegatedSubnetUsage
    func (dsu DelegatedSubnetUsage) MarshalJSON() ([]byte, error)
type ErrorAdditionalInfo
    func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
type ErrorResponse
    func (er ErrorResponse) MarshalJSON() ([]byte, error)
type FailoverMode
    func PossibleFailoverModeValues() []FailoverMode
type FirewallRule
    func (fr FirewallRule) MarshalJSON() ([]byte, error)
    func (fr *FirewallRule) UnmarshalJSON(body []byte) error
type FirewallRuleListResult
    func (frlr FirewallRuleListResult) IsEmpty() bool
type FirewallRuleListResultIterator
    func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator
    func (iter *FirewallRuleListResultIterator) Next() error
    func (iter *FirewallRuleListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter FirewallRuleListResultIterator) NotDone() bool
    func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult
    func (iter FirewallRuleListResultIterator) Value() FirewallRule
type FirewallRuleListResultPage
    func NewFirewallRuleListResultPage(cur FirewallRuleListResult, getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage
    func (page *FirewallRuleListResultPage) Next() error
    func (page *FirewallRuleListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page FirewallRuleListResultPage) NotDone() bool
    func (page FirewallRuleListResultPage) Response() FirewallRuleListResult
    func (page FirewallRuleListResultPage) Values() []FirewallRule
type FirewallRuleProperties
type FirewallRulesClient
    func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient
    func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient
    func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (result FirewallRulesCreateOrUpdateFuture, err error)
    func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (*http.Request, error)
    func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)
    func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (future FirewallRulesCreateOrUpdateFuture, err error)
    func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRulesDeleteFuture, err error)
    func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
    func (client FirewallRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client FirewallRulesClient) DeleteSender(req *http.Request) (future FirewallRulesDeleteFuture, err error)
    func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)
    func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
    func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)
    func (client FirewallRulesClient) GetSender(req *http.Request) (*http.Response, error)
    func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultPage, err error)
    func (client FirewallRulesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultIterator, err error)
    func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
    func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)
    func (client FirewallRulesClient) ListByServerSender(req *http.Request) (*http.Response, error)
type FirewallRulesCreateOrUpdateFuture
    func (future *FirewallRulesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
type FirewallRulesDeleteFuture
    func (future *FirewallRulesDeleteFuture) UnmarshalJSON(body []byte) error
type FlexibleServerEditionCapability
    func (fsec FlexibleServerEditionCapability) MarshalJSON() ([]byte, error)
type GeoRedundantBackupEnum
    func PossibleGeoRedundantBackupEnumValues() []GeoRedundantBackupEnum
type GetPrivateDNSZoneSuffixClient
    func NewGetPrivateDNSZoneSuffixClient(subscriptionID string) GetPrivateDNSZoneSuffixClient
    func NewGetPrivateDNSZoneSuffixClientWithBaseURI(baseURI string, subscriptionID string) GetPrivateDNSZoneSuffixClient
    func (client GetPrivateDNSZoneSuffixClient) Execute(ctx context.Context) (result String, err error)
    func (client GetPrivateDNSZoneSuffixClient) ExecutePreparer(ctx context.Context) (*http.Request, error)
    func (client GetPrivateDNSZoneSuffixClient) ExecuteResponder(resp *http.Response) (result String, err error)
    func (client GetPrivateDNSZoneSuffixClient) ExecuteSender(req *http.Request) (*http.Response, error)
type HighAvailability
    func (ha HighAvailability) MarshalJSON() ([]byte, error)
type HighAvailabilityMode
    func PossibleHighAvailabilityModeValues() []HighAvailabilityMode
type HyperscaleNodeEditionCapability
    func (hnec HyperscaleNodeEditionCapability) MarshalJSON() ([]byte, error)
type LocationBasedCapabilitiesClient
    func NewLocationBasedCapabilitiesClient(subscriptionID string) LocationBasedCapabilitiesClient
    func NewLocationBasedCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) LocationBasedCapabilitiesClient
    func (client LocationBasedCapabilitiesClient) Execute(ctx context.Context, locationName string) (result CapabilitiesListResultPage, err error)
    func (client LocationBasedCapabilitiesClient) ExecuteComplete(ctx context.Context, locationName string) (result CapabilitiesListResultIterator, err error)
    func (client LocationBasedCapabilitiesClient) ExecutePreparer(ctx context.Context, locationName string) (*http.Request, error)
    func (client LocationBasedCapabilitiesClient) ExecuteResponder(resp *http.Response) (result CapabilitiesListResult, err error)
    func (client LocationBasedCapabilitiesClient) ExecuteSender(req *http.Request) (*http.Response, error)
type MaintenanceWindow
type NameAvailability
type NameAvailabilityRequest
type Network
    func (n Network) MarshalJSON() ([]byte, error)
type NodeTypeCapability
    func (ntc NodeTypeCapability) MarshalJSON() ([]byte, error)
type Operation
    func (o Operation) MarshalJSON() ([]byte, error)
type OperationDisplay
    func (od OperationDisplay) MarshalJSON() ([]byte, error)
type OperationListResult
type OperationOrigin
    func PossibleOperationOriginValues() []OperationOrigin
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type ProxyResource
    func (pr ProxyResource) MarshalJSON() ([]byte, error)
type Resource
    func (r Resource) MarshalJSON() ([]byte, error)
type RestartParameter
type Server
    func (s Server) MarshalJSON() ([]byte, error)
    func (s *Server) UnmarshalJSON(body []byte) error
type ServerForUpdate
    func (sfu ServerForUpdate) MarshalJSON() ([]byte, error)
    func (sfu *ServerForUpdate) UnmarshalJSON(body []byte) error
type ServerHAState
    func PossibleServerHAStateValues() []ServerHAState
type ServerListResult
    func (slr ServerListResult) IsEmpty() bool
type ServerListResultIterator
    func NewServerListResultIterator(page ServerListResultPage) ServerListResultIterator
    func (iter *ServerListResultIterator) Next() error
    func (iter *ServerListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter ServerListResultIterator) NotDone() bool
    func (iter ServerListResultIterator) Response() ServerListResult
    func (iter ServerListResultIterator) Value() Server
type ServerListResultPage
    func NewServerListResultPage(cur ServerListResult, getNextPage func(context.Context, ServerListResult) (ServerListResult, error)) ServerListResultPage
    func (page *ServerListResultPage) Next() error
    func (page *ServerListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page ServerListResultPage) NotDone() bool
    func (page ServerListResultPage) Response() ServerListResult
    func (page ServerListResultPage) Values() []Server
type ServerProperties
    func (sp ServerProperties) MarshalJSON() ([]byte, error)
type ServerPropertiesForUpdate
type ServerPublicNetworkAccessState
    func PossibleServerPublicNetworkAccessStateValues() []ServerPublicNetworkAccessState
type ServerState
    func PossibleServerStateValues() []ServerState
type ServerVersion
    func PossibleServerVersionValues() []ServerVersion
type ServerVersionCapability
    func (svc ServerVersionCapability) MarshalJSON() ([]byte, error)
type ServersClient
    func NewServersClient(subscriptionID string) ServersClient
    func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient
    func (client ServersClient) Create(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (result ServersCreateFuture, err error)
    func (client ServersClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (*http.Request, error)
    func (client ServersClient) CreateResponder(resp *http.Response) (result Server, err error)
    func (client ServersClient) CreateSender(req *http.Request) (future ServersCreateFuture, err error)
    func (client ServersClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServersDeleteFuture, err error)
    func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
    func (client ServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ServersClient) DeleteSender(req *http.Request) (future ServersDeleteFuture, err error)
    func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)
    func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
    func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)
    func (client ServersClient) GetSender(req *http.Request) (*http.Response, error)
    func (client ServersClient) List(ctx context.Context) (result ServerListResultPage, err error)
    func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResultPage, err error)
    func (client ServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServerListResultIterator, err error)
    func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
    func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)
    func (client ServersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
    func (client ServersClient) ListComplete(ctx context.Context) (result ServerListResultIterator, err error)
    func (client ServersClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)
    func (client ServersClient) ListSender(req *http.Request) (*http.Response, error)
    func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string, parameters *RestartParameter) (result ServersRestartFuture, err error)
    func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string, parameters *RestartParameter) (*http.Request, error)
    func (client ServersClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ServersClient) RestartSender(req *http.Request) (future ServersRestartFuture, err error)
    func (client ServersClient) Start(ctx context.Context, resourceGroupName string, serverName string) (result ServersStartFuture, err error)
    func (client ServersClient) StartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
    func (client ServersClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ServersClient) StartSender(req *http.Request) (future ServersStartFuture, err error)
    func (client ServersClient) Stop(ctx context.Context, resourceGroupName string, serverName string) (result ServersStopFuture, err error)
    func (client ServersClient) StopPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
    func (client ServersClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ServersClient) StopSender(req *http.Request) (future ServersStopFuture, err error)
    func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate) (result ServersUpdateFuture, err error)
    func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate) (*http.Request, error)
    func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)
    func (client ServersClient) UpdateSender(req *http.Request) (future ServersUpdateFuture, err error)
type ServersCreateFuture
    func (future *ServersCreateFuture) UnmarshalJSON(body []byte) error
type ServersDeleteFuture
    func (future *ServersDeleteFuture) UnmarshalJSON(body []byte) error
type ServersRestartFuture
    func (future *ServersRestartFuture) UnmarshalJSON(body []byte) error
type ServersStartFuture
    func (future *ServersStartFuture) UnmarshalJSON(body []byte) error
type ServersStopFuture
    func (future *ServersStopFuture) UnmarshalJSON(body []byte) error
type ServersUpdateFuture
    func (future *ServersUpdateFuture) UnmarshalJSON(body []byte) error
type Sku
type SkuTier
    func PossibleSkuTierValues() []SkuTier
type Storage
type StorageEditionCapability
    func (sec StorageEditionCapability) MarshalJSON() ([]byte, error)
type StorageMBCapability
    func (smc StorageMBCapability) MarshalJSON() ([]byte, error)
type String
type SystemData
type TrackedResource
    func (tr TrackedResource) MarshalJSON() ([]byte, error)
type VcoreCapability
    func (vc VcoreCapability) MarshalJSON() ([]byte, error)
type VirtualNetworkSubnetUsageClient
    func NewVirtualNetworkSubnetUsageClient(subscriptionID string) VirtualNetworkSubnetUsageClient
    func NewVirtualNetworkSubnetUsageClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkSubnetUsageClient
    func (client VirtualNetworkSubnetUsageClient) Execute(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter) (result VirtualNetworkSubnetUsageResult, err error)
    func (client VirtualNetworkSubnetUsageClient) ExecutePreparer(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter) (*http.Request, error)
    func (client VirtualNetworkSubnetUsageClient) ExecuteResponder(resp *http.Response) (result VirtualNetworkSubnetUsageResult, err error)
    func (client VirtualNetworkSubnetUsageClient) ExecuteSender(req *http.Request) (*http.Response, error)
type VirtualNetworkSubnetUsageParameter
type VirtualNetworkSubnetUsageResult
    func (vnsur VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error)

Package files

checknameavailability.go client.go configurations.go databases.go enums.go firewallrules.go getprivatednszonesuffix.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

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.

type AzureEntityResource

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

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"`
}

func (AzureEntityResource) MarshalJSON

func (aer AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEntityResource.

type Backup

Backup backup properties of a server

type Backup struct {
    // BackupRetentionDays - Backup retention days for the server.
    BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"`
    // GeoRedundantBackup - A value indicating whether Geo-Redundant backup is enabled on the server. Possible values include: 'GeoRedundantBackupEnumEnabled', 'GeoRedundantBackupEnumDisabled'
    GeoRedundantBackup GeoRedundantBackupEnum `json:"geoRedundantBackup,omitempty"`
    // EarliestRestoreDate - READ-ONLY; The earliest restore point time (ISO8601 format) for server.
    EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
}

func (Backup) MarshalJSON

func (b Backup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Backup.

type BaseClient

BaseClient is the base client for Postgresqlflexibleservers.

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

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type CapabilitiesListResult

CapabilitiesListResult location capability

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"`
}

func (CapabilitiesListResult) IsEmpty

func (clr CapabilitiesListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (CapabilitiesListResult) MarshalJSON

func (clr CapabilitiesListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CapabilitiesListResult.

type CapabilitiesListResultIterator

CapabilitiesListResultIterator provides access to a complete listing of CapabilityProperties values.

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

func NewCapabilitiesListResultIterator

func NewCapabilitiesListResultIterator(page CapabilitiesListResultPage) CapabilitiesListResultIterator

Creates a new instance of the CapabilitiesListResultIterator type.

func (*CapabilitiesListResultIterator) Next

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

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

func (iter CapabilitiesListResultIterator) NotDone() bool

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

func (CapabilitiesListResultIterator) Response

func (iter CapabilitiesListResultIterator) Response() CapabilitiesListResult

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

func (CapabilitiesListResultIterator) Value

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

CapabilitiesListResultPage contains a page of CapabilityProperties values.

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

func NewCapabilitiesListResultPage

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

Creates a new instance of the CapabilitiesListResultPage type.

func (*CapabilitiesListResultPage) Next

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

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

func (page CapabilitiesListResultPage) NotDone() bool

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

func (CapabilitiesListResultPage) Response

func (page CapabilitiesListResultPage) Response() CapabilitiesListResult

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

func (CapabilitiesListResultPage) Values

func (page CapabilitiesListResultPage) Values() []CapabilityProperties

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

type CapabilityProperties

CapabilityProperties location capabilities.

type CapabilityProperties struct {
    // Zone - READ-ONLY; zone name
    Zone *string `json:"zone,omitempty"`
    // GeoBackupSupported - READ-ONLY; A value indicating whether a new server in this region can have geo-backups to paired region.
    GeoBackupSupported *bool `json:"geoBackupSupported,omitempty"`
    // ZoneRedundantHaSupported - READ-ONLY; A value indicating whether a new server in this region can support multi zone HA.
    ZoneRedundantHaSupported *bool `json:"zoneRedundantHaSupported,omitempty"`
    // ZoneRedundantHaAndGeoBackupSupported - READ-ONLY; A value indicating whether a new server in this region can have geo-backups to paired region.
    ZoneRedundantHaAndGeoBackupSupported *bool `json:"zoneRedundantHaAndGeoBackupSupported,omitempty"`
    // SupportedFlexibleServerEditions - READ-ONLY
    SupportedFlexibleServerEditions *[]FlexibleServerEditionCapability `json:"supportedFlexibleServerEditions,omitempty"`
    // SupportedHyperscaleNodeEditions - READ-ONLY
    SupportedHyperscaleNodeEditions *[]HyperscaleNodeEditionCapability `json:"supportedHyperscaleNodeEditions,omitempty"`
    // Status - READ-ONLY; The status
    Status *string `json:"status,omitempty"`
}

func (CapabilityProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for CapabilityProperties.

type CheckNameAvailabilityClient

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.

type CheckNameAvailabilityClient struct {
    BaseClient
}

func NewCheckNameAvailabilityClient

func NewCheckNameAvailabilityClient(subscriptionID string) CheckNameAvailabilityClient

NewCheckNameAvailabilityClient creates an instance of the CheckNameAvailabilityClient client.

func NewCheckNameAvailabilityClientWithBaseURI

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

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

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

ExecutePreparer prepares the Execute request.

func (CheckNameAvailabilityClient) ExecuteResponder

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

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

CloudError an error response from the Batch service.

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

type Configuration

Configuration represents a Configuration.

type Configuration struct {
    autorest.Response `json:"-"`
    // ConfigurationProperties - The properties of a configuration.
    *ConfigurationProperties `json:"properties,omitempty"`
    // SystemData - READ-ONLY; The system metadata relating to this resource.
    SystemData *SystemData `json:"systemData,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (Configuration) MarshalJSON

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

MarshalJSON is the custom marshaler for Configuration.

func (*Configuration) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Configuration struct.

type ConfigurationDataType

ConfigurationDataType enumerates the values for configuration data type.

type ConfigurationDataType string
const (
    // ConfigurationDataTypeBoolean ...
    ConfigurationDataTypeBoolean ConfigurationDataType = "Boolean"
    // ConfigurationDataTypeEnumeration ...
    ConfigurationDataTypeEnumeration ConfigurationDataType = "Enumeration"
    // ConfigurationDataTypeInteger ...
    ConfigurationDataTypeInteger ConfigurationDataType = "Integer"
    // ConfigurationDataTypeNumeric ...
    ConfigurationDataTypeNumeric ConfigurationDataType = "Numeric"
)

func PossibleConfigurationDataTypeValues

func PossibleConfigurationDataTypeValues() []ConfigurationDataType

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

type ConfigurationListResult

ConfigurationListResult a list of server configurations.

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"`
}

func (ConfigurationListResult) IsEmpty

func (clr ConfigurationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConfigurationListResultIterator

ConfigurationListResultIterator provides access to a complete listing of Configuration values.

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

func NewConfigurationListResultIterator

func NewConfigurationListResultIterator(page ConfigurationListResultPage) ConfigurationListResultIterator

Creates a new instance of the ConfigurationListResultIterator type.

func (*ConfigurationListResultIterator) Next

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

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

func (iter ConfigurationListResultIterator) NotDone() bool

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

func (ConfigurationListResultIterator) Response

func (iter ConfigurationListResultIterator) Response() ConfigurationListResult

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

func (ConfigurationListResultIterator) Value

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

ConfigurationListResultPage contains a page of Configuration values.

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

func NewConfigurationListResultPage

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

Creates a new instance of the ConfigurationListResultPage type.

func (*ConfigurationListResultPage) Next

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

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

func (page ConfigurationListResultPage) NotDone() bool

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

func (ConfigurationListResultPage) Response

func (page ConfigurationListResultPage) Response() ConfigurationListResult

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

func (ConfigurationListResultPage) Values

func (page ConfigurationListResultPage) Values() []Configuration

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

type ConfigurationProperties

ConfigurationProperties the properties of a configuration.

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: 'ConfigurationDataTypeBoolean', 'ConfigurationDataTypeNumeric', 'ConfigurationDataTypeInteger', 'ConfigurationDataTypeEnumeration'
    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"`
}

func (ConfigurationProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for ConfigurationProperties.

type ConfigurationsClient

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.

type ConfigurationsClient struct {
    BaseClient
}

func NewConfigurationsClient

func NewConfigurationsClient(subscriptionID string) ConfigurationsClient

NewConfigurationsClient creates an instance of the ConfigurationsClient client.

func NewConfigurationsClientWithBaseURI

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

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

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

GetPreparer prepares the Get request.

func (ConfigurationsClient) GetResponder

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

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

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

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

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

ListByServerPreparer prepares the ListByServer request.

func (ConfigurationsClient) ListByServerResponder

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

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) Put

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

Put 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) PutPreparer

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

PutPreparer prepares the Put request.

func (ConfigurationsClient) PutResponder

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

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (ConfigurationsClient) PutSender

func (client ConfigurationsClient) PutSender(req *http.Request) (future ConfigurationsPutFuture, err error)

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

func (ConfigurationsClient) Update

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

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

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

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 ConfigurationsPutFuture

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

type ConfigurationsPutFuture 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)
}

func (*ConfigurationsPutFuture) UnmarshalJSON

func (future *ConfigurationsPutFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ConfigurationsUpdateFuture

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

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)
}

func (*ConfigurationsUpdateFuture) UnmarshalJSON

func (future *ConfigurationsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CreateMode

CreateMode enumerates the values for create mode.

type CreateMode string
const (
    // CreateModeCreate ...
    CreateModeCreate CreateMode = "Create"
    // CreateModeDefault ...
    CreateModeDefault CreateMode = "Default"
    // CreateModePointInTimeRestore ...
    CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
    // CreateModeUpdate ...
    CreateModeUpdate CreateMode = "Update"
)

func PossibleCreateModeValues

func PossibleCreateModeValues() []CreateMode

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

type CreateModeForUpdate

CreateModeForUpdate enumerates the values for create mode for update.

type CreateModeForUpdate string
const (
    // CreateModeForUpdateDefault ...
    CreateModeForUpdateDefault CreateModeForUpdate = "Default"
    // CreateModeForUpdateUpdate ...
    CreateModeForUpdateUpdate CreateModeForUpdate = "Update"
)

func PossibleCreateModeForUpdateValues

func PossibleCreateModeForUpdateValues() []CreateModeForUpdate

PossibleCreateModeForUpdateValues returns an array of possible values for the CreateModeForUpdate const type.

type CreatedByType

CreatedByType enumerates the values for created by type.

type CreatedByType string
const (
    // CreatedByTypeApplication ...
    CreatedByTypeApplication CreatedByType = "Application"
    // CreatedByTypeKey ...
    CreatedByTypeKey CreatedByType = "Key"
    // CreatedByTypeManagedIdentity ...
    CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
    // CreatedByTypeUser ...
    CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type Database

Database represents a Database.

type Database struct {
    autorest.Response `json:"-"`
    // DatabaseProperties - The properties of a database.
    *DatabaseProperties `json:"properties,omitempty"`
    // SystemData - READ-ONLY; The system metadata relating to this resource.
    SystemData *SystemData `json:"systemData,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (Database) MarshalJSON

func (d Database) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Database.

func (*Database) UnmarshalJSON

func (d *Database) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Database struct.

type DatabaseListResult

DatabaseListResult a List of databases.

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

func (DatabaseListResult) IsEmpty

func (dlr DatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseListResultIterator

DatabaseListResultIterator provides access to a complete listing of Database values.

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

func NewDatabaseListResultIterator

func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator

Creates a new instance of the DatabaseListResultIterator type.

func (*DatabaseListResultIterator) Next

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

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

func (iter DatabaseListResultIterator) NotDone() bool

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

func (DatabaseListResultIterator) Response

func (iter DatabaseListResultIterator) Response() DatabaseListResult

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

func (DatabaseListResultIterator) Value

func (iter DatabaseListResultIterator) Value() Database

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

type DatabaseListResultPage

DatabaseListResultPage contains a page of Database values.

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

func NewDatabaseListResultPage

func NewDatabaseListResultPage(cur DatabaseListResult, getNextPage func(context.Context, DatabaseListResult) (DatabaseListResult, error)) DatabaseListResultPage

Creates a new instance of the DatabaseListResultPage type.

func (*DatabaseListResultPage) Next

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

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

func (page DatabaseListResultPage) NotDone() bool

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

func (DatabaseListResultPage) Response

func (page DatabaseListResultPage) Response() DatabaseListResult

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

func (DatabaseListResultPage) Values

func (page DatabaseListResultPage) Values() []Database

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

type DatabaseProperties

DatabaseProperties the properties of a database.

type DatabaseProperties struct {
    // Charset - The charset of the database.
    Charset *string `json:"charset,omitempty"`
    // Collation - The collation of the database.
    Collation *string `json:"collation,omitempty"`
}

type DatabasesClient

DatabasesClient 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.

type DatabasesClient struct {
    BaseClient
}

func NewDatabasesClient

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient 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 (DatabasesClient) Create

func (client DatabasesClient) Create(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateFuture, err error)

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

func (DatabasesClient) CreatePreparer

func (client DatabasesClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (*http.Request, error)

CreatePreparer prepares the Create request.

func (DatabasesClient) CreateResponder

func (client DatabasesClient) CreateResponder(resp *http.Response) (result Database, err error)

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

func (DatabasesClient) CreateSender

func (client DatabasesClient) CreateSender(req *http.Request) (future DatabasesCreateFuture, err error)

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

func (DatabasesClient) Delete

func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesDeleteFuture, err error)

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

func (DatabasesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DatabasesClient) DeleteResponder

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

func (client DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error)

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

func (DatabasesClient) Get

func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result Database, err error)

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

func (DatabasesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabasesClient) GetResponder

func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error)

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

func (DatabasesClient) GetSender

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

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

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

func (DatabasesClient) ListByServerComplete

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

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

func (DatabasesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (DatabasesClient) ListByServerResponder

func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error)

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

func (DatabasesClient) ListByServerSender

func (client DatabasesClient) 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 DatabasesCreateFuture

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

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

func (*DatabasesCreateFuture) UnmarshalJSON

func (future *DatabasesCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesDeleteFuture

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

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

func (*DatabasesDeleteFuture) UnmarshalJSON

func (future *DatabasesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DelegatedSubnetUsage

DelegatedSubnetUsage delegated subnet usage data.

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"`
}

func (DelegatedSubnetUsage) MarshalJSON

func (dsu DelegatedSubnetUsage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DelegatedSubnetUsage.

type ErrorAdditionalInfo

ErrorAdditionalInfo the resource management error additional info.

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"`
}

func (ErrorAdditionalInfo) MarshalJSON

func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorAdditionalInfo.

type ErrorResponse

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 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"`
}

func (ErrorResponse) MarshalJSON

func (er ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorResponse.

type FailoverMode

FailoverMode enumerates the values for failover mode.

type FailoverMode string
const (
    // FailoverModeForcedFailover ...
    FailoverModeForcedFailover FailoverMode = "ForcedFailover"
    // FailoverModeForcedSwitchover ...
    FailoverModeForcedSwitchover FailoverMode = "ForcedSwitchover"
    // FailoverModePlannedFailover ...
    FailoverModePlannedFailover FailoverMode = "PlannedFailover"
    // FailoverModePlannedSwitchover ...
    FailoverModePlannedSwitchover FailoverMode = "PlannedSwitchover"
)

func PossibleFailoverModeValues

func PossibleFailoverModeValues() []FailoverMode

PossibleFailoverModeValues returns an array of possible values for the FailoverMode const type.

type FirewallRule

FirewallRule represents a server firewall rule.

type FirewallRule struct {
    autorest.Response `json:"-"`
    // FirewallRuleProperties - The properties of a firewall rule.
    *FirewallRuleProperties `json:"properties,omitempty"`
    // SystemData - READ-ONLY; The system metadata relating to this resource.
    SystemData *SystemData `json:"systemData,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (FirewallRule) MarshalJSON

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

MarshalJSON is the custom marshaler for FirewallRule.

func (*FirewallRule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for FirewallRule struct.

type FirewallRuleListResult

FirewallRuleListResult a list of firewall rules.

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"`
}

func (FirewallRuleListResult) IsEmpty

func (frlr FirewallRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type FirewallRuleListResultIterator

FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values.

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

func NewFirewallRuleListResultIterator

func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator

Creates a new instance of the FirewallRuleListResultIterator type.

func (*FirewallRuleListResultIterator) Next

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

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

func (iter FirewallRuleListResultIterator) NotDone() bool

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

func (FirewallRuleListResultIterator) Response

func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult

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

func (FirewallRuleListResultIterator) Value

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

FirewallRuleListResultPage contains a page of FirewallRule values.

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

func NewFirewallRuleListResultPage

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

Creates a new instance of the FirewallRuleListResultPage type.

func (*FirewallRuleListResultPage) Next

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

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

func (page FirewallRuleListResultPage) NotDone() bool

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

func (FirewallRuleListResultPage) Response

func (page FirewallRuleListResultPage) Response() FirewallRuleListResult

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

func (FirewallRuleListResultPage) Values

func (page FirewallRuleListResultPage) Values() []FirewallRule

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

type FirewallRuleProperties

FirewallRuleProperties the properties of a server firewall rule.

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"`
}

type FirewallRulesClient

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.

type FirewallRulesClient struct {
    BaseClient
}

func NewFirewallRulesClient

func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient

NewFirewallRulesClient creates an instance of the FirewallRulesClient client.

func NewFirewallRulesClientWithBaseURI

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

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (FirewallRulesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (FirewallRulesClient) GetResponder

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

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

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

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

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

ListByServerPreparer prepares the ListByServer request.

func (FirewallRulesClient) ListByServerResponder

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

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

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

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)
}

func (*FirewallRulesCreateOrUpdateFuture) UnmarshalJSON

func (future *FirewallRulesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FirewallRulesDeleteFuture

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

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)
}

func (*FirewallRulesDeleteFuture) UnmarshalJSON

func (future *FirewallRulesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FlexibleServerEditionCapability

FlexibleServerEditionCapability flexible server edition capabilities.

type FlexibleServerEditionCapability struct {
    // Name - READ-ONLY; Server edition name
    Name *string `json:"name,omitempty"`
    // SupportedStorageEditions - READ-ONLY; The list of editions supported by this server edition.
    SupportedStorageEditions *[]StorageEditionCapability `json:"supportedStorageEditions,omitempty"`
    // SupportedServerVersions - READ-ONLY; The list of server versions supported by this server edition.
    SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"`
    // Status - READ-ONLY; The status
    Status *string `json:"status,omitempty"`
}

func (FlexibleServerEditionCapability) MarshalJSON

func (fsec FlexibleServerEditionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FlexibleServerEditionCapability.

type GeoRedundantBackupEnum

GeoRedundantBackupEnum enumerates the values for geo redundant backup enum.

type GeoRedundantBackupEnum string
const (
    // GeoRedundantBackupEnumDisabled ...
    GeoRedundantBackupEnumDisabled GeoRedundantBackupEnum = "Disabled"
    // GeoRedundantBackupEnumEnabled ...
    GeoRedundantBackupEnumEnabled GeoRedundantBackupEnum = "Enabled"
)

func PossibleGeoRedundantBackupEnumValues

func PossibleGeoRedundantBackupEnumValues() []GeoRedundantBackupEnum

PossibleGeoRedundantBackupEnumValues returns an array of possible values for the GeoRedundantBackupEnum const type.

type GetPrivateDNSZoneSuffixClient

GetPrivateDNSZoneSuffixClient 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.

type GetPrivateDNSZoneSuffixClient struct {
    BaseClient
}

func NewGetPrivateDNSZoneSuffixClient

func NewGetPrivateDNSZoneSuffixClient(subscriptionID string) GetPrivateDNSZoneSuffixClient

NewGetPrivateDNSZoneSuffixClient creates an instance of the GetPrivateDNSZoneSuffixClient client.

func NewGetPrivateDNSZoneSuffixClientWithBaseURI

func NewGetPrivateDNSZoneSuffixClientWithBaseURI(baseURI string, subscriptionID string) GetPrivateDNSZoneSuffixClient

NewGetPrivateDNSZoneSuffixClientWithBaseURI creates an instance of the GetPrivateDNSZoneSuffixClient 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 (GetPrivateDNSZoneSuffixClient) Execute

func (client GetPrivateDNSZoneSuffixClient) Execute(ctx context.Context) (result String, err error)

Execute get private DNS zone suffix in the cloud

func (GetPrivateDNSZoneSuffixClient) ExecutePreparer

func (client GetPrivateDNSZoneSuffixClient) ExecutePreparer(ctx context.Context) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (GetPrivateDNSZoneSuffixClient) ExecuteResponder

func (client GetPrivateDNSZoneSuffixClient) ExecuteResponder(resp *http.Response) (result String, err error)

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

func (GetPrivateDNSZoneSuffixClient) ExecuteSender

func (client GetPrivateDNSZoneSuffixClient) 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 HighAvailability

HighAvailability high availability properties of a server

type HighAvailability struct {
    // Mode - The HA mode for the server. Possible values include: 'HighAvailabilityModeDisabled', 'HighAvailabilityModeZoneRedundant'
    Mode HighAvailabilityMode `json:"mode,omitempty"`
    // State - READ-ONLY; A state of a HA server that is visible to user. Possible values include: 'ServerHAStateNotEnabled', 'ServerHAStateCreatingStandby', 'ServerHAStateReplicatingData', 'ServerHAStateFailingOver', 'ServerHAStateHealthy', 'ServerHAStateRemovingStandby'
    State ServerHAState `json:"state,omitempty"`
    // StandbyAvailabilityZone - availability zone information of the standby.
    StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"`
}

func (HighAvailability) MarshalJSON

func (ha HighAvailability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HighAvailability.

type HighAvailabilityMode

HighAvailabilityMode enumerates the values for high availability mode.

type HighAvailabilityMode string
const (
    // HighAvailabilityModeDisabled ...
    HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled"
    // HighAvailabilityModeZoneRedundant ...
    HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant"
)

func PossibleHighAvailabilityModeValues

func PossibleHighAvailabilityModeValues() []HighAvailabilityMode

PossibleHighAvailabilityModeValues returns an array of possible values for the HighAvailabilityMode const type.

type HyperscaleNodeEditionCapability

HyperscaleNodeEditionCapability hyperscale node edition capabilities.

type HyperscaleNodeEditionCapability struct {
    // Name - READ-ONLY; Server edition name
    Name *string `json:"name,omitempty"`
    // SupportedStorageEditions - READ-ONLY; The list of editions supported by this server edition.
    SupportedStorageEditions *[]StorageEditionCapability `json:"supportedStorageEditions,omitempty"`
    // SupportedServerVersions - READ-ONLY; The list of server versions supported by this server edition.
    SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"`
    // SupportedNodeTypes - READ-ONLY; The list of Node Types supported by this server edition.
    SupportedNodeTypes *[]NodeTypeCapability `json:"supportedNodeTypes,omitempty"`
    // Status - READ-ONLY; The status
    Status *string `json:"status,omitempty"`
}

func (HyperscaleNodeEditionCapability) MarshalJSON

func (hnec HyperscaleNodeEditionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HyperscaleNodeEditionCapability.

type LocationBasedCapabilitiesClient

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.

type LocationBasedCapabilitiesClient struct {
    BaseClient
}

func NewLocationBasedCapabilitiesClient

func NewLocationBasedCapabilitiesClient(subscriptionID string) LocationBasedCapabilitiesClient

NewLocationBasedCapabilitiesClient creates an instance of the LocationBasedCapabilitiesClient client.

func NewLocationBasedCapabilitiesClientWithBaseURI

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

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

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

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

ExecutePreparer prepares the Execute request.

func (LocationBasedCapabilitiesClient) ExecuteResponder

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

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

MaintenanceWindow maintenance window properties of a server.

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"`
}

type NameAvailability

NameAvailability represents a resource name availability.

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"`
}

type NameAvailabilityRequest

NameAvailabilityRequest request from client to check resource name availability.

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

type Network

Network network properties of a server

type Network struct {
    // PublicNetworkAccess - READ-ONLY; public network access is enabled or not. Possible values include: 'ServerPublicNetworkAccessStateEnabled', 'ServerPublicNetworkAccessStateDisabled'
    PublicNetworkAccess ServerPublicNetworkAccessState `json:"publicNetworkAccess,omitempty"`
    // DelegatedSubnetResourceID - delegated subnet arm resource id.
    DelegatedSubnetResourceID *string `json:"delegatedSubnetResourceId,omitempty"`
    // PrivateDNSZoneArmResourceID - private dns zone arm resource id.
    PrivateDNSZoneArmResourceID *string `json:"privateDnsZoneArmResourceId,omitempty"`
}

func (Network) MarshalJSON

func (n Network) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Network.

type NodeTypeCapability

NodeTypeCapability node type capability

type NodeTypeCapability struct {
    // Name - READ-ONLY; note type name
    Name *string `json:"name,omitempty"`
    // NodeType - READ-ONLY; note type
    NodeType *string `json:"nodeType,omitempty"`
    // Status - READ-ONLY; The status
    Status *string `json:"status,omitempty"`
}

func (NodeTypeCapability) MarshalJSON

func (ntc NodeTypeCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NodeTypeCapability.

type Operation

Operation REST API operation definition.

type Operation struct {
    // Name - READ-ONLY; The name of the operation being performed on this particular object.
    Name *string `json:"name,omitempty"`
    // Display - READ-ONLY; The localized display information for this particular operation 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: 'OperationOriginNotSpecified', 'OperationOriginUser', 'OperationOriginSystem'
    Origin OperationOrigin `json:"origin,omitempty"`
    // Properties - READ-ONLY; Additional descriptions for the operation.
    Properties map[string]interface{} `json:"properties"`
}

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

OperationDisplay display metadata associated with the operation.

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"`
}

func (OperationDisplay) MarshalJSON

func (od OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDisplay.

type OperationListResult

OperationListResult a list of resource provider operations.

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"`
}

type OperationOrigin

OperationOrigin enumerates the values for operation origin.

type OperationOrigin string
const (
    // OperationOriginNotSpecified ...
    OperationOriginNotSpecified OperationOrigin = "NotSpecified"
    // OperationOriginSystem ...
    OperationOriginSystem OperationOrigin = "system"
    // OperationOriginUser ...
    OperationOriginUser OperationOrigin = "user"
)

func PossibleOperationOriginValues

func PossibleOperationOriginValues() []OperationOrigin

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

type OperationsClient

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.

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

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

func (OperationsClient) List

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

List lists all of the available REST API operations.

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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

func (OperationsClient) ListSender

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

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

type ProxyResource

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

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"`
}

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type Resource

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

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"`
}

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type RestartParameter

RestartParameter represents server restart parameters.

type RestartParameter struct {
    // RestartWithFailover - Indicates whether to restart the server with failover.
    RestartWithFailover *bool `json:"restartWithFailover,omitempty"`
    // FailoverMode - Failover mode. Possible values include: 'FailoverModePlannedFailover', 'FailoverModeForcedFailover', 'FailoverModePlannedSwitchover', 'FailoverModeForcedSwitchover'
    FailoverMode FailoverMode `json:"failoverMode,omitempty"`
}

type Server

Server represents a server.

type Server struct {
    autorest.Response `json:"-"`
    // Sku - The SKU (pricing tier) of the server.
    Sku *Sku `json:"sku,omitempty"`
    // ServerProperties - Properties of the server.
    *ServerProperties `json:"properties,omitempty"`
    // SystemData - READ-ONLY; The system metadata relating to this resource.
    SystemData *SystemData `json:"systemData,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"`
}

func (Server) MarshalJSON

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

MarshalJSON is the custom marshaler for Server.

func (*Server) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Server struct.

type ServerForUpdate

ServerForUpdate represents a server to be updated.

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"`
}

func (ServerForUpdate) MarshalJSON

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

MarshalJSON is the custom marshaler for ServerForUpdate.

func (*ServerForUpdate) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ServerForUpdate struct.

type ServerHAState

ServerHAState enumerates the values for server ha state.

type ServerHAState string
const (
    // ServerHAStateCreatingStandby ...
    ServerHAStateCreatingStandby ServerHAState = "CreatingStandby"
    // ServerHAStateFailingOver ...
    ServerHAStateFailingOver ServerHAState = "FailingOver"
    // ServerHAStateHealthy ...
    ServerHAStateHealthy ServerHAState = "Healthy"
    // ServerHAStateNotEnabled ...
    ServerHAStateNotEnabled ServerHAState = "NotEnabled"
    // ServerHAStateRemovingStandby ...
    ServerHAStateRemovingStandby ServerHAState = "RemovingStandby"
    // ServerHAStateReplicatingData ...
    ServerHAStateReplicatingData ServerHAState = "ReplicatingData"
)

func PossibleServerHAStateValues

func PossibleServerHAStateValues() []ServerHAState

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

type ServerListResult

ServerListResult a list of servers.

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"`
}

func (ServerListResult) IsEmpty

func (slr ServerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServerListResultIterator

ServerListResultIterator provides access to a complete listing of Server values.

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

func NewServerListResultIterator

func NewServerListResultIterator(page ServerListResultPage) ServerListResultIterator

Creates a new instance of the ServerListResultIterator type.

func (*ServerListResultIterator) Next

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

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

func (iter ServerListResultIterator) NotDone() bool

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

func (ServerListResultIterator) Response

func (iter ServerListResultIterator) Response() ServerListResult

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

func (ServerListResultIterator) Value

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

ServerListResultPage contains a page of Server values.

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

func NewServerListResultPage

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

Creates a new instance of the ServerListResultPage type.

func (*ServerListResultPage) Next

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

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

func (page ServerListResultPage) NotDone() bool

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

func (ServerListResultPage) Response

func (page ServerListResultPage) Response() ServerListResult

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

func (ServerListResultPage) Values

func (page ServerListResultPage) Values() []Server

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

type ServerProperties

ServerProperties the properties of a server.

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: 'ServerVersionOneThree', 'ServerVersionOneTwo', 'ServerVersionOneOne'
    Version ServerVersion `json:"version,omitempty"`
    // MinorVersion - READ-ONLY; The minor version of the server.
    MinorVersion *string `json:"minorVersion,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"`
    // FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of a server.
    FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
    // Storage - Storage properties of a server.
    Storage *Storage `json:"storage,omitempty"`
    // Backup - Backup properties of a server.
    Backup *Backup `json:"backup,omitempty"`
    // Network - Network properties of a server.
    Network *Network `json:"network,omitempty"`
    // HighAvailability - High availability properties of a server.
    HighAvailability *HighAvailability `json:"highAvailability,omitempty"`
    // MaintenanceWindow - Maintenance window properties of a server.
    MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
    // SourceServerResourceID - The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.
    SourceServerResourceID *string `json:"sourceServerResourceId,omitempty"`
    // PointInTimeUTC - Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.
    PointInTimeUTC *date.Time `json:"pointInTimeUTC,omitempty"`
    // AvailabilityZone - availability zone information of the server.
    AvailabilityZone *string `json:"availabilityZone,omitempty"`
    // CreateMode - The mode to create a new PostgreSQL server. Possible values include: 'CreateModeDefault', 'CreateModeCreate', 'CreateModeUpdate', 'CreateModePointInTimeRestore'
    CreateMode CreateMode `json:"createMode,omitempty"`
    // Tags - Application-specific metadata in the form of key-value pairs.
    Tags map[string]*string `json:"tags"`
}

func (ServerProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for ServerProperties.

type ServerPropertiesForUpdate

ServerPropertiesForUpdate ...

type ServerPropertiesForUpdate struct {
    // AdministratorLoginPassword - The password of the administrator login.
    AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
    // Storage - Storage properties of a server.
    Storage *Storage `json:"storage,omitempty"`
    // Backup - Backup properties of a server.
    Backup *Backup `json:"backup,omitempty"`
    // HighAvailability - High availability properties of a server.
    HighAvailability *HighAvailability `json:"highAvailability,omitempty"`
    // MaintenanceWindow - Maintenance window properties of a server.
    MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
    // CreateMode - The mode to update a new PostgreSQL server. Possible values include: 'CreateModeForUpdateDefault', 'CreateModeForUpdateUpdate'
    CreateMode CreateModeForUpdate `json:"createMode,omitempty"`
}

type ServerPublicNetworkAccessState

ServerPublicNetworkAccessState enumerates the values for server public network access state.

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

func PossibleServerPublicNetworkAccessStateValues

func PossibleServerPublicNetworkAccessStateValues() []ServerPublicNetworkAccessState

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

type ServerState

ServerState enumerates the values for server state.

type ServerState string
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

func PossibleServerStateValues() []ServerState

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

type ServerVersion

ServerVersion enumerates the values for server version.

type ServerVersion string
const (
    // ServerVersionOneOne ...
    ServerVersionOneOne ServerVersion = "11"
    // ServerVersionOneThree ...
    ServerVersionOneThree ServerVersion = "13"
    // ServerVersionOneTwo ...
    ServerVersionOneTwo ServerVersion = "12"
)

func PossibleServerVersionValues

func PossibleServerVersionValues() []ServerVersion

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

type ServerVersionCapability

ServerVersionCapability server version capabilities.

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

func (ServerVersionCapability) MarshalJSON

func (svc ServerVersionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerVersionCapability.

type ServersClient

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.

type ServersClient struct {
    BaseClient
}

func NewServersClient

func NewServersClient(subscriptionID string) ServersClient

NewServersClient creates an instance of the ServersClient client.

func NewServersClientWithBaseURI

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

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

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

CreatePreparer prepares the Create request.

func (ServersClient) CreateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (ServersClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (ServersClient) GetResponder

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

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

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

List list all the servers in a given subscription.

func (ServersClient) ListByResourceGroup

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

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

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServersClient) ListByResourceGroupResponder

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

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

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

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

func (ServersClient) ListPreparer

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

ListPreparer prepares the List request.

func (ServersClient) ListResponder

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

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

func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string, parameters *RestartParameter) (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. parameters - the parameters for restarting a server.

func (ServersClient) RestartPreparer

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

RestartPreparer prepares the Restart request.

func (ServersClient) RestartResponder

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

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

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

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

StartPreparer prepares the Start request.

func (ServersClient) StartResponder

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

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

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

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

StopPreparer prepares the Stop request.

func (ServersClient) StopResponder

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

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

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

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

UpdatePreparer prepares the Update request.

func (ServersClient) UpdateResponder

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

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

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

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)
}

func (*ServersCreateFuture) UnmarshalJSON

func (future *ServersCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServersDeleteFuture

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

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)
}

func (*ServersDeleteFuture) UnmarshalJSON

func (future *ServersDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServersRestartFuture

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

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)
}

func (*ServersRestartFuture) UnmarshalJSON

func (future *ServersRestartFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServersStartFuture

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

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)
}

func (*ServersStartFuture) UnmarshalJSON

func (future *ServersStartFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServersStopFuture

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

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)
}

func (*ServersStopFuture) UnmarshalJSON

func (future *ServersStopFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServersUpdateFuture

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

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)
}

func (*ServersUpdateFuture) UnmarshalJSON

func (future *ServersUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Sku

Sku sku information related properties of a server.

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: 'SkuTierBurstable', 'SkuTierGeneralPurpose', 'SkuTierMemoryOptimized'
    Tier SkuTier `json:"tier,omitempty"`
}

type SkuTier

SkuTier enumerates the values for sku tier.

type SkuTier string
const (
    // SkuTierBurstable ...
    SkuTierBurstable SkuTier = "Burstable"
    // SkuTierGeneralPurpose ...
    SkuTierGeneralPurpose SkuTier = "GeneralPurpose"
    // SkuTierMemoryOptimized ...
    SkuTierMemoryOptimized SkuTier = "MemoryOptimized"
)

func PossibleSkuTierValues

func PossibleSkuTierValues() []SkuTier

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

type Storage

Storage storage properties of a server

type Storage struct {
    // StorageSizeGB - Max storage allowed for a server.
    StorageSizeGB *int32 `json:"storageSizeGB,omitempty"`
}

type StorageEditionCapability

StorageEditionCapability storage edition capability

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

func (StorageEditionCapability) MarshalJSON

func (sec StorageEditionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StorageEditionCapability.

type StorageMBCapability

StorageMBCapability storage size in MB capability

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"`
    // Status - READ-ONLY; The status
    Status *string `json:"status,omitempty"`
}

func (StorageMBCapability) MarshalJSON

func (smc StorageMBCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StorageMBCapability.

type String

String ...

type String struct {
    autorest.Response `json:"-"`
    Value             *string `json:"value,omitempty"`
}

type SystemData

SystemData metadata pertaining to creation and last modification of the resource.

type SystemData struct {
    // CreatedBy - The identity that created the resource.
    CreatedBy *string `json:"createdBy,omitempty"`
    // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
    CreatedByType CreatedByType `json:"createdByType,omitempty"`
    // CreatedAt - The timestamp of resource creation (UTC).
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // LastModifiedBy - The identity that last modified the resource.
    LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
    // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
    LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
    // LastModifiedAt - The timestamp of resource last modification (UTC)
    LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

type TrackedResource

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

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"`
}

func (TrackedResource) MarshalJSON

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

MarshalJSON is the custom marshaler for TrackedResource.

type VcoreCapability

VcoreCapability vcores capability

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"`
    // Status - READ-ONLY; The status
    Status *string `json:"status,omitempty"`
}

func (VcoreCapability) MarshalJSON

func (vc VcoreCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VcoreCapability.

type VirtualNetworkSubnetUsageClient

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.

type VirtualNetworkSubnetUsageClient struct {
    BaseClient
}

func NewVirtualNetworkSubnetUsageClient

func NewVirtualNetworkSubnetUsageClient(subscriptionID string) VirtualNetworkSubnetUsageClient

NewVirtualNetworkSubnetUsageClient creates an instance of the VirtualNetworkSubnetUsageClient client.

func NewVirtualNetworkSubnetUsageClientWithBaseURI

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

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

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

ExecutePreparer prepares the Execute request.

func (VirtualNetworkSubnetUsageClient) ExecuteResponder

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

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

VirtualNetworkSubnetUsageParameter virtual network subnet usage parameter

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

type VirtualNetworkSubnetUsageResult

VirtualNetworkSubnetUsageResult virtual network subnet usage data.

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

func (VirtualNetworkSubnetUsageResult) MarshalJSON

func (vnsur VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualNetworkSubnetUsageResult.

Subdirectories

Name Synopsis
..
postgresqlflexibleserversapi Deprecated: Please note, this package has been deprecated.