mongoclusters

package
v0.20240920.1081703 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: MPL-2.0 Imports: 16 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters Documentation

The mongoclusters SDK allows for interaction with the Azure Resource Manager Service mongocluster (API Version 2024-07-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters"

Client Initialization

client := mongoclusters.NewMongoClustersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MongoClustersClient.CheckNameAvailability

ctx := context.TODO()
id := mongoclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := mongoclusters.CheckNameAvailabilityRequest{
	// ...
}


read, err := client.CheckNameAvailability(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MongoClustersClient.CreateOrUpdate

ctx := context.TODO()
id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterValue")

payload := mongoclusters.MongoCluster{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: MongoClustersClient.Delete

ctx := context.TODO()
id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: MongoClustersClient.Get

ctx := context.TODO()
id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MongoClustersClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MongoClustersClient.ListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MongoClustersClient.ListConnectionStrings

ctx := context.TODO()
id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterValue")

read, err := client.ListConnectionStrings(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MongoClustersClient.Promote

ctx := context.TODO()
id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterValue")

payload := mongoclusters.PromoteReplicaRequest{
	// ...
}


if err := client.PromoteThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: MongoClustersClient.Update

ctx := context.TODO()
id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterValue")

payload := mongoclusters.MongoClusterUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCheckNameAvailabilityReason

func PossibleValuesForCheckNameAvailabilityReason() []string

func PossibleValuesForCreateMode

func PossibleValuesForCreateMode() []string

func PossibleValuesForHighAvailabilityMode

func PossibleValuesForHighAvailabilityMode() []string

func PossibleValuesForMongoClusterStatus

func PossibleValuesForMongoClusterStatus() []string

func PossibleValuesForPreviewFeature

func PossibleValuesForPreviewFeature() []string

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func PossibleValuesForPromoteMode

func PossibleValuesForPromoteMode() []string

func PossibleValuesForPromoteOption

func PossibleValuesForPromoteOption() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

func PossibleValuesForReplicationRole

func PossibleValuesForReplicationRole() []string

func PossibleValuesForReplicationState

func PossibleValuesForReplicationState() []string

func ValidateLocationID

func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidateMongoClusterID

func ValidateMongoClusterID(input interface{}, key string) (warnings []string, errors []error)

ValidateMongoClusterID checks that 'input' can be parsed as a Mongo Cluster ID

Types

type AdministratorProperties

type AdministratorProperties struct {
	Password *string `json:"password,omitempty"`
	UserName *string `json:"userName,omitempty"`
}

type BackupProperties

type BackupProperties struct {
	EarliestRestoreTime *string `json:"earliestRestoreTime,omitempty"`
}

type CheckNameAvailabilityOperationResponse

type CheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CheckNameAvailabilityResponse
}

type CheckNameAvailabilityReason

type CheckNameAvailabilityReason string
const (
	CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
	CheckNameAvailabilityReasonInvalid       CheckNameAvailabilityReason = "Invalid"
)

func (*CheckNameAvailabilityReason) UnmarshalJSON

func (s *CheckNameAvailabilityReason) UnmarshalJSON(bytes []byte) error

type CheckNameAvailabilityRequest

type CheckNameAvailabilityRequest struct {
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type CheckNameAvailabilityResponse

type CheckNameAvailabilityResponse struct {
	Message       *string                      `json:"message,omitempty"`
	NameAvailable *bool                        `json:"nameAvailable,omitempty"`
	Reason        *CheckNameAvailabilityReason `json:"reason,omitempty"`
}

type ComputeProperties

type ComputeProperties struct {
	Tier *string `json:"tier,omitempty"`
}

type ConnectionString

type ConnectionString struct {
	ConnectionString *string `json:"connectionString,omitempty"`
	Description      *string `json:"description,omitempty"`
	Name             *string `json:"name,omitempty"`
}

type CreateMode

type CreateMode string
const (
	CreateModeDefault            CreateMode = "Default"
	CreateModeGeoReplica         CreateMode = "GeoReplica"
	CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
	CreateModeReplica            CreateMode = "Replica"
)

func (*CreateMode) UnmarshalJSON

func (s *CreateMode) UnmarshalJSON(bytes []byte) error

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MongoCluster
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MongoCluster
}

type HighAvailabilityMode

type HighAvailabilityMode string
const (
	HighAvailabilityModeDisabled               HighAvailabilityMode = "Disabled"
	HighAvailabilityModeSameZone               HighAvailabilityMode = "SameZone"
	HighAvailabilityModeZoneRedundantPreferred HighAvailabilityMode = "ZoneRedundantPreferred"
)

func (*HighAvailabilityMode) UnmarshalJSON

func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error

type HighAvailabilityProperties

type HighAvailabilityProperties struct {
	TargetMode *HighAvailabilityMode `json:"targetMode,omitempty"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []MongoCluster
}

type ListByResourceGroupCustomPager

type ListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]MongoCluster
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []MongoCluster
}

type ListConnectionStringsOperationResponse

type ListConnectionStringsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListConnectionStringsResult
}

type ListConnectionStringsResult

type ListConnectionStringsResult struct {
	ConnectionStrings *[]ConnectionString `json:"connectionStrings,omitempty"`
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]MongoCluster
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input

func (*LocationId) FromParseResult

func (id *LocationId) FromParseResult(input resourceids.ParseResult) error

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

func (id LocationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type MongoCluster

type MongoCluster struct {
	Id         *string                 `json:"id,omitempty"`
	Location   string                  `json:"location"`
	Name       *string                 `json:"name,omitempty"`
	Properties *MongoClusterProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData  `json:"systemData,omitempty"`
	Tags       *map[string]string      `json:"tags,omitempty"`
	Type       *string                 `json:"type,omitempty"`
}

type MongoClusterId

type MongoClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	MongoClusterName  string
}

MongoClusterId is a struct representing the Resource ID for a Mongo Cluster

func NewMongoClusterID

func NewMongoClusterID(subscriptionId string, resourceGroupName string, mongoClusterName string) MongoClusterId

NewMongoClusterID returns a new MongoClusterId struct

func ParseMongoClusterID

func ParseMongoClusterID(input string) (*MongoClusterId, error)

ParseMongoClusterID parses 'input' into a MongoClusterId

func ParseMongoClusterIDInsensitively

func ParseMongoClusterIDInsensitively(input string) (*MongoClusterId, error)

ParseMongoClusterIDInsensitively parses 'input' case-insensitively into a MongoClusterId note: this method should only be used for API response data and not user input

func (*MongoClusterId) FromParseResult

func (id *MongoClusterId) FromParseResult(input resourceids.ParseResult) error

func (MongoClusterId) ID

func (id MongoClusterId) ID() string

ID returns the formatted Mongo Cluster ID

func (MongoClusterId) Segments

func (id MongoClusterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Mongo Cluster ID

func (MongoClusterId) String

func (id MongoClusterId) String() string

String returns a human-readable description of this Mongo Cluster ID

type MongoClusterOperationPredicate

type MongoClusterOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (MongoClusterOperationPredicate) Matches

type MongoClusterProperties

type MongoClusterProperties struct {
	Administrator              *AdministratorProperties       `json:"administrator,omitempty"`
	Backup                     *BackupProperties              `json:"backup,omitempty"`
	ClusterStatus              *MongoClusterStatus            `json:"clusterStatus,omitempty"`
	Compute                    *ComputeProperties             `json:"compute,omitempty"`
	ConnectionString           *string                        `json:"connectionString,omitempty"`
	CreateMode                 *CreateMode                    `json:"createMode,omitempty"`
	HighAvailability           *HighAvailabilityProperties    `json:"highAvailability,omitempty"`
	InfrastructureVersion      *string                        `json:"infrastructureVersion,omitempty"`
	PreviewFeatures            *[]PreviewFeature              `json:"previewFeatures,omitempty"`
	PrivateEndpointConnections *[]PrivateEndpointConnection   `json:"privateEndpointConnections,omitempty"`
	ProvisioningState          *ProvisioningState             `json:"provisioningState,omitempty"`
	PublicNetworkAccess        *PublicNetworkAccess           `json:"publicNetworkAccess,omitempty"`
	Replica                    *ReplicationProperties         `json:"replica,omitempty"`
	ReplicaParameters          *MongoClusterReplicaParameters `json:"replicaParameters,omitempty"`
	RestoreParameters          *MongoClusterRestoreParameters `json:"restoreParameters,omitempty"`
	ServerVersion              *string                        `json:"serverVersion,omitempty"`
	Sharding                   *ShardingProperties            `json:"sharding,omitempty"`
	Storage                    *StorageProperties             `json:"storage,omitempty"`
}

type MongoClusterReplicaParameters

type MongoClusterReplicaParameters struct {
	SourceLocation   string `json:"sourceLocation"`
	SourceResourceId string `json:"sourceResourceId"`
}

type MongoClusterRestoreParameters

type MongoClusterRestoreParameters struct {
	PointInTimeUTC   *string `json:"pointInTimeUTC,omitempty"`
	SourceResourceId *string `json:"sourceResourceId,omitempty"`
}

func (*MongoClusterRestoreParameters) GetPointInTimeUTCAsTime

func (o *MongoClusterRestoreParameters) GetPointInTimeUTCAsTime() (*time.Time, error)

func (*MongoClusterRestoreParameters) SetPointInTimeUTCAsTime

func (o *MongoClusterRestoreParameters) SetPointInTimeUTCAsTime(input time.Time)

type MongoClusterStatus

type MongoClusterStatus string
const (
	MongoClusterStatusDropping     MongoClusterStatus = "Dropping"
	MongoClusterStatusProvisioning MongoClusterStatus = "Provisioning"
	MongoClusterStatusReady        MongoClusterStatus = "Ready"
	MongoClusterStatusStarting     MongoClusterStatus = "Starting"
	MongoClusterStatusStopped      MongoClusterStatus = "Stopped"
	MongoClusterStatusStopping     MongoClusterStatus = "Stopping"
	MongoClusterStatusUpdating     MongoClusterStatus = "Updating"
)

func (*MongoClusterStatus) UnmarshalJSON

func (s *MongoClusterStatus) UnmarshalJSON(bytes []byte) error

type MongoClusterUpdate

type MongoClusterUpdate struct {
	Properties *MongoClusterUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string            `json:"tags,omitempty"`
}

type MongoClusterUpdateProperties

type MongoClusterUpdateProperties struct {
	Administrator       *AdministratorProperties    `json:"administrator,omitempty"`
	Backup              *BackupProperties           `json:"backup,omitempty"`
	Compute             *ComputeProperties          `json:"compute,omitempty"`
	HighAvailability    *HighAvailabilityProperties `json:"highAvailability,omitempty"`
	PreviewFeatures     *[]PreviewFeature           `json:"previewFeatures,omitempty"`
	PublicNetworkAccess *PublicNetworkAccess        `json:"publicNetworkAccess,omitempty"`
	ServerVersion       *string                     `json:"serverVersion,omitempty"`
	Sharding            *ShardingProperties         `json:"sharding,omitempty"`
	Storage             *StorageProperties          `json:"storage,omitempty"`
}

type MongoClustersClient

type MongoClustersClient struct {
	Client *resourcemanager.Client
}

func NewMongoClustersClientWithBaseURI

func NewMongoClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*MongoClustersClient, error)

func (MongoClustersClient) CheckNameAvailability

CheckNameAvailability ...

func (MongoClustersClient) CreateOrUpdate

CreateOrUpdate ...

func (MongoClustersClient) CreateOrUpdateThenPoll

func (c MongoClustersClient) CreateOrUpdateThenPoll(ctx context.Context, id MongoClusterId, input MongoCluster) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (MongoClustersClient) Delete

Delete ...

func (MongoClustersClient) DeleteThenPoll

func (c MongoClustersClient) DeleteThenPoll(ctx context.Context, id MongoClusterId) error

DeleteThenPoll performs Delete then polls until it's completed

func (MongoClustersClient) Get

Get ...

func (MongoClustersClient) List

List ...

func (MongoClustersClient) ListByResourceGroup

ListByResourceGroup ...

func (MongoClustersClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (MongoClustersClient) ListByResourceGroupCompleteMatchingPredicate

func (c MongoClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate MongoClusterOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MongoClustersClient) ListComplete

ListComplete retrieves all the results into a single object

func (MongoClustersClient) ListCompleteMatchingPredicate

func (c MongoClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate MongoClusterOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MongoClustersClient) ListConnectionStrings

func (c MongoClustersClient) ListConnectionStrings(ctx context.Context, id MongoClusterId) (result ListConnectionStringsOperationResponse, err error)

ListConnectionStrings ...

func (MongoClustersClient) Promote

Promote ...

func (MongoClustersClient) PromoteThenPoll

PromoteThenPoll performs Promote then polls until it's completed

func (MongoClustersClient) Update

Update ...

func (MongoClustersClient) UpdateThenPoll

func (c MongoClustersClient) UpdateThenPoll(ctx context.Context, id MongoClusterId, input MongoClusterUpdate) error

UpdateThenPoll performs Update then polls until it's completed

type PreviewFeature

type PreviewFeature string
const (
	PreviewFeatureGeoReplicas PreviewFeature = "GeoReplicas"
)

func (*PreviewFeature) UnmarshalJSON

func (s *PreviewFeature) UnmarshalJSON(bytes []byte) error

type PrivateEndpoint

type PrivateEndpoint struct {
	Id *string `json:"id,omitempty"`
}

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData               `json:"systemData,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	GroupIds                          *[]string                                   `json:"groupIds,omitempty"`
	PrivateEndpoint                   *PrivateEndpoint                            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState           `json:"privateLinkServiceConnectionState"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string
const (
	PrivateEndpointConnectionProvisioningStateCreating  PrivateEndpointConnectionProvisioningState = "Creating"
	PrivateEndpointConnectionProvisioningStateDeleting  PrivateEndpointConnectionProvisioningState = "Deleting"
	PrivateEndpointConnectionProvisioningStateFailed    PrivateEndpointConnectionProvisioningState = "Failed"
	PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)

func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON

func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string
const (
	PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
	PrivateEndpointServiceConnectionStatusPending  PrivateEndpointServiceConnectionStatus = "Pending"
	PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON

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 PromoteMode

type PromoteMode string
const (
	PromoteModeSwitchover PromoteMode = "Switchover"
)

func (*PromoteMode) UnmarshalJSON

func (s *PromoteMode) UnmarshalJSON(bytes []byte) error

type PromoteOperationResponse

type PromoteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type PromoteOption

type PromoteOption string
const (
	PromoteOptionForced PromoteOption = "Forced"
)

func (*PromoteOption) UnmarshalJSON

func (s *PromoteOption) UnmarshalJSON(bytes []byte) error

type PromoteReplicaRequest

type PromoteReplicaRequest struct {
	Mode          *PromoteMode  `json:"mode,omitempty"`
	PromoteOption PromoteOption `json:"promoteOption"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled   ProvisioningState = "Canceled"
	ProvisioningStateDropping   ProvisioningState = "Dropping"
	ProvisioningStateFailed     ProvisioningState = "Failed"
	ProvisioningStateInProgress ProvisioningState = "InProgress"
	ProvisioningStateSucceeded  ProvisioningState = "Succeeded"
	ProvisioningStateUpdating   ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type PublicNetworkAccess

type PublicNetworkAccess string
const (
	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
	PublicNetworkAccessEnabled  PublicNetworkAccess = "Enabled"
)

func (*PublicNetworkAccess) UnmarshalJSON

func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error

type ReplicationProperties

type ReplicationProperties struct {
	ReplicationState *ReplicationState `json:"replicationState,omitempty"`
	Role             *ReplicationRole  `json:"role,omitempty"`
	SourceResourceId *string           `json:"sourceResourceId,omitempty"`
}

type ReplicationRole

type ReplicationRole string
const (
	ReplicationRoleAsyncReplica    ReplicationRole = "AsyncReplica"
	ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica"
	ReplicationRolePrimary         ReplicationRole = "Primary"
)

func (*ReplicationRole) UnmarshalJSON

func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error

type ReplicationState

type ReplicationState string
const (
	ReplicationStateActive        ReplicationState = "Active"
	ReplicationStateBroken        ReplicationState = "Broken"
	ReplicationStateCatchup       ReplicationState = "Catchup"
	ReplicationStateProvisioning  ReplicationState = "Provisioning"
	ReplicationStateReconfiguring ReplicationState = "Reconfiguring"
	ReplicationStateUpdating      ReplicationState = "Updating"
)

func (*ReplicationState) UnmarshalJSON

func (s *ReplicationState) UnmarshalJSON(bytes []byte) error

type ShardingProperties

type ShardingProperties struct {
	ShardCount *int64 `json:"shardCount,omitempty"`
}

type StorageProperties

type StorageProperties struct {
	SizeGb *int64 `json:"sizeGb,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MongoCluster
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL