Documentation ¶
Overview ¶
Package documentdb implements the Azure ARM Documentdb service API version 2015-04-08.
Azure Cosmos DB Database Service Resource Provider REST API
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type Capability
- type CassandraKeyspace
- type CassandraKeyspaceCreateUpdateParameters
- type CassandraKeyspaceCreateUpdateProperties
- type CassandraKeyspaceListResult
- type CassandraKeyspaceProperties
- type CassandraKeyspaceResource
- type CassandraPartitionKey
- type CassandraSchema
- type CassandraTable
- type CassandraTableCreateUpdateParameters
- type CassandraTableCreateUpdateProperties
- type CassandraTableListResult
- type CassandraTableProperties
- type CassandraTableResource
- type ClusterKey
- type CollectionClient
- func (client CollectionClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string, ...) (result MetricDefinitionsListResult, err error)
- func (client CollectionClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CollectionClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error)
- func (client CollectionClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)
- func (client CollectionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result MetricListResult, err error)
- func (client CollectionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CollectionClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
- func (client CollectionClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- func (client CollectionClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, ...) (result UsagesResult, err error)
- func (client CollectionClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CollectionClient) ListUsagesResponder(resp *http.Response) (result UsagesResult, err error)
- func (client CollectionClient) ListUsagesSender(req *http.Request) (*http.Response, error)
- type CollectionPartitionClient
- func (client CollectionPartitionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result PartitionMetricListResult, err error)
- func (client CollectionPartitionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CollectionPartitionClient) ListMetricsResponder(resp *http.Response) (result PartitionMetricListResult, err error)
- func (client CollectionPartitionClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- func (client CollectionPartitionClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, ...) (result PartitionUsagesResult, err error)
- func (client CollectionPartitionClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CollectionPartitionClient) ListUsagesResponder(resp *http.Response) (result PartitionUsagesResult, err error)
- func (client CollectionPartitionClient) ListUsagesSender(req *http.Request) (*http.Response, error)
- type CollectionPartitionRegionClient
- func (client CollectionPartitionRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result PartitionMetricListResult, err error)
- func (client CollectionPartitionRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CollectionPartitionRegionClient) ListMetricsResponder(resp *http.Response) (result PartitionMetricListResult, err error)
- func (client CollectionPartitionRegionClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type CollectionRegionClient
- func (client CollectionRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result MetricListResult, err error)
- func (client CollectionRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CollectionRegionClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
- func (client CollectionRegionClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type Column
- type ConflictResolutionMode
- type ConflictResolutionPolicy
- type ConsistencyPolicy
- type Container
- type ContainerCreateUpdateParameters
- type ContainerCreateUpdateProperties
- type ContainerListResult
- type ContainerPartitionKey
- type ContainerProperties
- type ContainerResource
- type DataType
- type DatabaseAccount
- type DatabaseAccountConnectionString
- type DatabaseAccountCreateUpdateParameters
- type DatabaseAccountCreateUpdateProperties
- type DatabaseAccountKind
- type DatabaseAccountListConnectionStringsResult
- type DatabaseAccountListKeysResult
- type DatabaseAccountListReadOnlyKeysResult
- type DatabaseAccountOfferType
- type DatabaseAccountPatchParameters
- type DatabaseAccountPatchProperties
- type DatabaseAccountProperties
- type DatabaseAccountRegenerateKeyParameters
- type DatabaseAccountRegionClient
- func (client DatabaseAccountRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result MetricListResult, err error)
- func (client DatabaseAccountRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountRegionClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
- func (client DatabaseAccountRegionClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type DatabaseAccountsClient
- func (client DatabaseAccountsClient) CheckNameExists(ctx context.Context, accountName string) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) CheckNameExistsPreparer(ctx context.Context, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) CheckNameExistsResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) CheckNameExistsSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateOrUpdateFuture, err error)
- func (client DatabaseAccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseAccount, err error)
- func (client DatabaseAccountsClient) CreateOrUpdateSender(req *http.Request) (future DatabaseAccountsCreateOrUpdateFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateCassandraKeyspaceFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspace, err error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspaceSender(req *http.Request) (future DatabaseAccountsCreateUpdateCassandraKeyspaceFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraTable(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateCassandraTableFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraTableResponder(resp *http.Response) (result CassandraTable, err error)
- func (client DatabaseAccountsClient) CreateUpdateCassandraTableSender(req *http.Request) (future DatabaseAccountsCreateUpdateCassandraTableFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateGremlinContainerFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinContainerResponder(resp *http.Response) (result Container, err error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinContainerSender(req *http.Request) (future DatabaseAccountsCreateUpdateGremlinContainerFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateGremlinDatabaseFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabase, err error)
- func (client DatabaseAccountsClient) CreateUpdateGremlinDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateGremlinDatabaseFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateMongoCollection(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateMongoCollectionFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateMongoCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateMongoCollectionResponder(resp *http.Response) (result MongoCollection, err error)
- func (client DatabaseAccountsClient) CreateUpdateMongoCollectionSender(req *http.Request) (future DatabaseAccountsCreateUpdateMongoCollectionFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateMongoDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateMongoDatabaseFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateMongoDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateMongoDatabaseResponder(resp *http.Response) (result MongoDatabase, err error)
- func (client DatabaseAccountsClient) CreateUpdateMongoDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateMongoDatabaseFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateSQLContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateSQLContainerFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateSQLContainerResponder(resp *http.Response) (result Container, err error)
- func (client DatabaseAccountsClient) CreateUpdateSQLContainerSender(req *http.Request) (future DatabaseAccountsCreateUpdateSQLContainerFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateSQLDatabaseFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateSQLDatabaseResponder(resp *http.Response) (result SQLDatabase, err error)
- func (client DatabaseAccountsClient) CreateUpdateSQLDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateSQLDatabaseFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateTable(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsCreateUpdateTableFuture, err error)
- func (client DatabaseAccountsClient) CreateUpdateTablePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) CreateUpdateTableResponder(resp *http.Response) (result Table, err error)
- func (client DatabaseAccountsClient) CreateUpdateTableSender(req *http.Request) (future DatabaseAccountsCreateUpdateTableFuture, err error)
- func (client DatabaseAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountsDeleteFuture, err error)
- func (client DatabaseAccountsClient) DeleteCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteCassandraKeyspaceFuture, err error)
- func (client DatabaseAccountsClient) DeleteCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteCassandraKeyspaceResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteCassandraKeyspaceSender(req *http.Request) (future DatabaseAccountsDeleteCassandraKeyspaceFuture, err error)
- func (client DatabaseAccountsClient) DeleteCassandraTable(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteCassandraTableFuture, err error)
- func (client DatabaseAccountsClient) DeleteCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteCassandraTableResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteCassandraTableSender(req *http.Request) (future DatabaseAccountsDeleteCassandraTableFuture, err error)
- func (client DatabaseAccountsClient) DeleteGremlinContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteGremlinContainerFuture, err error)
- func (client DatabaseAccountsClient) DeleteGremlinContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteGremlinContainerResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteGremlinContainerSender(req *http.Request) (future DatabaseAccountsDeleteGremlinContainerFuture, err error)
- func (client DatabaseAccountsClient) DeleteGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteGremlinDatabaseFuture, err error)
- func (client DatabaseAccountsClient) DeleteGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteGremlinDatabaseResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteGremlinDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteGremlinDatabaseFuture, err error)
- func (client DatabaseAccountsClient) DeleteMongoCollection(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteMongoCollectionFuture, err error)
- func (client DatabaseAccountsClient) DeleteMongoCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteMongoCollectionResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteMongoCollectionSender(req *http.Request) (future DatabaseAccountsDeleteMongoCollectionFuture, err error)
- func (client DatabaseAccountsClient) DeleteMongoDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteMongoDatabaseFuture, err error)
- func (client DatabaseAccountsClient) DeleteMongoDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteMongoDatabaseResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteMongoDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteMongoDatabaseFuture, err error)
- func (client DatabaseAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteSQLContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteSQLContainerFuture, err error)
- func (client DatabaseAccountsClient) DeleteSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteSQLContainerResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteSQLContainerSender(req *http.Request) (future DatabaseAccountsDeleteSQLContainerFuture, err error)
- func (client DatabaseAccountsClient) DeleteSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteSQLDatabaseFuture, err error)
- func (client DatabaseAccountsClient) DeleteSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteSQLDatabaseResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteSQLDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteSQLDatabaseFuture, err error)
- func (client DatabaseAccountsClient) DeleteSender(req *http.Request) (future DatabaseAccountsDeleteFuture, err error)
- func (client DatabaseAccountsClient) DeleteTable(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsDeleteTableFuture, err error)
- func (client DatabaseAccountsClient) DeleteTablePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) DeleteTableResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) DeleteTableSender(req *http.Request) (future DatabaseAccountsDeleteTableFuture, err error)
- func (client DatabaseAccountsClient) FailoverPriorityChange(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsFailoverPriorityChangeFuture, err error)
- func (client DatabaseAccountsClient) FailoverPriorityChangePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) FailoverPriorityChangeResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) FailoverPriorityChangeSender(req *http.Request) (future DatabaseAccountsFailoverPriorityChangeFuture, err error)
- func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccount, err error)
- func (client DatabaseAccountsClient) GetCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, ...) (result CassandraKeyspace, err error)
- func (client DatabaseAccountsClient) GetCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspace, err error)
- func (client DatabaseAccountsClient) GetCassandraKeyspaceSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetCassandraTable(ctx context.Context, resourceGroupName string, accountName string, ...) (result CassandraTable, err error)
- func (client DatabaseAccountsClient) GetCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetCassandraTableResponder(resp *http.Response) (result CassandraTable, err error)
- func (client DatabaseAccountsClient) GetCassandraTableSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetGremlinContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result Container, err error)
- func (client DatabaseAccountsClient) GetGremlinContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetGremlinContainerResponder(resp *http.Response) (result Container, err error)
- func (client DatabaseAccountsClient) GetGremlinContainerSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result GremlinDatabase, err error)
- func (client DatabaseAccountsClient) GetGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabase, err error)
- func (client DatabaseAccountsClient) GetGremlinDatabaseSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetMongoCollection(ctx context.Context, resourceGroupName string, accountName string, ...) (result MongoCollection, err error)
- func (client DatabaseAccountsClient) GetMongoCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetMongoCollectionResponder(resp *http.Response) (result MongoCollection, err error)
- func (client DatabaseAccountsClient) GetMongoCollectionSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetMongoDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result MongoDatabase, err error)
- func (client DatabaseAccountsClient) GetMongoDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetMongoDatabaseResponder(resp *http.Response) (result MongoDatabase, err error)
- func (client DatabaseAccountsClient) GetMongoDatabaseSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error)
- func (client DatabaseAccountsClient) GetReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) GetReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error)
- func (client DatabaseAccountsClient) GetReadOnlyKeysSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetResponder(resp *http.Response) (result DatabaseAccount, err error)
- func (client DatabaseAccountsClient) GetSQLContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result Container, err error)
- func (client DatabaseAccountsClient) GetSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetSQLContainerResponder(resp *http.Response) (result Container, err error)
- func (client DatabaseAccountsClient) GetSQLContainerSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, ...) (result SQLDatabase, err error)
- func (client DatabaseAccountsClient) GetSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetSQLDatabaseResponder(resp *http.Response) (result SQLDatabase, err error)
- func (client DatabaseAccountsClient) GetSQLDatabaseSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) GetTable(ctx context.Context, resourceGroupName string, accountName string, ...) (result Table, err error)
- func (client DatabaseAccountsClient) GetTablePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) GetTableResponder(resp *http.Response) (result Table, err error)
- func (client DatabaseAccountsClient) GetTableSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseAccountsListResult, err error)
- func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DatabaseAccountsListResult, err error)
- func (client DatabaseAccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListByResourceGroupResponder(resp *http.Response) (result DatabaseAccountsListResult, err error)
- func (client DatabaseAccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListCassandraKeyspaces(ctx context.Context, resourceGroupName string, accountName string) (result CassandraKeyspaceListResult, err error)
- func (client DatabaseAccountsClient) ListCassandraKeyspacesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListCassandraKeyspacesResponder(resp *http.Response) (result CassandraKeyspaceListResult, err error)
- func (client DatabaseAccountsClient) ListCassandraKeyspacesSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListCassandraTables(ctx context.Context, resourceGroupName string, accountName string, ...) (result CassandraTableListResult, err error)
- func (client DatabaseAccountsClient) ListCassandraTablesPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) ListCassandraTablesResponder(resp *http.Response) (result CassandraTableListResult, err error)
- func (client DatabaseAccountsClient) ListCassandraTablesSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListConnectionStringsResult, err error)
- func (client DatabaseAccountsClient) ListConnectionStringsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListConnectionStringsResponder(resp *http.Response) (result DatabaseAccountListConnectionStringsResult, err error)
- func (client DatabaseAccountsClient) ListConnectionStringsSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListGremlinContainers(ctx context.Context, resourceGroupName string, accountName string, ...) (result ContainerListResult, err error)
- func (client DatabaseAccountsClient) ListGremlinContainersPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) ListGremlinContainersResponder(resp *http.Response) (result ContainerListResult, err error)
- func (client DatabaseAccountsClient) ListGremlinContainersSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListGremlinDatabases(ctx context.Context, resourceGroupName string, accountName string) (result GremlinDatabaseListResult, err error)
- func (client DatabaseAccountsClient) ListGremlinDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListGremlinDatabasesResponder(resp *http.Response) (result GremlinDatabaseListResult, err error)
- func (client DatabaseAccountsClient) ListGremlinDatabasesSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListKeysResult, err error)
- func (client DatabaseAccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListKeysResponder(resp *http.Response) (result DatabaseAccountListKeysResult, err error)
- func (client DatabaseAccountsClient) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string) (result MetricDefinitionsListResult, err error)
- func (client DatabaseAccountsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error)
- func (client DatabaseAccountsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result MetricListResult, err error)
- func (client DatabaseAccountsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
- func (client DatabaseAccountsClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListMongoCollections(ctx context.Context, resourceGroupName string, accountName string, ...) (result MongoCollectionListResult, err error)
- func (client DatabaseAccountsClient) ListMongoCollectionsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) ListMongoCollectionsResponder(resp *http.Response) (result MongoCollectionListResult, err error)
- func (client DatabaseAccountsClient) ListMongoCollectionsSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListMongoDatabases(ctx context.Context, resourceGroupName string, accountName string) (result MongoDatabaseListResult, err error)
- func (client DatabaseAccountsClient) ListMongoDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListMongoDatabasesResponder(resp *http.Response) (result MongoDatabaseListResult, err error)
- func (client DatabaseAccountsClient) ListMongoDatabasesSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error)
- func (client DatabaseAccountsClient) ListReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error)
- func (client DatabaseAccountsClient) ListReadOnlyKeysSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListResponder(resp *http.Response) (result DatabaseAccountsListResult, err error)
- func (client DatabaseAccountsClient) ListSQLContainers(ctx context.Context, resourceGroupName string, accountName string, ...) (result ContainerListResult, err error)
- func (client DatabaseAccountsClient) ListSQLContainersPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) ListSQLContainersResponder(resp *http.Response) (result ContainerListResult, err error)
- func (client DatabaseAccountsClient) ListSQLContainersSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListSQLDatabases(ctx context.Context, resourceGroupName string, accountName string) (result SQLDatabaseListResult, err error)
- func (client DatabaseAccountsClient) ListSQLDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListSQLDatabasesResponder(resp *http.Response) (result SQLDatabaseListResult, err error)
- func (client DatabaseAccountsClient) ListSQLDatabasesSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListTables(ctx context.Context, resourceGroupName string, accountName string) (result TableListResult, err error)
- func (client DatabaseAccountsClient) ListTablesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DatabaseAccountsClient) ListTablesResponder(resp *http.Response) (result TableListResult, err error)
- func (client DatabaseAccountsClient) ListTablesSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, ...) (result UsagesResult, err error)
- func (client DatabaseAccountsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) ListUsagesResponder(resp *http.Response) (result UsagesResult, err error)
- func (client DatabaseAccountsClient) ListUsagesSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAccountsClient) OfflineRegion(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsOfflineRegionFuture, err error)
- func (client DatabaseAccountsClient) OfflineRegionPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) OfflineRegionResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) OfflineRegionSender(req *http.Request) (future DatabaseAccountsOfflineRegionFuture, err error)
- func (client DatabaseAccountsClient) OnlineRegion(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsOnlineRegionFuture, err error)
- func (client DatabaseAccountsClient) OnlineRegionPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) OnlineRegionResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) OnlineRegionSender(req *http.Request) (future DatabaseAccountsOnlineRegionFuture, err error)
- func (client DatabaseAccountsClient) Patch(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsPatchFuture, err error)
- func (client DatabaseAccountsClient) PatchPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) PatchResponder(resp *http.Response) (result DatabaseAccount, err error)
- func (client DatabaseAccountsClient) PatchSender(req *http.Request) (future DatabaseAccountsPatchFuture, err error)
- func (client DatabaseAccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, ...) (result DatabaseAccountsRegenerateKeyFuture, err error)
- func (client DatabaseAccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseAccountsClient) RegenerateKeyResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseAccountsClient) RegenerateKeySender(req *http.Request) (future DatabaseAccountsRegenerateKeyFuture, err error)
- type DatabaseAccountsCreateOrUpdateFuture
- type DatabaseAccountsCreateUpdateCassandraKeyspaceFuture
- type DatabaseAccountsCreateUpdateCassandraTableFuture
- type DatabaseAccountsCreateUpdateGremlinContainerFuture
- type DatabaseAccountsCreateUpdateGremlinDatabaseFuture
- type DatabaseAccountsCreateUpdateMongoCollectionFuture
- type DatabaseAccountsCreateUpdateMongoDatabaseFuture
- type DatabaseAccountsCreateUpdateSQLContainerFuture
- type DatabaseAccountsCreateUpdateSQLDatabaseFuture
- type DatabaseAccountsCreateUpdateTableFuture
- type DatabaseAccountsDeleteCassandraKeyspaceFuture
- type DatabaseAccountsDeleteCassandraTableFuture
- type DatabaseAccountsDeleteFuture
- type DatabaseAccountsDeleteGremlinContainerFuture
- type DatabaseAccountsDeleteGremlinDatabaseFuture
- type DatabaseAccountsDeleteMongoCollectionFuture
- type DatabaseAccountsDeleteMongoDatabaseFuture
- type DatabaseAccountsDeleteSQLContainerFuture
- type DatabaseAccountsDeleteSQLDatabaseFuture
- type DatabaseAccountsDeleteTableFuture
- type DatabaseAccountsFailoverPriorityChangeFuture
- type DatabaseAccountsListResult
- type DatabaseAccountsOfflineRegionFuture
- type DatabaseAccountsOnlineRegionFuture
- type DatabaseAccountsPatchFuture
- type DatabaseAccountsRegenerateKeyFuture
- type DatabaseClient
- func (client DatabaseClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string, ...) (result MetricDefinitionsListResult, err error)
- func (client DatabaseClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error)
- func (client DatabaseClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)
- func (client DatabaseClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result MetricListResult, err error)
- func (client DatabaseClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
- func (client DatabaseClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- func (client DatabaseClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, ...) (result UsagesResult, err error)
- func (client DatabaseClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DatabaseClient) ListUsagesResponder(resp *http.Response) (result UsagesResult, err error)
- func (client DatabaseClient) ListUsagesSender(req *http.Request) (*http.Response, error)
- type DefaultConsistencyLevel
- type ErrorResponse
- type ExcludedPath
- type ExtendedResourceProperties
- type FailoverPolicies
- type FailoverPolicy
- type GremlinDatabase
- type GremlinDatabaseCreateUpdateParameters
- type GremlinDatabaseCreateUpdateProperties
- type GremlinDatabaseListResult
- type GremlinDatabaseProperties
- type GremlinDatabaseResource
- type IncludedPath
- type IndexKind
- type Indexes
- type IndexingMode
- type IndexingPolicy
- type KeyKind
- type Location
- type Metric
- type MetricAvailability
- type MetricDefinition
- type MetricDefinitionsListResult
- type MetricListResult
- type MetricName
- type MetricValue
- type MongoCollection
- type MongoCollectionCreateUpdateParameters
- type MongoCollectionCreateUpdateProperties
- type MongoCollectionListResult
- type MongoCollectionProperties
- type MongoCollectionResource
- type MongoDatabase
- type MongoDatabaseCreateUpdateParameters
- type MongoDatabaseCreateUpdateProperties
- type MongoDatabaseListResult
- type MongoDatabaseProperties
- type MongoDatabaseResource
- type MongoIndex
- type MongoIndexKeys
- type MongoIndexOptions
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type PartitionKeyRangeIDClient
- func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result PartitionMetricListResult, err error)
- func (client PartitionKeyRangeIDClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PartitionKeyRangeIDClient) ListMetricsResponder(resp *http.Response) (result PartitionMetricListResult, err error)
- func (client PartitionKeyRangeIDClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type PartitionKeyRangeIDRegionClient
- func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result PartitionMetricListResult, err error)
- func (client PartitionKeyRangeIDRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PartitionKeyRangeIDRegionClient) ListMetricsResponder(resp *http.Response) (result PartitionMetricListResult, err error)
- func (client PartitionKeyRangeIDRegionClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type PartitionKind
- type PartitionMetric
- type PartitionMetricListResult
- type PartitionUsage
- type PartitionUsagesResult
- type PercentileClient
- func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result PercentileMetricListResult, err error)
- func (client PercentileClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PercentileClient) ListMetricsResponder(resp *http.Response) (result PercentileMetricListResult, err error)
- func (client PercentileClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type PercentileMetric
- type PercentileMetricListResult
- type PercentileMetricValue
- type PercentileSourceTargetClient
- func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result PercentileMetricListResult, err error)
- func (client PercentileSourceTargetClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PercentileSourceTargetClient) ListMetricsResponder(resp *http.Response) (result PercentileMetricListResult, err error)
- func (client PercentileSourceTargetClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type PercentileTargetClient
- func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, ...) (result PercentileMetricListResult, err error)
- func (client PercentileTargetClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PercentileTargetClient) ListMetricsResponder(resp *http.Response) (result PercentileMetricListResult, err error)
- func (client PercentileTargetClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type PrimaryAggregationType
- type RegionForOnlineOffline
- type Resource
- type SQLDatabase
- type SQLDatabaseCreateUpdateParameters
- type SQLDatabaseCreateUpdateProperties
- type SQLDatabaseListResult
- type SQLDatabaseProperties
- type SQLDatabaseResource
- type Table
- type TableCreateUpdateParameters
- type TableCreateUpdateProperties
- type TableListResult
- type TableProperties
- type TableResource
- type UniqueKey
- type UniqueKeyPolicy
- type UnitType
- type Usage
- type UsagesResult
- type VirtualNetworkRule
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Documentdb
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type BaseClient ¶
BaseClient is the base client for Documentdb.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client.
type Capability ¶
type Capability struct { // Name - Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin". Name *string `json:"name,omitempty"` }
Capability cosmos DB capability object
type CassandraKeyspace ¶
type CassandraKeyspace struct { autorest.Response `json:"-"` // CassandraKeyspaceProperties - The properties of an Azure Cosmos DB Cassandra keyspace *CassandraKeyspaceProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
CassandraKeyspace an Azure Cosmos DB Cassandra keyspace.
func (CassandraKeyspace) MarshalJSON ¶
func (ck CassandraKeyspace) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CassandraKeyspace.
func (*CassandraKeyspace) UnmarshalJSON ¶
func (ck *CassandraKeyspace) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CassandraKeyspace struct.
type CassandraKeyspaceCreateUpdateParameters ¶
type CassandraKeyspaceCreateUpdateParameters struct { // CassandraKeyspaceCreateUpdateProperties - Properties to create and update Azure Cosmos DB Cassandra keyspace. *CassandraKeyspaceCreateUpdateProperties `json:"properties,omitempty"` }
CassandraKeyspaceCreateUpdateParameters parameters to create and update Cosmos DB Cassandra keyspace.
func (CassandraKeyspaceCreateUpdateParameters) MarshalJSON ¶
func (ckcup CassandraKeyspaceCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CassandraKeyspaceCreateUpdateParameters.
func (*CassandraKeyspaceCreateUpdateParameters) UnmarshalJSON ¶
func (ckcup *CassandraKeyspaceCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CassandraKeyspaceCreateUpdateParameters struct.
type CassandraKeyspaceCreateUpdateProperties ¶
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 map[string]*string `json:"options"` }
CassandraKeyspaceCreateUpdateProperties properties to create and update Azure Cosmos DB Cassandra keyspace.
func (CassandraKeyspaceCreateUpdateProperties) MarshalJSON ¶
func (ckcup CassandraKeyspaceCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CassandraKeyspaceCreateUpdateProperties.
type CassandraKeyspaceListResult ¶
type CassandraKeyspaceListResult struct { autorest.Response `json:"-"` // Value - List of Cassandra keyspaces and their properties. Value *[]CassandraKeyspace `json:"value,omitempty"` }
CassandraKeyspaceListResult the List operation response, that contains the Cassandra keyspaces and their properties.
type CassandraKeyspaceProperties ¶
type CassandraKeyspaceProperties struct { // ID - Name of the Cosmos DB Cassandra keyspace ID *string `json:"id,omitempty"` }
CassandraKeyspaceProperties the properties of an Azure Cosmos DB Cassandra keyspace
type CassandraKeyspaceResource ¶
type CassandraKeyspaceResource struct { // ID - Name of the Cosmos DB Cassandra keyspace ID *string `json:"id,omitempty"` }
CassandraKeyspaceResource cosmos DB Cassandra keyspace id object
type CassandraPartitionKey ¶
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 CassandraSchema ¶
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 CassandraTable ¶
type CassandraTable struct { autorest.Response `json:"-"` // CassandraTableProperties - The properties of an Azure Cosmos DB Cassandra table *CassandraTableProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
CassandraTable an Azure Cosmos DB Cassandra table.
func (CassandraTable) MarshalJSON ¶
func (ct CassandraTable) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CassandraTable.
func (*CassandraTable) UnmarshalJSON ¶
func (ct *CassandraTable) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CassandraTable struct.
type CassandraTableCreateUpdateParameters ¶
type CassandraTableCreateUpdateParameters struct { // CassandraTableCreateUpdateProperties - Properties to create and update Azure Cosmos DB Cassandra table. *CassandraTableCreateUpdateProperties `json:"properties,omitempty"` }
CassandraTableCreateUpdateParameters parameters to create and update Cosmos DB Cassandra table.
func (CassandraTableCreateUpdateParameters) MarshalJSON ¶
func (ctcup CassandraTableCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CassandraTableCreateUpdateParameters.
func (*CassandraTableCreateUpdateParameters) UnmarshalJSON ¶
func (ctcup *CassandraTableCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CassandraTableCreateUpdateParameters struct.
type CassandraTableCreateUpdateProperties ¶
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 map[string]*string `json:"options"` }
CassandraTableCreateUpdateProperties properties to create and update Azure Cosmos DB Cassandra table.
func (CassandraTableCreateUpdateProperties) MarshalJSON ¶
func (ctcup CassandraTableCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CassandraTableCreateUpdateProperties.
type CassandraTableListResult ¶
type CassandraTableListResult struct { autorest.Response `json:"-"` // Value - List of Cassandra tables and their properties. Value *[]CassandraTable `json:"value,omitempty"` }
CassandraTableListResult the List operation response, that contains the Cassandra tables and their properties.
type CassandraTableProperties ¶
type CassandraTableProperties 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"` }
CassandraTableProperties the properties of an Azure Cosmos DB Cassandra table
type CassandraTableResource ¶
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"` }
CassandraTableResource cosmos DB Cassandra table id object
type ClusterKey ¶
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 ¶
type CollectionClient struct {
BaseClient
}
CollectionClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewCollectionClient ¶
func NewCollectionClient(subscriptionID string) CollectionClient
NewCollectionClient creates an instance of the CollectionClient client.
func NewCollectionClientWithBaseURI ¶
func NewCollectionClientWithBaseURI(baseURI string, subscriptionID string) CollectionClient
NewCollectionClientWithBaseURI creates an instance of the CollectionClient client.
func (CollectionClient) ListMetricDefinitions ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid.
func (CollectionClient) ListMetricDefinitionsPreparer ¶
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 ¶
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 ¶
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 ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
func (CollectionClient) ListUsages ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.
type CollectionPartitionClient ¶
type CollectionPartitionClient struct {
BaseClient
}
CollectionPartitionClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewCollectionPartitionClient ¶
func NewCollectionPartitionClient(subscriptionID string) CollectionPartitionClient
NewCollectionPartitionClient creates an instance of the CollectionPartitionClient client.
func NewCollectionPartitionClientWithBaseURI ¶
func NewCollectionPartitionClientWithBaseURI(baseURI string, subscriptionID string) CollectionPartitionClient
NewCollectionPartitionClientWithBaseURI creates an instance of the CollectionPartitionClient client.
func (CollectionPartitionClient) ListMetrics ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
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 ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.
type CollectionPartitionRegionClient ¶
type CollectionPartitionRegionClient struct {
BaseClient
}
CollectionPartitionRegionClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewCollectionPartitionRegionClient ¶
func NewCollectionPartitionRegionClient(subscriptionID string) CollectionPartitionRegionClient
NewCollectionPartitionRegionClient creates an instance of the CollectionPartitionRegionClient client.
func NewCollectionPartitionRegionClientWithBaseURI ¶
func NewCollectionPartitionRegionClientWithBaseURI(baseURI string, subscriptionID string) CollectionPartitionRegionClient
NewCollectionPartitionRegionClientWithBaseURI creates an instance of the CollectionPartitionRegionClient client.
func (CollectionPartitionRegionClient) ListMetrics ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
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 ¶
type CollectionRegionClient struct {
BaseClient
}
CollectionRegionClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewCollectionRegionClient ¶
func NewCollectionRegionClient(subscriptionID string) CollectionRegionClient
NewCollectionRegionClient creates an instance of the CollectionRegionClient client.
func NewCollectionRegionClientWithBaseURI ¶
func NewCollectionRegionClientWithBaseURI(baseURI string, subscriptionID string) CollectionRegionClient
NewCollectionRegionClientWithBaseURI creates an instance of the CollectionRegionClient client.
func (CollectionRegionClient) ListMetrics ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type Column ¶
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 ConflictResolutionMode ¶
type ConflictResolutionMode string
ConflictResolutionMode enumerates the values for conflict resolution mode.
const ( // Custom ... Custom ConflictResolutionMode = "Custom" // LastWriterWins ... LastWriterWins ConflictResolutionMode = "LastWriterWins" )
func PossibleConflictResolutionModeValues ¶
func PossibleConflictResolutionModeValues() []ConflictResolutionMode
PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.
type ConflictResolutionPolicy ¶
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 ConsistencyPolicy ¶
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 Container ¶
type Container struct { autorest.Response `json:"-"` // ContainerProperties - The properties of an Azure Cosmos DB container *ContainerProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
Container an Azure Cosmos DB container.
func (Container) MarshalJSON ¶
MarshalJSON is the custom marshaler for Container.
func (*Container) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Container struct.
type ContainerCreateUpdateParameters ¶
type ContainerCreateUpdateParameters struct { // ContainerCreateUpdateProperties - Properties to create and update Azure Cosmos DB container. *ContainerCreateUpdateProperties `json:"properties,omitempty"` }
ContainerCreateUpdateParameters parameters to create and update Cosmos DB container.
func (ContainerCreateUpdateParameters) MarshalJSON ¶
func (ccup ContainerCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ContainerCreateUpdateParameters.
func (*ContainerCreateUpdateParameters) UnmarshalJSON ¶
func (ccup *ContainerCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ContainerCreateUpdateParameters struct.
type ContainerCreateUpdateProperties ¶
type ContainerCreateUpdateProperties struct { // Resource - The standard JSON format of a container Resource *ContainerResource `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 map[string]*string `json:"options"` }
ContainerCreateUpdateProperties properties to create and update Azure Cosmos DB container.
func (ContainerCreateUpdateProperties) MarshalJSON ¶
func (ccup ContainerCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ContainerCreateUpdateProperties.
type ContainerListResult ¶
type ContainerListResult struct { autorest.Response `json:"-"` // Value - List of containers and their properties. Value *[]Container `json:"value,omitempty"` }
ContainerListResult the List operation response, that contains the containers and their properties.
type ContainerPartitionKey ¶
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"` }
ContainerPartitionKey the configuration of the partition key to be used for partitioning data into multiple partitions
type ContainerProperties ¶
type ContainerProperties struct { // ID - Name of the Cosmos DB container ID *string `json:"id,omitempty"` // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container 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 container. ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` // Rid - A system generated property. A unique identifier. Rid *string `json:"_rid,omitempty"` // Ts - A system generated property that denotes the last updated timestamp of the resource. Ts interface{} `json:"_ts,omitempty"` // Etag - A system generated property representing the resource etag required for optimistic concurrency control. Etag *string `json:"_etag,omitempty"` }
ContainerProperties the properties of an Azure Cosmos DB container
type ContainerResource ¶
type ContainerResource struct { // ID - Name of the Cosmos DB container ID *string `json:"id,omitempty"` // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container 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 container. ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` }
ContainerResource cosmos DB container resource object
type DataType ¶
type DataType string
DataType enumerates the values for data type.
func PossibleDataTypeValues ¶
func PossibleDataTypeValues() []DataType
PossibleDataTypeValues returns an array of possible values for the DataType const type.
type DatabaseAccount ¶
type DatabaseAccount 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"` *DatabaseAccountProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
DatabaseAccount an Azure Cosmos DB database account.
func (DatabaseAccount) MarshalJSON ¶
func (da DatabaseAccount) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseAccount.
func (*DatabaseAccount) UnmarshalJSON ¶
func (da *DatabaseAccount) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseAccount struct.
type DatabaseAccountConnectionString ¶
type DatabaseAccountConnectionString struct { // ConnectionString - Value of the connection string ConnectionString *string `json:"connectionString,omitempty"` // Description - Description of the connection string Description *string `json:"description,omitempty"` }
DatabaseAccountConnectionString connection string for the Cosmos DB account
type DatabaseAccountCreateUpdateParameters ¶
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 - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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 ¶
func (dacup DatabaseAccountCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseAccountCreateUpdateParameters.
func (*DatabaseAccountCreateUpdateParameters) UnmarshalJSON ¶
func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseAccountCreateUpdateParameters struct.
type DatabaseAccountCreateUpdateProperties ¶
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"` // IPRangeFilter - Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. IPRangeFilter *string `json:"ipRangeFilter,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"` }
DatabaseAccountCreateUpdateProperties properties to create and update Azure Cosmos DB database accounts.
type DatabaseAccountKind ¶
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 ¶
func PossibleDatabaseAccountKindValues() []DatabaseAccountKind
PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.
type DatabaseAccountListConnectionStringsResult ¶
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 ¶
type DatabaseAccountListKeysResult struct { autorest.Response `json:"-"` // PrimaryMasterKey - Base 64 encoded value of the primary read-write key. PrimaryMasterKey *string `json:"primaryMasterKey,omitempty"` // SecondaryMasterKey - Base 64 encoded value of the secondary read-write key. SecondaryMasterKey *string `json:"secondaryMasterKey,omitempty"` *DatabaseAccountListReadOnlyKeysResult `json:"properties,omitempty"` }
DatabaseAccountListKeysResult the access keys for the given database account.
func (DatabaseAccountListKeysResult) MarshalJSON ¶
func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult.
func (*DatabaseAccountListKeysResult) UnmarshalJSON ¶
func (dalkr *DatabaseAccountListKeysResult) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseAccountListKeysResult struct.
type DatabaseAccountListReadOnlyKeysResult ¶
type DatabaseAccountListReadOnlyKeysResult struct { autorest.Response `json:"-"` // PrimaryReadonlyMasterKey - Base 64 encoded value of the primary read-only key. PrimaryReadonlyMasterKey *string `json:"primaryReadonlyMasterKey,omitempty"` // SecondaryReadonlyMasterKey - 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 ¶
type DatabaseAccountOfferType string
DatabaseAccountOfferType enumerates the values for database account offer type.
const ( // Standard ... Standard DatabaseAccountOfferType = "Standard" )
func PossibleDatabaseAccountOfferTypeValues ¶
func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType
PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
type DatabaseAccountPatchParameters ¶
type DatabaseAccountPatchParameters struct { Tags map[string]*string `json:"tags"` *DatabaseAccountPatchProperties `json:"properties,omitempty"` }
DatabaseAccountPatchParameters parameters for patching Azure Cosmos DB database account properties.
func (DatabaseAccountPatchParameters) MarshalJSON ¶
func (dapp DatabaseAccountPatchParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseAccountPatchParameters.
func (*DatabaseAccountPatchParameters) UnmarshalJSON ¶
func (dapp *DatabaseAccountPatchParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseAccountPatchParameters struct.
type DatabaseAccountPatchProperties ¶
type DatabaseAccountPatchProperties struct { // Capabilities - List of Cosmos DB capabilities for the account Capabilities *[]Capability `json:"capabilities,omitempty"` }
DatabaseAccountPatchProperties properties to update Azure Cosmos DB database accounts.
type DatabaseAccountProperties ¶
type DatabaseAccountProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` // DocumentEndpoint - The connection endpoint for the Cosmos DB database account. DocumentEndpoint *string `json:"documentEndpoint,omitempty"` // DatabaseAccountOfferType - The offer type for the Cosmos DB database account. Default value: Standard. Possible values include: 'Standard' DatabaseAccountOfferType DatabaseAccountOfferType `json:"databaseAccountOfferType,omitempty"` // IPRangeFilter - Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. IPRangeFilter *string `json:"ipRangeFilter,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 - An array that contains the write location for the Cosmos DB account. WriteLocations *[]Location `json:"writeLocations,omitempty"` // ReadLocations - An array that contains of the read locations enabled for the Cosmos DB account. ReadLocations *[]Location `json:"readLocations,omitempty"` // FailoverPolicies - 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"` // EnableMultipleWriteLocations - Enables the account to write in multiple locations EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` }
DatabaseAccountProperties properties for the database account.
type DatabaseAccountRegenerateKeyParameters ¶
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 ¶
type DatabaseAccountRegionClient struct {
BaseClient
}
DatabaseAccountRegionClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewDatabaseAccountRegionClient ¶
func NewDatabaseAccountRegionClient(subscriptionID string) DatabaseAccountRegionClient
NewDatabaseAccountRegionClient creates an instance of the DatabaseAccountRegionClient client.
func NewDatabaseAccountRegionClientWithBaseURI ¶
func NewDatabaseAccountRegionClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAccountRegionClient
NewDatabaseAccountRegionClientWithBaseURI creates an instance of the DatabaseAccountRegionClient client.
func (DatabaseAccountRegionClient) ListMetrics ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
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 DatabaseAccountsClient ¶
type DatabaseAccountsClient struct {
BaseClient
}
DatabaseAccountsClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewDatabaseAccountsClient ¶
func NewDatabaseAccountsClient(subscriptionID string) DatabaseAccountsClient
NewDatabaseAccountsClient creates an instance of the DatabaseAccountsClient client.
func NewDatabaseAccountsClientWithBaseURI ¶
func NewDatabaseAccountsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAccountsClient
NewDatabaseAccountsClientWithBaseURI creates an instance of the DatabaseAccountsClient client.
func (DatabaseAccountsClient) CheckNameExists ¶
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 ¶
func (client DatabaseAccountsClient) CheckNameExistsPreparer(ctx context.Context, accountName string) (*http.Request, error)
CheckNameExistsPreparer prepares the CheckNameExists request.
func (DatabaseAccountsClient) CheckNameExistsResponder ¶
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 ¶
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 ¶
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. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. createUpdateParameters - the parameters to provide for the current database account.
func (DatabaseAccountsClient) CreateOrUpdatePreparer ¶
func (client DatabaseAccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, createUpdateParameters DatabaseAccountCreateUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DatabaseAccountsClient) CreateOrUpdateResponder ¶
func (client DatabaseAccountsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseAccount, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateOrUpdateSender ¶
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) CreateUpdateCassandraKeyspace ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters) (result DatabaseAccountsCreateUpdateCassandraKeyspaceFuture, err error)
CreateUpdateCassandraKeyspace create or update an Azure Cosmos DB Cassandra keyspace Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. keyspaceRid - cosmos DB keyspace rid. createUpdateCassandraKeyspaceParameters - the parameters to provide for the current Cassandra keyspace.
func (DatabaseAccountsClient) CreateUpdateCassandraKeyspacePreparer ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters) (*http.Request, error)
CreateUpdateCassandraKeyspacePreparer prepares the CreateUpdateCassandraKeyspace request.
func (DatabaseAccountsClient) CreateUpdateCassandraKeyspaceResponder ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspace, err error)
CreateUpdateCassandraKeyspaceResponder handles the response to the CreateUpdateCassandraKeyspace request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateCassandraKeyspaceSender ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspaceSender(req *http.Request) (future DatabaseAccountsCreateUpdateCassandraKeyspaceFuture, err error)
CreateUpdateCassandraKeyspaceSender sends the CreateUpdateCassandraKeyspace request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateCassandraTable ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, tableRid string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters) (result DatabaseAccountsCreateUpdateCassandraTableFuture, err error)
CreateUpdateCassandraTable create or update an Azure Cosmos DB Cassandra Table Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. keyspaceRid - cosmos DB keyspace rid. tableRid - cosmos DB table rid. createUpdateCassandraTableParameters - the parameters to provide for the current Cassandra Table.
func (DatabaseAccountsClient) CreateUpdateCassandraTablePreparer ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, tableRid string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters) (*http.Request, error)
CreateUpdateCassandraTablePreparer prepares the CreateUpdateCassandraTable request.
func (DatabaseAccountsClient) CreateUpdateCassandraTableResponder ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraTableResponder(resp *http.Response) (result CassandraTable, err error)
CreateUpdateCassandraTableResponder handles the response to the CreateUpdateCassandraTable request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateCassandraTableSender ¶
func (client DatabaseAccountsClient) CreateUpdateCassandraTableSender(req *http.Request) (future DatabaseAccountsCreateUpdateCassandraTableFuture, err error)
CreateUpdateCassandraTableSender sends the CreateUpdateCassandraTable request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateGremlinContainer ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinContainer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string, createUpdateGremlinContainerParameters ContainerCreateUpdateParameters) (result DatabaseAccountsCreateUpdateGremlinContainerFuture, err error)
CreateUpdateGremlinContainer create or update an Azure Cosmos DB Gremlin container Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. containerRid - cosmos DB container rid. createUpdateGremlinContainerParameters - the parameters to provide for the current Gremlin container.
func (DatabaseAccountsClient) CreateUpdateGremlinContainerPreparer ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string, createUpdateGremlinContainerParameters ContainerCreateUpdateParameters) (*http.Request, error)
CreateUpdateGremlinContainerPreparer prepares the CreateUpdateGremlinContainer request.
func (DatabaseAccountsClient) CreateUpdateGremlinContainerResponder ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinContainerResponder(resp *http.Response) (result Container, err error)
CreateUpdateGremlinContainerResponder handles the response to the CreateUpdateGremlinContainer request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateGremlinContainerSender ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinContainerSender(req *http.Request) (future DatabaseAccountsCreateUpdateGremlinContainerFuture, err error)
CreateUpdateGremlinContainerSender sends the CreateUpdateGremlinContainer request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateGremlinDatabase ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters) (result DatabaseAccountsCreateUpdateGremlinDatabaseFuture, err error)
CreateUpdateGremlinDatabase create or update an Azure Cosmos DB Gremlin database Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. createUpdateGremlinDatabaseParameters - the parameters to provide for the current Gremlin database.
func (DatabaseAccountsClient) CreateUpdateGremlinDatabasePreparer ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters) (*http.Request, error)
CreateUpdateGremlinDatabasePreparer prepares the CreateUpdateGremlinDatabase request.
func (DatabaseAccountsClient) CreateUpdateGremlinDatabaseResponder ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabase, err error)
CreateUpdateGremlinDatabaseResponder handles the response to the CreateUpdateGremlinDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateGremlinDatabaseSender ¶
func (client DatabaseAccountsClient) CreateUpdateGremlinDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateGremlinDatabaseFuture, err error)
CreateUpdateGremlinDatabaseSender sends the CreateUpdateGremlinDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateMongoCollection ¶
func (client DatabaseAccountsClient) CreateUpdateMongoCollection(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, createUpdateMongoCollectionParameters MongoCollectionCreateUpdateParameters) (result DatabaseAccountsCreateUpdateMongoCollectionFuture, err error)
CreateUpdateMongoCollection create or update an Azure Cosmos DB Mongo Collection Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. createUpdateMongoCollectionParameters - the parameters to provide for the current Mongo Collection.
func (DatabaseAccountsClient) CreateUpdateMongoCollectionPreparer ¶
func (client DatabaseAccountsClient) CreateUpdateMongoCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, createUpdateMongoCollectionParameters MongoCollectionCreateUpdateParameters) (*http.Request, error)
CreateUpdateMongoCollectionPreparer prepares the CreateUpdateMongoCollection request.
func (DatabaseAccountsClient) CreateUpdateMongoCollectionResponder ¶
func (client DatabaseAccountsClient) CreateUpdateMongoCollectionResponder(resp *http.Response) (result MongoCollection, err error)
CreateUpdateMongoCollectionResponder handles the response to the CreateUpdateMongoCollection request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateMongoCollectionSender ¶
func (client DatabaseAccountsClient) CreateUpdateMongoCollectionSender(req *http.Request) (future DatabaseAccountsCreateUpdateMongoCollectionFuture, err error)
CreateUpdateMongoCollectionSender sends the CreateUpdateMongoCollection request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateMongoDatabase ¶
func (client DatabaseAccountsClient) CreateUpdateMongoDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, createUpdateMongoDatabaseParameters MongoDatabaseCreateUpdateParameters) (result DatabaseAccountsCreateUpdateMongoDatabaseFuture, err error)
CreateUpdateMongoDatabase create or updates Azure Cosmos DB Mongo database Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. createUpdateMongoDatabaseParameters - the parameters to provide for the current Mongo database.
func (DatabaseAccountsClient) CreateUpdateMongoDatabasePreparer ¶
func (client DatabaseAccountsClient) CreateUpdateMongoDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, createUpdateMongoDatabaseParameters MongoDatabaseCreateUpdateParameters) (*http.Request, error)
CreateUpdateMongoDatabasePreparer prepares the CreateUpdateMongoDatabase request.
func (DatabaseAccountsClient) CreateUpdateMongoDatabaseResponder ¶
func (client DatabaseAccountsClient) CreateUpdateMongoDatabaseResponder(resp *http.Response) (result MongoDatabase, err error)
CreateUpdateMongoDatabaseResponder handles the response to the CreateUpdateMongoDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateMongoDatabaseSender ¶
func (client DatabaseAccountsClient) CreateUpdateMongoDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateMongoDatabaseFuture, err error)
CreateUpdateMongoDatabaseSender sends the CreateUpdateMongoDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateSQLContainer ¶
func (client DatabaseAccountsClient) CreateUpdateSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string, createUpdateSQLContainerParameters ContainerCreateUpdateParameters) (result DatabaseAccountsCreateUpdateSQLContainerFuture, err error)
CreateUpdateSQLContainer create or update an Azure Cosmos DB SQL container Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. containerRid - cosmos DB container rid. createUpdateSQLContainerParameters - the parameters to provide for the current SQL container.
func (DatabaseAccountsClient) CreateUpdateSQLContainerPreparer ¶
func (client DatabaseAccountsClient) CreateUpdateSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string, createUpdateSQLContainerParameters ContainerCreateUpdateParameters) (*http.Request, error)
CreateUpdateSQLContainerPreparer prepares the CreateUpdateSQLContainer request.
func (DatabaseAccountsClient) CreateUpdateSQLContainerResponder ¶
func (client DatabaseAccountsClient) CreateUpdateSQLContainerResponder(resp *http.Response) (result Container, err error)
CreateUpdateSQLContainerResponder handles the response to the CreateUpdateSQLContainer request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateSQLContainerSender ¶
func (client DatabaseAccountsClient) CreateUpdateSQLContainerSender(req *http.Request) (future DatabaseAccountsCreateUpdateSQLContainerFuture, err error)
CreateUpdateSQLContainerSender sends the CreateUpdateSQLContainer request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateSQLDatabase ¶
func (client DatabaseAccountsClient) CreateUpdateSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, createUpdateSQLDatabaseParameters SQLDatabaseCreateUpdateParameters) (result DatabaseAccountsCreateUpdateSQLDatabaseFuture, err error)
CreateUpdateSQLDatabase create or update an Azure Cosmos DB SQL database Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. createUpdateSQLDatabaseParameters - the parameters to provide for the current SQL database.
func (DatabaseAccountsClient) CreateUpdateSQLDatabasePreparer ¶
func (client DatabaseAccountsClient) CreateUpdateSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, createUpdateSQLDatabaseParameters SQLDatabaseCreateUpdateParameters) (*http.Request, error)
CreateUpdateSQLDatabasePreparer prepares the CreateUpdateSQLDatabase request.
func (DatabaseAccountsClient) CreateUpdateSQLDatabaseResponder ¶
func (client DatabaseAccountsClient) CreateUpdateSQLDatabaseResponder(resp *http.Response) (result SQLDatabase, err error)
CreateUpdateSQLDatabaseResponder handles the response to the CreateUpdateSQLDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateSQLDatabaseSender ¶
func (client DatabaseAccountsClient) CreateUpdateSQLDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateSQLDatabaseFuture, err error)
CreateUpdateSQLDatabaseSender sends the CreateUpdateSQLDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) CreateUpdateTable ¶
func (client DatabaseAccountsClient) CreateUpdateTable(ctx context.Context, resourceGroupName string, accountName string, tableRid string, createUpdateTableParameters TableCreateUpdateParameters) (result DatabaseAccountsCreateUpdateTableFuture, err error)
CreateUpdateTable create or update an Azure Cosmos DB Table Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. tableRid - cosmos DB table rid. createUpdateTableParameters - the parameters to provide for the current Table.
func (DatabaseAccountsClient) CreateUpdateTablePreparer ¶
func (client DatabaseAccountsClient) CreateUpdateTablePreparer(ctx context.Context, resourceGroupName string, accountName string, tableRid string, createUpdateTableParameters TableCreateUpdateParameters) (*http.Request, error)
CreateUpdateTablePreparer prepares the CreateUpdateTable request.
func (DatabaseAccountsClient) CreateUpdateTableResponder ¶
func (client DatabaseAccountsClient) CreateUpdateTableResponder(resp *http.Response) (result Table, err error)
CreateUpdateTableResponder handles the response to the CreateUpdateTable request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) CreateUpdateTableSender ¶
func (client DatabaseAccountsClient) CreateUpdateTableSender(req *http.Request) (future DatabaseAccountsCreateUpdateTableFuture, err error)
CreateUpdateTableSender sends the CreateUpdateTable request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) Delete ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) DeleteCassandraKeyspace ¶
func (client DatabaseAccountsClient) DeleteCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string) (result DatabaseAccountsDeleteCassandraKeyspaceFuture, err error)
DeleteCassandraKeyspace deletes an existing Azure Cosmos DB Cassandra keyspace. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. keyspaceRid - cosmos DB keyspace rid.
func (DatabaseAccountsClient) DeleteCassandraKeyspacePreparer ¶
func (client DatabaseAccountsClient) DeleteCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string) (*http.Request, error)
DeleteCassandraKeyspacePreparer prepares the DeleteCassandraKeyspace request.
func (DatabaseAccountsClient) DeleteCassandraKeyspaceResponder ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) DeleteCassandraKeyspaceSender ¶
func (client DatabaseAccountsClient) DeleteCassandraKeyspaceSender(req *http.Request) (future DatabaseAccountsDeleteCassandraKeyspaceFuture, err error)
DeleteCassandraKeyspaceSender sends the DeleteCassandraKeyspace request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeleteCassandraTable ¶
func (client DatabaseAccountsClient) DeleteCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, tableRid string) (result DatabaseAccountsDeleteCassandraTableFuture, err error)
DeleteCassandraTable deletes an existing Azure Cosmos DB Cassandra table. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. keyspaceRid - cosmos DB keyspace rid. tableRid - cosmos DB table rid.
func (DatabaseAccountsClient) DeleteCassandraTablePreparer ¶
func (client DatabaseAccountsClient) DeleteCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, tableRid string) (*http.Request, error)
DeleteCassandraTablePreparer prepares the DeleteCassandraTable request.
func (DatabaseAccountsClient) DeleteCassandraTableResponder ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) DeleteCassandraTableSender ¶
func (client DatabaseAccountsClient) DeleteCassandraTableSender(req *http.Request) (future DatabaseAccountsDeleteCassandraTableFuture, err error)
DeleteCassandraTableSender sends the DeleteCassandraTable request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeleteGremlinContainer ¶
func (client DatabaseAccountsClient) DeleteGremlinContainer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (result DatabaseAccountsDeleteGremlinContainerFuture, err error)
DeleteGremlinContainer deletes an existing Azure Cosmos DB Gremlin container. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. containerRid - cosmos DB container rid.
func (DatabaseAccountsClient) DeleteGremlinContainerPreparer ¶
func (client DatabaseAccountsClient) DeleteGremlinContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (*http.Request, error)
DeleteGremlinContainerPreparer prepares the DeleteGremlinContainer request.
func (DatabaseAccountsClient) DeleteGremlinContainerResponder ¶
func (client DatabaseAccountsClient) DeleteGremlinContainerResponder(resp *http.Response) (result autorest.Response, err error)
DeleteGremlinContainerResponder handles the response to the DeleteGremlinContainer request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) DeleteGremlinContainerSender ¶
func (client DatabaseAccountsClient) DeleteGremlinContainerSender(req *http.Request) (future DatabaseAccountsDeleteGremlinContainerFuture, err error)
DeleteGremlinContainerSender sends the DeleteGremlinContainer request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeleteGremlinDatabase ¶
func (client DatabaseAccountsClient) DeleteGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result DatabaseAccountsDeleteGremlinDatabaseFuture, err error)
DeleteGremlinDatabase deletes an existing Azure Cosmos DB Gremlin database. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) DeleteGremlinDatabasePreparer ¶
func (client DatabaseAccountsClient) DeleteGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
DeleteGremlinDatabasePreparer prepares the DeleteGremlinDatabase request.
func (DatabaseAccountsClient) DeleteGremlinDatabaseResponder ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) DeleteGremlinDatabaseSender ¶
func (client DatabaseAccountsClient) DeleteGremlinDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteGremlinDatabaseFuture, err error)
DeleteGremlinDatabaseSender sends the DeleteGremlinDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeleteMongoCollection ¶
func (client DatabaseAccountsClient) DeleteMongoCollection(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string) (result DatabaseAccountsDeleteMongoCollectionFuture, err error)
DeleteMongoCollection deletes an existing Azure Cosmos DB Mongo Collection. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid.
func (DatabaseAccountsClient) DeleteMongoCollectionPreparer ¶
func (client DatabaseAccountsClient) DeleteMongoCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string) (*http.Request, error)
DeleteMongoCollectionPreparer prepares the DeleteMongoCollection request.
func (DatabaseAccountsClient) DeleteMongoCollectionResponder ¶
func (client DatabaseAccountsClient) DeleteMongoCollectionResponder(resp *http.Response) (result autorest.Response, err error)
DeleteMongoCollectionResponder handles the response to the DeleteMongoCollection request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) DeleteMongoCollectionSender ¶
func (client DatabaseAccountsClient) DeleteMongoCollectionSender(req *http.Request) (future DatabaseAccountsDeleteMongoCollectionFuture, err error)
DeleteMongoCollectionSender sends the DeleteMongoCollection request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeleteMongoDatabase ¶
func (client DatabaseAccountsClient) DeleteMongoDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result DatabaseAccountsDeleteMongoDatabaseFuture, err error)
DeleteMongoDatabase deletes an existing Azure Cosmos DB Mongo database. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) DeleteMongoDatabasePreparer ¶
func (client DatabaseAccountsClient) DeleteMongoDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
DeleteMongoDatabasePreparer prepares the DeleteMongoDatabase request.
func (DatabaseAccountsClient) DeleteMongoDatabaseResponder ¶
func (client DatabaseAccountsClient) DeleteMongoDatabaseResponder(resp *http.Response) (result autorest.Response, err error)
DeleteMongoDatabaseResponder handles the response to the DeleteMongoDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) DeleteMongoDatabaseSender ¶
func (client DatabaseAccountsClient) DeleteMongoDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteMongoDatabaseFuture, err error)
DeleteMongoDatabaseSender sends the DeleteMongoDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeletePreparer ¶
func (client DatabaseAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (DatabaseAccountsClient) DeleteResponder ¶
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) DeleteSQLContainer ¶
func (client DatabaseAccountsClient) DeleteSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (result DatabaseAccountsDeleteSQLContainerFuture, err error)
DeleteSQLContainer deletes an existing Azure Cosmos DB SQL container. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. containerRid - cosmos DB container rid.
func (DatabaseAccountsClient) DeleteSQLContainerPreparer ¶
func (client DatabaseAccountsClient) DeleteSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (*http.Request, error)
DeleteSQLContainerPreparer prepares the DeleteSQLContainer request.
func (DatabaseAccountsClient) DeleteSQLContainerResponder ¶
func (client DatabaseAccountsClient) DeleteSQLContainerResponder(resp *http.Response) (result autorest.Response, err error)
DeleteSQLContainerResponder handles the response to the DeleteSQLContainer request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) DeleteSQLContainerSender ¶
func (client DatabaseAccountsClient) DeleteSQLContainerSender(req *http.Request) (future DatabaseAccountsDeleteSQLContainerFuture, err error)
DeleteSQLContainerSender sends the DeleteSQLContainer request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeleteSQLDatabase ¶
func (client DatabaseAccountsClient) DeleteSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result DatabaseAccountsDeleteSQLDatabaseFuture, err error)
DeleteSQLDatabase deletes an existing Azure Cosmos DB SQL database. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) DeleteSQLDatabasePreparer ¶
func (client DatabaseAccountsClient) DeleteSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
DeleteSQLDatabasePreparer prepares the DeleteSQLDatabase request.
func (DatabaseAccountsClient) DeleteSQLDatabaseResponder ¶
func (client DatabaseAccountsClient) DeleteSQLDatabaseResponder(resp *http.Response) (result autorest.Response, err error)
DeleteSQLDatabaseResponder handles the response to the DeleteSQLDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) DeleteSQLDatabaseSender ¶
func (client DatabaseAccountsClient) DeleteSQLDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteSQLDatabaseFuture, err error)
DeleteSQLDatabaseSender sends the DeleteSQLDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) DeleteSender ¶
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) DeleteTable ¶
func (client DatabaseAccountsClient) DeleteTable(ctx context.Context, resourceGroupName string, accountName string, tableRid string) (result DatabaseAccountsDeleteTableFuture, err error)
DeleteTable deletes an existing Azure Cosmos DB Table. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. tableRid - cosmos DB table rid.
func (DatabaseAccountsClient) DeleteTablePreparer ¶
func (client DatabaseAccountsClient) DeleteTablePreparer(ctx context.Context, resourceGroupName string, accountName string, tableRid string) (*http.Request, error)
DeleteTablePreparer prepares the DeleteTable request.
func (DatabaseAccountsClient) DeleteTableResponder ¶
func (client DatabaseAccountsClient) DeleteTableResponder(resp *http.Response) (result autorest.Response, err error)
DeleteTableResponder handles the response to the DeleteTable request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) DeleteTableSender ¶
func (client DatabaseAccountsClient) DeleteTableSender(req *http.Request) (future DatabaseAccountsDeleteTableFuture, err error)
DeleteTableSender sends the DeleteTable request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) FailoverPriorityChange ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name. failoverParameters - the new failover policies for the database account.
func (DatabaseAccountsClient) FailoverPriorityChangePreparer ¶
func (client DatabaseAccountsClient) FailoverPriorityChangePreparer(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies) (*http.Request, error)
FailoverPriorityChangePreparer prepares the FailoverPriorityChange request.
func (DatabaseAccountsClient) FailoverPriorityChangeResponder ¶
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 ¶
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 ¶
func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccount, err error)
Get retrieves the properties of an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) GetCassandraKeyspace ¶
func (client DatabaseAccountsClient) GetCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string) (result CassandraKeyspace, err error)
GetCassandraKeyspace gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided id. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. keyspaceRid - cosmos DB keyspace rid.
func (DatabaseAccountsClient) GetCassandraKeyspacePreparer ¶
func (client DatabaseAccountsClient) GetCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string) (*http.Request, error)
GetCassandraKeyspacePreparer prepares the GetCassandraKeyspace request.
func (DatabaseAccountsClient) GetCassandraKeyspaceResponder ¶
func (client DatabaseAccountsClient) GetCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspace, err error)
GetCassandraKeyspaceResponder handles the response to the GetCassandraKeyspace request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetCassandraKeyspaceSender ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) GetCassandraTable ¶
func (client DatabaseAccountsClient) GetCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, tableRid string) (result CassandraTable, err error)
GetCassandraTable gets the Cassandra table under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. keyspaceRid - cosmos DB keyspace rid. tableRid - cosmos DB table rid.
func (DatabaseAccountsClient) GetCassandraTablePreparer ¶
func (client DatabaseAccountsClient) GetCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string, tableRid string) (*http.Request, error)
GetCassandraTablePreparer prepares the GetCassandraTable request.
func (DatabaseAccountsClient) GetCassandraTableResponder ¶
func (client DatabaseAccountsClient) GetCassandraTableResponder(resp *http.Response) (result CassandraTable, err error)
GetCassandraTableResponder handles the response to the GetCassandraTable request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetCassandraTableSender ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) GetGremlinContainer ¶
func (client DatabaseAccountsClient) GetGremlinContainer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (result Container, err error)
GetGremlinContainer gets the Gremlin container under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. containerRid - cosmos DB container rid.
func (DatabaseAccountsClient) GetGremlinContainerPreparer ¶
func (client DatabaseAccountsClient) GetGremlinContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (*http.Request, error)
GetGremlinContainerPreparer prepares the GetGremlinContainer request.
func (DatabaseAccountsClient) GetGremlinContainerResponder ¶
func (client DatabaseAccountsClient) GetGremlinContainerResponder(resp *http.Response) (result Container, err error)
GetGremlinContainerResponder handles the response to the GetGremlinContainer request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetGremlinContainerSender ¶
func (client DatabaseAccountsClient) GetGremlinContainerSender(req *http.Request) (*http.Response, error)
GetGremlinContainerSender sends the GetGremlinContainer request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) GetGremlinDatabase ¶
func (client DatabaseAccountsClient) GetGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result GremlinDatabase, err error)
GetGremlinDatabase gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided id. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) GetGremlinDatabasePreparer ¶
func (client DatabaseAccountsClient) GetGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
GetGremlinDatabasePreparer prepares the GetGremlinDatabase request.
func (DatabaseAccountsClient) GetGremlinDatabaseResponder ¶
func (client DatabaseAccountsClient) GetGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabase, err error)
GetGremlinDatabaseResponder handles the response to the GetGremlinDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetGremlinDatabaseSender ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) GetMongoCollection ¶
func (client DatabaseAccountsClient) GetMongoCollection(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string) (result MongoCollection, err error)
GetMongoCollection gets the Mongo collection under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid.
func (DatabaseAccountsClient) GetMongoCollectionPreparer ¶
func (client DatabaseAccountsClient) GetMongoCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string) (*http.Request, error)
GetMongoCollectionPreparer prepares the GetMongoCollection request.
func (DatabaseAccountsClient) GetMongoCollectionResponder ¶
func (client DatabaseAccountsClient) GetMongoCollectionResponder(resp *http.Response) (result MongoCollection, err error)
GetMongoCollectionResponder handles the response to the GetMongoCollection request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetMongoCollectionSender ¶
func (client DatabaseAccountsClient) GetMongoCollectionSender(req *http.Request) (*http.Response, error)
GetMongoCollectionSender sends the GetMongoCollection request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) GetMongoDatabase ¶
func (client DatabaseAccountsClient) GetMongoDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result MongoDatabase, err error)
GetMongoDatabase gets the Mongo databases under an existing Azure Cosmos DB database account with the provided id. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) GetMongoDatabasePreparer ¶
func (client DatabaseAccountsClient) GetMongoDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
GetMongoDatabasePreparer prepares the GetMongoDatabase request.
func (DatabaseAccountsClient) GetMongoDatabaseResponder ¶
func (client DatabaseAccountsClient) GetMongoDatabaseResponder(resp *http.Response) (result MongoDatabase, err error)
GetMongoDatabaseResponder handles the response to the GetMongoDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetMongoDatabaseSender ¶
func (client DatabaseAccountsClient) GetMongoDatabaseSender(req *http.Request) (*http.Response, error)
GetMongoDatabaseSender sends the GetMongoDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) GetPreparer ¶
func (client DatabaseAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabaseAccountsClient) GetReadOnlyKeys ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) GetReadOnlyKeysPreparer ¶
func (client DatabaseAccountsClient) GetReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
GetReadOnlyKeysPreparer prepares the GetReadOnlyKeys request.
func (DatabaseAccountsClient) GetReadOnlyKeysResponder ¶
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 ¶
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 ¶
func (client DatabaseAccountsClient) GetResponder(resp *http.Response) (result DatabaseAccount, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetSQLContainer ¶
func (client DatabaseAccountsClient) GetSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (result Container, err error)
GetSQLContainer gets the SQL container under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. containerRid - cosmos DB container rid.
func (DatabaseAccountsClient) GetSQLContainerPreparer ¶
func (client DatabaseAccountsClient) GetSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, containerRid string) (*http.Request, error)
GetSQLContainerPreparer prepares the GetSQLContainer request.
func (DatabaseAccountsClient) GetSQLContainerResponder ¶
func (client DatabaseAccountsClient) GetSQLContainerResponder(resp *http.Response) (result Container, err error)
GetSQLContainerResponder handles the response to the GetSQLContainer request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetSQLContainerSender ¶
func (client DatabaseAccountsClient) GetSQLContainerSender(req *http.Request) (*http.Response, error)
GetSQLContainerSender sends the GetSQLContainer request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) GetSQLDatabase ¶
func (client DatabaseAccountsClient) GetSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result SQLDatabase, err error)
GetSQLDatabase gets the SQL databases under an existing Azure Cosmos DB database account with the provided id. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) GetSQLDatabasePreparer ¶
func (client DatabaseAccountsClient) GetSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
GetSQLDatabasePreparer prepares the GetSQLDatabase request.
func (DatabaseAccountsClient) GetSQLDatabaseResponder ¶
func (client DatabaseAccountsClient) GetSQLDatabaseResponder(resp *http.Response) (result SQLDatabase, err error)
GetSQLDatabaseResponder handles the response to the GetSQLDatabase request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetSQLDatabaseSender ¶
func (client DatabaseAccountsClient) GetSQLDatabaseSender(req *http.Request) (*http.Response, error)
GetSQLDatabaseSender sends the GetSQLDatabase request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) GetTable ¶
func (client DatabaseAccountsClient) GetTable(ctx context.Context, resourceGroupName string, accountName string, tableRid string) (result Table, err error)
GetTable gets the Tables under an existing Azure Cosmos DB database account with the provided id. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. tableRid - cosmos DB table rid.
func (DatabaseAccountsClient) GetTablePreparer ¶
func (client DatabaseAccountsClient) GetTablePreparer(ctx context.Context, resourceGroupName string, accountName string, tableRid string) (*http.Request, error)
GetTablePreparer prepares the GetTable request.
func (DatabaseAccountsClient) GetTableResponder ¶
func (client DatabaseAccountsClient) GetTableResponder(resp *http.Response) (result Table, err error)
GetTableResponder handles the response to the GetTable request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) GetTableSender ¶
GetTableSender sends the GetTable request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) List ¶
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 ¶
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 - name of an Azure resource group.
func (DatabaseAccountsClient) ListByResourceGroupPreparer ¶
func (client DatabaseAccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (DatabaseAccountsClient) ListByResourceGroupResponder ¶
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 ¶
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) ListCassandraKeyspaces ¶
func (client DatabaseAccountsClient) 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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListCassandraKeyspacesPreparer ¶
func (client DatabaseAccountsClient) ListCassandraKeyspacesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListCassandraKeyspacesPreparer prepares the ListCassandraKeyspaces request.
func (DatabaseAccountsClient) ListCassandraKeyspacesResponder ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListCassandraKeyspacesSender ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListCassandraTables ¶
func (client DatabaseAccountsClient) ListCassandraTables(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string) (result CassandraTableListResult, err error)
ListCassandraTables lists the Cassandra table under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. keyspaceRid - cosmos DB keyspace rid.
func (DatabaseAccountsClient) ListCassandraTablesPreparer ¶
func (client DatabaseAccountsClient) ListCassandraTablesPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceRid string) (*http.Request, error)
ListCassandraTablesPreparer prepares the ListCassandraTables request.
func (DatabaseAccountsClient) ListCassandraTablesResponder ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListCassandraTablesSender ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListConnectionStrings ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListConnectionStringsPreparer ¶
func (client DatabaseAccountsClient) ListConnectionStringsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListConnectionStringsPreparer prepares the ListConnectionStrings request.
func (DatabaseAccountsClient) ListConnectionStringsResponder ¶
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 ¶
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) ListGremlinContainers ¶
func (client DatabaseAccountsClient) ListGremlinContainers(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result ContainerListResult, err error)
ListGremlinContainers lists the Gremlin container under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) ListGremlinContainersPreparer ¶
func (client DatabaseAccountsClient) ListGremlinContainersPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
ListGremlinContainersPreparer prepares the ListGremlinContainers request.
func (DatabaseAccountsClient) ListGremlinContainersResponder ¶
func (client DatabaseAccountsClient) ListGremlinContainersResponder(resp *http.Response) (result ContainerListResult, err error)
ListGremlinContainersResponder handles the response to the ListGremlinContainers request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) ListGremlinContainersSender ¶
func (client DatabaseAccountsClient) ListGremlinContainersSender(req *http.Request) (*http.Response, error)
ListGremlinContainersSender sends the ListGremlinContainers request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListGremlinDatabases ¶
func (client DatabaseAccountsClient) 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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListGremlinDatabasesPreparer ¶
func (client DatabaseAccountsClient) ListGremlinDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListGremlinDatabasesPreparer prepares the ListGremlinDatabases request.
func (DatabaseAccountsClient) ListGremlinDatabasesResponder ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListGremlinDatabasesSender ¶
func (client DatabaseAccountsClient) 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 (DatabaseAccountsClient) ListKeys ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListKeysPreparer ¶
func (client DatabaseAccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (DatabaseAccountsClient) ListKeysResponder ¶
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 ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListMetricDefinitions ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListMetricDefinitionsPreparer ¶
func (client DatabaseAccountsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.
func (DatabaseAccountsClient) ListMetricDefinitionsResponder ¶
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 ¶
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 ¶
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 - name of an Azure resource group. 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 ¶
func (client DatabaseAccountsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (DatabaseAccountsClient) ListMetricsResponder ¶
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 ¶
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListMongoCollections ¶
func (client DatabaseAccountsClient) ListMongoCollections(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result MongoCollectionListResult, err error)
ListMongoCollections lists the Mongo collection under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) ListMongoCollectionsPreparer ¶
func (client DatabaseAccountsClient) ListMongoCollectionsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
ListMongoCollectionsPreparer prepares the ListMongoCollections request.
func (DatabaseAccountsClient) ListMongoCollectionsResponder ¶
func (client DatabaseAccountsClient) ListMongoCollectionsResponder(resp *http.Response) (result MongoCollectionListResult, err error)
ListMongoCollectionsResponder handles the response to the ListMongoCollections request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) ListMongoCollectionsSender ¶
func (client DatabaseAccountsClient) ListMongoCollectionsSender(req *http.Request) (*http.Response, error)
ListMongoCollectionsSender sends the ListMongoCollections request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListMongoDatabases ¶
func (client DatabaseAccountsClient) ListMongoDatabases(ctx context.Context, resourceGroupName string, accountName string) (result MongoDatabaseListResult, err error)
ListMongoDatabases lists the Mongo databases under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListMongoDatabasesPreparer ¶
func (client DatabaseAccountsClient) ListMongoDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListMongoDatabasesPreparer prepares the ListMongoDatabases request.
func (DatabaseAccountsClient) ListMongoDatabasesResponder ¶
func (client DatabaseAccountsClient) ListMongoDatabasesResponder(resp *http.Response) (result MongoDatabaseListResult, err error)
ListMongoDatabasesResponder handles the response to the ListMongoDatabases request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) ListMongoDatabasesSender ¶
func (client DatabaseAccountsClient) ListMongoDatabasesSender(req *http.Request) (*http.Response, error)
ListMongoDatabasesSender sends the ListMongoDatabases request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (DatabaseAccountsClient) ListReadOnlyKeys ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListReadOnlyKeysPreparer ¶
func (client DatabaseAccountsClient) ListReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListReadOnlyKeysPreparer prepares the ListReadOnlyKeys request.
func (DatabaseAccountsClient) ListReadOnlyKeysResponder ¶
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 ¶
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 ¶
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) ListSQLContainers ¶
func (client DatabaseAccountsClient) ListSQLContainers(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (result ContainerListResult, err error)
ListSQLContainers lists the SQL container under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseAccountsClient) ListSQLContainersPreparer ¶
func (client DatabaseAccountsClient) ListSQLContainersPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
ListSQLContainersPreparer prepares the ListSQLContainers request.
func (DatabaseAccountsClient) ListSQLContainersResponder ¶
func (client DatabaseAccountsClient) ListSQLContainersResponder(resp *http.Response) (result ContainerListResult, err error)
ListSQLContainersResponder handles the response to the ListSQLContainers request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) ListSQLContainersSender ¶
func (client DatabaseAccountsClient) ListSQLContainersSender(req *http.Request) (*http.Response, error)
ListSQLContainersSender sends the ListSQLContainers request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListSQLDatabases ¶
func (client DatabaseAccountsClient) ListSQLDatabases(ctx context.Context, resourceGroupName string, accountName string) (result SQLDatabaseListResult, err error)
ListSQLDatabases lists the SQL databases under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListSQLDatabasesPreparer ¶
func (client DatabaseAccountsClient) ListSQLDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListSQLDatabasesPreparer prepares the ListSQLDatabases request.
func (DatabaseAccountsClient) ListSQLDatabasesResponder ¶
func (client DatabaseAccountsClient) ListSQLDatabasesResponder(resp *http.Response) (result SQLDatabaseListResult, err error)
ListSQLDatabasesResponder handles the response to the ListSQLDatabases request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) ListSQLDatabasesSender ¶
func (client DatabaseAccountsClient) ListSQLDatabasesSender(req *http.Request) (*http.Response, error)
ListSQLDatabasesSender sends the ListSQLDatabases request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListTables ¶
func (client DatabaseAccountsClient) ListTables(ctx context.Context, resourceGroupName string, accountName string) (result TableListResult, err error)
ListTables lists the Tables under an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name.
func (DatabaseAccountsClient) ListTablesPreparer ¶
func (client DatabaseAccountsClient) ListTablesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListTablesPreparer prepares the ListTables request.
func (DatabaseAccountsClient) ListTablesResponder ¶
func (client DatabaseAccountsClient) ListTablesResponder(resp *http.Response) (result TableListResult, err error)
ListTablesResponder handles the response to the ListTables request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) ListTablesSender ¶
ListTablesSender sends the ListTables request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) ListUsages ¶
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 - name of an Azure resource group. 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 ¶
func (client DatabaseAccountsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error)
ListUsagesPreparer prepares the ListUsages request.
func (DatabaseAccountsClient) ListUsagesResponder ¶
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 ¶
ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) OfflineRegion ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name. regionParameterForOffline - cosmos DB region to offline for the database account.
func (DatabaseAccountsClient) OfflineRegionPreparer ¶
func (client DatabaseAccountsClient) OfflineRegionPreparer(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOffline RegionForOnlineOffline) (*http.Request, error)
OfflineRegionPreparer prepares the OfflineRegion request.
func (DatabaseAccountsClient) OfflineRegionResponder ¶
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 ¶
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 ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name. regionParameterForOnline - cosmos DB region to online for the database account.
func (DatabaseAccountsClient) OnlineRegionPreparer ¶
func (client DatabaseAccountsClient) OnlineRegionPreparer(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOnline RegionForOnlineOffline) (*http.Request, error)
OnlineRegionPreparer prepares the OnlineRegion request.
func (DatabaseAccountsClient) OnlineRegionResponder ¶
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 ¶
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) Patch ¶
func (client DatabaseAccountsClient) Patch(ctx context.Context, resourceGroupName string, accountName string, updateParameters DatabaseAccountPatchParameters) (result DatabaseAccountsPatchFuture, err error)
Patch patches the properties of an existing Azure Cosmos DB database account. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. updateParameters - the tags parameter to patch for the current database account.
func (DatabaseAccountsClient) PatchPreparer ¶
func (client DatabaseAccountsClient) PatchPreparer(ctx context.Context, resourceGroupName string, accountName string, updateParameters DatabaseAccountPatchParameters) (*http.Request, error)
PatchPreparer prepares the Patch request.
func (DatabaseAccountsClient) PatchResponder ¶
func (client DatabaseAccountsClient) PatchResponder(resp *http.Response) (result DatabaseAccount, err error)
PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.
func (DatabaseAccountsClient) PatchSender ¶
func (client DatabaseAccountsClient) PatchSender(req *http.Request) (future DatabaseAccountsPatchFuture, err error)
PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.
func (DatabaseAccountsClient) RegenerateKey ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name. keyToRegenerate - the name of the key to regenerate.
func (DatabaseAccountsClient) RegenerateKeyPreparer ¶
func (client DatabaseAccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, keyToRegenerate DatabaseAccountRegenerateKeyParameters) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (DatabaseAccountsClient) RegenerateKeyResponder ¶
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 ¶
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.
type DatabaseAccountsCreateOrUpdateFuture ¶
DatabaseAccountsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateOrUpdateFuture) Result ¶
func (future *DatabaseAccountsCreateOrUpdateFuture) Result(client DatabaseAccountsClient) (da DatabaseAccount, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateCassandraKeyspaceFuture ¶
DatabaseAccountsCreateUpdateCassandraKeyspaceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateCassandraKeyspaceFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateCassandraKeyspaceFuture) Result(client DatabaseAccountsClient) (ck CassandraKeyspace, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateCassandraTableFuture ¶
DatabaseAccountsCreateUpdateCassandraTableFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateCassandraTableFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateCassandraTableFuture) Result(client DatabaseAccountsClient) (ct CassandraTable, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateGremlinContainerFuture ¶
DatabaseAccountsCreateUpdateGremlinContainerFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateGremlinContainerFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateGremlinContainerFuture) Result(client DatabaseAccountsClient) (c Container, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateGremlinDatabaseFuture ¶
DatabaseAccountsCreateUpdateGremlinDatabaseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateGremlinDatabaseFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateGremlinDatabaseFuture) Result(client DatabaseAccountsClient) (gd GremlinDatabase, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateMongoCollectionFuture ¶
DatabaseAccountsCreateUpdateMongoCollectionFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateMongoCollectionFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateMongoCollectionFuture) Result(client DatabaseAccountsClient) (mc MongoCollection, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateMongoDatabaseFuture ¶
DatabaseAccountsCreateUpdateMongoDatabaseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateMongoDatabaseFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateMongoDatabaseFuture) Result(client DatabaseAccountsClient) (md MongoDatabase, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateSQLContainerFuture ¶
DatabaseAccountsCreateUpdateSQLContainerFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateSQLContainerFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateSQLContainerFuture) Result(client DatabaseAccountsClient) (c Container, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateSQLDatabaseFuture ¶
DatabaseAccountsCreateUpdateSQLDatabaseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateSQLDatabaseFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateSQLDatabaseFuture) Result(client DatabaseAccountsClient) (sd SQLDatabase, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsCreateUpdateTableFuture ¶
DatabaseAccountsCreateUpdateTableFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsCreateUpdateTableFuture) Result ¶
func (future *DatabaseAccountsCreateUpdateTableFuture) Result(client DatabaseAccountsClient) (t Table, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteCassandraKeyspaceFuture ¶
DatabaseAccountsDeleteCassandraKeyspaceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteCassandraKeyspaceFuture) Result ¶
func (future *DatabaseAccountsDeleteCassandraKeyspaceFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteCassandraTableFuture ¶
DatabaseAccountsDeleteCassandraTableFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteCassandraTableFuture) Result ¶
func (future *DatabaseAccountsDeleteCassandraTableFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteFuture ¶
DatabaseAccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteFuture) Result ¶
func (future *DatabaseAccountsDeleteFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteGremlinContainerFuture ¶
DatabaseAccountsDeleteGremlinContainerFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteGremlinContainerFuture) Result ¶
func (future *DatabaseAccountsDeleteGremlinContainerFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteGremlinDatabaseFuture ¶
DatabaseAccountsDeleteGremlinDatabaseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteGremlinDatabaseFuture) Result ¶
func (future *DatabaseAccountsDeleteGremlinDatabaseFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteMongoCollectionFuture ¶
DatabaseAccountsDeleteMongoCollectionFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteMongoCollectionFuture) Result ¶
func (future *DatabaseAccountsDeleteMongoCollectionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteMongoDatabaseFuture ¶
DatabaseAccountsDeleteMongoDatabaseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteMongoDatabaseFuture) Result ¶
func (future *DatabaseAccountsDeleteMongoDatabaseFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteSQLContainerFuture ¶
DatabaseAccountsDeleteSQLContainerFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteSQLContainerFuture) Result ¶
func (future *DatabaseAccountsDeleteSQLContainerFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteSQLDatabaseFuture ¶
DatabaseAccountsDeleteSQLDatabaseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteSQLDatabaseFuture) Result ¶
func (future *DatabaseAccountsDeleteSQLDatabaseFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsDeleteTableFuture ¶
DatabaseAccountsDeleteTableFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsDeleteTableFuture) Result ¶
func (future *DatabaseAccountsDeleteTableFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsFailoverPriorityChangeFuture ¶
DatabaseAccountsFailoverPriorityChangeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsFailoverPriorityChangeFuture) Result ¶
func (future *DatabaseAccountsFailoverPriorityChangeFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsListResult ¶
type DatabaseAccountsListResult struct { autorest.Response `json:"-"` // Value - List of database account and their properties. Value *[]DatabaseAccount `json:"value,omitempty"` }
DatabaseAccountsListResult the List operation response, that contains the database accounts and their properties.
type DatabaseAccountsOfflineRegionFuture ¶
DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsOfflineRegionFuture) Result ¶
func (future *DatabaseAccountsOfflineRegionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsOnlineRegionFuture ¶
DatabaseAccountsOnlineRegionFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsOnlineRegionFuture) Result ¶
func (future *DatabaseAccountsOnlineRegionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsPatchFuture ¶
DatabaseAccountsPatchFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsPatchFuture) Result ¶
func (future *DatabaseAccountsPatchFuture) Result(client DatabaseAccountsClient) (da DatabaseAccount, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseAccountsRegenerateKeyFuture ¶
DatabaseAccountsRegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseAccountsRegenerateKeyFuture) Result ¶
func (future *DatabaseAccountsRegenerateKeyFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabaseClient ¶
type DatabaseClient struct {
BaseClient
}
DatabaseClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewDatabaseClient ¶
func NewDatabaseClient(subscriptionID string) DatabaseClient
NewDatabaseClient creates an instance of the DatabaseClient client.
func NewDatabaseClientWithBaseURI ¶
func NewDatabaseClientWithBaseURI(baseURI string, subscriptionID string) DatabaseClient
NewDatabaseClientWithBaseURI creates an instance of the DatabaseClient client.
func (DatabaseClient) ListMetricDefinitions ¶
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 - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid.
func (DatabaseClient) ListMetricDefinitionsPreparer ¶
func (client DatabaseClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string) (*http.Request, error)
ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.
func (DatabaseClient) ListMetricDefinitionsResponder ¶
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 ¶
ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the http.Response Body if it receives an error.
func (DatabaseClient) ListMetrics ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
func (DatabaseClient) ListUsages ¶
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 - name of an Azure resource group. 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 ¶
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 ¶
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 ¶
ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.
type DefaultConsistencyLevel ¶
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 ¶
func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel
PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.
type ErrorResponse ¶
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 ¶
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 ¶
type ExtendedResourceProperties struct { // Rid - A system generated property. A unique identifier. Rid *string `json:"_rid,omitempty"` // Ts - A system generated property that denotes the last updated timestamp of the resource. Ts interface{} `json:"_ts,omitempty"` // Etag - 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 and SQL containers.
type FailoverPolicies ¶
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 ¶
type FailoverPolicy struct { // ID - 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.
type GremlinDatabase ¶
type GremlinDatabase struct { autorest.Response `json:"-"` // GremlinDatabaseProperties - The properties of an Azure Cosmos DB SQL database *GremlinDatabaseProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
GremlinDatabase an Azure Cosmos DB Gremlin database.
func (GremlinDatabase) MarshalJSON ¶
func (gd GremlinDatabase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GremlinDatabase.
func (*GremlinDatabase) UnmarshalJSON ¶
func (gd *GremlinDatabase) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for GremlinDatabase struct.
type GremlinDatabaseCreateUpdateParameters ¶
type GremlinDatabaseCreateUpdateParameters struct { // GremlinDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB Gremlin database. *GremlinDatabaseCreateUpdateProperties `json:"properties,omitempty"` }
GremlinDatabaseCreateUpdateParameters parameters to create and update Cosmos DB Gremlin database.
func (GremlinDatabaseCreateUpdateParameters) MarshalJSON ¶
func (gdcup GremlinDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GremlinDatabaseCreateUpdateParameters.
func (*GremlinDatabaseCreateUpdateParameters) UnmarshalJSON ¶
func (gdcup *GremlinDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for GremlinDatabaseCreateUpdateParameters struct.
type GremlinDatabaseCreateUpdateProperties ¶
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 map[string]*string `json:"options"` }
GremlinDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB Gremlin database.
func (GremlinDatabaseCreateUpdateProperties) MarshalJSON ¶
func (gdcup GremlinDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GremlinDatabaseCreateUpdateProperties.
type GremlinDatabaseListResult ¶
type GremlinDatabaseListResult struct { autorest.Response `json:"-"` // Value - List of Gremlin databases and their properties. Value *[]GremlinDatabase `json:"value,omitempty"` }
GremlinDatabaseListResult the List operation response, that contains the Gremlin databases and their properties.
type GremlinDatabaseProperties ¶
type GremlinDatabaseProperties struct { // Rid - A system generated property. A unique identifier. Rid *string `json:"_rid,omitempty"` // Ts - A system generated property that denotes the last updated timestamp of the resource. Ts interface{} `json:"_ts,omitempty"` // Etag - A system generated property representing the resource etag required for optimistic concurrency control. Etag *string `json:"_etag,omitempty"` // ID - Name of the Cosmos DB Gremlin database ID *string `json:"id,omitempty"` }
GremlinDatabaseProperties the properties of an Azure Cosmos DB SQL database
type GremlinDatabaseResource ¶
type GremlinDatabaseResource struct { // ID - Name of the Cosmos DB Gremlin database ID *string `json:"id,omitempty"` }
GremlinDatabaseResource cosmos DB Gremlin database id object
type IncludedPath ¶
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 ¶
type IndexKind string
IndexKind enumerates the values for index kind.
func PossibleIndexKindValues ¶
func PossibleIndexKindValues() []IndexKind
PossibleIndexKindValues returns an array of possible values for the IndexKind const type.
type Indexes ¶
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 ¶
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 ¶
func PossibleIndexingModeValues() []IndexingMode
PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.
type IndexingPolicy ¶
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"` }
IndexingPolicy cosmos DB indexing policy
type KeyKind ¶
type KeyKind string
KeyKind enumerates the values for key kind.
func PossibleKeyKindValues ¶
func PossibleKeyKindValues() []KeyKind
PossibleKeyKindValues returns an array of possible values for the KeyKind const type.
type Location ¶
type Location struct { // ID - 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 - 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"` }
Location a region in which the Azure Cosmos DB database account is deployed.
type Metric ¶
type Metric struct { // StartTime - The start time for the metric (ISO-8601 format). StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time for the metric (ISO-8601 format). EndTime *date.Time `json:"endTime,omitempty"` // TimeGrain - 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 - The name information for the metric. Name *MetricName `json:"name,omitempty"` // MetricValues - The metric values for the specified time window and timestep. MetricValues *[]MetricValue `json:"metricValues,omitempty"` }
Metric metric data
type MetricAvailability ¶
type MetricAvailability struct { // TimeGrain - The time grain to be used to summarize the metric values. TimeGrain *string `json:"timeGrain,omitempty"` // Retention - The retention for the metric values. Retention *string `json:"retention,omitempty"` }
MetricAvailability the availability of the metric.
type MetricDefinition ¶
type MetricDefinition struct { // MetricAvailabilities - The list of metric availabilities for the account. MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` // PrimaryAggregationType - The primary aggregation type of the metric. Possible values include: 'PrimaryAggregationTypeNone', 'PrimaryAggregationTypeAverage', 'PrimaryAggregationTypeTotal', 'PrimaryAggregationTypeMinimimum', '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 - The resource uri of the database. ResourceURI *string `json:"resourceUri,omitempty"` // Name - The name information for the metric. Name *MetricName `json:"name,omitempty"` }
MetricDefinition the definition of a metric.
type MetricDefinitionsListResult ¶
type MetricDefinitionsListResult struct { autorest.Response `json:"-"` // Value - The list of metric definitions for the account. Value *[]MetricDefinition `json:"value,omitempty"` }
MetricDefinitionsListResult the response to a list metric definitions request.
type MetricListResult ¶
type MetricListResult struct { autorest.Response `json:"-"` // Value - The list of metrics for the account. Value *[]Metric `json:"value,omitempty"` }
MetricListResult the response to a list metrics request.
type MetricName ¶
type MetricName struct { // Value - The name of the metric. Value *string `json:"value,omitempty"` // LocalizedValue - The friendly name of the metric. LocalizedValue *string `json:"localizedValue,omitempty"` }
MetricName a metric name.
type MetricValue ¶
type MetricValue struct { // Count - The number of values for the metric. Count *float64 `json:"_count,omitempty"` // Average - The average value of the metric. Average *float64 `json:"average,omitempty"` // Maximum - The max value of the metric. Maximum *float64 `json:"maximum,omitempty"` // Minimum - The min value of the metric. Minimum *float64 `json:"minimum,omitempty"` // Timestamp - The metric timestamp (ISO-8601 format). Timestamp *date.Time `json:"timestamp,omitempty"` // Total - The total value of the metric. Total *float64 `json:"total,omitempty"` }
MetricValue represents metrics values.
type MongoCollection ¶
type MongoCollection struct { autorest.Response `json:"-"` // MongoCollectionProperties - The properties of an Azure Cosmos DB Mongo collection *MongoCollectionProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
MongoCollection an Azure Cosmos DB Mongo collection.
func (MongoCollection) MarshalJSON ¶
func (mc MongoCollection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoCollection.
func (*MongoCollection) UnmarshalJSON ¶
func (mc *MongoCollection) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MongoCollection struct.
type MongoCollectionCreateUpdateParameters ¶
type MongoCollectionCreateUpdateParameters struct { // MongoCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB Mongo collection. *MongoCollectionCreateUpdateProperties `json:"properties,omitempty"` }
MongoCollectionCreateUpdateParameters parameters to create and update Cosmos DB Mongo collection.
func (MongoCollectionCreateUpdateParameters) MarshalJSON ¶
func (mccup MongoCollectionCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoCollectionCreateUpdateParameters.
func (*MongoCollectionCreateUpdateParameters) UnmarshalJSON ¶
func (mccup *MongoCollectionCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MongoCollectionCreateUpdateParameters struct.
type MongoCollectionCreateUpdateProperties ¶
type MongoCollectionCreateUpdateProperties struct { // Resource - The standard JSON format of a Mongo collection Resource *MongoCollectionResource `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 map[string]*string `json:"options"` }
MongoCollectionCreateUpdateProperties properties to create and update Azure Cosmos DB Mongo collection.
func (MongoCollectionCreateUpdateProperties) MarshalJSON ¶
func (mccup MongoCollectionCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoCollectionCreateUpdateProperties.
type MongoCollectionListResult ¶
type MongoCollectionListResult struct { autorest.Response `json:"-"` // Value - List of Mongo collections and their properties. Value *[]MongoCollection `json:"value,omitempty"` }
MongoCollectionListResult the List operation response, that contains the Mongo collections and their properties.
type MongoCollectionProperties ¶
type MongoCollectionProperties struct { // ID - Name of the Cosmos DB Mongo 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"` }
MongoCollectionProperties the properties of an Azure Cosmos DB Mongo collection
func (MongoCollectionProperties) MarshalJSON ¶
func (mcp MongoCollectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoCollectionProperties.
type MongoCollectionResource ¶
type MongoCollectionResource struct { // ID - Name of the Cosmos DB Mongo 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"` }
MongoCollectionResource cosmos DB Mongo collection resource object
func (MongoCollectionResource) MarshalJSON ¶
func (mcr MongoCollectionResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoCollectionResource.
type MongoDatabase ¶
type MongoDatabase struct { autorest.Response `json:"-"` // MongoDatabaseProperties - The properties of an Azure Cosmos DB Mongo database *MongoDatabaseProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
MongoDatabase an Azure Cosmos DB Mongo database.
func (MongoDatabase) MarshalJSON ¶
func (md MongoDatabase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoDatabase.
func (*MongoDatabase) UnmarshalJSON ¶
func (md *MongoDatabase) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MongoDatabase struct.
type MongoDatabaseCreateUpdateParameters ¶
type MongoDatabaseCreateUpdateParameters struct { // MongoDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB Mongo database. *MongoDatabaseCreateUpdateProperties `json:"properties,omitempty"` }
MongoDatabaseCreateUpdateParameters parameters to create and update Cosmos DB Mongo database.
func (MongoDatabaseCreateUpdateParameters) MarshalJSON ¶
func (mdcup MongoDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoDatabaseCreateUpdateParameters.
func (*MongoDatabaseCreateUpdateParameters) UnmarshalJSON ¶
func (mdcup *MongoDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MongoDatabaseCreateUpdateParameters struct.
type MongoDatabaseCreateUpdateProperties ¶
type MongoDatabaseCreateUpdateProperties struct { // Resource - The standard JSON format of a Mongo database Resource *MongoDatabaseResource `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 map[string]*string `json:"options"` }
MongoDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB Mongo database.
func (MongoDatabaseCreateUpdateProperties) MarshalJSON ¶
func (mdcup MongoDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MongoDatabaseCreateUpdateProperties.
type MongoDatabaseListResult ¶
type MongoDatabaseListResult struct { autorest.Response `json:"-"` // Value - List of Mongo databases and their properties. Value *[]MongoDatabase `json:"value,omitempty"` }
MongoDatabaseListResult the List operation response, that contains the Mongo databases and their properties.
type MongoDatabaseProperties ¶
type MongoDatabaseProperties struct { // ID - Name of the Cosmos DB Mongo database ID *string `json:"id,omitempty"` }
MongoDatabaseProperties the properties of an Azure Cosmos DB Mongo database
type MongoDatabaseResource ¶
type MongoDatabaseResource struct { // ID - Name of the Cosmos DB Mongo database ID *string `json:"id,omitempty"` }
MongoDatabaseResource cosmos DB Mongo database id object
type MongoIndex ¶
type MongoIndex struct { // Key - Cosmos DB Mongo collection index keys Key *MongoIndexKeys `json:"key,omitempty"` // Options - Cosmos DB Mongo collection index key options Options *MongoIndexOptions `json:"options,omitempty"` }
MongoIndex cosmos DB Mongo collection index key
type MongoIndexKeys ¶
type MongoIndexKeys struct { // Keys - List of keys for each Mongo collection in the Azure Cosmos DB service Keys *[]string `json:"keys,omitempty"` }
MongoIndexKeys cosmos DB Mongo collection resource object
type MongoIndexOptions ¶
type MongoIndexOptions struct { // ExpireAfterSeconds - Expire after seconds ExpireAfterSeconds *int32 `json:"expireAfterSeconds,omitempty"` // Unique - Is unique or not Unique *bool `json:"unique,omitempty"` }
MongoIndexOptions cosmos DB Mongo collection index options
type Operation ¶
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` }
Operation REST API operation
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Service provider: Microsoft.ResourceProvider Provider *string `json:"Provider,omitempty"` // Resource - Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"Resource,omitempty"` // Operation - Operation type: Read, write, delete, etc. Operation *string `json:"Operation,omitempty"` // Description - Description of operation Description *string `json:"Description,omitempty"` }
OperationDisplay the object that represents the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of operations supported by the Resource Provider. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
OperationListResult result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) IsEmpty ¶
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListResultIterator ¶
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of Operation values.
func NewOperationListResultIterator ¶
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (*OperationListResultIterator) Next ¶
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultIterator) NextWithContext ¶
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OperationListResultIterator) NotDone ¶
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListResultIterator) Response ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func NewOperationListResultPage ¶
func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (*OperationListResultPage) Next ¶
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultPage) NextWithContext ¶
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OperationListResultPage) NotDone ¶
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListResultPage) Response ¶
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultPage) Values ¶
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists all of the available Cosmos DB Resource Provider operations.
func (OperationsClient) ListComplete ¶
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PartitionKeyRangeIDClient ¶
type PartitionKeyRangeIDClient struct {
BaseClient
}
PartitionKeyRangeIDClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewPartitionKeyRangeIDClient ¶
func NewPartitionKeyRangeIDClient(subscriptionID string) PartitionKeyRangeIDClient
NewPartitionKeyRangeIDClient creates an instance of the PartitionKeyRangeIDClient client.
func NewPartitionKeyRangeIDClientWithBaseURI ¶
func NewPartitionKeyRangeIDClientWithBaseURI(baseURI string, subscriptionID string) PartitionKeyRangeIDClient
NewPartitionKeyRangeIDClientWithBaseURI creates an instance of the PartitionKeyRangeIDClient client.
func (PartitionKeyRangeIDClient) ListMetrics ¶
func (client PartitionKeyRangeIDClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, partitionKeyRangeID string, filter string) (result PartitionMetricListResult, err error)
ListMetrics retrieves the metrics determined by the given filter for the given partition key range id. Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. databaseRid - cosmos DB database rid. collectionRid - cosmos DB collection rid. partitionKeyRangeID - partition Key Range Id for which to get data. 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 (PartitionKeyRangeIDClient) ListMetricsPreparer ¶
func (client PartitionKeyRangeIDClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseRid string, collectionRid string, partitionKeyRangeID string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (PartitionKeyRangeIDClient) ListMetricsResponder ¶
func (client PartitionKeyRangeIDClient) 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 (PartitionKeyRangeIDClient) ListMetricsSender ¶
func (client PartitionKeyRangeIDClient) 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 PartitionKeyRangeIDRegionClient ¶
type PartitionKeyRangeIDRegionClient struct {
BaseClient
}
PartitionKeyRangeIDRegionClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewPartitionKeyRangeIDRegionClient ¶
func NewPartitionKeyRangeIDRegionClient(subscriptionID string) PartitionKeyRangeIDRegionClient
NewPartitionKeyRangeIDRegionClient creates an instance of the PartitionKeyRangeIDRegionClient client.
func NewPartitionKeyRangeIDRegionClientWithBaseURI ¶
func NewPartitionKeyRangeIDRegionClientWithBaseURI(baseURI string, subscriptionID string) PartitionKeyRangeIDRegionClient
NewPartitionKeyRangeIDRegionClientWithBaseURI creates an instance of the PartitionKeyRangeIDRegionClient client.
func (PartitionKeyRangeIDRegionClient) ListMetrics ¶
func (client PartitionKeyRangeIDRegionClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, partitionKeyRangeID string, filter string) (result PartitionMetricListResult, err error)
ListMetrics retrieves the metrics determined by the given filter for the given partition key range id and region. Parameters: resourceGroupName - name of an Azure resource group. 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. partitionKeyRangeID - partition Key Range Id for which to get data. 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 (PartitionKeyRangeIDRegionClient) ListMetricsPreparer ¶
func (client PartitionKeyRangeIDRegionClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, partitionKeyRangeID string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (PartitionKeyRangeIDRegionClient) ListMetricsResponder ¶
func (client PartitionKeyRangeIDRegionClient) 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 (PartitionKeyRangeIDRegionClient) ListMetricsSender ¶
func (client PartitionKeyRangeIDRegionClient) 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 PartitionKind ¶
type PartitionKind string
PartitionKind enumerates the values for partition kind.
const ( // PartitionKindHash ... PartitionKindHash PartitionKind = "Hash" // PartitionKindRange ... PartitionKindRange PartitionKind = "Range" )
func PossiblePartitionKindValues ¶
func PossiblePartitionKindValues() []PartitionKind
PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type.
type PartitionMetric ¶
type PartitionMetric struct { // PartitionID - The partition id (GUID identifier) of the metric values. PartitionID *string `json:"partitionId,omitempty"` // PartitionKeyRangeID - The partition key range id (integer identifier) of the metric values. PartitionKeyRangeID *string `json:"partitionKeyRangeId,omitempty"` // StartTime - The start time for the metric (ISO-8601 format). StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time for the metric (ISO-8601 format). EndTime *date.Time `json:"endTime,omitempty"` // TimeGrain - 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 - The name information for the metric. Name *MetricName `json:"name,omitempty"` // MetricValues - The metric values for the specified time window and timestep. MetricValues *[]MetricValue `json:"metricValues,omitempty"` }
PartitionMetric the metric values for a single partition.
type PartitionMetricListResult ¶
type PartitionMetricListResult struct { autorest.Response `json:"-"` // Value - The list of partition-level metrics for the account. Value *[]PartitionMetric `json:"value,omitempty"` }
PartitionMetricListResult the response to a list partition metrics request.
type PartitionUsage ¶
type PartitionUsage struct { // PartitionID - The partition id (GUID identifier) of the usages. PartitionID *string `json:"partitionId,omitempty"` // PartitionKeyRangeID - The partition key range id (integer identifier) of the usages. PartitionKeyRangeID *string `json:"partitionKeyRangeId,omitempty"` // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' Unit UnitType `json:"unit,omitempty"` // Name - The name information for the metric. Name *MetricName `json:"name,omitempty"` // QuotaPeriod - The quota period used to summarize the usage values. QuotaPeriod *string `json:"quotaPeriod,omitempty"` // Limit - Maximum value for this metric Limit *int32 `json:"limit,omitempty"` // CurrentValue - Current value for this metric CurrentValue *int32 `json:"currentValue,omitempty"` }
PartitionUsage the partition level usage data for a usage request.
type PartitionUsagesResult ¶
type PartitionUsagesResult struct { autorest.Response `json:"-"` // Value - The list of partition-level usages for the database. A usage is a point in time metric Value *[]PartitionUsage `json:"value,omitempty"` }
PartitionUsagesResult the response to a list partition level usage request.
type PercentileClient ¶
type PercentileClient struct {
BaseClient
}
PercentileClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewPercentileClient ¶
func NewPercentileClient(subscriptionID string) PercentileClient
NewPercentileClient creates an instance of the PercentileClient client.
func NewPercentileClientWithBaseURI ¶
func NewPercentileClientWithBaseURI(baseURI string, subscriptionID string) PercentileClient
NewPercentileClientWithBaseURI creates an instance of the PercentileClient client.
func (PercentileClient) ListMetrics ¶
func (client PercentileClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, filter string) (result PercentileMetricListResult, err error)
ListMetrics retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data Parameters: resourceGroupName - name of an Azure resource group. 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 (PercentileClient) ListMetricsPreparer ¶
func (client PercentileClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (PercentileClient) ListMetricsResponder ¶
func (client PercentileClient) ListMetricsResponder(resp *http.Response) (result PercentileMetricListResult, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (PercentileClient) ListMetricsSender ¶
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type PercentileMetric ¶
type PercentileMetric struct { // StartTime - The start time for the metric (ISO-8601 format). StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time for the metric (ISO-8601 format). EndTime *date.Time `json:"endTime,omitempty"` // TimeGrain - 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 - The name information for the metric. Name *MetricName `json:"name,omitempty"` // MetricValues - The percentile metric values for the specified time window and timestep. MetricValues *[]PercentileMetricValue `json:"metricValues,omitempty"` }
PercentileMetric percentile Metric data
type PercentileMetricListResult ¶
type PercentileMetricListResult struct { autorest.Response `json:"-"` // Value - The list of percentile metrics for the account. Value *[]PercentileMetric `json:"value,omitempty"` }
PercentileMetricListResult the response to a list percentile metrics request.
type PercentileMetricValue ¶
type PercentileMetricValue struct { // P10 - The 10th percentile value for the metric. P10 *float64 `json:"P10,omitempty"` // P25 - The 25th percentile value for the metric. P25 *float64 `json:"P25,omitempty"` // P50 - The 50th percentile value for the metric. P50 *float64 `json:"P50,omitempty"` // P75 - The 75th percentile value for the metric. P75 *float64 `json:"P75,omitempty"` // P90 - The 90th percentile value for the metric. P90 *float64 `json:"P90,omitempty"` // P95 - The 95th percentile value for the metric. P95 *float64 `json:"P95,omitempty"` // P99 - The 99th percentile value for the metric. P99 *float64 `json:"P99,omitempty"` // Count - The number of values for the metric. Count *float64 `json:"_count,omitempty"` // Average - The average value of the metric. Average *float64 `json:"average,omitempty"` // Maximum - The max value of the metric. Maximum *float64 `json:"maximum,omitempty"` // Minimum - The min value of the metric. Minimum *float64 `json:"minimum,omitempty"` // Timestamp - The metric timestamp (ISO-8601 format). Timestamp *date.Time `json:"timestamp,omitempty"` // Total - The total value of the metric. Total *float64 `json:"total,omitempty"` }
PercentileMetricValue represents percentile metrics values.
type PercentileSourceTargetClient ¶
type PercentileSourceTargetClient struct {
BaseClient
}
PercentileSourceTargetClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewPercentileSourceTargetClient ¶
func NewPercentileSourceTargetClient(subscriptionID string) PercentileSourceTargetClient
NewPercentileSourceTargetClient creates an instance of the PercentileSourceTargetClient client.
func NewPercentileSourceTargetClientWithBaseURI ¶
func NewPercentileSourceTargetClientWithBaseURI(baseURI string, subscriptionID string) PercentileSourceTargetClient
NewPercentileSourceTargetClientWithBaseURI creates an instance of the PercentileSourceTargetClient client.
func (PercentileSourceTargetClient) ListMetrics ¶
func (client PercentileSourceTargetClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, sourceRegion string, targetRegion string, filter string) (result PercentileMetricListResult, err error)
ListMetrics retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. sourceRegion - source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized. targetRegion - target region to which data is written. 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 (PercentileSourceTargetClient) ListMetricsPreparer ¶
func (client PercentileSourceTargetClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, sourceRegion string, targetRegion string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (PercentileSourceTargetClient) ListMetricsResponder ¶
func (client PercentileSourceTargetClient) ListMetricsResponder(resp *http.Response) (result PercentileMetricListResult, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (PercentileSourceTargetClient) ListMetricsSender ¶
func (client PercentileSourceTargetClient) 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 PercentileTargetClient ¶
type PercentileTargetClient struct {
BaseClient
}
PercentileTargetClient is the azure Cosmos DB Database Service Resource Provider REST API
func NewPercentileTargetClient ¶
func NewPercentileTargetClient(subscriptionID string) PercentileTargetClient
NewPercentileTargetClient creates an instance of the PercentileTargetClient client.
func NewPercentileTargetClientWithBaseURI ¶
func NewPercentileTargetClientWithBaseURI(baseURI string, subscriptionID string) PercentileTargetClient
NewPercentileTargetClientWithBaseURI creates an instance of the PercentileTargetClient client.
func (PercentileTargetClient) ListMetrics ¶
func (client PercentileTargetClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, targetRegion string, filter string) (result PercentileMetricListResult, err error)
ListMetrics retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data Parameters: resourceGroupName - name of an Azure resource group. accountName - cosmos DB database account name. targetRegion - target region to which data is written. 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 (PercentileTargetClient) ListMetricsPreparer ¶
func (client PercentileTargetClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, targetRegion string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (PercentileTargetClient) ListMetricsResponder ¶
func (client PercentileTargetClient) ListMetricsResponder(resp *http.Response) (result PercentileMetricListResult, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (PercentileTargetClient) ListMetricsSender ¶
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type PrimaryAggregationType ¶
type PrimaryAggregationType string
PrimaryAggregationType enumerates the values for primary aggregation type.
const ( // PrimaryAggregationTypeAverage ... PrimaryAggregationTypeAverage PrimaryAggregationType = "Average" // PrimaryAggregationTypeLast ... PrimaryAggregationTypeLast PrimaryAggregationType = "Last" // PrimaryAggregationTypeMaximum ... PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum" // PrimaryAggregationTypeMinimimum ... PrimaryAggregationTypeMinimimum PrimaryAggregationType = "Minimimum" // PrimaryAggregationTypeNone ... PrimaryAggregationTypeNone PrimaryAggregationType = "None" // PrimaryAggregationTypeTotal ... PrimaryAggregationTypeTotal PrimaryAggregationType = "Total" )
func PossiblePrimaryAggregationTypeValues ¶
func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType
PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
type RegionForOnlineOffline ¶
type RegionForOnlineOffline struct { // Region - Cosmos DB region, with spaces between words and each word capitalized. Region *string `json:"region,omitempty"` }
RegionForOnlineOffline cosmos DB region to online or offline.
type Resource ¶
type Resource struct { // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
Resource the core properties of ARM resources.
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type SQLDatabase ¶
type SQLDatabase struct { autorest.Response `json:"-"` // SQLDatabaseProperties - The properties of an Azure Cosmos DB SQL database *SQLDatabaseProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
SQLDatabase an Azure Cosmos DB SQL database.
func (SQLDatabase) MarshalJSON ¶
func (sd SQLDatabase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLDatabase.
func (*SQLDatabase) UnmarshalJSON ¶
func (sd *SQLDatabase) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SQLDatabase struct.
type SQLDatabaseCreateUpdateParameters ¶
type SQLDatabaseCreateUpdateParameters struct { // SQLDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB SQL database. *SQLDatabaseCreateUpdateProperties `json:"properties,omitempty"` }
SQLDatabaseCreateUpdateParameters parameters to create and update Cosmos DB SQL database.
func (SQLDatabaseCreateUpdateParameters) MarshalJSON ¶
func (sdcup SQLDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLDatabaseCreateUpdateParameters.
func (*SQLDatabaseCreateUpdateParameters) UnmarshalJSON ¶
func (sdcup *SQLDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SQLDatabaseCreateUpdateParameters struct.
type SQLDatabaseCreateUpdateProperties ¶
type SQLDatabaseCreateUpdateProperties struct { // Resource - The standard JSON format of a SQL database Resource *SQLDatabaseResource `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 map[string]*string `json:"options"` }
SQLDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB SQL database.
func (SQLDatabaseCreateUpdateProperties) MarshalJSON ¶
func (sdcup SQLDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SQLDatabaseCreateUpdateProperties.
type SQLDatabaseListResult ¶
type SQLDatabaseListResult struct { autorest.Response `json:"-"` // Value - List of SQL databases and their properties. Value *[]SQLDatabase `json:"value,omitempty"` }
SQLDatabaseListResult the List operation response, that contains the SQL databases and their properties.
type SQLDatabaseProperties ¶
type SQLDatabaseProperties struct { // ID - Name of the Cosmos DB SQL database ID *string `json:"id,omitempty"` // Rid - A system generated property. A unique identifier. Rid *string `json:"_rid,omitempty"` // Ts - A system generated property that denotes the last updated timestamp of the resource. Ts interface{} `json:"_ts,omitempty"` // Etag - A system generated property representing the resource etag required for optimistic concurrency control. Etag *string `json:"_etag,omitempty"` // Colls - A system generated property that specified the addressable path of the collections resource. Colls *string `json:"_colls,omitempty"` // Users - A system generated property that specifies the addressable path of the users resource. Users *string `json:"_users,omitempty"` }
SQLDatabaseProperties the properties of an Azure Cosmos DB SQL database
type SQLDatabaseResource ¶
type SQLDatabaseResource struct { // ID - Name of the Cosmos DB SQL database ID *string `json:"id,omitempty"` }
SQLDatabaseResource cosmos DB SQL database id object
type Table ¶
type Table struct { autorest.Response `json:"-"` // TableProperties - The properties of an Azure Cosmos DB Table *TableProperties `json:"properties,omitempty"` // ID - The unique resource identifier of the database account. ID *string `json:"id,omitempty"` // Name - The name of the database account. Name *string `json:"name,omitempty"` // Type - 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"` }
Table an Azure Cosmos DB Table.
func (Table) MarshalJSON ¶
MarshalJSON is the custom marshaler for Table.
func (*Table) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Table struct.
type TableCreateUpdateParameters ¶
type TableCreateUpdateParameters struct { // TableCreateUpdateProperties - Properties to create and update Azure Cosmos DB Table. *TableCreateUpdateProperties `json:"properties,omitempty"` }
TableCreateUpdateParameters parameters to create and update Cosmos DB Table.
func (TableCreateUpdateParameters) MarshalJSON ¶
func (tcup TableCreateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TableCreateUpdateParameters.
func (*TableCreateUpdateParameters) UnmarshalJSON ¶
func (tcup *TableCreateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for TableCreateUpdateParameters struct.
type TableCreateUpdateProperties ¶
type TableCreateUpdateProperties struct { // Resource - The standard JSON format of a Table Resource *TableResource `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 map[string]*string `json:"options"` }
TableCreateUpdateProperties properties to create and update Azure Cosmos DB Table.
func (TableCreateUpdateProperties) MarshalJSON ¶
func (tcup TableCreateUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TableCreateUpdateProperties.
type TableListResult ¶
type TableListResult struct { autorest.Response `json:"-"` // Value - List of Table and their properties. Value *[]Table `json:"value,omitempty"` }
TableListResult the List operation response, that contains the Table and their properties.
type TableProperties ¶
type TableProperties struct { // ID - Name of the Cosmos DB table ID *string `json:"id,omitempty"` }
TableProperties the properties of an Azure Cosmos Table
type TableResource ¶
type TableResource struct { // ID - Name of the Cosmos DB table ID *string `json:"id,omitempty"` }
TableResource cosmos DB table id object
type UniqueKey ¶
type UniqueKey struct { // Paths - List of paths must be unique for each document in the Azure Cosmos DB service Paths *[]string `json:"paths,omitempty"` }
UniqueKey the unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
type UniqueKeyPolicy ¶
type UniqueKeyPolicy struct { // UniqueKeys - List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service. UniqueKeys *[]UniqueKey `json:"uniqueKeys,omitempty"` }
UniqueKeyPolicy the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
type UnitType ¶
type UnitType string
UnitType enumerates the values for unit type.
const ( // Bytes ... Bytes UnitType = "Bytes" // BytesPerSecond ... BytesPerSecond UnitType = "BytesPerSecond" // Count ... Count UnitType = "Count" // CountPerSecond ... CountPerSecond UnitType = "CountPerSecond" // Milliseconds ... Milliseconds UnitType = "Milliseconds" // Percent ... Percent UnitType = "Percent" // Seconds ... Seconds UnitType = "Seconds" )
func PossibleUnitTypeValues ¶
func PossibleUnitTypeValues() []UnitType
PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
type Usage ¶
type Usage struct { // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' Unit UnitType `json:"unit,omitempty"` // Name - The name information for the metric. Name *MetricName `json:"name,omitempty"` // QuotaPeriod - The quota period used to summarize the usage values. QuotaPeriod *string `json:"quotaPeriod,omitempty"` // Limit - Maximum value for this metric Limit *int32 `json:"limit,omitempty"` // CurrentValue - Current value for this metric CurrentValue *int32 `json:"currentValue,omitempty"` }
Usage the usage data for a usage request.
type UsagesResult ¶
type UsagesResult struct { autorest.Response `json:"-"` // Value - The list of usages for the database. A usage is a point in time metric Value *[]Usage `json:"value,omitempty"` }
UsagesResult the response to a list usage request.
type VirtualNetworkRule ¶
type VirtualNetworkRule struct { // ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. ID *string `json:"id,omitempty"` // IgnoreMissingVNetServiceEndpoint - Create firewall rule before the virtual network has vnet service endpoint enabled. IgnoreMissingVNetServiceEndpoint *bool `json:"ignoreMissingVNetServiceEndpoint,omitempty"` }
VirtualNetworkRule virtual Network ACL Rule object