Documentation ¶
Index ¶
- func PossibleValuesForCheckNameAvailabilityResourceType() []string
- func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
- func ValidateServerGroupsv2ID(input interface{}, key string) (warnings []string, errors []error)
- type CheckNameAvailabilityOperationResponse
- type CheckNameAvailabilityResourceType
- type Cluster
- type ClusterForUpdate
- type ClusterOperationPredicate
- type ClusterProperties
- type ClusterPropertiesForUpdate
- type ClustersClient
- func (c ClustersClient) CheckNameAvailability(ctx context.Context, id commonids.SubscriptionId, ...) (result CheckNameAvailabilityOperationResponse, err error)
- func (c ClustersClient) Create(ctx context.Context, id ServerGroupsv2Id, input Cluster) (result CreateOperationResponse, err error)
- func (c ClustersClient) CreateThenPoll(ctx context.Context, id ServerGroupsv2Id, input Cluster) error
- func (c ClustersClient) Delete(ctx context.Context, id ServerGroupsv2Id) (result DeleteOperationResponse, err error)
- func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ServerGroupsv2Id) error
- func (c ClustersClient) Get(ctx context.Context, id ServerGroupsv2Id) (result GetOperationResponse, err error)
- func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c ClustersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c ClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ClustersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c ClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c ClustersClient) Update(ctx context.Context, id ServerGroupsv2Id, input ClusterForUpdate) (result UpdateOperationResponse, err error)
- func (c ClustersClient) UpdateThenPoll(ctx context.Context, id ServerGroupsv2Id, input ClusterForUpdate) error
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type MaintenanceWindow
- type NameAvailability
- type NameAvailabilityRequest
- type PrivateEndpointConnectionSimpleProperties
- type PrivateEndpointProperty
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkServiceConnectionState
- type ServerGroupsv2Id
- type ServerNameItem
- type SimplePrivateEndpointConnection
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCheckNameAvailabilityResourceType ¶
func PossibleValuesForCheckNameAvailabilityResourceType() []string
func PossibleValuesForPrivateEndpointServiceConnectionStatus ¶
func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
func ValidateServerGroupsv2ID ¶
ValidateServerGroupsv2ID checks that 'input' can be parsed as a Server Groupsv 2 ID
Types ¶
type CheckNameAvailabilityOperationResponse ¶
type CheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *NameAvailability }
type CheckNameAvailabilityResourceType ¶
type CheckNameAvailabilityResourceType string
const (
CheckNameAvailabilityResourceTypeMicrosoftPointDBforPostgreSQLServerGroupsvTwo CheckNameAvailabilityResourceType = "Microsoft.DBforPostgreSQL/serverGroupsv2"
)
func (*CheckNameAvailabilityResourceType) UnmarshalJSON ¶ added in v0.20230809.1081239
func (s *CheckNameAvailabilityResourceType) UnmarshalJSON(bytes []byte) error
type Cluster ¶
type Cluster struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *ClusterProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ClusterForUpdate ¶
type ClusterForUpdate struct { Properties *ClusterPropertiesForUpdate `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ClusterOperationPredicate ¶
func (ClusterOperationPredicate) Matches ¶
func (p ClusterOperationPredicate) Matches(input Cluster) bool
type ClusterProperties ¶
type ClusterProperties struct { AdministratorLogin *string `json:"administratorLogin,omitempty"` AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` CitusVersion *string `json:"citusVersion,omitempty"` CoordinatorEnablePublicIPAccess *bool `json:"coordinatorEnablePublicIpAccess,omitempty"` CoordinatorServerEdition *string `json:"coordinatorServerEdition,omitempty"` CoordinatorStorageQuotaInMb *int64 `json:"coordinatorStorageQuotaInMb,omitempty"` CoordinatorVCores *int64 `json:"coordinatorVCores,omitempty"` EarliestRestoreTime *string `json:"earliestRestoreTime,omitempty"` EnableHa *bool `json:"enableHa,omitempty"` EnableShardsOnCoordinator *bool `json:"enableShardsOnCoordinator,omitempty"` MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` NodeCount *int64 `json:"nodeCount,omitempty"` NodeEnablePublicIPAccess *bool `json:"nodeEnablePublicIpAccess,omitempty"` NodeServerEdition *string `json:"nodeServerEdition,omitempty"` NodeStorageQuotaInMb *int64 `json:"nodeStorageQuotaInMb,omitempty"` NodeVCores *int64 `json:"nodeVCores,omitempty"` PointInTimeUTC *string `json:"pointInTimeUTC,omitempty"` PostgresqlVersion *string `json:"postgresqlVersion,omitempty"` PreferredPrimaryZone *string `json:"preferredPrimaryZone,omitempty"` PrivateEndpointConnections *[]SimplePrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ReadReplicas *[]string `json:"readReplicas,omitempty"` ServerNames *[]ServerNameItem `json:"serverNames,omitempty"` SourceLocation *string `json:"sourceLocation,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` State *string `json:"state,omitempty"` }
func (*ClusterProperties) GetEarliestRestoreTimeAsTime ¶
func (o *ClusterProperties) GetEarliestRestoreTimeAsTime() (*time.Time, error)
func (*ClusterProperties) GetPointInTimeUTCAsTime ¶
func (o *ClusterProperties) GetPointInTimeUTCAsTime() (*time.Time, error)
func (*ClusterProperties) SetEarliestRestoreTimeAsTime ¶
func (o *ClusterProperties) SetEarliestRestoreTimeAsTime(input time.Time)
func (*ClusterProperties) SetPointInTimeUTCAsTime ¶
func (o *ClusterProperties) SetPointInTimeUTCAsTime(input time.Time)
type ClusterPropertiesForUpdate ¶
type ClusterPropertiesForUpdate struct { AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` CitusVersion *string `json:"citusVersion,omitempty"` CoordinatorEnablePublicIPAccess *bool `json:"coordinatorEnablePublicIpAccess,omitempty"` CoordinatorServerEdition *string `json:"coordinatorServerEdition,omitempty"` CoordinatorStorageQuotaInMb *int64 `json:"coordinatorStorageQuotaInMb,omitempty"` CoordinatorVCores *int64 `json:"coordinatorVCores,omitempty"` EnableHa *bool `json:"enableHa,omitempty"` EnableShardsOnCoordinator *bool `json:"enableShardsOnCoordinator,omitempty"` MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` NodeCount *int64 `json:"nodeCount,omitempty"` NodeEnablePublicIPAccess *bool `json:"nodeEnablePublicIpAccess,omitempty"` NodeServerEdition *string `json:"nodeServerEdition,omitempty"` NodeStorageQuotaInMb *int64 `json:"nodeStorageQuotaInMb,omitempty"` NodeVCores *int64 `json:"nodeVCores,omitempty"` PostgresqlVersion *string `json:"postgresqlVersion,omitempty"` PreferredPrimaryZone *string `json:"preferredPrimaryZone,omitempty"` }
type ClustersClient ¶
type ClustersClient struct {
Client *resourcemanager.Client
}
func NewClustersClientWithBaseURI ¶
func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error)
func (ClustersClient) CheckNameAvailability ¶
func (c ClustersClient) CheckNameAvailability(ctx context.Context, id commonids.SubscriptionId, input NameAvailabilityRequest) (result CheckNameAvailabilityOperationResponse, err error)
CheckNameAvailability ...
func (ClustersClient) Create ¶ added in v0.20230317.1154451
func (c ClustersClient) Create(ctx context.Context, id ServerGroupsv2Id, input Cluster) (result CreateOperationResponse, err error)
Create ...
func (ClustersClient) CreateThenPoll ¶ added in v0.20230317.1154451
func (c ClustersClient) CreateThenPoll(ctx context.Context, id ServerGroupsv2Id, input Cluster) error
CreateThenPoll performs Create then polls until it's completed
func (ClustersClient) Delete ¶
func (c ClustersClient) Delete(ctx context.Context, id ServerGroupsv2Id) (result DeleteOperationResponse, err error)
Delete ...
func (ClustersClient) DeleteThenPoll ¶
func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ServerGroupsv2Id) error
DeleteThenPoll performs Delete then polls until it's completed
func (ClustersClient) Get ¶
func (c ClustersClient) Get(ctx context.Context, id ServerGroupsv2Id) (result GetOperationResponse, err error)
Get ...
func (ClustersClient) List ¶
func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (ClustersClient) ListByResourceGroup ¶
func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ClustersClient) ListByResourceGroupComplete ¶
func (c ClustersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ClustersClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ClusterOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ClustersClient) ListComplete ¶
func (c ClustersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ClustersClient) ListCompleteMatchingPredicate ¶
func (c ClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ClusterOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ClustersClient) Update ¶
func (c ClustersClient) Update(ctx context.Context, id ServerGroupsv2Id, input ClusterForUpdate) (result UpdateOperationResponse, err error)
Update ...
func (ClustersClient) UpdateThenPoll ¶
func (c ClustersClient) UpdateThenPoll(ctx context.Context, id ServerGroupsv2Id, input ClusterForUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type CreateOperationResponse ¶ added in v0.20230317.1154451
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Cluster
}
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Cluster
}
type ListOperationResponse ¶
type MaintenanceWindow ¶
type NameAvailability ¶
type NameAvailabilityRequest ¶
type NameAvailabilityRequest struct { Name string `json:"name"` Type CheckNameAvailabilityResourceType `json:"type"` }
type PrivateEndpointConnectionSimpleProperties ¶
type PrivateEndpointConnectionSimpleProperties struct { GroupIds *[]string `json:"groupIds,omitempty"` PrivateEndpoint *PrivateEndpointProperty `json:"privateEndpoint,omitempty"` PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` }
type PrivateEndpointProperty ¶
type PrivateEndpointProperty struct {
Id *string `json:"id,omitempty"`
}
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON ¶ added in v0.20230809.1081239
func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { ActionsRequired *string `json:"actionsRequired,omitempty"` Description *string `json:"description,omitempty"` Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` }
type ServerGroupsv2Id ¶
type ServerGroupsv2Id struct { SubscriptionId string ResourceGroupName string ServerGroupsv2Name string }
ServerGroupsv2Id is a struct representing the Resource ID for a Server Groupsv 2
func NewServerGroupsv2ID ¶
func NewServerGroupsv2ID(subscriptionId string, resourceGroupName string, serverGroupsv2Name string) ServerGroupsv2Id
NewServerGroupsv2ID returns a new ServerGroupsv2Id struct
func ParseServerGroupsv2ID ¶
func ParseServerGroupsv2ID(input string) (*ServerGroupsv2Id, error)
ParseServerGroupsv2ID parses 'input' into a ServerGroupsv2Id
func ParseServerGroupsv2IDInsensitively ¶
func ParseServerGroupsv2IDInsensitively(input string) (*ServerGroupsv2Id, error)
ParseServerGroupsv2IDInsensitively parses 'input' case-insensitively into a ServerGroupsv2Id note: this method should only be used for API response data and not user input
func (ServerGroupsv2Id) ID ¶
func (id ServerGroupsv2Id) ID() string
ID returns the formatted Server Groupsv 2 ID
func (ServerGroupsv2Id) Segments ¶
func (id ServerGroupsv2Id) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server Groupsv 2 ID
func (ServerGroupsv2Id) String ¶
func (id ServerGroupsv2Id) String() string
String returns a human-readable description of this Server Groupsv 2 ID
type ServerNameItem ¶
type SimplePrivateEndpointConnection ¶
type SimplePrivateEndpointConnection struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PrivateEndpointConnectionSimpleProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_servergroupsv2.go
- method_checknameavailability.go
- method_create.go
- method_delete.go
- method_get.go
- method_list.go
- method_listbyresourcegroup.go
- method_update.go
- model_cluster.go
- model_clusterforupdate.go
- model_clusterproperties.go
- model_clusterpropertiesforupdate.go
- model_maintenancewindow.go
- model_nameavailability.go
- model_nameavailabilityrequest.go
- model_privateendpointconnectionsimpleproperties.go
- model_privateendpointproperty.go
- model_privatelinkserviceconnectionstate.go
- model_servernameitem.go
- model_simpleprivateendpointconnection.go
- predicates.go
- version.go