documentdb

package
Version: v53.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 10 Imported by: 14

Documentation

Overview

Package documentdb implements the Azure ARM Documentdb service API version 2021-03-01-preview.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Documentdb
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

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.

Types

type APIProperties

type APIProperties struct {
	// ServerVersion - Describes the ServerVersion of an a MongoDB account. Possible values include: 'ThreeFullStopTwo', 'ThreeFullStopSix', 'FourFullStopZero'
	ServerVersion ServerVersion `json:"serverVersion,omitempty"`
}

APIProperties ...

type APIType

type APIType string

APIType enumerates the values for api type.

const (
	// Cassandra ...
	Cassandra APIType = "Cassandra"
	// Gremlin ...
	Gremlin APIType = "Gremlin"
	// GremlinV2 ...
	GremlinV2 APIType = "GremlinV2"
	// MongoDB ...
	MongoDB APIType = "MongoDB"
	// SQL ...
	SQL APIType = "Sql"
	// Table ...
	Table APIType = "Table"
)

func PossibleAPITypeValues

func PossibleAPITypeValues() []APIType

PossibleAPITypeValues returns an array of possible values for the APIType const type.

type ARMProxyResource

type ARMProxyResource struct {
	// ID - READ-ONLY; The unique resource identifier of the database account.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the database account.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of Azure resource.
	Type *string `json:"type,omitempty"`
}

ARMProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type ARMResourceProperties

type ARMResourceProperties struct {
	// ID - READ-ONLY; The unique resource identifier of the ARM resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the ARM resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of Azure resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource group to which the resource belongs.
	Location *string                 `json:"location,omitempty"`
	Tags     map[string]*string      `json:"tags"`
	Identity *ManagedServiceIdentity `json:"identity,omitempty"`
}

ARMResourceProperties the core properties of ARM resources.

func (ARMResourceProperties) MarshalJSON

