azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb Index | Files | Directories

package documentdb

import "github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2020-04-01-preview/documentdb"

Package documentdb implements the Azure ARM Documentdb service API version .

Azure Cosmos DB Database Service Resource Provider REST API

Index

Package Files

cassandraresources.go client.go collection.go collectionpartition.go collectionpartitionregion.go collectionregion.go database.go databaseaccountregion.go databaseaccounts.go enums.go gremlinresources.go models.go mongodbresources.go notebookworkspaces.go operations.go partitionkeyrangeid.go partitionkeyrangeidregion.go percentile.go percentilesourcetarget.go percentiletarget.go privateendpointconnections.go privatelinkresources.go sqlresources.go tableresources.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type APIProperties Uses

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

APIProperties ...

type ARMProxyResource Uses

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 Uses

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

ARMResourceProperties the core properties of ARM resources.

func (ARMResourceProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ARMResourceProperties.

type AutoUpgradePolicyResource Uses

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 Uses

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

AutoscaleSettings ...

type AutoscaleSettingsResource Uses

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 Uses

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

MarshalJSON is the custom marshaler for AutoscaleSettingsResource.

type AzureEntityResource Uses

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 BaseClient Uses

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

BaseClient is the base client for Documentdb.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

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 Capability Uses

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 CassandraKeyspaceCreateUpdateParameters Uses

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"`
    Tags     map[string]*string `json:"tags"`
}

CassandraKeyspaceCreateUpdateParameters parameters to create and update Cosmos DB Cassandra keyspace.

func (CassandraKeyspaceCreateUpdateParameters) MarshalJSON Uses

func (ckcup CassandraKeyspaceCreateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CassandraKeyspaceCreateUpdateParameters.

func (*CassandraKeyspaceCreateUpdateParameters) UnmarshalJSON Uses

func (ckcup *CassandraKeyspaceCreateUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CassandraKeyspaceCreateUpdateParameters struct.

type CassandraKeyspaceCreateUpdateProperties Uses

type CassandraKeyspaceCreateUpdateProperties struct {
    // Resource - The standard JSON format of a Cassandra keyspace
    Resource *CassandraKeyspaceResource `json:"resource,omitempty"`
    // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Options *CreateUpdateOptions `json:"options,omitempty"`
}

CassandraKeyspaceCreateUpdateProperties properties to create and update Azure Cosmos DB Cassandra keyspace.

type CassandraKeyspaceGetProperties Uses

type CassandraKeyspaceGetProperties struct {
    Resource *CassandraKeyspaceGetPropertiesResource `json:"resource,omitempty"`
    Options  *CassandraKeyspaceGetPropertiesOptions  `json:"options,omitempty"`
}

CassandraKeyspaceGetProperties the properties of an Azure Cosmos DB Cassandra keyspace

type CassandraKeyspaceGetPropertiesOptions Uses

type CassandraKeyspaceGetPropertiesOptions struct {
    // Throughput - Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    Throughput *int32 `json:"throughput,omitempty"`
    // AutoscaleSettings - Specifies the Autoscale settings.
    AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"`
}

CassandraKeyspaceGetPropertiesOptions ...

type CassandraKeyspaceGetPropertiesResource Uses

type CassandraKeyspaceGetPropertiesResource struct {
    // ID - Name of the Cosmos DB Cassandra keyspace
    ID  *string `json:"id,omitempty"`
    // Rid - READ-ONLY; A system generated property. A unique identifier.
    Rid *string `json:"_rid,omitempty"`
    // Ts - READ-ONLY; A system generated property that denotes the last updated timestamp of the resource.
    Ts  interface{} `json:"_ts,omitempty"`
    // Etag - READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control.
    Etag *string `json:"_etag,omitempty"`
}

CassandraKeyspaceGetPropertiesResource ...

func (CassandraKeyspaceGetPropertiesResource) MarshalJSON Uses

func (ckgp CassandraKeyspaceGetPropertiesResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CassandraKeyspaceGetPropertiesResource.

type CassandraKeyspaceGetResults Uses

type CassandraKeyspaceGetResults struct {
    autorest.Response `json:"-"`
    // CassandraKeyspaceGetProperties - The properties of an Azure Cosmos DB Cassandra keyspace
    *CassandraKeyspaceGetProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

CassandraKeyspaceGetResults an Azure Cosmos DB Cassandra keyspace.

func (CassandraKeyspaceGetResults) MarshalJSON Uses

func (ckgr CassandraKeyspaceGetResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CassandraKeyspaceGetResults.

func (*CassandraKeyspaceGetResults) UnmarshalJSON Uses

func (ckgr *CassandraKeyspaceGetResults) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CassandraKeyspaceGetResults struct.

type CassandraKeyspaceListResult Uses

type CassandraKeyspaceListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of Cassandra keyspaces and their properties.
    Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"`
}

CassandraKeyspaceListResult the List operation response, that contains the Cassandra keyspaces and their properties.

type CassandraKeyspaceResource Uses

type CassandraKeyspaceResource struct {
    // ID - Name of the Cosmos DB Cassandra keyspace
    ID *string `json:"id,omitempty"`
}

CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object

type CassandraPartitionKey Uses

type CassandraPartitionKey struct {
    // Name - Name of the Cosmos DB Cassandra table partition key
    Name *string `json:"name,omitempty"`
}

CassandraPartitionKey cosmos DB Cassandra table partition key

type CassandraResourcesClient Uses

type CassandraResourcesClient struct {
    BaseClient
}

CassandraResourcesClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewCassandraResourcesClient Uses

func NewCassandraResourcesClient(subscriptionID string) CassandraResourcesClient

NewCassandraResourcesClient creates an instance of the CassandraResourcesClient client.

func NewCassandraResourcesClientWithBaseURI Uses

func NewCassandraResourcesClientWithBaseURI(baseURI string, subscriptionID string) CassandraResourcesClient

NewCassandraResourcesClientWithBaseURI creates an instance of the CassandraResourcesClient 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 (CassandraResourcesClient) CreateUpdateCassandraKeyspace Uses

func (client CassandraResourcesClient) CreateUpdateCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters) (result CassandraResourcesCreateUpdateCassandraKeyspaceFuture, err error)

CreateUpdateCassandraKeyspace create or update an Azure Cosmos DB Cassandra keyspace Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. createUpdateCassandraKeyspaceParameters - the parameters to provide for the current Cassandra keyspace.

func (CassandraResourcesClient) CreateUpdateCassandraKeyspacePreparer Uses

func (client CassandraResourcesClient) CreateUpdateCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters) (*http.Request, error)

CreateUpdateCassandraKeyspacePreparer prepares the CreateUpdateCassandraKeyspace request.

func (CassandraResourcesClient) CreateUpdateCassandraKeyspaceResponder Uses

func (client CassandraResourcesClient) CreateUpdateCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspaceGetResults, err error)

CreateUpdateCassandraKeyspaceResponder handles the response to the CreateUpdateCassandraKeyspace request. The method always closes the http.Response Body.

func (CassandraResourcesClient) CreateUpdateCassandraKeyspaceSender Uses

func (client CassandraResourcesClient) CreateUpdateCassandraKeyspaceSender(req *http.Request) (future CassandraResourcesCreateUpdateCassandraKeyspaceFuture, err error)

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

func (CassandraResourcesClient) CreateUpdateCassandraTable Uses

func (client CassandraResourcesClient) CreateUpdateCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters) (result CassandraResourcesCreateUpdateCassandraTableFuture, err error)

CreateUpdateCassandraTable create or update an Azure Cosmos DB Cassandra Table Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. tableName - cosmos DB table name. createUpdateCassandraTableParameters - the parameters to provide for the current Cassandra Table.

func (CassandraResourcesClient) CreateUpdateCassandraTablePreparer Uses

func (client CassandraResourcesClient) CreateUpdateCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters) (*http.Request, error)

CreateUpdateCassandraTablePreparer prepares the CreateUpdateCassandraTable request.

func (CassandraResourcesClient) CreateUpdateCassandraTableResponder Uses

func (client CassandraResourcesClient) CreateUpdateCassandraTableResponder(resp *http.Response) (result CassandraTableGetResults, err error)

CreateUpdateCassandraTableResponder handles the response to the CreateUpdateCassandraTable request. The method always closes the http.Response Body.

func (CassandraResourcesClient) CreateUpdateCassandraTableSender Uses

func (client CassandraResourcesClient) CreateUpdateCassandraTableSender(req *http.Request) (future CassandraResourcesCreateUpdateCassandraTableFuture, err error)

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

func (CassandraResourcesClient) DeleteCassandraKeyspace Uses

func (client CassandraResourcesClient) DeleteCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result CassandraResourcesDeleteCassandraKeyspaceFuture, err error)

DeleteCassandraKeyspace deletes an existing Azure Cosmos DB Cassandra keyspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name.

func (CassandraResourcesClient) DeleteCassandraKeyspacePreparer Uses

func (client CassandraResourcesClient) DeleteCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error)

DeleteCassandraKeyspacePreparer prepares the DeleteCassandraKeyspace request.

func (CassandraResourcesClient) DeleteCassandraKeyspaceResponder Uses

func (client CassandraResourcesClient) DeleteCassandraKeyspaceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteCassandraKeyspaceResponder handles the response to the DeleteCassandraKeyspace request. The method always closes the http.Response Body.

func (CassandraResourcesClient) DeleteCassandraKeyspaceSender Uses

func (client CassandraResourcesClient) DeleteCassandraKeyspaceSender(req *http.Request) (future CassandraResourcesDeleteCassandraKeyspaceFuture, err error)

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

func (CassandraResourcesClient) DeleteCassandraTable Uses

func (client CassandraResourcesClient) DeleteCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (result CassandraResourcesDeleteCassandraTableFuture, err error)

DeleteCassandraTable deletes an existing Azure Cosmos DB Cassandra table. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. tableName - cosmos DB table name.

func (CassandraResourcesClient) DeleteCassandraTablePreparer Uses

func (client CassandraResourcesClient) DeleteCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (*http.Request, error)

DeleteCassandraTablePreparer prepares the DeleteCassandraTable request.

func (CassandraResourcesClient) DeleteCassandraTableResponder Uses

func (client CassandraResourcesClient) DeleteCassandraTableResponder(resp *http.Response) (result autorest.Response, err error)

DeleteCassandraTableResponder handles the response to the DeleteCassandraTable request. The method always closes the http.Response Body.

func (CassandraResourcesClient) DeleteCassandraTableSender Uses

func (client CassandraResourcesClient) DeleteCassandraTableSender(req *http.Request) (future CassandraResourcesDeleteCassandraTableFuture, err error)

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

func (CassandraResourcesClient) GetCassandraKeyspace Uses

func (client CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result CassandraKeyspaceGetResults, err error)

GetCassandraKeyspace gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name.

func (CassandraResourcesClient) GetCassandraKeyspacePreparer Uses

func (client CassandraResourcesClient) GetCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error)

GetCassandraKeyspacePreparer prepares the GetCassandraKeyspace request.

func (CassandraResourcesClient) GetCassandraKeyspaceResponder Uses

func (client CassandraResourcesClient) GetCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspaceGetResults, err error)

GetCassandraKeyspaceResponder handles the response to the GetCassandraKeyspace request. The method always closes the http.Response Body.

func (CassandraResourcesClient) GetCassandraKeyspaceSender Uses

func (client CassandraResourcesClient) GetCassandraKeyspaceSender(req *http.Request) (*http.Response, error)

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

func (CassandraResourcesClient) GetCassandraKeyspaceThroughput Uses

func (client CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result ThroughputSettingsGetResults, err error)

GetCassandraKeyspaceThroughput gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name.

func (CassandraResourcesClient) GetCassandraKeyspaceThroughputPreparer Uses

func (client CassandraResourcesClient) GetCassandraKeyspaceThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error)

GetCassandraKeyspaceThroughputPreparer prepares the GetCassandraKeyspaceThroughput request.

func (CassandraResourcesClient) GetCassandraKeyspaceThroughputResponder Uses

func (client CassandraResourcesClient) GetCassandraKeyspaceThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

GetCassandraKeyspaceThroughputResponder handles the response to the GetCassandraKeyspaceThroughput request. The method always closes the http.Response Body.

func (CassandraResourcesClient) GetCassandraKeyspaceThroughputSender Uses

func (client CassandraResourcesClient) GetCassandraKeyspaceThroughputSender(req *http.Request) (*http.Response, error)

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

func (CassandraResourcesClient) GetCassandraTable Uses

func (client CassandraResourcesClient) GetCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (result CassandraTableGetResults, err error)

GetCassandraTable gets the Cassandra table under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. tableName - cosmos DB table name.

func (CassandraResourcesClient) GetCassandraTablePreparer Uses

func (client CassandraResourcesClient) GetCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (*http.Request, error)

GetCassandraTablePreparer prepares the GetCassandraTable request.

func (CassandraResourcesClient) GetCassandraTableResponder Uses

func (client CassandraResourcesClient) GetCassandraTableResponder(resp *http.Response) (result CassandraTableGetResults, err error)

GetCassandraTableResponder handles the response to the GetCassandraTable request. The method always closes the http.Response Body.

func (CassandraResourcesClient) GetCassandraTableSender Uses

func (client CassandraResourcesClient) GetCassandraTableSender(req *http.Request) (*http.Response, error)

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

func (CassandraResourcesClient) GetCassandraTableThroughput Uses

func (client CassandraResourcesClient) GetCassandraTableThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (result ThroughputSettingsGetResults, err error)

GetCassandraTableThroughput gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. tableName - cosmos DB table name.

func (CassandraResourcesClient) GetCassandraTableThroughputPreparer Uses

func (client CassandraResourcesClient) GetCassandraTableThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (*http.Request, error)

GetCassandraTableThroughputPreparer prepares the GetCassandraTableThroughput request.

func (CassandraResourcesClient) GetCassandraTableThroughputResponder Uses

func (client CassandraResourcesClient) GetCassandraTableThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

GetCassandraTableThroughputResponder handles the response to the GetCassandraTableThroughput request. The method always closes the http.Response Body.

func (CassandraResourcesClient) GetCassandraTableThroughputSender Uses

func (client CassandraResourcesClient) GetCassandraTableThroughputSender(req *http.Request) (*http.Response, error)

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

func (CassandraResourcesClient) ListCassandraKeyspaces Uses

func (client CassandraResourcesClient) ListCassandraKeyspaces(ctx context.Context, resourceGroupName string, accountName string) (result CassandraKeyspaceListResult, err error)

ListCassandraKeyspaces lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (CassandraResourcesClient) ListCassandraKeyspacesPreparer Uses

func (client CassandraResourcesClient) ListCassandraKeyspacesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListCassandraKeyspacesPreparer prepares the ListCassandraKeyspaces request.

func (CassandraResourcesClient) ListCassandraKeyspacesResponder Uses

func (client CassandraResourcesClient) ListCassandraKeyspacesResponder(resp *http.Response) (result CassandraKeyspaceListResult, err error)

ListCassandraKeyspacesResponder handles the response to the ListCassandraKeyspaces request. The method always closes the http.Response Body.

func (CassandraResourcesClient) ListCassandraKeyspacesSender Uses

func (client CassandraResourcesClient) ListCassandraKeyspacesSender(req *http.Request) (*http.Response, error)

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

func (CassandraResourcesClient) ListCassandraTables Uses

func (client CassandraResourcesClient) ListCassandraTables(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result CassandraTableListResult, err error)

ListCassandraTables lists the Cassandra table under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name.

func (CassandraResourcesClient) ListCassandraTablesPreparer Uses

func (client CassandraResourcesClient) ListCassandraTablesPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error)

ListCassandraTablesPreparer prepares the ListCassandraTables request.

func (CassandraResourcesClient) ListCassandraTablesResponder Uses

func (client CassandraResourcesClient) ListCassandraTablesResponder(resp *http.Response) (result CassandraTableListResult, err error)

ListCassandraTablesResponder handles the response to the ListCassandraTables request. The method always closes the http.Response Body.

func (CassandraResourcesClient) ListCassandraTablesSender Uses

