Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql
modulepackage
1.2.0-beta.1
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Cosmosforpostgresql Module for Go

PkgGoDev

The armcosmosforpostgresql module provides operations for working with Azure Cosmosforpostgresql.

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 Cosmosforpostgresql module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Cosmosforpostgresql. 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 Cosmosforpostgresql 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 := armcosmosforpostgresql.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,
    },
}
client, err := armcosmosforpostgresql.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.NewClustersClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Cosmosforpostgresql 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.

# Packages

No description provided by the author

# Functions

NewClientFactory creates a new instance of ClientFactory with the specified values.
NewClustersClient creates a new instance of ClustersClient 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.
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.
NewRolesClient creates a new instance of RolesClient with the specified values.
NewServersClient creates a new instance of ServersClient with the specified values.
PossibleActiveDirectoryAuthValues returns the possible values for the ActiveDirectoryAuth const type.
PossibleConfigurationDataTypeValues returns the possible values for the ConfigurationDataType const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleOperationOriginValues returns the possible values for the OperationOrigin const type.
PossiblePasswordAuthValues returns the possible values for the PasswordAuth const type.
PossiblePrincipalTypeValues returns the possible values for the PrincipalType const type.
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
PossibleRoleTypeValues returns the possible values for the RoleType const type.
PossibleServerRoleValues returns the possible values for the ServerRole 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

# Structs