func (arp ARMResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ARMResourceProperties.

type AuthenticationMethod

type AuthenticationMethod string

AuthenticationMethod enumerates the values for authentication method.

const (
	// AuthenticationMethodCassandra ...
	AuthenticationMethodCassandra AuthenticationMethod = "Cassandra"
	// AuthenticationMethodNone ...
	AuthenticationMethodNone AuthenticationMethod = "None"
)

func PossibleAuthenticationMethodValues

func PossibleAuthenticationMethodValues() []AuthenticationMethod

PossibleAuthenticationMethodValues returns an array of possible values for the AuthenticationMethod const type.

type AutoUpgradePolicyResource

type AutoUpgradePolicyResource struct {
	// ThroughputPolicy - Represents throughput policy which service must adhere to for auto-upgrade
	ThroughputPolicy *ThroughputPolicyResource `json:"throughputPolicy,omitempty"`
}

AutoUpgradePolicyResource cosmos DB resource auto-upgrade policy

type AutoscaleSettings

type AutoscaleSettings struct {
	// MaxThroughput - Represents maximum throughput, the resource can scale up to.
	MaxThroughput *int32 `json:"maxThroughput,omitempty"`
}

AutoscaleSettings ...

type AutoscaleSettingsResource

type AutoscaleSettingsResource struct {
	// MaxThroughput - Represents maximum throughput container can scale up to.
	MaxThroughput *int32 `json:"maxThroughput,omitempty"`
	// AutoUpgradePolicy - Cosmos DB resource auto-upgrade policy
	AutoUpgradePolicy *AutoUpgradePolicyResource `json:"autoUpgradePolicy,omitempty"`
	// TargetMaxThroughput - READ-ONLY; Represents target maximum throughput container can scale up to once offer is no longer in pending state.
	TargetMaxThroughput *int32 `json:"targetMaxThroughput,omitempty"`
}

AutoscaleSettingsResource cosmos DB provisioned throughput settings object

func (AutoscaleSettingsResource) MarshalJSON

func (asr AutoscaleSettingsResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutoscaleSettingsResource.

type AzureEntityResource

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

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

type BackupPolicy

type BackupPolicy struct {
	// Type - Possible values include: 'TypeBackupPolicy', 'TypePeriodic', 'TypeContinuous'
	Type Type `json:"type,omitempty"`
}

BackupPolicy the object representing the policy for taking backups on an account.

func (BackupPolicy) AsBackupPolicy

func (bp BackupPolicy) AsBackupPolicy() (*BackupPolicy, bool)

AsBackupPolicy is the BasicBackupPolicy implementation for BackupPolicy.

func (BackupPolicy) AsBasicBackupPolicy

func (bp BackupPolicy) AsBasicBackupPolicy() (BasicBackupPolicy, bool)

AsBasicBackupPolicy is the BasicBackupPolicy implementation for BackupPolicy.

func (BackupPolicy) AsContinuousModeBackupPolicy

func (bp BackupPolicy) AsContinuousModeBackupPolicy() (*ContinuousModeBackupPolicy, bool)

AsContinuousModeBackupPolicy is the BasicBackupPolicy implementation for BackupPolicy.

func (BackupPolicy) AsPeriodicModeBackupPolicy

func (bp BackupPolicy) AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool)

AsPeriodicModeBackupPolicy is the BasicBackupPolicy implementation for BackupPolicy.

func (BackupPolicy) MarshalJSON

func (bp BackupPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupPolicy.

type BackupPolicyType

type BackupPolicyType string

BackupPolicyType enumerates the values for backup policy type.

const (
	// Continuous ...
	Continuous BackupPolicyType = "Continuous"
	// Periodic ...
	Periodic BackupPolicyType = "Periodic"
)

func PossibleBackupPolicyTypeValues

func PossibleBackupPolicyTypeValues() []BackupPolicyType

PossibleBackupPolicyTypeValues returns an array of possible values for the BackupPolicyType const type.

type BackupResource

type BackupResource struct {
	autorest.Response `json:"-"`
	Properties        *BackupResourceProperties `json:"properties,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"`
}

BackupResource a restorable backup of a Cassandra cluster.

func (BackupResource) MarshalJSON

func (br BackupResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupResource.

type BackupResourceProperties

type BackupResourceProperties struct {
	// Timestamp - The time this backup was taken, formatted like 2021-01-21T17:35:21
	Timestamp *date.Time `json:"timestamp,omitempty"`
}

BackupResourceProperties ...

type BackupStorageRedundancy

type BackupStorageRedundancy string

BackupStorageRedundancy enumerates the values for backup storage redundancy.

const (
	// Geo ...
	Geo BackupStorageRedundancy = "Geo"
	// Local ...
	Local BackupStorageRedundancy = "Local"
	// Zone ...
	Zone BackupStorageRedundancy = "Zone"
)

func PossibleBackupStorageRedundancyValues

func PossibleBackupStorageRedundancyValues() []BackupStorageRedundancy

PossibleBackupStorageRedundancyValues returns an array of possible values for the BackupStorageRedundancy const type.

type BaseClient

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

BaseClient is the base client for Documentdb.

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 BasicBackupPolicy

type BasicBackupPolicy interface {
	AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool)
	AsContinuousModeBackupPolicy() (*ContinuousModeBackupPolicy, bool)
	AsBackupPolicy() (*BackupPolicy, bool)
}

BasicBackupPolicy the object representing the policy for taking backups on an account.

type BasicDatabaseAccountCreateUpdateProperties

type BasicDatabaseAccountCreateUpdateProperties interface {
	AsDefaultRequestDatabaseAccountCreateUpdateProperties() (*DefaultRequestDatabaseAccountCreateUpdateProperties, bool)
	AsRestoreReqeustDatabaseAccountCreateUpdateProperties() (*RestoreReqeustDatabaseAccountCreateUpdateProperties, bool)
	AsDatabaseAccountCreateUpdateProperties() (*DatabaseAccountCreateUpdateProperties, bool)
}

BasicDatabaseAccountCreateUpdateProperties properties to create and update Azure Cosmos DB database accounts.

type Capability

type Capability struct {
	// Name - Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin".
	Name *string `json:"name,omitempty"`
}

Capability cosmos DB capability object

type CassandraClustersClient

type CassandraClustersClient struct {
	BaseClient
}

CassandraClustersClient is the client for the CassandraClusters methods of the Documentdb service.

func NewCassandraClustersClient

func NewCassandraClustersClient(subscriptionID string) CassandraClustersClient

NewCassandraClustersClient creates an instance of the CassandraClustersClient client.

func NewCassandraClustersClientWithBaseURI

func NewCassandraClustersClientWithBaseURI(baseURI string, subscriptionID string) CassandraClustersClient

NewCassandraClustersClientWithBaseURI creates an instance of the CassandraClustersClient 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 (CassandraClustersClient) CreateUpdate

func (client CassandraClustersClient) CreateUpdate(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource) (result CassandraClustersCreateUpdateFuture, err error)

CreateUpdate create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. body - the properties specifying the desired state of the managed Cassandra cluster.

func (CassandraClustersClient) CreateUpdatePreparer

func (client CassandraClustersClient) CreateUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource) (*http.Request, error)

CreateUpdatePreparer prepares the CreateUpdate request.

func (CassandraClustersClient) CreateUpdateResponder

func (client CassandraClustersClient) CreateUpdateResponder(resp *http.Response) (result ClusterResource, err error)

CreateUpdateResponder handles the response to the CreateUpdate request. The method always closes the http.Response Body.

func (CassandraClustersClient) CreateUpdateSender

func (client CassandraClustersClient) CreateUpdateSender(req *http.Request) (future CassandraClustersCreateUpdateFuture, err error)

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

func (CassandraClustersClient) Delete

func (client CassandraClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result CassandraClustersDeleteFuture, err error)

Delete deletes a managed Cassandra cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name.

func (CassandraClustersClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (CassandraClustersClient) DeleteResponder

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

func (client CassandraClustersClient) DeleteSender(req *http.Request) (future CassandraClustersDeleteFuture, err error)

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

func (CassandraClustersClient) FetchNodeStatus

func (client CassandraClustersClient) FetchNodeStatus(ctx context.Context, resourceGroupName string, clusterName string) (result CassandraClustersFetchNodeStatusFuture, err error)

FetchNodeStatus request the status of all nodes in the cluster (as returned by 'nodetool status'). Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name.

func (CassandraClustersClient) FetchNodeStatusPreparer

func (client CassandraClustersClient) FetchNodeStatusPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

FetchNodeStatusPreparer prepares the FetchNodeStatus request.

func (CassandraClustersClient) FetchNodeStatusResponder

func (client CassandraClustersClient) FetchNodeStatusResponder(resp *http.Response) (result ClusterNodeStatus, err error)

FetchNodeStatusResponder handles the response to the FetchNodeStatus request. The method always closes the http.Response Body.

func (CassandraClustersClient) FetchNodeStatusSender

func (client CassandraClustersClient) FetchNodeStatusSender(req *http.Request) (future CassandraClustersFetchNodeStatusFuture, err error)

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

func (CassandraClustersClient) Get

func (client CassandraClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result ClusterResource, err error)

Get get the properties of a managed Cassandra cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name.

func (CassandraClustersClient) GetBackup

func (client CassandraClustersClient) GetBackup(ctx context.Context, resourceGroupName string, clusterName string, backupID string) (result BackupResource, err error)

GetBackup get the properties of an individual backup of this cluster that is available to restore. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. backupID - id of a restorable backup of a Cassandra cluster.

func (CassandraClustersClient) GetBackupPreparer

func (client CassandraClustersClient) GetBackupPreparer(ctx context.Context, resourceGroupName string, clusterName string, backupID string) (*http.Request, error)

GetBackupPreparer prepares the GetBackup request.

func (CassandraClustersClient) GetBackupResponder

func (client CassandraClustersClient) GetBackupResponder(resp *http.Response) (result BackupResource, err error)

GetBackupResponder handles the response to the GetBackup request. The method always closes the http.Response Body.

func (CassandraClustersClient) GetBackupSender

func (client CassandraClustersClient) GetBackupSender(req *http.Request) (*http.Response, error)

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

func (CassandraClustersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (CassandraClustersClient) GetResponder

func (client CassandraClustersClient) GetResponder(resp *http.Response) (result ClusterResource, err error)

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

func (CassandraClustersClient) GetSender

func (client CassandraClustersClient) 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 (CassandraClustersClient) ListBackupsMethod

func (client CassandraClustersClient) ListBackupsMethod(ctx context.Context, resourceGroupName string, clusterName string) (result ListBackups, err error)

ListBackupsMethod list the backups of this cluster that are available to restore. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name.

func (CassandraClustersClient) ListBackupsMethodPreparer

func (client CassandraClustersClient) ListBackupsMethodPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

ListBackupsMethodPreparer prepares the ListBackupsMethod request.

func (CassandraClustersClient) ListBackupsMethodResponder

func (client CassandraClustersClient) ListBackupsMethodResponder(resp *http.Response) (result ListBackups, err error)

ListBackupsMethodResponder handles the response to the ListBackupsMethod request. The method always closes the http.Response Body.

func (CassandraClustersClient) ListBackupsMethodSender

func (client CassandraClustersClient) ListBackupsMethodSender(req *http.Request) (*http.Response, error)

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

func (CassandraClustersClient) ListByResourceGroup

func (client CassandraClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListClusters, err error)

ListByResourceGroup list all managed Cassandra clusters in this resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (CassandraClustersClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (CassandraClustersClient) ListByResourceGroupResponder

func (client CassandraClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ListClusters, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (CassandraClustersClient) ListByResourceGroupSender

func (client CassandraClustersClient) 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 (CassandraClustersClient) ListBySubscription

func (client CassandraClustersClient) ListBySubscription(ctx context.Context) (result ListClusters, err error)

ListBySubscription list all managed Cassandra clusters in this subscription.

func (CassandraClustersClient) ListBySubscriptionPreparer

func (client CassandraClustersClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (CassandraClustersClient) ListBySubscriptionResponder

func (client CassandraClustersClient) ListBySubscriptionResponder(resp *http.Response) (result ListClusters, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (CassandraClustersClient) ListBySubscriptionSender

func (client CassandraClustersClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (CassandraClustersClient) RequestRepair

func (client CassandraClustersClient) RequestRepair(ctx context.Context, resourceGroupName string, clusterName string, body RepairPostBody) (result CassandraClustersRequestRepairFuture, err error)

RequestRepair request that repair begin on this cluster as soon as possible. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. body - specification of what keyspaces and tables to run repair on.

func (CassandraClustersClient) RequestRepairPreparer

func (client CassandraClustersClient) RequestRepairPreparer(ctx context.Context, resourceGroupName string, clusterName string, body RepairPostBody) (*http.Request, error)

RequestRepairPreparer prepares the RequestRepair request.

func (CassandraClustersClient) RequestRepairResponder

func (client CassandraClustersClient) RequestRepairResponder(resp *http.Response) (result autorest.Response, err error)

RequestRepairResponder handles the response to the RequestRepair request. The method always closes the http.Response Body.

func (CassandraClustersClient) RequestRepairSender

func (client CassandraClustersClient) RequestRepairSender(req *http.Request) (future CassandraClustersRequestRepairFuture, err error)

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

func (CassandraClustersClient) Update

func (client CassandraClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource) (result CassandraClustersUpdateFuture, err error)

Update updates some of the properties of a managed Cassandra cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. body - parameters to provide for specifying the managed Cassandra cluster.

func (CassandraClustersClient) UpdatePreparer

func (client CassandraClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (CassandraClustersClient) UpdateResponder

func (client CassandraClustersClient) UpdateResponder(resp *http.Response) (result ClusterResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (CassandraClustersClient) UpdateSender

func (client CassandraClustersClient) UpdateSender(req *http.Request) (future CassandraClustersUpdateFuture, err error)

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

type CassandraClustersCreateUpdateFuture

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

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

func (*CassandraClustersCreateUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraClustersDeleteFuture

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

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

func (*CassandraClustersDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraClustersFetchNodeStatusFuture

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

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

func (*CassandraClustersFetchNodeStatusFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraClustersRequestRepairFuture

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

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

func (*CassandraClustersRequestRepairFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraClustersUpdateFuture

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

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

func (*CassandraClustersUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraDataCentersClient

type CassandraDataCentersClient struct {
	BaseClient
}

CassandraDataCentersClient is the client for the CassandraDataCenters methods of the Documentdb service.

func NewCassandraDataCentersClient

func NewCassandraDataCentersClient(subscriptionID string) CassandraDataCentersClient

NewCassandraDataCentersClient creates an instance of the CassandraDataCentersClient client.

func NewCassandraDataCentersClientWithBaseURI

func NewCassandraDataCentersClientWithBaseURI(baseURI string, subscriptionID string) CassandraDataCentersClient

NewCassandraDataCentersClientWithBaseURI creates an instance of the CassandraDataCentersClient 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 (CassandraDataCentersClient) CreateUpdate

func (client CassandraDataCentersClient) CreateUpdate(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource) (result CassandraDataCentersCreateUpdateFuture, err error)

CreateUpdate create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. dataCenterName - data center name in a managed Cassandra cluster. body - parameters specifying the managed Cassandra data center.

func (CassandraDataCentersClient) CreateUpdatePreparer

func (client CassandraDataCentersClient) CreateUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource) (*http.Request, error)

CreateUpdatePreparer prepares the CreateUpdate request.

func (CassandraDataCentersClient) CreateUpdateResponder

func (client CassandraDataCentersClient) CreateUpdateResponder(resp *http.Response) (result DataCenterResource, err error)

CreateUpdateResponder handles the response to the CreateUpdate request. The method always closes the http.Response Body.

func (CassandraDataCentersClient) CreateUpdateSender

func (client CassandraDataCentersClient) CreateUpdateSender(req *http.Request) (future CassandraDataCentersCreateUpdateFuture, err error)

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

func (CassandraDataCentersClient) Delete

func (client CassandraDataCentersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string) (result CassandraDataCentersDeleteFuture, err error)

Delete delete a managed Cassandra data center. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. dataCenterName - data center name in a managed Cassandra cluster.

func (CassandraDataCentersClient) DeletePreparer

func (client CassandraDataCentersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CassandraDataCentersClient) DeleteResponder

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

func (client CassandraDataCentersClient) DeleteSender(req *http.Request) (future CassandraDataCentersDeleteFuture, err error)

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

func (CassandraDataCentersClient) Get

func (client CassandraDataCentersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string) (result DataCenterResource, err error)

Get get the properties of a managed Cassandra data center. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. dataCenterName - data center name in a managed Cassandra cluster.

func (CassandraDataCentersClient) GetPreparer

func (client CassandraDataCentersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CassandraDataCentersClient) GetResponder

func (client CassandraDataCentersClient) GetResponder(resp *http.Response) (result DataCenterResource, err error)

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

func (CassandraDataCentersClient) GetSender

func (client CassandraDataCentersClient) 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 (CassandraDataCentersClient) List

func (client CassandraDataCentersClient) List(ctx context.Context, resourceGroupName string, clusterName string) (result ListDataCenters, err error)

List list all data centers in a particular managed Cassandra cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name.

func (CassandraDataCentersClient) ListPreparer

func (client CassandraDataCentersClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

ListPreparer prepares the List request.

func (CassandraDataCentersClient) ListResponder

func (client CassandraDataCentersClient) ListResponder(resp *http.Response) (result ListDataCenters, err error)

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

func (CassandraDataCentersClient) ListSender

func (client CassandraDataCentersClient) 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 (CassandraDataCentersClient) Update

func (client CassandraDataCentersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource) (result CassandraDataCentersUpdateFuture, err error)

Update update some of the properties of a managed Cassandra data center. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - managed Cassandra cluster name. dataCenterName - data center name in a managed Cassandra cluster. body - parameters to provide for specifying the managed Cassandra data center.

func (CassandraDataCentersClient) UpdatePreparer

func (client CassandraDataCentersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (CassandraDataCentersClient) UpdateResponder

func (client CassandraDataCentersClient) UpdateResponder(resp *http.Response) (result DataCenterResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (CassandraDataCentersClient) UpdateSender

func (client CassandraDataCentersClient) UpdateSender(req *http.Request) (future CassandraDataCentersUpdateFuture, err error)

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

type CassandraDataCentersCreateUpdateFuture

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

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

func (*CassandraDataCentersCreateUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraDataCentersDeleteFuture

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

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

func (*CassandraDataCentersDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraDataCentersUpdateFuture

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

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

func (*CassandraDataCentersUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CassandraKeyspaceCreateUpdateParameters

type CassandraKeyspaceCreateUpdateParameters struct {
	// CassandraKeyspaceCreateUpdateProperties - Properties to create and update Azure Cosmos DB Cassandra keyspace.
	*CassandraKeyspaceCreateUpdateProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The unique resource identifier of the ARM resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the ARM resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of Azure resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource group to which the resource belongs.
	Location *string                 `json:"location,omitempty"`