func (client CassandraResourcesClient) ListCassandraTablesSender(req *http.Request) (*http.Response, error)

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

func (CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscale Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result CassandraResourcesMigrateCassandraKeyspaceToAutoscaleFuture, err error)

MigrateCassandraKeyspaceToAutoscale migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name.

func (CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscalePreparer Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscalePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error)

MigrateCassandraKeyspaceToAutoscalePreparer prepares the MigrateCassandraKeyspaceToAutoscale request.

func (CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscaleResponder Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscaleResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateCassandraKeyspaceToAutoscaleResponder handles the response to the MigrateCassandraKeyspaceToAutoscale request. The method always closes the http.Response Body.

func (CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscaleSender Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToAutoscaleSender(req *http.Request) (future CassandraResourcesMigrateCassandraKeyspaceToAutoscaleFuture, err error)

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

func (CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughput Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result CassandraResourcesMigrateCassandraKeyspaceToManualThroughputFuture, err error)

MigrateCassandraKeyspaceToManualThroughput migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name.

func (CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughputPreparer Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error)

MigrateCassandraKeyspaceToManualThroughputPreparer prepares the MigrateCassandraKeyspaceToManualThroughput request.

func (CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughputResponder Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateCassandraKeyspaceToManualThroughputResponder handles the response to the MigrateCassandraKeyspaceToManualThroughput request. The method always closes the http.Response Body.

func (CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughputSender Uses

func (client CassandraResourcesClient) MigrateCassandraKeyspaceToManualThroughputSender(req *http.Request) (future CassandraResourcesMigrateCassandraKeyspaceToManualThroughputFuture, err error)

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

func (CassandraResourcesClient) MigrateCassandraTableToAutoscale Uses

func (client CassandraResourcesClient) MigrateCassandraTableToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (result CassandraResourcesMigrateCassandraTableToAutoscaleFuture, err error)

MigrateCassandraTableToAutoscale migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. tableName - cosmos DB table name.

func (CassandraResourcesClient) MigrateCassandraTableToAutoscalePreparer Uses

func (client CassandraResourcesClient) MigrateCassandraTableToAutoscalePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (*http.Request, error)

MigrateCassandraTableToAutoscalePreparer prepares the MigrateCassandraTableToAutoscale request.

func (CassandraResourcesClient) MigrateCassandraTableToAutoscaleResponder Uses

func (client CassandraResourcesClient) MigrateCassandraTableToAutoscaleResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateCassandraTableToAutoscaleResponder handles the response to the MigrateCassandraTableToAutoscale request. The method always closes the http.Response Body.

func (CassandraResourcesClient) MigrateCassandraTableToAutoscaleSender Uses

func (client CassandraResourcesClient) MigrateCassandraTableToAutoscaleSender(req *http.Request) (future CassandraResourcesMigrateCassandraTableToAutoscaleFuture, err error)

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

func (CassandraResourcesClient) MigrateCassandraTableToManualThroughput Uses

func (client CassandraResourcesClient) MigrateCassandraTableToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (result CassandraResourcesMigrateCassandraTableToManualThroughputFuture, err error)

MigrateCassandraTableToManualThroughput migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. tableName - cosmos DB table name.

func (CassandraResourcesClient) MigrateCassandraTableToManualThroughputPreparer Uses

func (client CassandraResourcesClient) MigrateCassandraTableToManualThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (*http.Request, error)

MigrateCassandraTableToManualThroughputPreparer prepares the MigrateCassandraTableToManualThroughput request.

func (CassandraResourcesClient) MigrateCassandraTableToManualThroughputResponder Uses

func (client CassandraResourcesClient) MigrateCassandraTableToManualThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateCassandraTableToManualThroughputResponder handles the response to the MigrateCassandraTableToManualThroughput request. The method always closes the http.Response Body.

func (CassandraResourcesClient) MigrateCassandraTableToManualThroughputSender Uses

func (client CassandraResourcesClient) MigrateCassandraTableToManualThroughputSender(req *http.Request) (future CassandraResourcesMigrateCassandraTableToManualThroughputFuture, err error)

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

func (CassandraResourcesClient) UpdateCassandraKeyspaceThroughput Uses

func (client CassandraResourcesClient) UpdateCassandraKeyspaceThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (result CassandraResourcesUpdateCassandraKeyspaceThroughputFuture, err error)

UpdateCassandraKeyspaceThroughput update RUs per second of an Azure Cosmos DB Cassandra Keyspace Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. updateThroughputParameters - the RUs per second of the parameters to provide for the current Cassandra Keyspace.

func (CassandraResourcesClient) UpdateCassandraKeyspaceThroughputPreparer Uses

func (client CassandraResourcesClient) UpdateCassandraKeyspaceThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (*http.Request, error)

UpdateCassandraKeyspaceThroughputPreparer prepares the UpdateCassandraKeyspaceThroughput request.

func (CassandraResourcesClient) UpdateCassandraKeyspaceThroughputResponder Uses

func (client CassandraResourcesClient) UpdateCassandraKeyspaceThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

UpdateCassandraKeyspaceThroughputResponder handles the response to the UpdateCassandraKeyspaceThroughput request. The method always closes the http.Response Body.

func (CassandraResourcesClient) UpdateCassandraKeyspaceThroughputSender Uses

func (client CassandraResourcesClient) UpdateCassandraKeyspaceThroughputSender(req *http.Request) (future CassandraResourcesUpdateCassandraKeyspaceThroughputFuture, err error)

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

func (CassandraResourcesClient) UpdateCassandraTableThroughput Uses

func (client CassandraResourcesClient) UpdateCassandraTableThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (result CassandraResourcesUpdateCassandraTableThroughputFuture, err error)

UpdateCassandraTableThroughput update RUs per second of an Azure Cosmos DB Cassandra table Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyspaceName - cosmos DB keyspace name. tableName - cosmos DB table name. updateThroughputParameters - the RUs per second of the parameters to provide for the current Cassandra table.

func (CassandraResourcesClient) UpdateCassandraTableThroughputPreparer Uses

func (client CassandraResourcesClient) UpdateCassandraTableThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (*http.Request, error)

UpdateCassandraTableThroughputPreparer prepares the UpdateCassandraTableThroughput request.

func (CassandraResourcesClient) UpdateCassandraTableThroughputResponder Uses

func (client CassandraResourcesClient) UpdateCassandraTableThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

UpdateCassandraTableThroughputResponder handles the response to the UpdateCassandraTableThroughput request. The method always closes the http.Response Body.

func (CassandraResourcesClient) UpdateCassandraTableThroughputSender Uses

func (client CassandraResourcesClient) UpdateCassandraTableThroughputSender(req *http.Request) (future CassandraResourcesUpdateCassandraTableThroughputFuture, err error)

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

type CassandraResourcesCreateUpdateCassandraKeyspaceFuture Uses

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

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

type CassandraResourcesCreateUpdateCassandraTableFuture Uses

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

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

type CassandraResourcesDeleteCassandraKeyspaceFuture Uses

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

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

type CassandraResourcesDeleteCassandraTableFuture Uses

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

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

type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleFuture Uses

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

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

type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputFuture Uses

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

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

type CassandraResourcesMigrateCassandraTableToAutoscaleFuture Uses

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

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

type CassandraResourcesMigrateCassandraTableToManualThroughputFuture Uses

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

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

type CassandraResourcesUpdateCassandraKeyspaceThroughputFuture Uses

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

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

type CassandraResourcesUpdateCassandraTableThroughputFuture Uses

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

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

type CassandraSchema Uses

type CassandraSchema struct {
    // Columns - List of Cassandra table columns.
    Columns *[]Column `json:"columns,omitempty"`
    // PartitionKeys - List of partition key.
    PartitionKeys *[]CassandraPartitionKey `json:"partitionKeys,omitempty"`
    // ClusterKeys - List of cluster key.
    ClusterKeys *[]ClusterKey `json:"clusterKeys,omitempty"`
}

CassandraSchema cosmos DB Cassandra table schema

type CassandraTableCreateUpdateParameters Uses

type CassandraTableCreateUpdateParameters struct {
    // CassandraTableCreateUpdateProperties - Properties to create and update Azure Cosmos DB Cassandra table.
    *CassandraTableCreateUpdateProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

CassandraTableCreateUpdateParameters parameters to create and update Cosmos DB Cassandra table.

func (CassandraTableCreateUpdateParameters) MarshalJSON Uses

func (ctcup CassandraTableCreateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CassandraTableCreateUpdateParameters.

func (*CassandraTableCreateUpdateParameters) UnmarshalJSON Uses

func (ctcup *CassandraTableCreateUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CassandraTableCreateUpdateParameters struct.

type CassandraTableCreateUpdateProperties Uses

type CassandraTableCreateUpdateProperties struct {
    // Resource - The standard JSON format of a Cassandra table
    Resource *CassandraTableResource `json:"resource,omitempty"`
    // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Options *CreateUpdateOptions `json:"options,omitempty"`
}

CassandraTableCreateUpdateProperties properties to create and update Azure Cosmos DB Cassandra table.

type CassandraTableGetProperties Uses

type CassandraTableGetProperties struct {
    Resource *CassandraTableGetPropertiesResource `json:"resource,omitempty"`
    Options  *CassandraTableGetPropertiesOptions  `json:"options,omitempty"`
}

CassandraTableGetProperties the properties of an Azure Cosmos DB Cassandra table

type CassandraTableGetPropertiesOptions Uses

type CassandraTableGetPropertiesOptions struct {
    // Throughput - Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    Throughput *int32 `json:"throughput,omitempty"`
    // AutoscaleSettings - Specifies the Autoscale settings.
    AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"`
}

CassandraTableGetPropertiesOptions ...

type CassandraTableGetPropertiesResource Uses

type CassandraTableGetPropertiesResource struct {
    // ID - Name of the Cosmos DB Cassandra table
    ID  *string `json:"id,omitempty"`
    // DefaultTTL - Time to live of the Cosmos DB Cassandra table
    DefaultTTL *int32 `json:"defaultTtl,omitempty"`
    // Schema - Schema of the Cosmos DB Cassandra table
    Schema *CassandraSchema `json:"schema,omitempty"`
    // AnalyticalStorageTTL - Analytical TTL.
    AnalyticalStorageTTL *int32 `json:"analyticalStorageTtl,omitempty"`
    // Rid - READ-ONLY; A system generated property. A unique identifier.
    Rid *string `json:"_rid,omitempty"`
    // Ts - READ-ONLY; A system generated property that denotes the last updated timestamp of the resource.
    Ts  interface{} `json:"_ts,omitempty"`
    // Etag - READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control.
    Etag *string `json:"_etag,omitempty"`
}

CassandraTableGetPropertiesResource ...

func (CassandraTableGetPropertiesResource) MarshalJSON Uses

func (ctgp CassandraTableGetPropertiesResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CassandraTableGetPropertiesResource.

type CassandraTableGetResults Uses

type CassandraTableGetResults struct {
    autorest.Response `json:"-"`
    // CassandraTableGetProperties - The properties of an Azure Cosmos DB Cassandra table
    *CassandraTableGetProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

CassandraTableGetResults an Azure Cosmos DB Cassandra table.

func (CassandraTableGetResults) MarshalJSON Uses

func (ctgr CassandraTableGetResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CassandraTableGetResults.

func (*CassandraTableGetResults) UnmarshalJSON Uses

func (ctgr *CassandraTableGetResults) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CassandraTableGetResults struct.

type CassandraTableListResult Uses

type CassandraTableListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of Cassandra tables and their properties.
    Value *[]CassandraTableGetResults `json:"value,omitempty"`
}

CassandraTableListResult the List operation response, that contains the Cassandra tables and their properties.

type CassandraTableResource Uses

type CassandraTableResource struct {
    // ID - Name of the Cosmos DB Cassandra table
    ID  *string `json:"id,omitempty"`
    // DefaultTTL - Time to live of the Cosmos DB Cassandra table
    DefaultTTL *int32 `json:"defaultTtl,omitempty"`
    // Schema - Schema of the Cosmos DB Cassandra table
    Schema *CassandraSchema `json:"schema,omitempty"`
    // AnalyticalStorageTTL - Analytical TTL.
    AnalyticalStorageTTL *int32 `json:"analyticalStorageTtl,omitempty"`
}

CassandraTableResource cosmos DB Cassandra table resource object

type ClusterKey Uses

type ClusterKey struct {
    // Name - Name of the Cosmos DB Cassandra table cluster key
    Name *string `json:"name,omitempty"`
    // OrderBy - Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"
    OrderBy *string `json:"orderBy,omitempty"`
}

ClusterKey cosmos DB Cassandra table cluster key

type CollectionClient Uses

type CollectionClient struct {
    BaseClient
}

CollectionClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewCollectionClient Uses

func NewCollectionClient(subscriptionID string) CollectionClient

NewCollectionClient creates an instance of the CollectionClient client.

func NewCollectionClientWithBaseURI Uses

func NewCollectionClientWithBaseURI(baseURI string, subscriptionID string) CollectionClient

NewCollectionClientWithBaseURI creates an instance of the CollectionClient 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 (CollectionClient) ListMetricDefinitions Uses

func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string) (result MetricDefinitionsListResult, err error)

ListMetricDefinitions retrieves metric definitions for the given collection. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid.

func (CollectionClient) ListMetricDefinitionsPreparer Uses

func (client CollectionClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string) (*http.Request, error)

ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.

func (CollectionClient) ListMetricDefinitionsResponder Uses

func (client CollectionClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error)

ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always closes the http.Response Body.

func (CollectionClient) ListMetricDefinitionsSender Uses

func (client CollectionClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)

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

func (CollectionClient) ListMetrics Uses

func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (result MetricListResult, err error)

ListMetrics retrieves the metrics determined by the given filter for the given database account and collection. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

func (CollectionClient) ListMetricsPreparer Uses

func (client CollectionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (CollectionClient) ListMetricsResponder Uses

func (client CollectionClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (CollectionClient) ListMetricsSender Uses

func (client CollectionClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

func (CollectionClient) ListUsages Uses

func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (result UsagesResult, err error)

ListUsages retrieves the usages (most recent storage data) for the given collection. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. filter - an OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).

func (CollectionClient) ListUsagesPreparer Uses

func (client CollectionClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (CollectionClient) ListUsagesResponder Uses

func (client CollectionClient) ListUsagesResponder(resp *http.Response) (result UsagesResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (CollectionClient) ListUsagesSender Uses

func (client CollectionClient) ListUsagesSender(req *http.Request) (*http.Response, error)

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

type CollectionPartitionClient Uses

type CollectionPartitionClient struct {
    BaseClient
}

CollectionPartitionClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewCollectionPartitionClient Uses

func NewCollectionPartitionClient(subscriptionID string) CollectionPartitionClient

NewCollectionPartitionClient creates an instance of the CollectionPartitionClient client.

func NewCollectionPartitionClientWithBaseURI Uses

func NewCollectionPartitionClientWithBaseURI(baseURI string, subscriptionID string) CollectionPartitionClient

NewCollectionPartitionClientWithBaseURI creates an instance of the CollectionPartitionClient 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 (CollectionPartitionClient) ListMetrics Uses

func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (result PartitionMetricListResult, err error)

ListMetrics retrieves the metrics determined by the given filter for the given collection, split by partition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

func (CollectionPartitionClient) ListMetricsPreparer Uses

func (client CollectionPartitionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (CollectionPartitionClient) ListMetricsResponder Uses

func (client CollectionPartitionClient) ListMetricsResponder(resp *http.Response) (result PartitionMetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (CollectionPartitionClient) ListMetricsSender Uses

func (client CollectionPartitionClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

func (CollectionPartitionClient) ListUsages Uses

func (client CollectionPartitionClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (result PartitionUsagesResult, err error)

ListUsages retrieves the usages (most recent storage data) for the given collection, split by partition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. filter - an OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).

func (CollectionPartitionClient) ListUsagesPreparer Uses

func (client CollectionPartitionClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (CollectionPartitionClient) ListUsagesResponder Uses

func (client CollectionPartitionClient) ListUsagesResponder(resp *http.Response) (result PartitionUsagesResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (CollectionPartitionClient) ListUsagesSender Uses

func (client CollectionPartitionClient) ListUsagesSender(req *http.Request) (*http.Response, error)

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

type CollectionPartitionRegionClient Uses

type CollectionPartitionRegionClient struct {
    BaseClient
}

CollectionPartitionRegionClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewCollectionPartitionRegionClient Uses

func NewCollectionPartitionRegionClient(subscriptionID string) CollectionPartitionRegionClient

NewCollectionPartitionRegionClient creates an instance of the CollectionPartitionRegionClient client.

func NewCollectionPartitionRegionClientWithBaseURI Uses

func NewCollectionPartitionRegionClientWithBaseURI(baseURI string, subscriptionID string) CollectionPartitionRegionClient

NewCollectionPartitionRegionClientWithBaseURI creates an instance of the CollectionPartitionRegionClient 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 (CollectionPartitionRegionClient) ListMetrics Uses

func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, filter string) (result PartitionMetricListResult, err error)

ListMetrics retrieves the metrics determined by the given filter for the given collection and region, split by partition. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. region - cosmos DB region, with spaces between words and each word capitalized. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

func (CollectionPartitionRegionClient) ListMetricsPreparer Uses

func (client CollectionPartitionRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (CollectionPartitionRegionClient) ListMetricsResponder Uses

func (client CollectionPartitionRegionClient) ListMetricsResponder(resp *http.Response) (result PartitionMetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (CollectionPartitionRegionClient) ListMetricsSender Uses

func (client CollectionPartitionRegionClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

type CollectionRegionClient Uses

type CollectionRegionClient struct {
    BaseClient
}

CollectionRegionClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewCollectionRegionClient Uses

func NewCollectionRegionClient(subscriptionID string) CollectionRegionClient

NewCollectionRegionClient creates an instance of the CollectionRegionClient client.

func NewCollectionRegionClientWithBaseURI Uses

func NewCollectionRegionClientWithBaseURI(baseURI string, subscriptionID string) CollectionRegionClient

NewCollectionRegionClientWithBaseURI creates an instance of the CollectionRegionClient 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 (CollectionRegionClient) ListMetrics Uses

func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, filter string) (result MetricListResult, err error)

ListMetrics retrieves the metrics determined by the given filter for the given database account, collection and region. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. region - cosmos DB region, with spaces between words and each word capitalized. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

func (CollectionRegionClient) ListMetricsPreparer Uses

func (client CollectionRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (CollectionRegionClient) ListMetricsResponder Uses

func (client CollectionRegionClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (CollectionRegionClient) ListMetricsSender Uses

func (client CollectionRegionClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

type Column Uses

type Column struct {
    // Name - Name of the Cosmos DB Cassandra table column
    Name *string `json:"name,omitempty"`
    // Type - Type of the Cosmos DB Cassandra table column
    Type *string `json:"type,omitempty"`
}

Column cosmos DB Cassandra table column

type CompositePath Uses

type CompositePath struct {
    // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
    Path *string `json:"path,omitempty"`
    // Order - Sort order for composite paths. Possible values include: 'Ascending', 'Descending'
    Order CompositePathSortOrder `json:"order,omitempty"`
}

CompositePath ...

type CompositePathSortOrder Uses

type CompositePathSortOrder string

CompositePathSortOrder enumerates the values for composite path sort order.

const (
    // Ascending ...
    Ascending CompositePathSortOrder = "Ascending"
    // Descending ...
    Descending CompositePathSortOrder = "Descending"
)

func PossibleCompositePathSortOrderValues Uses

func PossibleCompositePathSortOrderValues() []CompositePathSortOrder

PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type.

type ConflictResolutionMode Uses

type ConflictResolutionMode string

ConflictResolutionMode enumerates the values for conflict resolution mode.

const (
    // Custom ...
    Custom ConflictResolutionMode = "Custom"
    // LastWriterWins ...
    LastWriterWins ConflictResolutionMode = "LastWriterWins"
)

func PossibleConflictResolutionModeValues Uses

func PossibleConflictResolutionModeValues() []ConflictResolutionMode

PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.

type ConflictResolutionPolicy Uses

type ConflictResolutionPolicy struct {
    // Mode - Indicates the conflict resolution mode. Possible values include: 'LastWriterWins', 'Custom'
    Mode ConflictResolutionMode `json:"mode,omitempty"`
    // ConflictResolutionPath - The conflict resolution path in the case of LastWriterWins mode.
    ConflictResolutionPath *string `json:"conflictResolutionPath,omitempty"`
    // ConflictResolutionProcedure - The procedure to resolve conflicts in the case of custom mode.
    ConflictResolutionProcedure *string `json:"conflictResolutionProcedure,omitempty"`
}

ConflictResolutionPolicy the conflict resolution policy for the container.

type ConnectorOffer Uses

type ConnectorOffer string

ConnectorOffer enumerates the values for connector offer.

const (
    // Small ...
    Small ConnectorOffer = "Small"
)

func PossibleConnectorOfferValues Uses

func PossibleConnectorOfferValues() []ConnectorOffer

PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.

type ConsistencyPolicy Uses

type ConsistencyPolicy struct {
    // DefaultConsistencyLevel - The default consistency level and configuration settings of the Cosmos DB account. Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix'
    DefaultConsistencyLevel DefaultConsistencyLevel `json:"defaultConsistencyLevel,omitempty"`
    // MaxStalenessPrefix - When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
    MaxStalenessPrefix *int64 `json:"maxStalenessPrefix,omitempty"`
    // MaxIntervalInSeconds - When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
    MaxIntervalInSeconds *int32 `json:"maxIntervalInSeconds,omitempty"`
}

ConsistencyPolicy the consistency policy for the Cosmos DB database account.

type ContainerPartitionKey Uses

type ContainerPartitionKey struct {
    // Paths - List of paths using which data within the container can be partitioned
    Paths *[]string `json:"paths,omitempty"`
    // Kind - Indicates the kind of algorithm used for partitioning. Possible values include: 'PartitionKindHash', 'PartitionKindRange'
    Kind PartitionKind `json:"kind,omitempty"`
    // Version - Indicates the version of the partition key definition
    Version *int32 `json:"version,omitempty"`
}

ContainerPartitionKey the configuration of the partition key to be used for partitioning data into multiple partitions

type CorsPolicy Uses

type CorsPolicy struct {
    // AllowedOrigins - The origin domains that are permitted to make a request against the service via CORS.
    AllowedOrigins *string `json:"allowedOrigins,omitempty"`
    // AllowedMethods - The methods (HTTP request verbs) that the origin domain may use for a CORS request.
    AllowedMethods *string `json:"allowedMethods,omitempty"`
    // AllowedHeaders - The request headers that the origin domain may specify on the CORS request.
    AllowedHeaders *string `json:"allowedHeaders,omitempty"`
    // ExposedHeaders - The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.
    ExposedHeaders *string `json:"exposedHeaders,omitempty"`
    // MaxAgeInSeconds - The maximum amount time that a browser should cache the preflight OPTIONS request.
    MaxAgeInSeconds *int64 `json:"maxAgeInSeconds,omitempty"`
}

CorsPolicy the CORS policy for the Cosmos DB database account.

type CreateUpdateOptions Uses

type CreateUpdateOptions struct {
    // Throughput - Request Units per second. For example, "throughput": 10000.
    Throughput *int32 `json:"throughput,omitempty"`
    // AutoscaleSettings - Specifies the Autoscale settings.
    AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"`
}

CreateUpdateOptions createUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are "If-Match", "If-None-Match", "Session-Token" and "Throughput"

type DataType Uses

type DataType string

DataType enumerates the values for data type.

const (
    // LineString ...
    LineString DataType = "LineString"
    // MultiPolygon ...
    MultiPolygon DataType = "MultiPolygon"
    // Number ...
    Number DataType = "Number"
    // Point ...
    Point DataType = "Point"
    // Polygon ...
    Polygon DataType = "Polygon"
    // String ...
    String DataType = "String"
)

func PossibleDataTypeValues Uses

func PossibleDataTypeValues() []DataType

PossibleDataTypeValues returns an array of possible values for the DataType const type.

type DatabaseAccountConnectionString Uses

type DatabaseAccountConnectionString struct {
    // ConnectionString - READ-ONLY; Value of the connection string
    ConnectionString *string `json:"connectionString,omitempty"`
    // Description - READ-ONLY; Description of the connection string
    Description *string `json:"description,omitempty"`
}

DatabaseAccountConnectionString connection string for the Cosmos DB account

type DatabaseAccountCreateUpdateParameters Uses

type DatabaseAccountCreateUpdateParameters struct {
    // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'
    Kind                                   DatabaseAccountKind `json:"kind,omitempty"`
    *DatabaseAccountCreateUpdateProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts.

func (DatabaseAccountCreateUpdateParameters) MarshalJSON Uses

func (dacup DatabaseAccountCreateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseAccountCreateUpdateParameters.

func (*DatabaseAccountCreateUpdateParameters) UnmarshalJSON Uses

func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseAccountCreateUpdateParameters struct.

type DatabaseAccountCreateUpdateProperties Uses

type DatabaseAccountCreateUpdateProperties struct {
    // ConsistencyPolicy - The consistency policy for the Cosmos DB account.
    ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"`
    // Locations - An array that contains the georeplication locations enabled for the Cosmos DB account.
    Locations *[]Location `json:"locations,omitempty"`
    // DatabaseAccountOfferType - The offer type for the database
    DatabaseAccountOfferType *string `json:"databaseAccountOfferType,omitempty"`
    // IPRules - List of IpRules.
    IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"`
    // IsVirtualNetworkFilterEnabled - Flag to indicate whether to enable/disable Virtual Network ACL rules.
    IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"`
    // EnableAutomaticFailover - Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
    EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"`
    // Capabilities - List of Cosmos DB capabilities for the account
    Capabilities *[]Capability `json:"capabilities,omitempty"`
    // VirtualNetworkRules - List of Virtual Network ACL rules configured for the Cosmos DB account.
    VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
    // EnableMultipleWriteLocations - Enables the account to write in multiple locations
    EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"`
    // EnableCassandraConnector - Enables the cassandra connector on the Cosmos DB C* account
    EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"`
    // ConnectorOffer - The cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'
    ConnectorOffer ConnectorOffer `json:"connectorOffer,omitempty"`
    // DisableKeyBasedMetadataWriteAccess - Disable write operations on metadata resources (databases, containers, throughput) via account keys
    DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"`
    // KeyVaultKeyURI - The URI of the key vault
    KeyVaultKeyURI *string `json:"keyVaultKeyUri,omitempty"`
    // PublicNetworkAccess - Whether requests from Public Network are allowed. Possible values include: 'Enabled', 'Disabled'
    PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
    // EnableFreeTier - Flag to indicate whether Free Tier is enabled.
    EnableFreeTier *bool `json:"enableFreeTier,omitempty"`
    // APIProperties - API specific properties. Currently, supported only for MongoDB API.
    APIProperties *APIProperties `json:"apiProperties,omitempty"`
    // EnableAnalyticalStorage - Flag to indicate whether to enable storage analytics.
    EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"`
    // Cors - The CORS policy for the Cosmos DB database account.
    Cors *[]CorsPolicy `json:"cors,omitempty"`
}

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

type DatabaseAccountGetProperties Uses

type DatabaseAccountGetProperties struct {
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // DocumentEndpoint - READ-ONLY; The connection endpoint for the Cosmos DB database account.
    DocumentEndpoint *string `json:"documentEndpoint,omitempty"`
    // DatabaseAccountOfferType - READ-ONLY; The offer type for the Cosmos DB database account. Default value: Standard. Possible values include: 'Standard'
    DatabaseAccountOfferType DatabaseAccountOfferType `json:"databaseAccountOfferType,omitempty"`
    // IPRules - List of IpRules.
    IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"`
    // IsVirtualNetworkFilterEnabled - Flag to indicate whether to enable/disable Virtual Network ACL rules.
    IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"`
    // EnableAutomaticFailover - Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
    EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"`
    // ConsistencyPolicy - The consistency policy for the Cosmos DB database account.
    ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"`
    // Capabilities - List of Cosmos DB capabilities for the account
    Capabilities *[]Capability `json:"capabilities,omitempty"`
    // WriteLocations - READ-ONLY; An array that contains the write location for the Cosmos DB account.
    WriteLocations *[]Location `json:"writeLocations,omitempty"`
    // ReadLocations - READ-ONLY; An array that contains of the read locations enabled for the Cosmos DB account.
    ReadLocations *[]Location `json:"readLocations,omitempty"`
    // Locations - READ-ONLY; An array that contains all of the locations enabled for the Cosmos DB account.
    Locations *[]Location `json:"locations,omitempty"`
    // FailoverPolicies - READ-ONLY; An array that contains the regions ordered by their failover priorities.
    FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"`
    // VirtualNetworkRules - List of Virtual Network ACL rules configured for the Cosmos DB account.
    VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
    // PrivateEndpointConnections - READ-ONLY; List of Private Endpoint Connections configured for the Cosmos DB account.
    PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"`
    // EnableMultipleWriteLocations - Enables the account to write in multiple locations
    EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"`
    // EnableCassandraConnector - Enables the cassandra connector on the Cosmos DB C* account
    EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"`
    // ConnectorOffer - The cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'
    ConnectorOffer ConnectorOffer `json:"connectorOffer,omitempty"`
    // DisableKeyBasedMetadataWriteAccess - Disable write operations on metadata resources (databases, containers, throughput) via account keys
    DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"`
    // KeyVaultKeyURI - The URI of the key vault
    KeyVaultKeyURI *string `json:"keyVaultKeyUri,omitempty"`
    // PublicNetworkAccess - Whether requests from Public Network are allowed. Possible values include: 'Enabled', 'Disabled'
    PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
    // EnableFreeTier - Flag to indicate whether Free Tier is enabled.
    EnableFreeTier *bool `json:"enableFreeTier,omitempty"`
    // APIProperties - API specific properties.
    APIProperties *APIProperties `json:"apiProperties,omitempty"`
    // EnableAnalyticalStorage - Flag to indicate whether to enable storage analytics.
    EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"`
    // Cors - The CORS policy for the Cosmos DB database account.
    Cors *[]CorsPolicy `json:"cors,omitempty"`
}

DatabaseAccountGetProperties properties for the database account.

func (DatabaseAccountGetProperties) MarshalJSON Uses

func (dagp DatabaseAccountGetProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseAccountGetProperties.

type DatabaseAccountGetResults Uses

type DatabaseAccountGetResults struct {
    autorest.Response `json:"-"`
    // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'
    Kind                          DatabaseAccountKind `json:"kind,omitempty"`
    *DatabaseAccountGetProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

DatabaseAccountGetResults an Azure Cosmos DB database account.

func (DatabaseAccountGetResults) MarshalJSON Uses

func (dagr DatabaseAccountGetResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseAccountGetResults.

func (*DatabaseAccountGetResults) UnmarshalJSON Uses

func (dagr *DatabaseAccountGetResults) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseAccountGetResults struct.

type DatabaseAccountKind Uses

type DatabaseAccountKind string

DatabaseAccountKind enumerates the values for database account kind.

const (
    // GlobalDocumentDB ...
    GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
    // MongoDB ...
    MongoDB DatabaseAccountKind = "MongoDB"
    // Parse ...
    Parse DatabaseAccountKind = "Parse"
)

func PossibleDatabaseAccountKindValues Uses

func PossibleDatabaseAccountKindValues() []DatabaseAccountKind

PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.

type DatabaseAccountListConnectionStringsResult Uses

type DatabaseAccountListConnectionStringsResult struct {
    autorest.Response `json:"-"`
    // ConnectionStrings - An array that contains the connection strings for the Cosmos DB account.
    ConnectionStrings *[]DatabaseAccountConnectionString `json:"connectionStrings,omitempty"`
}

DatabaseAccountListConnectionStringsResult the connection strings for the given database account.

type DatabaseAccountListKeysResult Uses

type DatabaseAccountListKeysResult struct {
    autorest.Response `json:"-"`
    // PrimaryMasterKey - READ-ONLY; Base 64 encoded value of the primary read-write key.
    PrimaryMasterKey *string `json:"primaryMasterKey,omitempty"`
    // SecondaryMasterKey - READ-ONLY; Base 64 encoded value of the secondary read-write key.
    SecondaryMasterKey *string `json:"secondaryMasterKey,omitempty"`
    // PrimaryReadonlyMasterKey - READ-ONLY; Base 64 encoded value of the primary read-only key.
    PrimaryReadonlyMasterKey *string `json:"primaryReadonlyMasterKey,omitempty"`
    // SecondaryReadonlyMasterKey - READ-ONLY; Base 64 encoded value of the secondary read-only key.
    SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"`
}

DatabaseAccountListKeysResult the access keys for the given database account.

type DatabaseAccountListReadOnlyKeysResult Uses

type DatabaseAccountListReadOnlyKeysResult struct {
    autorest.Response `json:"-"`
    // PrimaryReadonlyMasterKey - READ-ONLY; Base 64 encoded value of the primary read-only key.
    PrimaryReadonlyMasterKey *string `json:"primaryReadonlyMasterKey,omitempty"`
    // SecondaryReadonlyMasterKey - READ-ONLY; Base 64 encoded value of the secondary read-only key.
    SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"`
}

DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account.

type DatabaseAccountOfferType Uses

type DatabaseAccountOfferType string

DatabaseAccountOfferType enumerates the values for database account offer type.

const (
    // Standard ...
    Standard DatabaseAccountOfferType = "Standard"
)

func PossibleDatabaseAccountOfferTypeValues Uses

func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType

PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.

type DatabaseAccountRegenerateKeyParameters Uses

type DatabaseAccountRegenerateKeyParameters struct {
    // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly'
    KeyKind KeyKind `json:"keyKind,omitempty"`
}

DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account.

type DatabaseAccountRegionClient Uses

type DatabaseAccountRegionClient struct {
    BaseClient
}

DatabaseAccountRegionClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewDatabaseAccountRegionClient Uses

func NewDatabaseAccountRegionClient(subscriptionID string) DatabaseAccountRegionClient

NewDatabaseAccountRegionClient creates an instance of the DatabaseAccountRegionClient client.

func NewDatabaseAccountRegionClientWithBaseURI Uses

func NewDatabaseAccountRegionClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAccountRegionClient

NewDatabaseAccountRegionClientWithBaseURI creates an instance of the DatabaseAccountRegionClient 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 (DatabaseAccountRegionClient) ListMetrics Uses

func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, region string, filter string) (result MetricListResult, err error)

ListMetrics retrieves the metrics determined by the given filter for the given database account and region. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. region - cosmos DB region, with spaces between words and each word capitalized. filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

func (DatabaseAccountRegionClient) ListMetricsPreparer Uses

func (client DatabaseAccountRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, region string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (DatabaseAccountRegionClient) ListMetricsResponder Uses

func (client DatabaseAccountRegionClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (DatabaseAccountRegionClient) ListMetricsSender Uses

func (client DatabaseAccountRegionClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

type DatabaseAccountUpdateParameters Uses

type DatabaseAccountUpdateParameters struct {
    Tags map[string]*string `json:"tags"`
    // Location - The location of the resource group to which the resource belongs.
    Location                         *string `json:"location,omitempty"`
    *DatabaseAccountUpdateProperties `json:"properties,omitempty"`
}

DatabaseAccountUpdateParameters parameters for patching Azure Cosmos DB database account properties.

func (DatabaseAccountUpdateParameters) MarshalJSON Uses

func (daup DatabaseAccountUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseAccountUpdateParameters.

func (*DatabaseAccountUpdateParameters) UnmarshalJSON Uses

func (daup *DatabaseAccountUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseAccountUpdateParameters struct.

type DatabaseAccountUpdateProperties Uses

type DatabaseAccountUpdateProperties struct {
    // ConsistencyPolicy - The consistency policy for the Cosmos DB account.
    ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"`
    // Locations - An array that contains the georeplication locations enabled for the Cosmos DB account.
    Locations *[]Location `json:"locations,omitempty"`
    // IPRules - List of IpRules.
    IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"`
    // IsVirtualNetworkFilterEnabled - Flag to indicate whether to enable/disable Virtual Network ACL rules.
    IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"`
    // EnableAutomaticFailover - Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
    EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"`
    // Capabilities - List of Cosmos DB capabilities for the account
    Capabilities *[]Capability `json:"capabilities,omitempty"`
    // VirtualNetworkRules - List of Virtual Network ACL rules configured for the Cosmos DB account.
    VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
    // EnableMultipleWriteLocations - Enables the account to write in multiple locations
    EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"`
    // EnableCassandraConnector - Enables the cassandra connector on the Cosmos DB C* account
    EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"`
    // ConnectorOffer - The cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'
    ConnectorOffer ConnectorOffer `json:"connectorOffer,omitempty"`
    // DisableKeyBasedMetadataWriteAccess - Disable write operations on metadata resources (databases, containers, throughput) via account keys
    DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"`
    // KeyVaultKeyURI - The URI of the key vault
    KeyVaultKeyURI *string `json:"keyVaultKeyUri,omitempty"`
    // PublicNetworkAccess - Whether requests from Public Network are allowed. Possible values include: 'Enabled', 'Disabled'
    PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
    // EnableFreeTier - Flag to indicate whether Free Tier is enabled.
    EnableFreeTier *bool `json:"enableFreeTier,omitempty"`
    // APIProperties - API specific properties. Currently, supported only for MongoDB API.
    APIProperties *APIProperties `json:"apiProperties,omitempty"`
    // EnableAnalyticalStorage - Flag to indicate whether to enable storage analytics.
    EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"`
    // Cors - The CORS policy for the Cosmos DB database account.
    Cors *[]CorsPolicy `json:"cors,omitempty"`
}

DatabaseAccountUpdateProperties properties to update Azure Cosmos DB database accounts.

type DatabaseAccountsClient Uses

type DatabaseAccountsClient struct {
    BaseClient
}

DatabaseAccountsClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewDatabaseAccountsClient Uses

func NewDatabaseAccountsClient(subscriptionID string) DatabaseAccountsClient

NewDatabaseAccountsClient creates an instance of the DatabaseAccountsClient client.

func NewDatabaseAccountsClientWithBaseURI Uses

func NewDatabaseAccountsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAccountsClient

NewDatabaseAccountsClientWithBaseURI creates an instance of the DatabaseAccountsClient 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 (DatabaseAccountsClient) CheckNameExists Uses

func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accountName string) (result autorest.Response, err error)

CheckNameExists checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. Parameters: accountName - cosmos DB database account name.

func (DatabaseAccountsClient) CheckNameExistsPreparer Uses

func (client DatabaseAccountsClient) CheckNameExistsPreparer(ctx context.Context, accountName string) (*http.Request, error)

CheckNameExistsPreparer prepares the CheckNameExists request.

func (DatabaseAccountsClient) CheckNameExistsResponder Uses

func (client DatabaseAccountsClient) CheckNameExistsResponder(resp *http.Response) (result autorest.Response, err error)

CheckNameExistsResponder handles the response to the CheckNameExists request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) CheckNameExistsSender Uses

func (client DatabaseAccountsClient) CheckNameExistsSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) CreateOrUpdate Uses

func (client DatabaseAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, createUpdateParameters DatabaseAccountCreateUpdateParameters) (result DatabaseAccountsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. createUpdateParameters - the parameters to provide for the current database account.

func (DatabaseAccountsClient) CreateOrUpdatePreparer Uses

func (client DatabaseAccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, createUpdateParameters DatabaseAccountCreateUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseAccountsClient) CreateOrUpdateResponder Uses

func (client DatabaseAccountsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseAccountGetResults, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) CreateOrUpdateSender Uses

func (client DatabaseAccountsClient) CreateOrUpdateSender(req *http.Request) (future DatabaseAccountsCreateOrUpdateFuture, err error)

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

func (DatabaseAccountsClient) Delete Uses

func (client DatabaseAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountsDeleteFuture, err error)

Delete deletes an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (DatabaseAccountsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (DatabaseAccountsClient) DeleteResponder Uses

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

func (client DatabaseAccountsClient) DeleteSender(req *http.Request) (future DatabaseAccountsDeleteFuture, err error)

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

func (DatabaseAccountsClient) FailoverPriorityChange Uses

func (client DatabaseAccountsClient) FailoverPriorityChange(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies) (result DatabaseAccountsFailoverPriorityChangeFuture, err error)

FailoverPriorityChange changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. failoverParameters - the new failover policies for the database account.

func (DatabaseAccountsClient) FailoverPriorityChangePreparer Uses

func (client DatabaseAccountsClient) FailoverPriorityChangePreparer(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies) (*http.Request, error)

FailoverPriorityChangePreparer prepares the FailoverPriorityChange request.

func (DatabaseAccountsClient) FailoverPriorityChangeResponder Uses

func (client DatabaseAccountsClient) FailoverPriorityChangeResponder(resp *http.Response) (result autorest.Response, err error)

FailoverPriorityChangeResponder handles the response to the FailoverPriorityChange request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) FailoverPriorityChangeSender Uses

func (client DatabaseAccountsClient) FailoverPriorityChangeSender(req *http.Request) (future DatabaseAccountsFailoverPriorityChangeFuture, err error)

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

func (DatabaseAccountsClient) Get Uses

func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountGetResults, err error)

Get retrieves the properties of an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (DatabaseAccountsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DatabaseAccountsClient) GetReadOnlyKeys Uses

func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error)

GetReadOnlyKeys lists the read-only access keys for the specified Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (DatabaseAccountsClient) GetReadOnlyKeysPreparer Uses

func (client DatabaseAccountsClient) GetReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

GetReadOnlyKeysPreparer prepares the GetReadOnlyKeys request.

func (DatabaseAccountsClient) GetReadOnlyKeysResponder Uses

func (client DatabaseAccountsClient) GetReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error)

GetReadOnlyKeysResponder handles the response to the GetReadOnlyKeys request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) GetReadOnlyKeysSender Uses

func (client DatabaseAccountsClient) GetReadOnlyKeysSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) GetResponder Uses

func (client DatabaseAccountsClient) GetResponder(resp *http.Response) (result DatabaseAccountGetResults, err error)

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

func (DatabaseAccountsClient) GetSender Uses

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

func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseAccountsListResult, err error)

List lists all the Azure Cosmos DB database accounts available under the subscription.

func (DatabaseAccountsClient) ListByResourceGroup Uses

func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DatabaseAccountsListResult, err error)

ListByResourceGroup lists all the Azure Cosmos DB database accounts available under the given resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (DatabaseAccountsClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DatabaseAccountsClient) ListByResourceGroupResponder Uses

func (client DatabaseAccountsClient) ListByResourceGroupResponder(resp *http.Response) (result DatabaseAccountsListResult, err error)

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

func (DatabaseAccountsClient) ListByResourceGroupSender Uses

func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListConnectionStrings Uses

func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListConnectionStringsResult, err error)

ListConnectionStrings lists the connection strings for the specified Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (DatabaseAccountsClient) ListConnectionStringsPreparer Uses

func (client DatabaseAccountsClient) ListConnectionStringsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListConnectionStringsPreparer prepares the ListConnectionStrings request.

func (DatabaseAccountsClient) ListConnectionStringsResponder Uses

func (client DatabaseAccountsClient) ListConnectionStringsResponder(resp *http.Response) (result DatabaseAccountListConnectionStringsResult, err error)

ListConnectionStringsResponder handles the response to the ListConnectionStrings request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) ListConnectionStringsSender Uses

func (client DatabaseAccountsClient) ListConnectionStringsSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) ListKeys Uses

func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListKeysResult, err error)

ListKeys lists the access keys for the specified Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (DatabaseAccountsClient) ListKeysPreparer Uses

func (client DatabaseAccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (DatabaseAccountsClient) ListKeysResponder Uses

func (client DatabaseAccountsClient) ListKeysResponder(resp *http.Response) (result DatabaseAccountListKeysResult, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) ListKeysSender Uses

func (client DatabaseAccountsClient) ListKeysSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) ListMetricDefinitions Uses

func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string) (result MetricDefinitionsListResult, err error)

ListMetricDefinitions retrieves metric definitions for the given database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (DatabaseAccountsClient) ListMetricDefinitionsPreparer Uses

func (client DatabaseAccountsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.

func (DatabaseAccountsClient) ListMetricDefinitionsResponder Uses

func (client DatabaseAccountsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error)

ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) ListMetricDefinitionsSender Uses

func (client DatabaseAccountsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) ListMetrics Uses

func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, filter string) (result MetricListResult, err error)

ListMetrics retrieves the metrics determined by the given filter for the given database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

func (DatabaseAccountsClient) ListMetricsPreparer Uses

func (client DatabaseAccountsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (DatabaseAccountsClient) ListMetricsResponder Uses

func (client DatabaseAccountsClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) ListMetricsSender Uses

func (client DatabaseAccountsClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) ListPreparer Uses

func (client DatabaseAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (DatabaseAccountsClient) ListReadOnlyKeys Uses

func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error)

ListReadOnlyKeys lists the read-only access keys for the specified Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (DatabaseAccountsClient) ListReadOnlyKeysPreparer Uses

func (client DatabaseAccountsClient) ListReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListReadOnlyKeysPreparer prepares the ListReadOnlyKeys request.

func (DatabaseAccountsClient) ListReadOnlyKeysResponder Uses

func (client DatabaseAccountsClient) ListReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error)

ListReadOnlyKeysResponder handles the response to the ListReadOnlyKeys request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) ListReadOnlyKeysSender Uses

func (client DatabaseAccountsClient) ListReadOnlyKeysSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) ListResponder Uses

func (client DatabaseAccountsClient) ListResponder(resp *http.Response) (result DatabaseAccountsListResult, err error)

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

func (DatabaseAccountsClient) ListSender Uses

func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListUsages Uses

func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, filter string) (result UsagesResult, err error)

ListUsages retrieves the usages (most recent data) for the given database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. filter - an OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).

func (DatabaseAccountsClient) ListUsagesPreparer Uses

func (client DatabaseAccountsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (DatabaseAccountsClient) ListUsagesResponder Uses

func (client DatabaseAccountsClient) ListUsagesResponder(resp *http.Response) (result UsagesResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) ListUsagesSender Uses

func (client DatabaseAccountsClient) ListUsagesSender(req *http.Request) (*http.Response, error)

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

func (DatabaseAccountsClient) OfflineRegion Uses

func (client DatabaseAccountsClient) OfflineRegion(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOffline RegionForOnlineOffline) (result DatabaseAccountsOfflineRegionFuture, err error)

OfflineRegion offline the specified region for the specified Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. regionParameterForOffline - cosmos DB region to offline for the database account.

func (DatabaseAccountsClient) OfflineRegionPreparer Uses

func (client DatabaseAccountsClient) OfflineRegionPreparer(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOffline RegionForOnlineOffline) (*http.Request, error)

OfflineRegionPreparer prepares the OfflineRegion request.

func (DatabaseAccountsClient) OfflineRegionResponder Uses

func (client DatabaseAccountsClient) OfflineRegionResponder(resp *http.Response) (result autorest.Response, err error)

OfflineRegionResponder handles the response to the OfflineRegion request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) OfflineRegionSender Uses

func (client DatabaseAccountsClient) OfflineRegionSender(req *http.Request) (future DatabaseAccountsOfflineRegionFuture, err error)

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

func (DatabaseAccountsClient) OnlineRegion Uses

func (client DatabaseAccountsClient) OnlineRegion(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOnline RegionForOnlineOffline) (result DatabaseAccountsOnlineRegionFuture, err error)

OnlineRegion online the specified region for the specified Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. regionParameterForOnline - cosmos DB region to online for the database account.

func (DatabaseAccountsClient) OnlineRegionPreparer Uses

func (client DatabaseAccountsClient) OnlineRegionPreparer(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOnline RegionForOnlineOffline) (*http.Request, error)

OnlineRegionPreparer prepares the OnlineRegion request.

func (DatabaseAccountsClient) OnlineRegionResponder Uses

func (client DatabaseAccountsClient) OnlineRegionResponder(resp *http.Response) (result autorest.Response, err error)

OnlineRegionResponder handles the response to the OnlineRegion request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) OnlineRegionSender Uses

func (client DatabaseAccountsClient) OnlineRegionSender(req *http.Request) (future DatabaseAccountsOnlineRegionFuture, err error)

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

func (DatabaseAccountsClient) RegenerateKey Uses

func (client DatabaseAccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, keyToRegenerate DatabaseAccountRegenerateKeyParameters) (result DatabaseAccountsRegenerateKeyFuture, err error)

RegenerateKey regenerates an access key for the specified Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. keyToRegenerate - the name of the key to regenerate.

func (DatabaseAccountsClient) RegenerateKeyPreparer Uses

func (client DatabaseAccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, keyToRegenerate DatabaseAccountRegenerateKeyParameters) (*http.Request, error)

RegenerateKeyPreparer prepares the RegenerateKey request.

func (DatabaseAccountsClient) RegenerateKeyResponder Uses

func (client DatabaseAccountsClient) RegenerateKeyResponder(resp *http.Response) (result autorest.Response, err error)

RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.

func (DatabaseAccountsClient) RegenerateKeySender Uses

func (client DatabaseAccountsClient) RegenerateKeySender(req *http.Request) (future DatabaseAccountsRegenerateKeyFuture, err error)

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

func (DatabaseAccountsClient) Update Uses

func (client DatabaseAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, updateParameters DatabaseAccountUpdateParameters) (result DatabaseAccountsUpdateFuture, err error)

Update updates the properties of an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. updateParameters - the parameters to provide for the current database account.

func (DatabaseAccountsClient) UpdatePreparer Uses

func (client DatabaseAccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, updateParameters DatabaseAccountUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DatabaseAccountsClient) UpdateResponder Uses

func (client DatabaseAccountsClient) UpdateResponder(resp *http.Response) (result DatabaseAccountGetResults, err error)

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

func (DatabaseAccountsClient) UpdateSender Uses

func (client DatabaseAccountsClient) UpdateSender(req *http.Request) (future DatabaseAccountsUpdateFuture, err error)

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

type DatabaseAccountsCreateOrUpdateFuture Uses

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

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

type DatabaseAccountsDeleteFuture Uses

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

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

type DatabaseAccountsFailoverPriorityChangeFuture Uses

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

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

type DatabaseAccountsListResult Uses

type DatabaseAccountsListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of database account and their properties.
    Value *[]DatabaseAccountGetResults `json:"value,omitempty"`
}

DatabaseAccountsListResult the List operation response, that contains the database accounts and their properties.

type DatabaseAccountsOfflineRegionFuture Uses

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

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

type DatabaseAccountsOnlineRegionFuture Uses

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

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

type DatabaseAccountsRegenerateKeyFuture Uses

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

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

type DatabaseAccountsUpdateFuture Uses

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

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

type DatabaseClient Uses

type DatabaseClient struct {
    BaseClient
}

DatabaseClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewDatabaseClient Uses

func NewDatabaseClient(subscriptionID string) DatabaseClient

NewDatabaseClient creates an instance of the DatabaseClient client.

func NewDatabaseClientWithBaseURI Uses

func NewDatabaseClientWithBaseURI(baseURI string, subscriptionID string) DatabaseClient

NewDatabaseClientWithBaseURI creates an instance of the DatabaseClient 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 (DatabaseClient) ListMetricDefinitions Uses

func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result MetricDefinitionsListResult, err error)

ListMetricDefinitions retrieves metric definitions for the given database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.

func (DatabaseClient) ListMetricDefinitionsPreparer Uses

func (client DatabaseClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)

ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.

func (DatabaseClient) ListMetricDefinitionsResponder Uses

func (client DatabaseClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error)

ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always closes the http.Response Body.

func (DatabaseClient) ListMetricDefinitionsSender Uses

func (client DatabaseClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)

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

func (DatabaseClient) ListMetrics Uses

func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, filter string) (result MetricListResult, err error)

ListMetrics retrieves the metrics determined by the given filter for the given database account and database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

func (DatabaseClient) ListMetricsPreparer Uses

func (client DatabaseClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (DatabaseClient) ListMetricsResponder Uses

func (client DatabaseClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (DatabaseClient) ListMetricsSender Uses

func (client DatabaseClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

func (DatabaseClient) ListUsages Uses

func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, filter string) (result UsagesResult, err error)

ListUsages retrieves the usages (most recent data) for the given database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. filter - an OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).

func (DatabaseClient) ListUsagesPreparer Uses

func (client DatabaseClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, filter string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (DatabaseClient) ListUsagesResponder Uses

func (client DatabaseClient) ListUsagesResponder(resp *http.Response) (result UsagesResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (DatabaseClient) ListUsagesSender Uses

func (client DatabaseClient) ListUsagesSender(req *http.Request) (*http.Response, error)

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

type DefaultConsistencyLevel Uses

type DefaultConsistencyLevel string

DefaultConsistencyLevel enumerates the values for default consistency level.

const (
    // BoundedStaleness ...
    BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
    // ConsistentPrefix ...
    ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
    // Eventual ...
    Eventual DefaultConsistencyLevel = "Eventual"
    // Session ...
    Session DefaultConsistencyLevel = "Session"
    // Strong ...
    Strong DefaultConsistencyLevel = "Strong"
)

func PossibleDefaultConsistencyLevelValues Uses

func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel

PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.

type ErrorResponse Uses

type ErrorResponse struct {
    // Code - Error code.
    Code *string `json:"code,omitempty"`
    // Message - Error message indicating why the operation failed.
    Message *string `json:"message,omitempty"`
}

ErrorResponse error Response.

type ExcludedPath Uses

type ExcludedPath struct {
    // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
    Path *string `json:"path,omitempty"`
}

ExcludedPath ...

type ExtendedResourceProperties Uses

type ExtendedResourceProperties struct {
    // Rid - READ-ONLY; A system generated property. A unique identifier.
    Rid *string `json:"_rid,omitempty"`
    // Ts - READ-ONLY; A system generated property that denotes the last updated timestamp of the resource.
    Ts  interface{} `json:"_ts,omitempty"`
    // Etag - READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control.
    Etag *string `json:"_etag,omitempty"`
}

ExtendedResourceProperties the system generated resource properties associated with SQL databases, SQL containers, Gremlin databases and Gremlin graphs.

type FailoverPolicies Uses

type FailoverPolicies struct {
    // FailoverPolicies - List of failover policies.
    FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"`
}

FailoverPolicies the list of new failover policies for the failover priority change.

type FailoverPolicy Uses

type FailoverPolicy struct {
    // ID - READ-ONLY; The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>.
    ID  *string `json:"id,omitempty"`
    // LocationName - The name of the region in which the database account exists.
    LocationName *string `json:"locationName,omitempty"`
    // FailoverPriority - The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
    FailoverPriority *int32 `json:"failoverPriority,omitempty"`
}

FailoverPolicy the failover policy for a given region of a database account.

func (FailoverPolicy) MarshalJSON Uses

func (fp FailoverPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FailoverPolicy.

type GremlinDatabaseCreateUpdateParameters Uses

type GremlinDatabaseCreateUpdateParameters struct {
    // GremlinDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB Gremlin database.
    *GremlinDatabaseCreateUpdateProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

GremlinDatabaseCreateUpdateParameters parameters to create and update Cosmos DB Gremlin database.

func (GremlinDatabaseCreateUpdateParameters) MarshalJSON Uses

func (gdcup GremlinDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GremlinDatabaseCreateUpdateParameters.

func (*GremlinDatabaseCreateUpdateParameters) UnmarshalJSON Uses

func (gdcup *GremlinDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GremlinDatabaseCreateUpdateParameters struct.

type GremlinDatabaseCreateUpdateProperties Uses

type GremlinDatabaseCreateUpdateProperties struct {
    // Resource - The standard JSON format of a Gremlin database
    Resource *GremlinDatabaseResource `json:"resource,omitempty"`
    // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Options *CreateUpdateOptions `json:"options,omitempty"`
}

GremlinDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB Gremlin database.

type GremlinDatabaseGetProperties Uses

type GremlinDatabaseGetProperties struct {
    Resource *GremlinDatabaseGetPropertiesResource `json:"resource,omitempty"`
    Options  *GremlinDatabaseGetPropertiesOptions  `json:"options,omitempty"`
}

GremlinDatabaseGetProperties the properties of an Azure Cosmos DB SQL database

type GremlinDatabaseGetPropertiesOptions Uses

type GremlinDatabaseGetPropertiesOptions struct {
    // Throughput - Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    Throughput *int32 `json:"throughput,omitempty"`
    // AutoscaleSettings - Specifies the Autoscale settings.
    AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"`
}

GremlinDatabaseGetPropertiesOptions ...

type GremlinDatabaseGetPropertiesResource Uses

type GremlinDatabaseGetPropertiesResource struct {
    // ID - Name of the Cosmos DB Gremlin database
    ID  *string `json:"id,omitempty"`
    // Rid - READ-ONLY; A system generated property. A unique identifier.
    Rid *string `json:"_rid,omitempty"`
    // Ts - READ-ONLY; A system generated property that denotes the last updated timestamp of the resource.
    Ts  interface{} `json:"_ts,omitempty"`
    // Etag - READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control.
    Etag *string `json:"_etag,omitempty"`
}

GremlinDatabaseGetPropertiesResource ...

func (GremlinDatabaseGetPropertiesResource) MarshalJSON Uses

func (gdgp GremlinDatabaseGetPropertiesResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GremlinDatabaseGetPropertiesResource.

type GremlinDatabaseGetResults Uses

type GremlinDatabaseGetResults struct {
    autorest.Response `json:"-"`
    // GremlinDatabaseGetProperties - The properties of an Azure Cosmos DB SQL database
    *GremlinDatabaseGetProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

GremlinDatabaseGetResults an Azure Cosmos DB Gremlin database.

func (GremlinDatabaseGetResults) MarshalJSON Uses

func (gdgr GremlinDatabaseGetResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GremlinDatabaseGetResults.

func (*GremlinDatabaseGetResults) UnmarshalJSON Uses

func (gdgr *GremlinDatabaseGetResults) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GremlinDatabaseGetResults struct.

type GremlinDatabaseListResult Uses

type GremlinDatabaseListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of Gremlin databases and their properties.
    Value *[]GremlinDatabaseGetResults `json:"value,omitempty"`
}

GremlinDatabaseListResult the List operation response, that contains the Gremlin databases and their properties.

type GremlinDatabaseResource Uses

type GremlinDatabaseResource struct {
    // ID - Name of the Cosmos DB Gremlin database
    ID *string `json:"id,omitempty"`
}

GremlinDatabaseResource cosmos DB Gremlin database resource object

type GremlinGraphCreateUpdateParameters Uses

type GremlinGraphCreateUpdateParameters struct {
    // GremlinGraphCreateUpdateProperties - Properties to create and update Azure Cosmos DB Gremlin graph.
    *GremlinGraphCreateUpdateProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

GremlinGraphCreateUpdateParameters parameters to create and update Cosmos DB Gremlin graph.

func (GremlinGraphCreateUpdateParameters) MarshalJSON Uses

func (ggcup GremlinGraphCreateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GremlinGraphCreateUpdateParameters.

func (*GremlinGraphCreateUpdateParameters) UnmarshalJSON Uses

func (ggcup *GremlinGraphCreateUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GremlinGraphCreateUpdateParameters struct.

type GremlinGraphCreateUpdateProperties Uses

type GremlinGraphCreateUpdateProperties struct {
    // Resource - The standard JSON format of a Gremlin graph
    Resource *GremlinGraphResource `json:"resource,omitempty"`
    // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Options *CreateUpdateOptions `json:"options,omitempty"`
}

GremlinGraphCreateUpdateProperties properties to create and update Azure Cosmos DB Gremlin graph.

type GremlinGraphGetProperties Uses

type GremlinGraphGetProperties struct {
    Resource *GremlinGraphGetPropertiesResource `json:"resource,omitempty"`
    Options  *GremlinGraphGetPropertiesOptions  `json:"options,omitempty"`
}

GremlinGraphGetProperties the properties of an Azure Cosmos DB Gremlin graph

type GremlinGraphGetPropertiesOptions Uses

type GremlinGraphGetPropertiesOptions struct {
    // Throughput - Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    Throughput *int32 `json:"throughput,omitempty"`
    // AutoscaleSettings - Specifies the Autoscale settings.
    AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"`
}

GremlinGraphGetPropertiesOptions ...

type GremlinGraphGetPropertiesResource Uses

type GremlinGraphGetPropertiesResource struct {
    // ID - Name of the Cosmos DB Gremlin graph
    ID  *string `json:"id,omitempty"`
    // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph
    IndexingPolicy *IndexingPolicy `json:"indexingPolicy,omitempty"`
    // PartitionKey - The configuration of the partition key to be used for partitioning data into multiple partitions
    PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"`
    // DefaultTTL - Default time to live
    DefaultTTL *int32 `json:"defaultTtl,omitempty"`
    // UniqueKeyPolicy - The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
    UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"`
    // ConflictResolutionPolicy - The conflict resolution policy for the graph.
    ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"`
    // Rid - READ-ONLY; A system generated property. A unique identifier.
    Rid *string `json:"_rid,omitempty"`
    // Ts - READ-ONLY; A system generated property that denotes the last updated timestamp of the resource.
    Ts  interface{} `json:"_ts,omitempty"`
    // Etag - READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control.
    Etag *string `json:"_etag,omitempty"`
}

GremlinGraphGetPropertiesResource ...

func (GremlinGraphGetPropertiesResource) MarshalJSON Uses

func (gggp GremlinGraphGetPropertiesResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GremlinGraphGetPropertiesResource.

type GremlinGraphGetResults Uses

type GremlinGraphGetResults struct {
    autorest.Response `json:"-"`
    // GremlinGraphGetProperties - The properties of an Azure Cosmos DB Gremlin graph
    *GremlinGraphGetProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

GremlinGraphGetResults an Azure Cosmos DB Gremlin graph.

func (GremlinGraphGetResults) MarshalJSON Uses

func (gggr GremlinGraphGetResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GremlinGraphGetResults.

func (*GremlinGraphGetResults) UnmarshalJSON Uses

func (gggr *GremlinGraphGetResults) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GremlinGraphGetResults struct.

type GremlinGraphListResult Uses

type GremlinGraphListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of graphs and their properties.
    Value *[]GremlinGraphGetResults `json:"value,omitempty"`
}

GremlinGraphListResult the List operation response, that contains the graphs and their properties.

type GremlinGraphResource Uses

type GremlinGraphResource struct {
    // ID - Name of the Cosmos DB Gremlin graph
    ID  *string `json:"id,omitempty"`
    // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph
    IndexingPolicy *IndexingPolicy `json:"indexingPolicy,omitempty"`
    // PartitionKey - The configuration of the partition key to be used for partitioning data into multiple partitions
    PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"`
    // DefaultTTL - Default time to live
    DefaultTTL *int32 `json:"defaultTtl,omitempty"`
    // UniqueKeyPolicy - The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
    UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"`
    // ConflictResolutionPolicy - The conflict resolution policy for the graph.
    ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"`
}

GremlinGraphResource cosmos DB Gremlin graph resource object

type GremlinResourcesClient Uses

type GremlinResourcesClient struct {
    BaseClient
}

GremlinResourcesClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewGremlinResourcesClient Uses

func NewGremlinResourcesClient(subscriptionID string) GremlinResourcesClient

NewGremlinResourcesClient creates an instance of the GremlinResourcesClient client.

func NewGremlinResourcesClientWithBaseURI Uses

func NewGremlinResourcesClientWithBaseURI(baseURI string, subscriptionID string) GremlinResourcesClient

NewGremlinResourcesClientWithBaseURI creates an instance of the GremlinResourcesClient 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 (GremlinResourcesClient) CreateUpdateGremlinDatabase Uses

func (client GremlinResourcesClient) CreateUpdateGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters) (result GremlinResourcesCreateUpdateGremlinDatabaseFuture, err error)

CreateUpdateGremlinDatabase create or update an Azure Cosmos DB Gremlin database Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. createUpdateGremlinDatabaseParameters - the parameters to provide for the current Gremlin database.

func (GremlinResourcesClient) CreateUpdateGremlinDatabasePreparer Uses

func (client GremlinResourcesClient) CreateUpdateGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters) (*http.Request, error)

CreateUpdateGremlinDatabasePreparer prepares the CreateUpdateGremlinDatabase request.

func (GremlinResourcesClient) CreateUpdateGremlinDatabaseResponder Uses

func (client GremlinResourcesClient) CreateUpdateGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabaseGetResults, err error)

CreateUpdateGremlinDatabaseResponder handles the response to the CreateUpdateGremlinDatabase request. The method always closes the http.Response Body.

func (GremlinResourcesClient) CreateUpdateGremlinDatabaseSender Uses

func (client GremlinResourcesClient) CreateUpdateGremlinDatabaseSender(req *http.Request) (future GremlinResourcesCreateUpdateGremlinDatabaseFuture, err error)

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

func (GremlinResourcesClient) CreateUpdateGremlinGraph Uses

func (client GremlinResourcesClient) CreateUpdateGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, createUpdateGremlinGraphParameters GremlinGraphCreateUpdateParameters) (result GremlinResourcesCreateUpdateGremlinGraphFuture, err error)

CreateUpdateGremlinGraph create or update an Azure Cosmos DB Gremlin graph Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. graphName - cosmos DB graph name. createUpdateGremlinGraphParameters - the parameters to provide for the current Gremlin graph.

func (GremlinResourcesClient) CreateUpdateGremlinGraphPreparer Uses

func (client GremlinResourcesClient) CreateUpdateGremlinGraphPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, createUpdateGremlinGraphParameters GremlinGraphCreateUpdateParameters) (*http.Request, error)

CreateUpdateGremlinGraphPreparer prepares the CreateUpdateGremlinGraph request.

func (GremlinResourcesClient) CreateUpdateGremlinGraphResponder Uses

func (client GremlinResourcesClient) CreateUpdateGremlinGraphResponder(resp *http.Response) (result GremlinGraphGetResults, err error)

CreateUpdateGremlinGraphResponder handles the response to the CreateUpdateGremlinGraph request. The method always closes the http.Response Body.

func (GremlinResourcesClient) CreateUpdateGremlinGraphSender Uses

func (client GremlinResourcesClient) CreateUpdateGremlinGraphSender(req *http.Request) (future GremlinResourcesCreateUpdateGremlinGraphFuture, err error)

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

func (GremlinResourcesClient) DeleteGremlinDatabase Uses

func (client GremlinResourcesClient) DeleteGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result GremlinResourcesDeleteGremlinDatabaseFuture, err error)

DeleteGremlinDatabase deletes an existing Azure Cosmos DB Gremlin database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (GremlinResourcesClient) DeleteGremlinDatabasePreparer Uses

func (client GremlinResourcesClient) DeleteGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

DeleteGremlinDatabasePreparer prepares the DeleteGremlinDatabase request.

func (GremlinResourcesClient) DeleteGremlinDatabaseResponder Uses

func (client GremlinResourcesClient) DeleteGremlinDatabaseResponder(resp *http.Response) (result autorest.Response, err error)

DeleteGremlinDatabaseResponder handles the response to the DeleteGremlinDatabase request. The method always closes the http.Response Body.

func (GremlinResourcesClient) DeleteGremlinDatabaseSender Uses

func (client GremlinResourcesClient) DeleteGremlinDatabaseSender(req *http.Request) (future GremlinResourcesDeleteGremlinDatabaseFuture, err error)

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

func (GremlinResourcesClient) DeleteGremlinGraph Uses

func (client GremlinResourcesClient) DeleteGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (result GremlinResourcesDeleteGremlinGraphFuture, err error)

DeleteGremlinGraph deletes an existing Azure Cosmos DB Gremlin graph. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. graphName - cosmos DB graph name.

func (GremlinResourcesClient) DeleteGremlinGraphPreparer Uses

func (client GremlinResourcesClient) DeleteGremlinGraphPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (*http.Request, error)

DeleteGremlinGraphPreparer prepares the DeleteGremlinGraph request.

func (GremlinResourcesClient) DeleteGremlinGraphResponder Uses

func (client GremlinResourcesClient) DeleteGremlinGraphResponder(resp *http.Response) (result autorest.Response, err error)

DeleteGremlinGraphResponder handles the response to the DeleteGremlinGraph request. The method always closes the http.Response Body.

func (GremlinResourcesClient) DeleteGremlinGraphSender Uses

func (client GremlinResourcesClient) DeleteGremlinGraphSender(req *http.Request) (future GremlinResourcesDeleteGremlinGraphFuture, err error)

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

func (GremlinResourcesClient) GetGremlinDatabase Uses

func (client GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result GremlinDatabaseGetResults, err error)

GetGremlinDatabase gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (GremlinResourcesClient) GetGremlinDatabasePreparer Uses

func (client GremlinResourcesClient) GetGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

GetGremlinDatabasePreparer prepares the GetGremlinDatabase request.

func (GremlinResourcesClient) GetGremlinDatabaseResponder Uses

func (client GremlinResourcesClient) GetGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabaseGetResults, err error)

GetGremlinDatabaseResponder handles the response to the GetGremlinDatabase request. The method always closes the http.Response Body.

func (GremlinResourcesClient) GetGremlinDatabaseSender Uses

func (client GremlinResourcesClient) GetGremlinDatabaseSender(req *http.Request) (*http.Response, error)

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

func (GremlinResourcesClient) GetGremlinDatabaseThroughput Uses

func (client GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result ThroughputSettingsGetResults, err error)

GetGremlinDatabaseThroughput gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (GremlinResourcesClient) GetGremlinDatabaseThroughputPreparer Uses

func (client GremlinResourcesClient) GetGremlinDatabaseThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

GetGremlinDatabaseThroughputPreparer prepares the GetGremlinDatabaseThroughput request.

func (GremlinResourcesClient) GetGremlinDatabaseThroughputResponder Uses

func (client GremlinResourcesClient) GetGremlinDatabaseThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

GetGremlinDatabaseThroughputResponder handles the response to the GetGremlinDatabaseThroughput request. The method always closes the http.Response Body.

func (GremlinResourcesClient) GetGremlinDatabaseThroughputSender Uses

func (client GremlinResourcesClient) GetGremlinDatabaseThroughputSender(req *http.Request) (*http.Response, error)

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

func (GremlinResourcesClient) GetGremlinGraph Uses

func (client GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (result GremlinGraphGetResults, err error)

GetGremlinGraph gets the Gremlin graph under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. graphName - cosmos DB graph name.

func (GremlinResourcesClient) GetGremlinGraphPreparer Uses

func (client GremlinResourcesClient) GetGremlinGraphPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (*http.Request, error)

GetGremlinGraphPreparer prepares the GetGremlinGraph request.

func (GremlinResourcesClient) GetGremlinGraphResponder Uses

func (client GremlinResourcesClient) GetGremlinGraphResponder(resp *http.Response) (result GremlinGraphGetResults, err error)

GetGremlinGraphResponder handles the response to the GetGremlinGraph request. The method always closes the http.Response Body.

func (GremlinResourcesClient) GetGremlinGraphSender Uses

func (client GremlinResourcesClient) GetGremlinGraphSender(req *http.Request) (*http.Response, error)

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

func (GremlinResourcesClient) GetGremlinGraphThroughput Uses

func (client GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (result ThroughputSettingsGetResults, err error)

GetGremlinGraphThroughput gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. graphName - cosmos DB graph name.

func (GremlinResourcesClient) GetGremlinGraphThroughputPreparer Uses

func (client GremlinResourcesClient) GetGremlinGraphThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (*http.Request, error)

GetGremlinGraphThroughputPreparer prepares the GetGremlinGraphThroughput request.

func (GremlinResourcesClient) GetGremlinGraphThroughputResponder Uses

func (client GremlinResourcesClient) GetGremlinGraphThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

GetGremlinGraphThroughputResponder handles the response to the GetGremlinGraphThroughput request. The method always closes the http.Response Body.

func (GremlinResourcesClient) GetGremlinGraphThroughputSender Uses

func (client GremlinResourcesClient) GetGremlinGraphThroughputSender(req *http.Request) (*http.Response, error)

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

func (GremlinResourcesClient) ListGremlinDatabases Uses

func (client GremlinResourcesClient) ListGremlinDatabases(ctx context.Context, resourceGroupName string, accountName string) (result GremlinDatabaseListResult, err error)

ListGremlinDatabases lists the Gremlin databases under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (GremlinResourcesClient) ListGremlinDatabasesPreparer Uses

func (client GremlinResourcesClient) ListGremlinDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListGremlinDatabasesPreparer prepares the ListGremlinDatabases request.

func (GremlinResourcesClient) ListGremlinDatabasesResponder Uses

func (client GremlinResourcesClient) ListGremlinDatabasesResponder(resp *http.Response) (result GremlinDatabaseListResult, err error)

ListGremlinDatabasesResponder handles the response to the ListGremlinDatabases request. The method always closes the http.Response Body.

func (GremlinResourcesClient) ListGremlinDatabasesSender Uses

func (client GremlinResourcesClient) ListGremlinDatabasesSender(req *http.Request) (*http.Response, error)

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

func (GremlinResourcesClient) ListGremlinGraphs Uses

func (client GremlinResourcesClient) ListGremlinGraphs(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result GremlinGraphListResult, err error)

ListGremlinGraphs lists the Gremlin graph under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (GremlinResourcesClient) ListGremlinGraphsPreparer Uses

func (client GremlinResourcesClient) ListGremlinGraphsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

ListGremlinGraphsPreparer prepares the ListGremlinGraphs request.

func (GremlinResourcesClient) ListGremlinGraphsResponder Uses

func (client GremlinResourcesClient) ListGremlinGraphsResponder(resp *http.Response) (result GremlinGraphListResult, err error)

ListGremlinGraphsResponder handles the response to the ListGremlinGraphs request. The method always closes the http.Response Body.

func (GremlinResourcesClient) ListGremlinGraphsSender Uses

func (client GremlinResourcesClient) ListGremlinGraphsSender(req *http.Request) (*http.Response, error)

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

func (GremlinResourcesClient) MigrateGremlinDatabaseToAutoscale Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result GremlinResourcesMigrateGremlinDatabaseToAutoscaleFuture, err error)

MigrateGremlinDatabaseToAutoscale migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (GremlinResourcesClient) MigrateGremlinDatabaseToAutoscalePreparer Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToAutoscalePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

MigrateGremlinDatabaseToAutoscalePreparer prepares the MigrateGremlinDatabaseToAutoscale request.

func (GremlinResourcesClient) MigrateGremlinDatabaseToAutoscaleResponder Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToAutoscaleResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateGremlinDatabaseToAutoscaleResponder handles the response to the MigrateGremlinDatabaseToAutoscale request. The method always closes the http.Response Body.

func (GremlinResourcesClient) MigrateGremlinDatabaseToAutoscaleSender Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToAutoscaleSender(req *http.Request) (future GremlinResourcesMigrateGremlinDatabaseToAutoscaleFuture, err error)

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

func (GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughput Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result GremlinResourcesMigrateGremlinDatabaseToManualThroughputFuture, err error)

MigrateGremlinDatabaseToManualThroughput migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughputPreparer Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

MigrateGremlinDatabaseToManualThroughputPreparer prepares the MigrateGremlinDatabaseToManualThroughput request.

func (GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughputResponder Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateGremlinDatabaseToManualThroughputResponder handles the response to the MigrateGremlinDatabaseToManualThroughput request. The method always closes the http.Response Body.

func (GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughputSender Uses

func (client GremlinResourcesClient) MigrateGremlinDatabaseToManualThroughputSender(req *http.Request) (future GremlinResourcesMigrateGremlinDatabaseToManualThroughputFuture, err error)

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

func (GremlinResourcesClient) MigrateGremlinGraphToAutoscale Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (result GremlinResourcesMigrateGremlinGraphToAutoscaleFuture, err error)

MigrateGremlinGraphToAutoscale migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. graphName - cosmos DB graph name.

func (GremlinResourcesClient) MigrateGremlinGraphToAutoscalePreparer Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToAutoscalePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (*http.Request, error)

MigrateGremlinGraphToAutoscalePreparer prepares the MigrateGremlinGraphToAutoscale request.

func (GremlinResourcesClient) MigrateGremlinGraphToAutoscaleResponder Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToAutoscaleResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateGremlinGraphToAutoscaleResponder handles the response to the MigrateGremlinGraphToAutoscale request. The method always closes the http.Response Body.

func (GremlinResourcesClient) MigrateGremlinGraphToAutoscaleSender Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToAutoscaleSender(req *http.Request) (future GremlinResourcesMigrateGremlinGraphToAutoscaleFuture, err error)

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

func (GremlinResourcesClient) MigrateGremlinGraphToManualThroughput Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (result GremlinResourcesMigrateGremlinGraphToManualThroughputFuture, err error)

MigrateGremlinGraphToManualThroughput migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. graphName - cosmos DB graph name.

func (GremlinResourcesClient) MigrateGremlinGraphToManualThroughputPreparer Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToManualThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (*http.Request, error)

MigrateGremlinGraphToManualThroughputPreparer prepares the MigrateGremlinGraphToManualThroughput request.

func (GremlinResourcesClient) MigrateGremlinGraphToManualThroughputResponder Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToManualThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateGremlinGraphToManualThroughputResponder handles the response to the MigrateGremlinGraphToManualThroughput request. The method always closes the http.Response Body.

func (GremlinResourcesClient) MigrateGremlinGraphToManualThroughputSender Uses

func (client GremlinResourcesClient) MigrateGremlinGraphToManualThroughputSender(req *http.Request) (future GremlinResourcesMigrateGremlinGraphToManualThroughputFuture, err error)

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

func (GremlinResourcesClient) UpdateGremlinDatabaseThroughput Uses

func (client GremlinResourcesClient) UpdateGremlinDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (result GremlinResourcesUpdateGremlinDatabaseThroughputFuture, err error)

UpdateGremlinDatabaseThroughput update RUs per second of an Azure Cosmos DB Gremlin database Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. updateThroughputParameters - the RUs per second of the parameters to provide for the current Gremlin database.

func (GremlinResourcesClient) UpdateGremlinDatabaseThroughputPreparer Uses

func (client GremlinResourcesClient) UpdateGremlinDatabaseThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (*http.Request, error)

UpdateGremlinDatabaseThroughputPreparer prepares the UpdateGremlinDatabaseThroughput request.

func (GremlinResourcesClient) UpdateGremlinDatabaseThroughputResponder Uses

func (client GremlinResourcesClient) UpdateGremlinDatabaseThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

UpdateGremlinDatabaseThroughputResponder handles the response to the UpdateGremlinDatabaseThroughput request. The method always closes the http.Response Body.

func (GremlinResourcesClient) UpdateGremlinDatabaseThroughputSender Uses

func (client GremlinResourcesClient) UpdateGremlinDatabaseThroughputSender(req *http.Request) (future GremlinResourcesUpdateGremlinDatabaseThroughputFuture, err error)

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

func (GremlinResourcesClient) UpdateGremlinGraphThroughput Uses

func (client GremlinResourcesClient) UpdateGremlinGraphThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (result GremlinResourcesUpdateGremlinGraphThroughputFuture, err error)

UpdateGremlinGraphThroughput update RUs per second of an Azure Cosmos DB Gremlin graph Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. graphName - cosmos DB graph name. updateThroughputParameters - the RUs per second of the parameters to provide for the current Gremlin graph.

func (GremlinResourcesClient) UpdateGremlinGraphThroughputPreparer Uses

func (client GremlinResourcesClient) UpdateGremlinGraphThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, updateThroughputParameters ThroughputSettingsUpdateParameters) (*http.Request, error)

UpdateGremlinGraphThroughputPreparer prepares the UpdateGremlinGraphThroughput request.

func (GremlinResourcesClient) UpdateGremlinGraphThroughputResponder Uses

func (client GremlinResourcesClient) UpdateGremlinGraphThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

UpdateGremlinGraphThroughputResponder handles the response to the UpdateGremlinGraphThroughput request. The method always closes the http.Response Body.

func (GremlinResourcesClient) UpdateGremlinGraphThroughputSender Uses

func (client GremlinResourcesClient) UpdateGremlinGraphThroughputSender(req *http.Request) (future GremlinResourcesUpdateGremlinGraphThroughputFuture, err error)

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

type GremlinResourcesCreateUpdateGremlinDatabaseFuture Uses

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

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

type GremlinResourcesCreateUpdateGremlinGraphFuture Uses

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

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

type GremlinResourcesDeleteGremlinDatabaseFuture Uses

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

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

type GremlinResourcesDeleteGremlinGraphFuture Uses

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

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

type GremlinResourcesMigrateGremlinDatabaseToAutoscaleFuture Uses

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

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

type GremlinResourcesMigrateGremlinDatabaseToManualThroughputFuture Uses

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

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

type GremlinResourcesMigrateGremlinGraphToAutoscaleFuture Uses

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

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

type GremlinResourcesMigrateGremlinGraphToManualThroughputFuture Uses

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

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

type GremlinResourcesUpdateGremlinDatabaseThroughputFuture Uses

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

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

type GremlinResourcesUpdateGremlinGraphThroughputFuture Uses

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

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

type IPAddressOrRange Uses

type IPAddressOrRange struct {
    // IPAddressOrRange - A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.
    IPAddressOrRange *string `json:"ipAddressOrRange,omitempty"`
}

IPAddressOrRange ipAddressOrRange object

type IncludedPath Uses

type IncludedPath struct {
    // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
    Path *string `json:"path,omitempty"`
    // Indexes - List of indexes for this path
    Indexes *[]Indexes `json:"indexes,omitempty"`
}

IncludedPath the paths that are included in indexing

type IndexKind Uses

type IndexKind string

IndexKind enumerates the values for index kind.

const (
    // Hash ...
    Hash IndexKind = "Hash"
    // Range ...
    Range IndexKind = "Range"
    // Spatial ...
    Spatial IndexKind = "Spatial"
)

func PossibleIndexKindValues Uses

func PossibleIndexKindValues() []IndexKind

PossibleIndexKindValues returns an array of possible values for the IndexKind const type.

type Indexes Uses

type Indexes struct {
    // DataType - The datatype for which the indexing behavior is applied to. Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon'
    DataType DataType `json:"dataType,omitempty"`
    // Precision - The precision of the index. -1 is maximum precision.
    Precision *int32 `json:"precision,omitempty"`
    // Kind - Indicates the type of index. Possible values include: 'Hash', 'Range', 'Spatial'
    Kind IndexKind `json:"kind,omitempty"`
}

Indexes the indexes for the path.

type IndexingMode Uses

type IndexingMode string

IndexingMode enumerates the values for indexing mode.

const (
    // Consistent ...
    Consistent IndexingMode = "Consistent"
    // Lazy ...
    Lazy IndexingMode = "Lazy"
    // None ...
    None IndexingMode = "None"
)

func PossibleIndexingModeValues Uses

func PossibleIndexingModeValues() []IndexingMode

PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.

type IndexingPolicy Uses

type IndexingPolicy struct {
    // Automatic - Indicates if the indexing policy is automatic
    Automatic *bool `json:"automatic,omitempty"`
    // IndexingMode - Indicates the indexing mode. Possible values include: 'Consistent', 'Lazy', 'None'
    IndexingMode IndexingMode `json:"indexingMode,omitempty"`
    // IncludedPaths - List of paths to include in the indexing
    IncludedPaths *[]IncludedPath `json:"includedPaths,omitempty"`
    // ExcludedPaths - List of paths to exclude from indexing
    ExcludedPaths *[]ExcludedPath `json:"excludedPaths,omitempty"`
    // CompositeIndexes - List of composite path list
    CompositeIndexes *[][]CompositePath `json:"compositeIndexes,omitempty"`
    // SpatialIndexes - List of spatial specifics
    SpatialIndexes *[]SpatialSpec `json:"spatialIndexes,omitempty"`
}

IndexingPolicy cosmos DB indexing policy

type KeyKind Uses

type KeyKind string

KeyKind enumerates the values for key kind.

const (
    // Primary ...
    Primary KeyKind = "primary"
    // PrimaryReadonly ...
    PrimaryReadonly KeyKind = "primaryReadonly"
    // Secondary ...
    Secondary KeyKind = "secondary"
    // SecondaryReadonly ...
    SecondaryReadonly KeyKind = "secondaryReadonly"
)

func PossibleKeyKindValues Uses

func PossibleKeyKindValues() []KeyKind

PossibleKeyKindValues returns an array of possible values for the KeyKind const type.

type Location Uses

type Location struct {
    // ID - READ-ONLY; The unique identifier of the region within the database account. Example: <accountName>-<locationName>.
    ID  *string `json:"id,omitempty"`
    // LocationName - The name of the region.
    LocationName *string `json:"locationName,omitempty"`
    // DocumentEndpoint - READ-ONLY; The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/
    DocumentEndpoint  *string `json:"documentEndpoint,omitempty"`
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // FailoverPriority - The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
    FailoverPriority *int32 `json:"failoverPriority,omitempty"`
    // IsZoneRedundant - Flag to indicate whether or not this region is an AvailabilityZone region
    IsZoneRedundant *bool `json:"isZoneRedundant,omitempty"`
}

Location a region in which the Azure Cosmos DB database account is deployed.

func (Location) MarshalJSON Uses

func (l Location) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Location.

type Metric Uses

type Metric struct {
    // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format).
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - READ-ONLY; The end time for the metric (ISO-8601 format).
    EndTime *date.Time `json:"endTime,omitempty"`
    // TimeGrain - READ-ONLY; The time grain to be used to summarize the metric values.
    TimeGrain *string `json:"timeGrain,omitempty"`
    // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
    Unit UnitType `json:"unit,omitempty"`
    // Name - READ-ONLY; The name information for the metric.
    Name *MetricName `json:"name,omitempty"`
    // MetricValues - READ-ONLY; The metric values for the specified time window and timestep.
    MetricValues *[]MetricValue `json:"metricValues,omitempty"`
}

Metric metric data

func (Metric) MarshalJSON Uses

func (mVar Metric) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Metric.

type MetricAvailability Uses

type MetricAvailability struct {
    // TimeGrain - READ-ONLY; The time grain to be used to summarize the metric values.
    TimeGrain *string `json:"timeGrain,omitempty"`
    // Retention - READ-ONLY; The retention for the metric values.
    Retention *string `json:"retention,omitempty"`
}

MetricAvailability the availability of the metric.

type MetricDefinition Uses

type MetricDefinition struct {
    // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account.
    MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"`
    // PrimaryAggregationType - READ-ONLY; The primary aggregation type of the metric. Possible values include: 'PrimaryAggregationTypeNone', 'PrimaryAggregationTypeAverage', 'PrimaryAggregationTypeTotal', 'PrimaryAggregationTypeMinimum', 'PrimaryAggregationTypeMaximum', 'PrimaryAggregationTypeLast'
    PrimaryAggregationType PrimaryAggregationType `json:"primaryAggregationType,omitempty"`
    // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
    Unit UnitType `json:"unit,omitempty"`
    // ResourceURI - READ-ONLY; The resource uri of the database.
    ResourceURI *string `json:"resourceUri,omitempty"`
    // Name - READ-ONLY; The name information for the metric.
    Name *MetricName `json:"name,omitempty"`
}

MetricDefinition the definition of a metric.

func (MetricDefinition) MarshalJSON Uses

func (md MetricDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MetricDefinition.

type MetricDefinitionsListResult Uses

type MetricDefinitionsListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The list of metric definitions for the account.
    Value *[]MetricDefinition `json:"value,omitempty"`
}

MetricDefinitionsListResult the response to a list metric definitions request.

type MetricListResult Uses

type MetricListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The list of metrics for the account.
    Value *[]Metric `json:"value,omitempty"`
}

MetricListResult the response to a list metrics request.

type MetricName Uses

type MetricName struct {
    // Value - READ-ONLY; The name of the metric.
    Value *string `json:"value,omitempty"`
    // LocalizedValue - READ-ONLY; The friendly name of the metric.
    LocalizedValue *string `json:"localizedValue,omitempty"`
}

MetricName a metric name.

type MetricValue Uses

type MetricValue struct {
    // Count - READ-ONLY; The number of values for the metric.
    Count *float64 `json:"_count,omitempty"`
    // Average - READ-ONLY; The average value of the metric.
    Average *float64 `json:"average,omitempty"`
    // Maximum - READ-ONLY; The max value of the metric.
    Maximum *float64 `json:"maximum,omitempty"`
    // Minimum - READ-ONLY; The min value of the metric.
    Minimum *float64 `json:"minimum,omitempty"`
    // Timestamp - READ-ONLY; The metric timestamp (ISO-8601 format).
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // Total - READ-ONLY; The total value of the metric.
    Total *float64 `json:"total,omitempty"`
}

MetricValue represents metrics values.

type MongoDBCollectionCreateUpdateParameters Uses

type MongoDBCollectionCreateUpdateParameters struct {
    // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection.
    *MongoDBCollectionCreateUpdateProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection.

func (MongoDBCollectionCreateUpdateParameters) MarshalJSON Uses

func (mdccup MongoDBCollectionCreateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MongoDBCollectionCreateUpdateParameters.

func (*MongoDBCollectionCreateUpdateParameters) UnmarshalJSON Uses

func (mdccup *MongoDBCollectionCreateUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MongoDBCollectionCreateUpdateParameters struct.

type MongoDBCollectionCreateUpdateProperties Uses

type MongoDBCollectionCreateUpdateProperties struct {
    // Resource - The standard JSON format of a MongoDB collection
    Resource *MongoDBCollectionResource `json:"resource,omitempty"`
    // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Options *CreateUpdateOptions `json:"options,omitempty"`
}

MongoDBCollectionCreateUpdateProperties properties to create and update Azure Cosmos DB MongoDB collection.

type MongoDBCollectionGetProperties Uses

type MongoDBCollectionGetProperties struct {
    Resource *MongoDBCollectionGetPropertiesResource `json:"resource,omitempty"`
    Options  *MongoDBCollectionGetPropertiesOptions  `json:"options,omitempty"`
}

MongoDBCollectionGetProperties the properties of an Azure Cosmos DB MongoDB collection

type MongoDBCollectionGetPropertiesOptions Uses

type MongoDBCollectionGetPropertiesOptions struct {
    // Throughput - Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    Throughput *int32 `json:"throughput,omitempty"`
    // AutoscaleSettings - Specifies the Autoscale settings.
    AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"`
}

MongoDBCollectionGetPropertiesOptions ...

type MongoDBCollectionGetPropertiesResource Uses

type MongoDBCollectionGetPropertiesResource struct {
    // ID - Name of the Cosmos DB MongoDB collection
    ID  *string `json:"id,omitempty"`
    // ShardKey - A key-value pair of shard keys to be applied for the request.
    ShardKey map[string]*string `json:"shardKey"`
    // Indexes - List of index keys
    Indexes *[]MongoIndex `json:"indexes,omitempty"`
    // AnalyticalStorageTTL - Analytical TTL.
    AnalyticalStorageTTL *int32 `json:"analyticalStorageTtl,omitempty"`
    // Rid - READ-ONLY; A system generated property. A unique identifier.
    Rid *string `json:"_rid,omitempty"`
    // Ts - READ-ONLY; A system generated property that denotes the last updated timestamp of the resource.
    Ts  interface{} `json:"_ts,omitempty"`
    // Etag - READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control.
    Etag *string `json:"_etag,omitempty"`
}

MongoDBCollectionGetPropertiesResource ...

func (MongoDBCollectionGetPropertiesResource) MarshalJSON Uses

func (mdcgp MongoDBCollectionGetPropertiesResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MongoDBCollectionGetPropertiesResource.

type MongoDBCollectionGetResults Uses

type MongoDBCollectionGetResults struct {
    autorest.Response `json:"-"`
    // MongoDBCollectionGetProperties - The properties of an Azure Cosmos DB MongoDB collection
    *MongoDBCollectionGetProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

MongoDBCollectionGetResults an Azure Cosmos DB MongoDB collection.

func (MongoDBCollectionGetResults) MarshalJSON Uses

func (mdcgr MongoDBCollectionGetResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MongoDBCollectionGetResults.

func (*MongoDBCollectionGetResults) UnmarshalJSON Uses

func (mdcgr *MongoDBCollectionGetResults) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MongoDBCollectionGetResults struct.

type MongoDBCollectionListResult Uses

type MongoDBCollectionListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of MongoDB collections and their properties.
    Value *[]MongoDBCollectionGetResults `json:"value,omitempty"`
}

MongoDBCollectionListResult the List operation response, that contains the MongoDB collections and their properties.

type MongoDBCollectionResource Uses

type MongoDBCollectionResource struct {
    // ID - Name of the Cosmos DB MongoDB collection
    ID  *string `json:"id,omitempty"`
    // ShardKey - A key-value pair of shard keys to be applied for the request.
    ShardKey map[string]*string `json:"shardKey"`
    // Indexes - List of index keys
    Indexes *[]MongoIndex `json:"indexes,omitempty"`
    // AnalyticalStorageTTL - Analytical TTL.
    AnalyticalStorageTTL *int32 `json:"analyticalStorageTtl,omitempty"`
}

MongoDBCollectionResource cosmos DB MongoDB collection resource object

func (MongoDBCollectionResource) MarshalJSON Uses

func (mdcr MongoDBCollectionResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MongoDBCollectionResource.

type MongoDBDatabaseCreateUpdateParameters Uses

type MongoDBDatabaseCreateUpdateParameters struct {
    // MongoDBDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB database.
    *MongoDBDatabaseCreateUpdateProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

MongoDBDatabaseCreateUpdateParameters parameters to create and update Cosmos DB MongoDB database.

func (MongoDBDatabaseCreateUpdateParameters) MarshalJSON Uses

func (mddcup MongoDBDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MongoDBDatabaseCreateUpdateParameters.

func (*MongoDBDatabaseCreateUpdateParameters) UnmarshalJSON Uses

func (mddcup *MongoDBDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MongoDBDatabaseCreateUpdateParameters struct.

type MongoDBDatabaseCreateUpdateProperties Uses

type MongoDBDatabaseCreateUpdateProperties struct {
    // Resource - The standard JSON format of a MongoDB database
    Resource *MongoDBDatabaseResource `json:"resource,omitempty"`
    // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Options *CreateUpdateOptions `json:"options,omitempty"`
}

MongoDBDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB MongoDB database.

type MongoDBDatabaseGetProperties Uses

type MongoDBDatabaseGetProperties struct {
    Resource *MongoDBDatabaseGetPropertiesResource `json:"resource,omitempty"`
    Options  *MongoDBDatabaseGetPropertiesOptions  `json:"options,omitempty"`
}

MongoDBDatabaseGetProperties the properties of an Azure Cosmos DB MongoDB database

type MongoDBDatabaseGetPropertiesOptions Uses

type MongoDBDatabaseGetPropertiesOptions struct {
    // Throughput - Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    Throughput *int32 `json:"throughput,omitempty"`
    // AutoscaleSettings - Specifies the Autoscale settings.
    AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"`
}

MongoDBDatabaseGetPropertiesOptions ...

type MongoDBDatabaseGetPropertiesResource Uses

type MongoDBDatabaseGetPropertiesResource struct {
    // ID - Name of the Cosmos DB MongoDB database
    ID  *string `json:"id,omitempty"`
    // Rid - READ-ONLY; A system generated property. A unique identifier.
    Rid *string `json:"_rid,omitempty"`
    // Ts - READ-ONLY; A system generated property that denotes the last updated timestamp of the resource.
    Ts  interface{} `json:"_ts,omitempty"`
    // Etag - READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control.
    Etag *string `json:"_etag,omitempty"`
}

MongoDBDatabaseGetPropertiesResource ...

func (MongoDBDatabaseGetPropertiesResource) MarshalJSON Uses

func (mddgp MongoDBDatabaseGetPropertiesResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MongoDBDatabaseGetPropertiesResource.

type MongoDBDatabaseGetResults Uses

type MongoDBDatabaseGetResults struct {
    autorest.Response `json:"-"`
    // MongoDBDatabaseGetProperties - The properties of an Azure Cosmos DB MongoDB database
    *MongoDBDatabaseGetProperties `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"`
    Tags     map[string]*string `json:"tags"`
}

MongoDBDatabaseGetResults an Azure Cosmos DB MongoDB database.

func (MongoDBDatabaseGetResults) MarshalJSON Uses

func (mddgr MongoDBDatabaseGetResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MongoDBDatabaseGetResults.

func (*MongoDBDatabaseGetResults) UnmarshalJSON Uses

func (mddgr *MongoDBDatabaseGetResults) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MongoDBDatabaseGetResults struct.

type MongoDBDatabaseListResult Uses

type MongoDBDatabaseListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of MongoDB databases and their properties.
    Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"`
}

MongoDBDatabaseListResult the List operation response, that contains the MongoDB databases and their properties.

type MongoDBDatabaseResource Uses

type MongoDBDatabaseResource struct {
    // ID - Name of the Cosmos DB MongoDB database
    ID *string `json:"id,omitempty"`
}

MongoDBDatabaseResource cosmos DB MongoDB database resource object

type MongoDBResourcesClient Uses

type MongoDBResourcesClient struct {
    BaseClient
}

MongoDBResourcesClient is the azure Cosmos DB Database Service Resource Provider REST API

func NewMongoDBResourcesClient Uses

func NewMongoDBResourcesClient(subscriptionID string) MongoDBResourcesClient

NewMongoDBResourcesClient creates an instance of the MongoDBResourcesClient client.

func NewMongoDBResourcesClientWithBaseURI Uses

func NewMongoDBResourcesClientWithBaseURI(baseURI string, subscriptionID string) MongoDBResourcesClient

NewMongoDBResourcesClientWithBaseURI creates an instance of the MongoDBResourcesClient 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 (MongoDBResourcesClient) CreateUpdateMongoDBCollection Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, createUpdateMongoDBCollectionParameters MongoDBCollectionCreateUpdateParameters) (result MongoDBResourcesCreateUpdateMongoDBCollectionFuture, err error)

CreateUpdateMongoDBCollection create or update an Azure Cosmos DB MongoDB Collection Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. collectionName - cosmos DB collection name. createUpdateMongoDBCollectionParameters - the parameters to provide for the current MongoDB Collection.

func (MongoDBResourcesClient) CreateUpdateMongoDBCollectionPreparer Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, createUpdateMongoDBCollectionParameters MongoDBCollectionCreateUpdateParameters) (*http.Request, error)

CreateUpdateMongoDBCollectionPreparer prepares the CreateUpdateMongoDBCollection request.

func (MongoDBResourcesClient) CreateUpdateMongoDBCollectionResponder Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBCollectionResponder(resp *http.Response) (result MongoDBCollectionGetResults, err error)

CreateUpdateMongoDBCollectionResponder handles the response to the CreateUpdateMongoDBCollection request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) CreateUpdateMongoDBCollectionSender Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBCollectionSender(req *http.Request) (future MongoDBResourcesCreateUpdateMongoDBCollectionFuture, err error)

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

func (MongoDBResourcesClient) CreateUpdateMongoDBDatabase Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateMongoDBDatabaseParameters MongoDBDatabaseCreateUpdateParameters) (result MongoDBResourcesCreateUpdateMongoDBDatabaseFuture, err error)

CreateUpdateMongoDBDatabase create or updates Azure Cosmos DB MongoDB database Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. createUpdateMongoDBDatabaseParameters - the parameters to provide for the current MongoDB database.

func (MongoDBResourcesClient) CreateUpdateMongoDBDatabasePreparer Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateMongoDBDatabaseParameters MongoDBDatabaseCreateUpdateParameters) (*http.Request, error)

CreateUpdateMongoDBDatabasePreparer prepares the CreateUpdateMongoDBDatabase request.

func (MongoDBResourcesClient) CreateUpdateMongoDBDatabaseResponder Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBDatabaseResponder(resp *http.Response) (result MongoDBDatabaseGetResults, err error)

CreateUpdateMongoDBDatabaseResponder handles the response to the CreateUpdateMongoDBDatabase request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) CreateUpdateMongoDBDatabaseSender Uses

func (client MongoDBResourcesClient) CreateUpdateMongoDBDatabaseSender(req *http.Request) (future MongoDBResourcesCreateUpdateMongoDBDatabaseFuture, err error)

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

func (MongoDBResourcesClient) DeleteMongoDBCollection Uses

func (client MongoDBResourcesClient) DeleteMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (result MongoDBResourcesDeleteMongoDBCollectionFuture, err error)

DeleteMongoDBCollection deletes an existing Azure Cosmos DB MongoDB Collection. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. collectionName - cosmos DB collection name.

func (MongoDBResourcesClient) DeleteMongoDBCollectionPreparer Uses

func (client MongoDBResourcesClient) DeleteMongoDBCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (*http.Request, error)

DeleteMongoDBCollectionPreparer prepares the DeleteMongoDBCollection request.

func (MongoDBResourcesClient) DeleteMongoDBCollectionResponder Uses

func (client MongoDBResourcesClient) DeleteMongoDBCollectionResponder(resp *http.Response) (result autorest.Response, err error)

DeleteMongoDBCollectionResponder handles the response to the DeleteMongoDBCollection request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) DeleteMongoDBCollectionSender Uses

func (client MongoDBResourcesClient) DeleteMongoDBCollectionSender(req *http.Request) (future MongoDBResourcesDeleteMongoDBCollectionFuture, err error)

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

func (MongoDBResourcesClient) DeleteMongoDBDatabase Uses

func (client MongoDBResourcesClient) DeleteMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result MongoDBResourcesDeleteMongoDBDatabaseFuture, err error)

DeleteMongoDBDatabase deletes an existing Azure Cosmos DB MongoDB database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (MongoDBResourcesClient) DeleteMongoDBDatabasePreparer Uses

func (client MongoDBResourcesClient) DeleteMongoDBDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

DeleteMongoDBDatabasePreparer prepares the DeleteMongoDBDatabase request.

func (MongoDBResourcesClient) DeleteMongoDBDatabaseResponder Uses

func (client MongoDBResourcesClient) DeleteMongoDBDatabaseResponder(resp *http.Response) (result autorest.Response, err error)

DeleteMongoDBDatabaseResponder handles the response to the DeleteMongoDBDatabase request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) DeleteMongoDBDatabaseSender Uses

func (client MongoDBResourcesClient) DeleteMongoDBDatabaseSender(req *http.Request) (future MongoDBResourcesDeleteMongoDBDatabaseFuture, err error)

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

func (MongoDBResourcesClient) GetMongoDBCollection Uses

func (client MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (result MongoDBCollectionGetResults, err error)

GetMongoDBCollection gets the MongoDB collection under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. collectionName - cosmos DB collection name.

func (MongoDBResourcesClient) GetMongoDBCollectionPreparer Uses

func (client MongoDBResourcesClient) GetMongoDBCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (*http.Request, error)

GetMongoDBCollectionPreparer prepares the GetMongoDBCollection request.

func (MongoDBResourcesClient) GetMongoDBCollectionResponder Uses

func (client MongoDBResourcesClient) GetMongoDBCollectionResponder(resp *http.Response) (result MongoDBCollectionGetResults, err error)

GetMongoDBCollectionResponder handles the response to the GetMongoDBCollection request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) GetMongoDBCollectionSender Uses

func (client MongoDBResourcesClient) GetMongoDBCollectionSender(req *http.Request) (*http.Response, error)

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

func (MongoDBResourcesClient) GetMongoDBCollectionThroughput Uses

func (client MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (result ThroughputSettingsGetResults, err error)

GetMongoDBCollectionThroughput gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. collectionName - cosmos DB collection name.

func (MongoDBResourcesClient) GetMongoDBCollectionThroughputPreparer Uses

func (client MongoDBResourcesClient) GetMongoDBCollectionThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (*http.Request, error)

GetMongoDBCollectionThroughputPreparer prepares the GetMongoDBCollectionThroughput request.

func (MongoDBResourcesClient) GetMongoDBCollectionThroughputResponder Uses

func (client MongoDBResourcesClient) GetMongoDBCollectionThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

GetMongoDBCollectionThroughputResponder handles the response to the GetMongoDBCollectionThroughput request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) GetMongoDBCollectionThroughputSender Uses

func (client MongoDBResourcesClient) GetMongoDBCollectionThroughputSender(req *http.Request) (*http.Response, error)

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

func (MongoDBResourcesClient) GetMongoDBDatabase Uses

func (client MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result MongoDBDatabaseGetResults, err error)

GetMongoDBDatabase gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (MongoDBResourcesClient) GetMongoDBDatabasePreparer Uses

func (client MongoDBResourcesClient) GetMongoDBDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

GetMongoDBDatabasePreparer prepares the GetMongoDBDatabase request.

func (MongoDBResourcesClient) GetMongoDBDatabaseResponder Uses

func (client MongoDBResourcesClient) GetMongoDBDatabaseResponder(resp *http.Response) (result MongoDBDatabaseGetResults, err error)

GetMongoDBDatabaseResponder handles the response to the GetMongoDBDatabase request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) GetMongoDBDatabaseSender Uses

func (client MongoDBResourcesClient) GetMongoDBDatabaseSender(req *http.Request) (*http.Response, error)

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

func (MongoDBResourcesClient) GetMongoDBDatabaseThroughput Uses

func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result ThroughputSettingsGetResults, err error)

GetMongoDBDatabaseThroughput gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (MongoDBResourcesClient) GetMongoDBDatabaseThroughputPreparer Uses

func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

GetMongoDBDatabaseThroughputPreparer prepares the GetMongoDBDatabaseThroughput request.

func (MongoDBResourcesClient) GetMongoDBDatabaseThroughputResponder Uses

func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

GetMongoDBDatabaseThroughputResponder handles the response to the GetMongoDBDatabaseThroughput request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) GetMongoDBDatabaseThroughputSender Uses

func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughputSender(req *http.Request) (*http.Response, error)

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

func (MongoDBResourcesClient) ListMongoDBCollections Uses

func (client MongoDBResourcesClient) ListMongoDBCollections(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result MongoDBCollectionListResult, err error)

ListMongoDBCollections lists the MongoDB collection under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (MongoDBResourcesClient) ListMongoDBCollectionsPreparer Uses

func (client MongoDBResourcesClient) ListMongoDBCollectionsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

ListMongoDBCollectionsPreparer prepares the ListMongoDBCollections request.

func (MongoDBResourcesClient) ListMongoDBCollectionsResponder Uses

func (client MongoDBResourcesClient) ListMongoDBCollectionsResponder(resp *http.Response) (result MongoDBCollectionListResult, err error)

ListMongoDBCollectionsResponder handles the response to the ListMongoDBCollections request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) ListMongoDBCollectionsSender Uses

func (client MongoDBResourcesClient) ListMongoDBCollectionsSender(req *http.Request) (*http.Response, error)

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

func (MongoDBResourcesClient) ListMongoDBDatabases Uses

func (client MongoDBResourcesClient) ListMongoDBDatabases(ctx context.Context, resourceGroupName string, accountName string) (result MongoDBDatabaseListResult, err error)

ListMongoDBDatabases lists the MongoDB databases under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name.

func (MongoDBResourcesClient) ListMongoDBDatabasesPreparer Uses

func (client MongoDBResourcesClient) ListMongoDBDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListMongoDBDatabasesPreparer prepares the ListMongoDBDatabases request.

func (MongoDBResourcesClient) ListMongoDBDatabasesResponder Uses

func (client MongoDBResourcesClient) ListMongoDBDatabasesResponder(resp *http.Response) (result MongoDBDatabaseListResult, err error)

ListMongoDBDatabasesResponder handles the response to the ListMongoDBDatabases request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) ListMongoDBDatabasesSender Uses

func (client MongoDBResourcesClient) ListMongoDBDatabasesSender(req *http.Request) (*http.Response, error)

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

func (MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscale Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (result MongoDBResourcesMigrateMongoDBCollectionToAutoscaleFuture, err error)

MigrateMongoDBCollectionToAutoscale migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. collectionName - cosmos DB collection name.

func (MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscalePreparer Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscalePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (*http.Request, error)

MigrateMongoDBCollectionToAutoscalePreparer prepares the MigrateMongoDBCollectionToAutoscale request.

func (MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscaleResponder Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscaleResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateMongoDBCollectionToAutoscaleResponder handles the response to the MigrateMongoDBCollectionToAutoscale request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscaleSender Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToAutoscaleSender(req *http.Request) (future MongoDBResourcesMigrateMongoDBCollectionToAutoscaleFuture, err error)

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

func (MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughput Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (result MongoDBResourcesMigrateMongoDBCollectionToManualThroughputFuture, err error)

MigrateMongoDBCollectionToManualThroughput migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name. collectionName - cosmos DB collection name.

func (MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughputPreparer Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (*http.Request, error)

MigrateMongoDBCollectionToManualThroughputPreparer prepares the MigrateMongoDBCollectionToManualThroughput request.

func (MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughputResponder Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateMongoDBCollectionToManualThroughputResponder handles the response to the MigrateMongoDBCollectionToManualThroughput request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughputSender Uses

func (client MongoDBResourcesClient) MigrateMongoDBCollectionToManualThroughputSender(req *http.Request) (future MongoDBResourcesMigrateMongoDBCollectionToManualThroughputFuture, err error)

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

func (MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscale Uses

func (client MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleFuture, err error)

MigrateMongoDBDatabaseToAutoscale migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscalePreparer Uses

func (client MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscalePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

MigrateMongoDBDatabaseToAutoscalePreparer prepares the MigrateMongoDBDatabaseToAutoscale request.

func (MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscaleResponder Uses

func (client MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscaleResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateMongoDBDatabaseToAutoscaleResponder handles the response to the MigrateMongoDBDatabaseToAutoscale request. The method always closes the http.Response Body.

func (MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscaleSender Uses

func (client MongoDBResourcesClient) MigrateMongoDBDatabaseToAutoscaleSender(req *http.Request) (future MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleFuture, err error)

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

func (MongoDBResourcesClient) MigrateMongoDBDatabaseToManualThroughput Uses

func (client MongoDBResourcesClient) MigrateMongoDBDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputFuture, err error)

MigrateMongoDBDatabaseToManualThroughput migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - cosmos DB database account name. databaseName - cosmos DB database name.

func (MongoDBResourcesClient) MigrateMongoDBDatabaseToManualThroughputPreparer Uses

func (client MongoDBResourcesClient) MigrateMongoDBDatabaseToManualThroughputPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error)

MigrateMongoDBDatabaseToManualThroughputPreparer prepares the MigrateMongoDBDatabaseToManualThroughput request.

func (MongoDBResourcesClient) MigrateMongoDBDatabaseToManualThroughputResponder Uses

func (client MongoDBResourcesClient) MigrateMongoDBDatabaseToManualThroughputResponder(resp *http.Response) (result ThroughputSettingsGetResults, err error)

MigrateMongoDBDatabaseToManualThroughputResponder handles the response to the MigrateMongoDBDatabaseToManualThroughput request. The method always closes the http.Response Body.