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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace Microsoft.Azure.Search
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Client that can be used to manage and query indexes and documents, as
Expand Down Expand Up @@ -94,5 +98,19 @@ public partial interface ISearchServiceClient : System.IDisposable
/// </summary>
IIndexesOperations Indexes { get; }

/// <summary>
/// Gets service level statistics for an Azure Search service.
/// </summary>
/// <param name='searchRequestOptions'>
/// Additional parameters for the operation
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<ServiceStatistics>> GetServiceStatisticsWithHttpMessagesAsync(SearchRequestOptions searchRequestOptions = default(SearchRequestOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Represents a resource's usage and quota.
/// </summary>
public partial class ResourceCounter
{
/// <summary>
/// Initializes a new instance of the ResourceCounter class.
/// </summary>
public ResourceCounter()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ResourceCounter class.
/// </summary>
/// <param name="usage">The resource usage amount.</param>
/// <param name="quota">The resource amount quota.</param>
public ResourceCounter(long usage = default(long), long? quota = default(long?))
{
Usage = usage;
Quota = quota;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the resource usage amount.
/// </summary>
[JsonProperty(PropertyName = "usage")]
public long Usage { get; set; }

/// <summary>
/// Gets or sets the resource amount quota.
/// </summary>
[JsonProperty(PropertyName = "quota")]
public long? Quota { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Represents service-level resource counters and quotas.
/// </summary>
public partial class ServiceCounters
{
/// <summary>
/// Initializes a new instance of the ServiceCounters class.
/// </summary>
public ServiceCounters()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ServiceCounters class.
/// </summary>
/// <param name="documentCounter">Total number of documents across all
/// indexes in the service.</param>
/// <param name="indexCounter">Total number of indexes.</param>
/// <param name="indexerCounter">Total number of indexers.</param>
/// <param name="dataSourceCounter">Total number of data
/// sources.</param>
/// <param name="storageSizeCounter">Total size of used storage in
/// bytes.</param>
/// <param name="synonymMapCounter">Total number of synonym
/// maps.</param>
public ServiceCounters(ResourceCounter documentCounter = default(ResourceCounter), ResourceCounter indexCounter = default(ResourceCounter), ResourceCounter indexerCounter = default(ResourceCounter), ResourceCounter dataSourceCounter = default(ResourceCounter), ResourceCounter storageSizeCounter = default(ResourceCounter), ResourceCounter synonymMapCounter = default(ResourceCounter))
{
DocumentCounter = documentCounter;
IndexCounter = indexCounter;
IndexerCounter = indexerCounter;
DataSourceCounter = dataSourceCounter;
StorageSizeCounter = storageSizeCounter;
SynonymMapCounter = synonymMapCounter;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets total number of documents across all indexes in the
/// service.
/// </summary>
[JsonProperty(PropertyName = "documentCount")]
public ResourceCounter DocumentCounter { get; set; }

/// <summary>
/// Gets or sets total number of indexes.
/// </summary>
[JsonProperty(PropertyName = "indexesCount")]
public ResourceCounter IndexCounter { get; set; }

/// <summary>
/// Gets or sets total number of indexers.
/// </summary>
[JsonProperty(PropertyName = "indexersCount")]
public ResourceCounter IndexerCounter { get; set; }

/// <summary>
/// Gets or sets total number of data sources.
/// </summary>
[JsonProperty(PropertyName = "dataSourcesCount")]
public ResourceCounter DataSourceCounter { get; set; }

/// <summary>
/// Gets or sets total size of used storage in bytes.
/// </summary>
[JsonProperty(PropertyName = "storageSize")]
public ResourceCounter StorageSizeCounter { get; set; }

/// <summary>
/// Gets or sets total number of synonym maps.
/// </summary>
[JsonProperty(PropertyName = "synonymMaps")]
public ResourceCounter SynonymMapCounter { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Represents various service level limits.
/// </summary>
public partial class ServiceLimits
{
/// <summary>
/// Initializes a new instance of the ServiceLimits class.
/// </summary>
public ServiceLimits()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ServiceLimits class.
/// </summary>
/// <param name="maxFieldsPerIndex">The maximum allowed fields per
/// index.</param>
/// <param name="maxIndexerRunTime">The maximum time an indexer will
/// run in a single execution. In the next run, indexing will resume at
/// the point where it stopped.</param>
/// <param name="maxFileExtractionSize">When using a blob indexer, if
/// the size in bytes of a blob's content is larger than this size, it
/// results in an error.</param>
/// <param name="maxFileContentCharactersToExtract">The maximum number
/// of characters extracted from a blob when using a blob indexer. If a
/// blob has more content, it is not indexed and a warning is added to
/// the indexer execution result.</param>
/// <param name="maxFieldNestingDepthPerIndex">The maximum depth which
/// you can nest sub-fields in an index, including the top-level
/// complex field. For example, a/b/c has a nesting depth of 3.</param>
/// <param name="maxComplexCollectionFieldsPerIndex">The maximum number
/// of fields of type Collection(Edm.ComplexType) allowed in an
/// index.</param>
public ServiceLimits(int? maxFieldsPerIndex = default(int?), System.TimeSpan? maxIndexerRunTime = default(System.TimeSpan?), long? maxFileExtractionSize = default(long?), int? maxFileContentCharactersToExtract = default(int?), int? maxFieldNestingDepthPerIndex = default(int?), int? maxComplexCollectionFieldsPerIndex = default(int?))
{
MaxFieldsPerIndex = maxFieldsPerIndex;
MaxIndexerRunTime = maxIndexerRunTime;
MaxFileExtractionSize = maxFileExtractionSize;
MaxFileContentCharactersToExtract = maxFileContentCharactersToExtract;
MaxFieldNestingDepthPerIndex = maxFieldNestingDepthPerIndex;
MaxComplexCollectionFieldsPerIndex = maxComplexCollectionFieldsPerIndex;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the maximum allowed fields per index.
/// </summary>
[JsonProperty(PropertyName = "maxFieldsPerIndex")]
public int? MaxFieldsPerIndex { get; set; }

/// <summary>
/// Gets or sets the maximum time an indexer will run in a single
/// execution. In the next run, indexing will resume at the point where
/// it stopped.
/// </summary>
[JsonProperty(PropertyName = "maxIndexerRunTime")]
public System.TimeSpan? MaxIndexerRunTime { get; set; }

/// <summary>
/// Gets or sets when using a blob indexer, if the size in bytes of a
/// blob's content is larger than this size, it results in an error.
/// </summary>
[JsonProperty(PropertyName = "maxFileExtractionSize")]
public long? MaxFileExtractionSize { get; set; }

/// <summary>
/// Gets or sets the maximum number of characters extracted from a blob
/// when using a blob indexer. If a blob has more content, it is not
/// indexed and a warning is added to the indexer execution result.
/// </summary>
[JsonProperty(PropertyName = "maxFileContentCharactersToExtract")]
public int? MaxFileContentCharactersToExtract { get; set; }

/// <summary>
/// Gets or sets the maximum depth which you can nest sub-fields in an
/// index, including the top-level complex field. For example, a/b/c
/// has a nesting depth of 3.
/// </summary>
[JsonProperty(PropertyName = "maxFieldNestingDepthPerIndex")]
public int? MaxFieldNestingDepthPerIndex { get; set; }

/// <summary>
/// Gets or sets the maximum number of fields of type
/// Collection(Edm.ComplexType) allowed in an index.
/// </summary>
[JsonProperty(PropertyName = "maxComplexCollectionFieldsPerIndex")]
public int? MaxComplexCollectionFieldsPerIndex { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Response from a get service statistics request. If successful, it
/// includes service level counters and limits.
/// </summary>
public partial class ServiceStatistics
{
/// <summary>
/// Initializes a new instance of the ServiceStatistics class.
/// </summary>
public ServiceStatistics()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ServiceStatistics class.
/// </summary>
/// <param name="counters">Service level resource counters.</param>
/// <param name="limits">Service level general limits.</param>
public ServiceStatistics(ServiceCounters counters = default(ServiceCounters), ServiceLimits limits = default(ServiceLimits))
{
Counters = counters;
Limits = limits;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets service level resource counters.
/// </summary>
[JsonProperty(PropertyName = "counters")]
public ServiceCounters Counters { get; set; }

/// <summary>
/// Gets or sets service level general limits.
/// </summary>
[JsonProperty(PropertyName = "limits")]
public ServiceLimits Limits { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_SearchServiceCl
return new Tuple<string, string, string>[]
{
new Tuple<string, string, string>("SearchServiceClient", "DataSources", "2016-09-01-Preview"),
new Tuple<string, string, string>("SearchServiceClient", "GetServiceStatistics", "2016-09-01-Preview"),
new Tuple<string, string, string>("SearchServiceClient", "Indexers", "2016-09-01-Preview"),
new Tuple<string, string, string>("SearchServiceClient", "Indexes", "2016-09-01-Preview"),
new Tuple<string, string, string>("SearchServiceClient", "SynonymMaps", "2016-09-01-Preview"),
Expand Down
Loading