README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/managedcassandras
Documentation
The managedcassandras
SDK allows for interaction with Azure Resource Manager cosmosdb
(API Version 2024-05-15
).
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/cosmosdb/2024-05-15/managedcassandras"
Client Initialization
client := managedcassandras.NewManagedCassandrasClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ManagedCassandrasClient.CassandraClustersCreateUpdate
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
payload := managedcassandras.ClusterResource{
// ...
}
if err := client.CassandraClustersCreateUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraClustersDeallocate
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
if err := client.CassandraClustersDeallocateThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraClustersDelete
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
if err := client.CassandraClustersDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraClustersGet
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
read, err := client.CassandraClustersGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedCassandrasClient.CassandraClustersInvokeCommand
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
payload := managedcassandras.CommandPostBody{
// ...
}
if err := client.CassandraClustersInvokeCommandThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraClustersListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
read, err := client.CassandraClustersListByResourceGroup(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedCassandrasClient.CassandraClustersListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
read, err := client.CassandraClustersListBySubscription(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedCassandrasClient.CassandraClustersStart
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
if err := client.CassandraClustersStartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraClustersStatus
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
read, err := client.CassandraClustersStatus(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedCassandrasClient.CassandraClustersUpdate
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
payload := managedcassandras.ClusterResource{
// ...
}
if err := client.CassandraClustersUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraDataCentersCreateUpdate
ctx := context.TODO()
id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName", "dataCenterName")
payload := managedcassandras.DataCenterResource{
// ...
}
if err := client.CassandraDataCentersCreateUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraDataCentersDelete
ctx := context.TODO()
id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName", "dataCenterName")
if err := client.CassandraDataCentersDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ManagedCassandrasClient.CassandraDataCentersGet
ctx := context.TODO()
id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName", "dataCenterName")
read, err := client.CassandraDataCentersGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedCassandrasClient.CassandraDataCentersList
ctx := context.TODO()
id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName")
read, err := client.CassandraDataCentersList(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedCassandrasClient.CassandraDataCentersUpdate
ctx := context.TODO()
id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterName", "dataCenterName")
payload := managedcassandras.DataCenterResource{
// ...
}
if err := client.CassandraDataCentersUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func PossibleValuesForAuthenticationMethod() []string
- func PossibleValuesForAzureConnectionType() []string
- func PossibleValuesForConnectionState() []string
- func PossibleValuesForManagedCassandraProvisioningState() []string
- func PossibleValuesForNodeState() []string
- func ValidateCassandraClusterID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDataCenterID(input interface{}, key string) (warnings []string, errors []error)
- type AuthenticationMethod
- type AuthenticationMethodLdapProperties
- type AzureConnectionType
- type CassandraClusterId
- type CassandraClusterPublicStatus
- type CassandraClusterPublicStatusDataCentersInlined
- type CassandraClusterPublicStatusDataCentersInlinedNodesInlined
- type CassandraClustersCreateUpdateOperationResponse
- type CassandraClustersDeallocateOperationResponse
- type CassandraClustersDeleteOperationResponse
- type CassandraClustersGetOperationResponse
- type CassandraClustersInvokeCommandOperationResponse
- type CassandraClustersListByResourceGroupOperationResponse
- type CassandraClustersListBySubscriptionOperationResponse
- type CassandraClustersStartOperationResponse
- type CassandraClustersStatusOperationResponse
- type CassandraClustersUpdateOperationResponse
- type CassandraDataCentersCreateUpdateOperationResponse
- type CassandraDataCentersDeleteOperationResponse
- type CassandraDataCentersGetOperationResponse
- type CassandraDataCentersListOperationResponse
- type CassandraDataCentersUpdateOperationResponse
- type CassandraError
- type Certificate
- type ClusterResource
- type ClusterResourceProperties
- type CommandOutput
- type CommandPostBody
- type ConnectionError
- type ConnectionState
- type DataCenterId
- type DataCenterResource
- type DataCenterResourceProperties
- type ListClusters
- type ListDataCenters
- type ManagedCassandraProvisioningState
- type ManagedCassandraReaperStatus
- type ManagedCassandrasClient
- func (c ManagedCassandrasClient) CassandraClustersCreateUpdate(ctx context.Context, id CassandraClusterId, input ClusterResource) (result CassandraClustersCreateUpdateOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersCreateUpdateThenPoll(ctx context.Context, id CassandraClusterId, input ClusterResource) error
- func (c ManagedCassandrasClient) CassandraClustersDeallocate(ctx context.Context, id CassandraClusterId) (result CassandraClustersDeallocateOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersDeallocateThenPoll(ctx context.Context, id CassandraClusterId) error
- func (c ManagedCassandrasClient) CassandraClustersDelete(ctx context.Context, id CassandraClusterId) (result CassandraClustersDeleteOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersDeleteThenPoll(ctx context.Context, id CassandraClusterId) error
- func (c ManagedCassandrasClient) CassandraClustersGet(ctx context.Context, id CassandraClusterId) (result CassandraClustersGetOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersInvokeCommand(ctx context.Context, id CassandraClusterId, input CommandPostBody) (result CassandraClustersInvokeCommandOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersInvokeCommandThenPoll(ctx context.Context, id CassandraClusterId, input CommandPostBody) error
- func (c ManagedCassandrasClient) CassandraClustersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result CassandraClustersListByResourceGroupOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result CassandraClustersListBySubscriptionOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersStart(ctx context.Context, id CassandraClusterId) (result CassandraClustersStartOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersStartThenPoll(ctx context.Context, id CassandraClusterId) error
- func (c ManagedCassandrasClient) CassandraClustersStatus(ctx context.Context, id CassandraClusterId) (result CassandraClustersStatusOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersUpdate(ctx context.Context, id CassandraClusterId, input ClusterResource) (result CassandraClustersUpdateOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraClustersUpdateThenPoll(ctx context.Context, id CassandraClusterId, input ClusterResource) error
- func (c ManagedCassandrasClient) CassandraDataCentersCreateUpdate(ctx context.Context, id DataCenterId, input DataCenterResource) (result CassandraDataCentersCreateUpdateOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraDataCentersCreateUpdateThenPoll(ctx context.Context, id DataCenterId, input DataCenterResource) error
- func (c ManagedCassandrasClient) CassandraDataCentersDelete(ctx context.Context, id DataCenterId) (result CassandraDataCentersDeleteOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraDataCentersDeleteThenPoll(ctx context.Context, id DataCenterId) error
- func (c ManagedCassandrasClient) CassandraDataCentersGet(ctx context.Context, id DataCenterId) (result CassandraDataCentersGetOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraDataCentersList(ctx context.Context, id CassandraClusterId) (result CassandraDataCentersListOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraDataCentersUpdate(ctx context.Context, id DataCenterId, input DataCenterResource) (result CassandraDataCentersUpdateOperationResponse, err error)
- func (c ManagedCassandrasClient) CassandraDataCentersUpdateThenPoll(ctx context.Context, id DataCenterId, input DataCenterResource) error
- type NodeState
- type SeedNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAuthenticationMethod ¶
func PossibleValuesForAuthenticationMethod() []string
func PossibleValuesForAzureConnectionType ¶
func PossibleValuesForAzureConnectionType() []string
func PossibleValuesForConnectionState ¶
func PossibleValuesForConnectionState() []string
func PossibleValuesForManagedCassandraProvisioningState ¶
func PossibleValuesForManagedCassandraProvisioningState() []string
func PossibleValuesForNodeState ¶
func PossibleValuesForNodeState() []string
func ValidateCassandraClusterID ¶
ValidateCassandraClusterID checks that 'input' can be parsed as a Cassandra Cluster ID
func ValidateDataCenterID ¶
ValidateDataCenterID checks that 'input' can be parsed as a Data Center ID
Types ¶
type AuthenticationMethod ¶
type AuthenticationMethod string
const ( AuthenticationMethodCassandra AuthenticationMethod = "Cassandra" AuthenticationMethodLdap AuthenticationMethod = "Ldap" AuthenticationMethodNone AuthenticationMethod = "None" )
func (*AuthenticationMethod) UnmarshalJSON ¶
func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error
type AuthenticationMethodLdapProperties ¶
type AuthenticationMethodLdapProperties struct { ConnectionTimeoutInMs *int64 `json:"connectionTimeoutInMs,omitempty"` SearchBaseDistinguishedName *string `json:"searchBaseDistinguishedName,omitempty"` SearchFilterTemplate *string `json:"searchFilterTemplate,omitempty"` ServerCertificates *[]Certificate `json:"serverCertificates,omitempty"` ServerHostname *string `json:"serverHostname,omitempty"` ServerPort *int64 `json:"serverPort,omitempty"` ServiceUserDistinguishedName *string `json:"serviceUserDistinguishedName,omitempty"` ServiceUserPassword *string `json:"serviceUserPassword,omitempty"` }
type AzureConnectionType ¶
type AzureConnectionType string
const ( AzureConnectionTypeNone AzureConnectionType = "None" AzureConnectionTypeVPN AzureConnectionType = "VPN" )
func (*AzureConnectionType) UnmarshalJSON ¶
func (s *AzureConnectionType) UnmarshalJSON(bytes []byte) error
type CassandraClusterId ¶
type CassandraClusterId struct { SubscriptionId string ResourceGroupName string CassandraClusterName string }
CassandraClusterId is a struct representing the Resource ID for a Cassandra Cluster
func NewCassandraClusterID ¶
func NewCassandraClusterID(subscriptionId string, resourceGroupName string, cassandraClusterName string) CassandraClusterId
NewCassandraClusterID returns a new CassandraClusterId struct
func ParseCassandraClusterID ¶
func ParseCassandraClusterID(input string) (*CassandraClusterId, error)
ParseCassandraClusterID parses 'input' into a CassandraClusterId
func ParseCassandraClusterIDInsensitively ¶
func ParseCassandraClusterIDInsensitively(input string) (*CassandraClusterId, error)
ParseCassandraClusterIDInsensitively parses 'input' case-insensitively into a CassandraClusterId note: this method should only be used for API response data and not user input
func (*CassandraClusterId) FromParseResult ¶
func (id *CassandraClusterId) FromParseResult(input resourceids.ParseResult) error
func (CassandraClusterId) ID ¶
func (id CassandraClusterId) ID() string
ID returns the formatted Cassandra Cluster ID
func (CassandraClusterId) Segments ¶
func (id CassandraClusterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cassandra Cluster ID
func (CassandraClusterId) String ¶
func (id CassandraClusterId) String() string
String returns a human-readable description of this Cassandra Cluster ID
type CassandraClusterPublicStatus ¶
type CassandraClusterPublicStatus struct { ConnectionErrors *[]ConnectionError `json:"connectionErrors,omitempty"` DataCenters *[]CassandraClusterPublicStatusDataCentersInlined `json:"dataCenters,omitempty"` ETag *string `json:"eTag,omitempty"` Errors *[]CassandraError `json:"errors,omitempty"` ReaperStatus *ManagedCassandraReaperStatus `json:"reaperStatus,omitempty"` }
type CassandraClusterPublicStatusDataCentersInlined ¶
type CassandraClusterPublicStatusDataCentersInlined struct { Name *string `json:"name,omitempty"` Nodes *[]CassandraClusterPublicStatusDataCentersInlinedNodesInlined `json:"nodes,omitempty"` SeedNodes *[]string `json:"seedNodes,omitempty"` }
type CassandraClusterPublicStatusDataCentersInlinedNodesInlined ¶
type CassandraClusterPublicStatusDataCentersInlinedNodesInlined struct { Address *string `json:"address,omitempty"` CassandraProcessStatus *string `json:"cassandraProcessStatus,omitempty"` CpuUsage *float64 `json:"cpuUsage,omitempty"` DiskFreeKB *int64 `json:"diskFreeKB,omitempty"` DiskUsedKB *int64 `json:"diskUsedKB,omitempty"` HostID *string `json:"hostID,omitempty"` Load *string `json:"load,omitempty"` MemoryBuffersAndCachedKB *int64 `json:"memoryBuffersAndCachedKB,omitempty"` MemoryFreeKB *int64 `json:"memoryFreeKB,omitempty"` MemoryTotalKB *int64 `json:"memoryTotalKB,omitempty"` MemoryUsedKB *int64 `json:"memoryUsedKB,omitempty"` Rack *string `json:"rack,omitempty"` Size *int64 `json:"size,omitempty"` State *NodeState `json:"state,omitempty"` Status *string `json:"status,omitempty"` Timestamp *string `json:"timestamp,omitempty"` Tokens *[]string `json:"tokens,omitempty"` }
type CassandraClustersGetOperationResponse ¶
type CassandraClustersGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ClusterResource }
type CassandraClustersListByResourceGroupOperationResponse ¶
type CassandraClustersListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ListClusters }
type CassandraClustersListBySubscriptionOperationResponse ¶
type CassandraClustersListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ListClusters }
type CassandraClustersStatusOperationResponse ¶
type CassandraClustersStatusOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CassandraClusterPublicStatus }
type CassandraDataCentersGetOperationResponse ¶
type CassandraDataCentersGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DataCenterResource }
type CassandraDataCentersListOperationResponse ¶
type CassandraDataCentersListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ListDataCenters }
type CassandraError ¶
type Certificate ¶
type Certificate struct {
Pem *string `json:"pem,omitempty"`
}
type ClusterResource ¶
type ClusterResource struct { Id *string `json:"id,omitempty"` Identity *identity.SystemAssigned `json:"identity,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ClusterResourceProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ClusterResourceProperties ¶
type ClusterResourceProperties struct { AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` AzureConnectionMethod *AzureConnectionType `json:"azureConnectionMethod,omitempty"` CassandraAuditLoggingEnabled *bool `json:"cassandraAuditLoggingEnabled,omitempty"` CassandraVersion *string `json:"cassandraVersion,omitempty"` ClientCertificates *[]Certificate `json:"clientCertificates,omitempty"` ClusterNameOverride *string `json:"clusterNameOverride,omitempty"` Deallocated *bool `json:"deallocated,omitempty"` DelegatedManagementSubnetId *string `json:"delegatedManagementSubnetId,omitempty"` ExternalGossipCertificates *[]Certificate `json:"externalGossipCertificates,omitempty"` ExternalSeedNodes *[]SeedNode `json:"externalSeedNodes,omitempty"` GossipCertificates *[]Certificate `json:"gossipCertificates,omitempty"` HoursBetweenBackups *int64 `json:"hoursBetweenBackups,omitempty"` InitialCassandraAdminPassword *string `json:"initialCassandraAdminPassword,omitempty"` PrivateLinkResourceId *string `json:"privateLinkResourceId,omitempty"` PrometheusEndpoint *SeedNode `json:"prometheusEndpoint,omitempty"` ProvisionError *CassandraError `json:"provisionError,omitempty"` ProvisioningState *ManagedCassandraProvisioningState `json:"provisioningState,omitempty"` RepairEnabled *bool `json:"repairEnabled,omitempty"` RestoreFromBackupId *string `json:"restoreFromBackupId,omitempty"` SeedNodes *[]SeedNode `json:"seedNodes,omitempty"` }
type CommandOutput ¶
type CommandOutput struct {
CommandOutput *string `json:"commandOutput,omitempty"`
}
type CommandPostBody ¶
type ConnectionError ¶
type ConnectionError struct { ConnectionState *ConnectionState `json:"connectionState,omitempty"` Exception *string `json:"exception,omitempty"` IPFrom *string `json:"iPFrom,omitempty"` IPTo *string `json:"iPTo,omitempty"` Port *int64 `json:"port,omitempty"` }
type ConnectionState ¶
type ConnectionState string
const ( ConnectionStateDatacenterToDatacenterNetworkError ConnectionState = "DatacenterToDatacenterNetworkError" ConnectionStateInternalError ConnectionState = "InternalError" ConnectionStateInternalOperatorToDataCenterCertificateError ConnectionState = "InternalOperatorToDataCenterCertificateError" ConnectionStateOK ConnectionState = "OK" ConnectionStateOperatorToDataCenterNetworkError ConnectionState = "OperatorToDataCenterNetworkError" ConnectionStateUnknown ConnectionState = "Unknown" )
func (*ConnectionState) UnmarshalJSON ¶
func (s *ConnectionState) UnmarshalJSON(bytes []byte) error
type DataCenterId ¶
type DataCenterId struct { SubscriptionId string ResourceGroupName string CassandraClusterName string DataCenterName string }
DataCenterId is a struct representing the Resource ID for a Data Center
func NewDataCenterID ¶
func NewDataCenterID(subscriptionId string, resourceGroupName string, cassandraClusterName string, dataCenterName string) DataCenterId
NewDataCenterID returns a new DataCenterId struct
func ParseDataCenterID ¶
func ParseDataCenterID(input string) (*DataCenterId, error)
ParseDataCenterID parses 'input' into a DataCenterId
func ParseDataCenterIDInsensitively ¶
func ParseDataCenterIDInsensitively(input string) (*DataCenterId, error)
ParseDataCenterIDInsensitively parses 'input' case-insensitively into a DataCenterId note: this method should only be used for API response data and not user input
func (*DataCenterId) FromParseResult ¶
func (id *DataCenterId) FromParseResult(input resourceids.ParseResult) error
func (DataCenterId) Segments ¶
func (id DataCenterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data Center ID
func (DataCenterId) String ¶
func (id DataCenterId) String() string
String returns a human-readable description of this Data Center ID
type DataCenterResource ¶
type DataCenterResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DataCenterResourceProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type DataCenterResourceProperties ¶
type DataCenterResourceProperties struct { AuthenticationMethodLdapProperties *AuthenticationMethodLdapProperties `json:"authenticationMethodLdapProperties,omitempty"` AvailabilityZone *bool `json:"availabilityZone,omitempty"` BackupStorageCustomerKeyUri *string `json:"backupStorageCustomerKeyUri,omitempty"` Base64EncodedCassandraYamlFragment *string `json:"base64EncodedCassandraYamlFragment,omitempty"` DataCenterLocation *string `json:"dataCenterLocation,omitempty"` Deallocated *bool `json:"deallocated,omitempty"` DelegatedSubnetId *string `json:"delegatedSubnetId,omitempty"` DiskCapacity *int64 `json:"diskCapacity,omitempty"` DiskSku *string `json:"diskSku,omitempty"` ManagedDiskCustomerKeyUri *string `json:"managedDiskCustomerKeyUri,omitempty"` NodeCount *int64 `json:"nodeCount,omitempty"` PrivateEndpointIPAddress *string `json:"privateEndpointIpAddress,omitempty"` ProvisionError *CassandraError `json:"provisionError,omitempty"` ProvisioningState *ManagedCassandraProvisioningState `json:"provisioningState,omitempty"` SeedNodes *[]SeedNode `json:"seedNodes,omitempty"` Sku *string `json:"sku,omitempty"` }
type ListClusters ¶
type ListClusters struct {
Value *[]ClusterResource `json:"value,omitempty"`
}
type ListDataCenters ¶
type ListDataCenters struct {
Value *[]DataCenterResource `json:"value,omitempty"`
}
type ManagedCassandraProvisioningState ¶
type ManagedCassandraProvisioningState string
const ( ManagedCassandraProvisioningStateCanceled ManagedCassandraProvisioningState = "Canceled" ManagedCassandraProvisioningStateCreating ManagedCassandraProvisioningState = "Creating" ManagedCassandraProvisioningStateDeleting ManagedCassandraProvisioningState = "Deleting" ManagedCassandraProvisioningStateFailed ManagedCassandraProvisioningState = "Failed" ManagedCassandraProvisioningStateSucceeded ManagedCassandraProvisioningState = "Succeeded" ManagedCassandraProvisioningStateUpdating ManagedCassandraProvisioningState = "Updating" )
func (*ManagedCassandraProvisioningState) UnmarshalJSON ¶
func (s *ManagedCassandraProvisioningState) UnmarshalJSON(bytes []byte) error
type ManagedCassandrasClient ¶
type ManagedCassandrasClient struct {
Client *resourcemanager.Client
}
func NewManagedCassandrasClientWithBaseURI ¶
func NewManagedCassandrasClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedCassandrasClient, error)
func (ManagedCassandrasClient) CassandraClustersCreateUpdate ¶
func (c ManagedCassandrasClient) CassandraClustersCreateUpdate(ctx context.Context, id CassandraClusterId, input ClusterResource) (result CassandraClustersCreateUpdateOperationResponse, err error)
CassandraClustersCreateUpdate ...
func (ManagedCassandrasClient) CassandraClustersCreateUpdateThenPoll ¶
func (c ManagedCassandrasClient) CassandraClustersCreateUpdateThenPoll(ctx context.Context, id CassandraClusterId, input ClusterResource) error
CassandraClustersCreateUpdateThenPoll performs CassandraClustersCreateUpdate then polls until it's completed
func (ManagedCassandrasClient) CassandraClustersDeallocate ¶
func (c ManagedCassandrasClient) CassandraClustersDeallocate(ctx context.Context, id CassandraClusterId) (result CassandraClustersDeallocateOperationResponse, err error)
CassandraClustersDeallocate ...
func (ManagedCassandrasClient) CassandraClustersDeallocateThenPoll ¶
func (c ManagedCassandrasClient) CassandraClustersDeallocateThenPoll(ctx context.Context, id CassandraClusterId) error
CassandraClustersDeallocateThenPoll performs CassandraClustersDeallocate then polls until it's completed
func (ManagedCassandrasClient) CassandraClustersDelete ¶
func (c ManagedCassandrasClient) CassandraClustersDelete(ctx context.Context, id CassandraClusterId) (result CassandraClustersDeleteOperationResponse, err error)
CassandraClustersDelete ...
func (ManagedCassandrasClient) CassandraClustersDeleteThenPoll ¶
func (c ManagedCassandrasClient) CassandraClustersDeleteThenPoll(ctx context.Context, id CassandraClusterId) error
CassandraClustersDeleteThenPoll performs CassandraClustersDelete then polls until it's completed
func (ManagedCassandrasClient) CassandraClustersGet ¶
func (c ManagedCassandrasClient) CassandraClustersGet(ctx context.Context, id CassandraClusterId) (result CassandraClustersGetOperationResponse, err error)
CassandraClustersGet ...
func (ManagedCassandrasClient) CassandraClustersInvokeCommand ¶
func (c ManagedCassandrasClient) CassandraClustersInvokeCommand(ctx context.Context, id CassandraClusterId, input CommandPostBody) (result CassandraClustersInvokeCommandOperationResponse, err error)
CassandraClustersInvokeCommand ...
func (ManagedCassandrasClient) CassandraClustersInvokeCommandThenPoll ¶
func (c ManagedCassandrasClient) CassandraClustersInvokeCommandThenPoll(ctx context.Context, id CassandraClusterId, input CommandPostBody) error
CassandraClustersInvokeCommandThenPoll performs CassandraClustersInvokeCommand then polls until it's completed
func (ManagedCassandrasClient) CassandraClustersListByResourceGroup ¶
func (c ManagedCassandrasClient) CassandraClustersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result CassandraClustersListByResourceGroupOperationResponse, err error)
CassandraClustersListByResourceGroup ...
func (ManagedCassandrasClient) CassandraClustersListBySubscription ¶
func (c ManagedCassandrasClient) CassandraClustersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result CassandraClustersListBySubscriptionOperationResponse, err error)
CassandraClustersListBySubscription ...
func (ManagedCassandrasClient) CassandraClustersStart ¶
func (c ManagedCassandrasClient) CassandraClustersStart(ctx context.Context, id CassandraClusterId) (result CassandraClustersStartOperationResponse, err error)
CassandraClustersStart ...
func (ManagedCassandrasClient) CassandraClustersStartThenPoll ¶
func (c ManagedCassandrasClient) CassandraClustersStartThenPoll(ctx context.Context, id CassandraClusterId) error
CassandraClustersStartThenPoll performs CassandraClustersStart then polls until it's completed
func (ManagedCassandrasClient) CassandraClustersStatus ¶
func (c ManagedCassandrasClient) CassandraClustersStatus(ctx context.Context, id CassandraClusterId) (result CassandraClustersStatusOperationResponse, err error)
CassandraClustersStatus ...
func (ManagedCassandrasClient) CassandraClustersUpdate ¶
func (c ManagedCassandrasClient) CassandraClustersUpdate(ctx context.Context, id CassandraClusterId, input ClusterResource) (result CassandraClustersUpdateOperationResponse, err error)
CassandraClustersUpdate ...
func (ManagedCassandrasClient) CassandraClustersUpdateThenPoll ¶
func (c ManagedCassandrasClient) CassandraClustersUpdateThenPoll(ctx context.Context, id CassandraClusterId, input ClusterResource) error
CassandraClustersUpdateThenPoll performs CassandraClustersUpdate then polls until it's completed
func (ManagedCassandrasClient) CassandraDataCentersCreateUpdate ¶
func (c ManagedCassandrasClient) CassandraDataCentersCreateUpdate(ctx context.Context, id DataCenterId, input DataCenterResource) (result CassandraDataCentersCreateUpdateOperationResponse, err error)
CassandraDataCentersCreateUpdate ...
func (ManagedCassandrasClient) CassandraDataCentersCreateUpdateThenPoll ¶
func (c ManagedCassandrasClient) CassandraDataCentersCreateUpdateThenPoll(ctx context.Context, id DataCenterId, input DataCenterResource) error
CassandraDataCentersCreateUpdateThenPoll performs CassandraDataCentersCreateUpdate then polls until it's completed
func (ManagedCassandrasClient) CassandraDataCentersDelete ¶
func (c ManagedCassandrasClient) CassandraDataCentersDelete(ctx context.Context, id DataCenterId) (result CassandraDataCentersDeleteOperationResponse, err error)
CassandraDataCentersDelete ...
func (ManagedCassandrasClient) CassandraDataCentersDeleteThenPoll ¶
func (c ManagedCassandrasClient) CassandraDataCentersDeleteThenPoll(ctx context.Context, id DataCenterId) error
CassandraDataCentersDeleteThenPoll performs CassandraDataCentersDelete then polls until it's completed
func (ManagedCassandrasClient) CassandraDataCentersGet ¶
func (c ManagedCassandrasClient) CassandraDataCentersGet(ctx context.Context, id DataCenterId) (result CassandraDataCentersGetOperationResponse, err error)
CassandraDataCentersGet ...
func (ManagedCassandrasClient) CassandraDataCentersList ¶
func (c ManagedCassandrasClient) CassandraDataCentersList(ctx context.Context, id CassandraClusterId) (result CassandraDataCentersListOperationResponse, err error)
CassandraDataCentersList ...
func (ManagedCassandrasClient) CassandraDataCentersUpdate ¶
func (c ManagedCassandrasClient) CassandraDataCentersUpdate(ctx context.Context, id DataCenterId, input DataCenterResource) (result CassandraDataCentersUpdateOperationResponse, err error)
CassandraDataCentersUpdate ...
func (ManagedCassandrasClient) CassandraDataCentersUpdateThenPoll ¶
func (c ManagedCassandrasClient) CassandraDataCentersUpdateThenPoll(ctx context.Context, id DataCenterId, input DataCenterResource) error
CassandraDataCentersUpdateThenPoll performs CassandraDataCentersUpdate then polls until it's completed
Source Files ¶
- client.go
- constants.go
- id_cassandracluster.go
- id_datacenter.go
- method_cassandraclusterscreateupdate.go
- method_cassandraclustersdeallocate.go
- method_cassandraclustersdelete.go
- method_cassandraclustersget.go
- method_cassandraclustersinvokecommand.go
- method_cassandraclusterslistbyresourcegroup.go
- method_cassandraclusterslistbysubscription.go
- method_cassandraclustersstart.go
- method_cassandraclustersstatus.go
- method_cassandraclustersupdate.go
- method_cassandradatacenterscreateupdate.go
- method_cassandradatacentersdelete.go
- method_cassandradatacentersget.go
- method_cassandradatacenterslist.go
- method_cassandradatacentersupdate.go
- model_authenticationmethodldapproperties.go
- model_cassandraclusterpublicstatus.go
- model_cassandraclusterpublicstatusdatacentersinlined.go
- model_cassandraclusterpublicstatusdatacentersinlinednodesinlined.go
- model_cassandraerror.go
- model_certificate.go
- model_clusterresource.go
- model_clusterresourceproperties.go
- model_commandoutput.go
- model_commandpostbody.go
- model_connectionerror.go
- model_datacenterresource.go
- model_datacenterresourceproperties.go
- model_listclusters.go
- model_listdatacenters.go
- model_managedcassandrareaperstatus.go
- model_seednode.go
- version.go