AuthConfig - Authentication configuration of a cluster.
ClientFactory is a client factory used to create any client in this module.
Cluster - Represents a cluster.
ClusterConfigurationListResult - A list of cluster configurations.
ClusterForUpdate - Represents a cluster for update.
ClusterListResult - A list of clusters.
ClusterProperties - Properties of the cluster.
ClusterPropertiesForUpdate - The properties used to update a cluster.
ClustersClient contains the methods for the Clusters group.
ClustersClientBeginCreateOptions contains the optional parameters for the ClustersClient.BeginCreate method.
ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method.
ClustersClientBeginPromoteReadReplicaOptions contains the optional parameters for the ClustersClient.BeginPromoteReadReplica method.
ClustersClientBeginRestartOptions contains the optional parameters for the ClustersClient.BeginRestart method.
ClustersClientBeginStartOptions contains the optional parameters for the ClustersClient.BeginStart method.
ClustersClientBeginStopOptions contains the optional parameters for the ClustersClient.BeginStop method.
ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method.
ClustersClientCheckNameAvailabilityOptions contains the optional parameters for the ClustersClient.CheckNameAvailability method.
ClustersClientCheckNameAvailabilityResponse contains the response from method ClustersClient.CheckNameAvailability.
ClustersClientCreateResponse contains the response from method ClustersClient.BeginCreate.
ClustersClientDeleteResponse contains the response from method ClustersClient.BeginDelete.
ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method.
ClustersClientGetResponse contains the response from method ClustersClient.Get.
ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager method.
ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.NewListByResourceGroupPager.
ClustersClientListOptions contains the optional parameters for the ClustersClient.NewListPager method.
ClustersClientListResponse contains the response from method ClustersClient.NewListPager.
ClustersClientPromoteReadReplicaResponse contains the response from method ClustersClient.BeginPromoteReadReplica.
ClustersClientRestartResponse contains the response from method ClustersClient.BeginRestart.
ClustersClientStartResponse contains the response from method ClustersClient.BeginStart.
ClustersClientStopResponse contains the response from method ClustersClient.BeginStop.
ClustersClientUpdateResponse contains the response from method ClustersClient.BeginUpdate.
ClusterServer - Represents a server in a cluster.
ClusterServerListResult - A list of servers in a cluster.
ClusterServerProperties - The properties of a server in cluster.
Configuration - Represents configuration details for coordinator and node.
ConfigurationProperties - The properties of configuration.
ConfigurationsClient contains the methods for the Configurations group.
ConfigurationsClientBeginUpdateOnCoordinatorOptions contains the optional parameters for the ConfigurationsClient.BeginUpdateOnCoordinator method.
ConfigurationsClientBeginUpdateOnNodeOptions contains the optional parameters for the ConfigurationsClient.BeginUpdateOnNode method.
ConfigurationsClientGetCoordinatorOptions contains the optional parameters for the ConfigurationsClient.GetCoordinator method.
ConfigurationsClientGetCoordinatorResponse contains the response from method ConfigurationsClient.GetCoordinator.
ConfigurationsClientGetNodeOptions contains the optional parameters for the ConfigurationsClient.GetNode method.
ConfigurationsClientGetNodeResponse contains the response from method ConfigurationsClient.GetNode.
ConfigurationsClientGetOptions contains the optional parameters for the ConfigurationsClient.Get method.
ConfigurationsClientGetResponse contains the response from method ConfigurationsClient.Get.
ConfigurationsClientListByClusterOptions contains the optional parameters for the ConfigurationsClient.NewListByClusterPager method.
ConfigurationsClientListByClusterResponse contains the response from method ConfigurationsClient.NewListByClusterPager.
ConfigurationsClientListByServerOptions contains the optional parameters for the ConfigurationsClient.NewListByServerPager method.
ConfigurationsClientListByServerResponse contains the response from method ConfigurationsClient.NewListByServerPager.
ConfigurationsClientUpdateOnCoordinatorResponse contains the response from method ConfigurationsClient.BeginUpdateOnCoordinator.
ConfigurationsClientUpdateOnNodeResponse contains the response from method ConfigurationsClient.BeginUpdateOnNode.
FirewallRule - Represents a cluster firewall rule.
FirewallRuleListResult - A list of firewall rules.
FirewallRuleProperties - The properties of a cluster 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.
FirewallRulesClientListByClusterOptions contains the optional parameters for the FirewallRulesClient.NewListByClusterPager method.
FirewallRulesClientListByClusterResponse contains the response from method FirewallRulesClient.NewListByClusterPager.
MaintenanceWindow - Schedule settings for regular cluster updates.
NameAvailability - Represents cluster name availability.
NameAvailabilityRequest - Request from client to check cluster 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.
PrivateEndpoint - The private endpoint resource.
PrivateEndpointConnection - The private endpoint connection resource.
PrivateEndpointConnectionListResult - List of private endpoint connections associated with the specified resource.
PrivateEndpointConnectionProperties - Properties of the private endpoint connection.
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group.
PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate method.
PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreateOrUpdate.
PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete.
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
PrivateEndpointConnectionsClientListByClusterOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByClusterPager method.
PrivateEndpointConnectionsClientListByClusterResponse contains the response from method PrivateEndpointConnectionsClient.NewListByClusterPager.
PrivateEndpointConnectionSimpleProperties - The properties in private endpoint connection.
PrivateEndpointProperty - Property to represent resource id of the private endpoint.
PrivateLinkResource - A private link resource.
PrivateLinkResourceListResult - A list of private link resources.
PrivateLinkResourceProperties - Properties of a private link resource.
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group.
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
PrivateLinkResourcesClientListByClusterOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByClusterPager method.
PrivateLinkResourcesClientListByClusterResponse contains the response from method PrivateLinkResourcesClient.NewListByClusterPager.
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
PromoteRequest - Request from client to promote geo-redundant replica.
Role - Represents a cluster role.
RoleListResult - A list of roles.
RoleProperties - The properties of a cluster role.
No description provided by the author
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.
RolesClientGetOptions contains the optional parameters for the RolesClient.Get method.
RolesClientGetResponse contains the response from method RolesClient.Get.
RolesClientListByClusterOptions contains the optional parameters for the RolesClient.NewListByClusterPager method.
RolesClientListByClusterResponse contains the response from method RolesClient.NewListByClusterPager.
ServerConfiguration - Represents a configuration.
ServerConfigurationListResult - A list of server configurations.
ServerConfigurationProperties - The properties of a configuration.
ServerNameItem - The name object for a server.
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.
ServersClientListByClusterOptions contains the optional parameters for the ServersClient.NewListByClusterPager method.
ServersClientListByClusterResponse contains the response from method ServersClient.NewListByClusterPager.
SimplePrivateEndpointConnection - A private endpoint connection.
SystemData - Metadata pertaining to creation and last modification of the resource.

# Type aliases

No description provided by the author
ConfigurationDataType - Data type of the configuration.
CreatedByType - The type of identity that created the resource.
OperationOrigin - The intended executor of the operation.
No description provided by the author
No description provided by the author
PrivateEndpointConnectionProvisioningState - The current provisioning state.
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
ProvisioningState - The current provisioning state.
No description provided by the author
ServerRole - The role of a server.