Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions src/CosmosDB/CosmosDB.Sdk/Customized/IpAddressOrRange.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.CosmosDB.Models
{
/// <summary>
/// IpAddressOrRange object
/// </summary>
public partial class IpAddressOrRange
{


/// <summary>
/// This is an alias to the IPAddressOrRangeProperty property. This is for backward compatibility.
/// This property will be deprecated in the future, please use IPAddressOrRangeProperty instead.
/// </summary>
public string IpAddressOrRangeProperty {get=>IPAddressOrRangeProperty; set=>IPAddressOrRangeProperty=value; }
}
}
1,428 changes: 735 additions & 693 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperations.cs

Large diffs are not rendered by default.

1,279 changes: 591 additions & 688 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperationsExtensions.cs

Large diffs are not rendered by default.

770 changes: 396 additions & 374 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CassandraDataCentersOperations.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,436 changes: 1,270 additions & 1,166 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CassandraResourcesOperations.cs

Large diffs are not rendered by default.

2,443 changes: 1,161 additions & 1,282 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CassandraResourcesOperationsExtensions.cs

Large diffs are not rendered by default.

449 changes: 230 additions & 219 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CollectionOperations.cs

Large diffs are not rendered by default.

344 changes: 159 additions & 185 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CollectionOperationsExtensions.cs

Large diffs are not rendered by default.

317 changes: 159 additions & 158 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CollectionPartitionOperations.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,157 +1,130 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.CosmosDB
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for CollectionPartitionOperations.
/// Extension methods for CollectionPartitionOperations
/// </summary>
public static partial class CollectionPartitionOperationsExtensions
{
/// <summary>
/// Retrieves the metrics determined by the given filter for the given
/// collection, split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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.
/// </param>
public static IEnumerable<PartitionMetric> ListMetrics(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter)
{
return operations.ListMetricsAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter).GetAwaiter().GetResult();
}
/// <summary>
/// Retrieves the metrics determined by the given filter for the given collection, split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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.
/// </param>
public static System.Collections.Generic.IEnumerable<PartitionMetric> ListMetrics(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter)
{
return ((ICollectionPartitionOperations)operations).ListMetricsAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter).GetAwaiter().GetResult();
}

/// <summary>
/// Retrieves the metrics determined by the given filter for the given
/// collection, split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IEnumerable<PartitionMetric>> ListMetricsAsync(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter, CancellationToken cancellationToken = default(CancellationToken))
/// <summary>
/// Retrieves the metrics determined by the given filter for the given collection, split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PartitionMetric>> ListMetricsAsync(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.ListMetricsWithHttpMessagesAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter, null, cancellationToken).ConfigureAwait(false))
{
using (var _result = await operations.ListMetricsWithHttpMessagesAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
return _result.Body;
}
}
/// <summary>
/// Retrieves the usages (most recent storage data) for the given collection, split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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).
/// </param>
public static System.Collections.Generic.IEnumerable<PartitionUsage> ListUsages(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter = default(string))
{
return ((ICollectionPartitionOperations)operations).ListUsagesAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter).GetAwaiter().GetResult();
}

/// <summary>
/// Retrieves the usages (most recent storage data) for the given collection,
/// split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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).
/// </param>
public static IEnumerable<PartitionUsage> ListUsages(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter = default(string))
/// <summary>
/// Retrieves the usages (most recent storage data) for the given collection, split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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).
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PartitionUsage>> ListUsagesAsync(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.ListUsagesWithHttpMessagesAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter, null, cancellationToken).ConfigureAwait(false))
{
return operations.ListUsagesAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter).GetAwaiter().GetResult();
return _result.Body;
}

/// <summary>
/// Retrieves the usages (most recent storage data) for the given collection,
/// split by partition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// Cosmos DB database account name.
/// </param>
/// <param name='databaseRid'>
/// Cosmos DB database rid.
/// </param>
/// <param name='collectionRid'>
/// Cosmos DB collection rid.
/// </param>
/// <param 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).
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IEnumerable<PartitionUsage>> ListUsagesAsync(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListUsagesWithHttpMessagesAsync(resourceGroupName, accountName, databaseRid, collectionRid, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

}
}
}
Loading