Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresqlhsc/armpostgresqlhsc
modulepackage
0.6.1
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Database for PostgreSQL HSC Module for Go

PkgGoDev

The armpostgresqlhsc module provides operations for working with Azure Database for PostgreSQL HSC.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Database for PostgreSQL HSC module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresqlhsc/armpostgresqlhsc

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Database for PostgreSQL HSC. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Database for PostgreSQL HSC module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armpostgresqlhsc.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armpostgresqlhsc.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewServersClient()

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Database for PostgreSQL HSC label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Functions

NewClientFactory creates a new instance of ClientFactory with the specified values.
NewConfigurationsClient creates a new instance of ConfigurationsClient with the specified values.
NewFirewallRulesClient creates a new instance of FirewallRulesClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewRolesClient creates a new instance of RolesClient with the specified values.
NewServerGroupsClient creates a new instance of ServerGroupsClient with the specified values.
NewServersClient creates a new instance of ServersClient with the specified values.
PossibleCitusVersionValues returns the possible values for the CitusVersion const type.
PossibleConfigurationDataTypeValues returns the possible values for the ConfigurationDataType const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleCreateModeValues returns the possible values for the CreateMode const type.
PossibleOperationOriginValues returns the possible values for the OperationOrigin const type.
PossiblePostgreSQLVersionValues returns the possible values for the PostgreSQLVersion const type.
PossibleResourceProviderTypeValues returns the possible values for the ResourceProviderType const type.
PossibleServerEditionValues returns the possible values for the ServerEdition const type.
PossibleServerHaStateValues returns the possible values for the ServerHaState const type.
PossibleServerRoleValues returns the possible values for the ServerRole const type.
PossibleServerStateValues returns the possible values for the ServerState const type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ClientFactory is a client factory used to create any client in this module.
ConfigurationsClient contains the methods for the Configurations group.
ConfigurationsClientBeginUpdateOptions contains the optional parameters for the ConfigurationsClient.BeginUpdate method.
ConfigurationsClientGetOptions contains the optional parameters for the ConfigurationsClient.Get method.
ConfigurationsClientGetResponse contains the response from method ConfigurationsClient.Get.
ConfigurationsClientListByServerGroupOptions contains the optional parameters for the ConfigurationsClient.NewListByServerGroupPager method.
ConfigurationsClientListByServerGroupResponse contains the response from method ConfigurationsClient.NewListByServerGroupPager.
ConfigurationsClientListByServerOptions contains the optional parameters for the ConfigurationsClient.NewListByServerPager method.
ConfigurationsClientListByServerResponse contains the response from method ConfigurationsClient.NewListByServerPager.
ConfigurationsClientUpdateResponse contains the response from method ConfigurationsClient.BeginUpdate.
FirewallRule - Represents a server group firewall rule.
FirewallRuleListResult - A list of firewall rules.
FirewallRuleProperties - The properties of a server group firewall rule.
FirewallRulesClient contains the methods for the FirewallRules group.
FirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallRulesClient.BeginCreateOrUpdate method.
FirewallRulesClientBeginDeleteOptions contains the optional parameters for the FirewallRulesClient.BeginDelete method.
FirewallRulesClientCreateOrUpdateResponse contains the response from method FirewallRulesClient.BeginCreateOrUpdate.
FirewallRulesClientDeleteResponse contains the response from method FirewallRulesClient.BeginDelete.
FirewallRulesClientGetOptions contains the optional parameters for the FirewallRulesClient.Get method.
FirewallRulesClientGetResponse contains the response from method FirewallRulesClient.Get.
FirewallRulesClientListByServerGroupOptions contains the optional parameters for the FirewallRulesClient.NewListByServerGroupPager method.
FirewallRulesClientListByServerGroupResponse contains the response from method FirewallRulesClient.NewListByServerGroupPager.
MaintenanceWindow - Maintenance window of a server group.
NameAvailability - Represents a resource name availability.
NameAvailabilityRequest - Request from client to check resource name availability.
Operation - REST API operation definition.
OperationDisplay - Display metadata associated with the operation.
OperationListResult - A list of resource provider operations.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource.
Resource - Common fields that are returned in the response for all Azure Resource Manager resources.
Role - Represents a server group role.
RoleListResult - A list of roles.
RoleProperties - The properties of a server group role.
RolesClient contains the methods for the Roles group.
RolesClientBeginCreateOptions contains the optional parameters for the RolesClient.BeginCreate method.
RolesClientBeginDeleteOptions contains the optional parameters for the RolesClient.BeginDelete method.
RolesClientCreateResponse contains the response from method RolesClient.BeginCreate.
RolesClientDeleteResponse contains the response from method RolesClient.BeginDelete.
RolesClientListByServerGroupOptions contains the optional parameters for the RolesClient.NewListByServerGroupPager method.
RolesClientListByServerGroupResponse contains the response from method RolesClient.NewListByServerGroupPager.
ServerConfiguration - Represents a configuration.
ServerConfigurationListResult - A list of server configurations.
ServerConfigurationProperties - The properties of a configuration.
ServerGroup - Represents a server group for create.
ServerGroupConfiguration - Represents the configuration list of server role groups in a server group.
ServerGroupConfigurationListResult - A list of server group configurations.
ServerGroupConfigurationProperties - The properties of server group configuration.
ServerGroupForUpdate - Represents a server group for update.
ServerGroupListResult - A list of server groups.
ServerGroupProperties - The properties used to create a new server group.
ServerGroupPropertiesDelegatedSubnetArguments - The delegated subnet arguments for a server group.
ServerGroupPropertiesForUpdate - The properties used to update a server group.
ServerGroupPropertiesPrivateDNSZoneArguments - The private dns zone arguments for a server group.
ServerGroupsClient contains the methods for the ServerGroups group.
ServerGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the ServerGroupsClient.BeginCreateOrUpdate method.
ServerGroupsClientBeginDeleteOptions contains the optional parameters for the ServerGroupsClient.BeginDelete method.
ServerGroupsClientBeginRestartOptions contains the optional parameters for the ServerGroupsClient.BeginRestart method.
ServerGroupsClientBeginStartOptions contains the optional parameters for the ServerGroupsClient.BeginStart method.
ServerGroupsClientBeginStopOptions contains the optional parameters for the ServerGroupsClient.BeginStop method.
ServerGroupsClientBeginUpdateOptions contains the optional parameters for the ServerGroupsClient.BeginUpdate method.
ServerGroupsClientCheckNameAvailabilityOptions contains the optional parameters for the ServerGroupsClient.CheckNameAvailability method.
ServerGroupsClientCheckNameAvailabilityResponse contains the response from method ServerGroupsClient.CheckNameAvailability.
ServerGroupsClientCreateOrUpdateResponse contains the response from method ServerGroupsClient.BeginCreateOrUpdate.
ServerGroupsClientDeleteResponse contains the response from method ServerGroupsClient.BeginDelete.
ServerGroupsClientGetOptions contains the optional parameters for the ServerGroupsClient.Get method.
ServerGroupsClientGetResponse contains the response from method ServerGroupsClient.Get.
ServerGroupsClientListByResourceGroupOptions contains the optional parameters for the ServerGroupsClient.NewListByResourceGroupPager method.
ServerGroupsClientListByResourceGroupResponse contains the response from method ServerGroupsClient.NewListByResourceGroupPager.
ServerGroupsClientListOptions contains the optional parameters for the ServerGroupsClient.NewListPager method.
ServerGroupsClientListResponse contains the response from method ServerGroupsClient.NewListPager.
ServerGroupsClientRestartResponse contains the response from method ServerGroupsClient.BeginRestart.
ServerGroupsClientStartResponse contains the response from method ServerGroupsClient.BeginStart.
ServerGroupsClientStopResponse contains the response from method ServerGroupsClient.BeginStop.
ServerGroupsClientUpdateResponse contains the response from method ServerGroupsClient.BeginUpdate.
ServerGroupServer - Represents a server in a server group.
ServerGroupServerListResult - A list of servers in a server group.
ServerGroupServerProperties - The properties of a server in server group.
ServerNameItem - The name object for a server.
ServerProperties - The properties of a server.
ServerRoleGroup - Represents a server role group.
ServerRoleGroupConfiguration - Represents server role group configuration value.
ServersClient contains the methods for the Servers group.
ServersClientGetOptions contains the optional parameters for the ServersClient.Get method.
ServersClientGetResponse contains the response from method ServersClient.Get.
ServersClientListByServerGroupOptions contains the optional parameters for the ServersClient.NewListByServerGroupPager method.
ServersClientListByServerGroupResponse contains the response from method ServersClient.NewListByServerGroupPager.
SystemData - Metadata pertaining to creation and last modification of the resource.
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'.

# Type aliases

CitusVersion - The Citus version.
ConfigurationDataType - Data type of the configuration.
CreatedByType - The type of identity that created the resource.
CreateMode - The mode to create a new server group.
OperationOrigin - The intended executor of the operation.
PostgreSQLVersion - The PostgreSQL version.
ResourceProviderType - The resource provider type of server group.
ServerEdition - The edition of a server (default: GeneralPurpose).
ServerHaState - A state of a server role group/server that is visible to user for HA feature.
ServerRole - The role of a server.
ServerState - A state of a server group/server that is visible to user.