From 165c4777f47f06568d6377500dd45fb690f7a371 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 23 Oct 2023 21:50:48 +0000 Subject: [PATCH] CodeGen from PR 26295 in Azure/azure-rest-api-specs Merge dde2cbde5813c0fad6902629d779bf126c10ff9c into 7c906b15744aaf7b782dfb82ccefcbef05cbf20b --- ...e.ResourceManager.Search.netstandard2.0.cs | 46 ++++- ...archPrivateEndpointConnectionCollection.cs | 10 +- ...SearchPrivateEndpointConnectionResource.cs | 6 +- .../Samples/Sample_SearchServiceCollection.cs | 69 +++++-- .../Samples/Sample_SearchServiceResource.cs | 75 +++++-- ..._SharedSearchServicePrivateLinkResource.cs | 6 +- ...rchServicePrivateLinkResourceCollection.cs | 10 +- .../Sample_SubscriptionResourceExtensions.cs | 77 ++++++++ .../src/Generated/ArmSearchModelFactory.cs | 73 ++++--- .../Generated/Extensions/SearchExtensions.cs | 104 +++++++++- .../SubscriptionResourceExtensionClient.cs | 122 ++++++++++++ .../Models/DataPlaneAadOrApiKeyAuthOption.cs | 6 +- .../Generated/Models/ListQueryKeysResult.cs | 6 +- .../src/Generated/Models/NetworkRuleSet.cs | 6 +- .../Models/QuotaUsageResult.Serialization.cs | 69 +++++++ .../src/Generated/Models/QuotaUsageResult.cs | 44 +++++ .../QuotaUsageResultName.Serialization.cs | 39 ++++ .../Generated/Models/QuotaUsageResultName.cs | 32 +++ .../QuotaUsagesListResult.Serialization.cs | 49 +++++ .../Generated/Models/QuotaUsagesListResult.cs | 36 ++++ .../SearchAadAuthDataPlaneAuthOptions.cs | 12 +- .../Models/SearchAadAuthFailureMode.cs | 2 +- .../SearchEncryptionComplianceStatus.cs | 6 +- .../Models/SearchEncryptionWithCmk.cs | 10 +- .../SearchEncryptionWithCmkEnforcement.cs | 6 +- .../Models/SearchPrivateLinkResource.cs | 6 +- .../SearchPrivateLinkResourceProperties.cs | 6 +- ...eLinkServiceConnectionProvisioningState.cs | 2 +- .../Generated/Models/SearchSemanticSearch.cs | 54 +++++ .../Models/SearchServiceAdminKeyResult.cs | 2 +- .../Models/SearchServiceData.Serialization.cs | 25 ++- .../Generated/Models/SearchServiceIPRule.cs | 6 +- .../Models/SearchServiceListResult.cs | 6 +- .../SearchServicePatch.Serialization.cs | 25 ++- .../Generated/Models/SearchServicePatch.cs | 30 +-- ...vicePrivateEndpointConnectionProperties.cs | 6 +- ...ervicePrivateLinkServiceConnectionState.cs | 4 +- ...rvicePrivateLinkServiceConnectionStatus.cs | 2 +- .../Generated/Models/SearchServiceQueryKey.cs | 2 +- .../Generated/Models/SearchServiceStatus.cs | 2 +- .../src/Generated/Models/SearchSku.cs | 2 +- .../src/Generated/Models/SearchSkuName.cs | 10 +- ...rchServicePrivateLinkResourceProperties.cs | 14 +- ...bleSearchServicePrivateLinkResourceType.cs | 10 +- ...rchServicePrivateLinkResourceProperties.cs | 10 +- ...icePrivateLinkResourceProvisioningState.cs | 2 +- ...dSearchServicePrivateLinkResourceStatus.cs | 2 +- .../RestOperations/AdminKeysRestOperations.cs | 22 +-- ...rivateEndpointConnectionsRestOperations.cs | 54 ++--- .../PrivateLinkResourcesRestOperations.cs | 10 +- .../RestOperations/QueryKeysRestOperations.cs | 42 ++-- .../SearchManagementRestOperations.cs | 118 +++++++++++ .../RestOperations/ServicesRestOperations.cs | 54 ++--- ...haredPrivateLinkResourcesRestOperations.cs | 54 ++--- .../RestOperations/UsagesRestOperations.cs | 185 ++++++++++++++++++ ...archPrivateEndpointConnectionCollection.cs | 16 +- .../SearchPrivateEndpointConnectionData.cs | 6 +- .../src/Generated/SearchServiceCollection.cs | 16 +- .../src/Generated/SearchServiceData.cs | 30 +-- .../src/Generated/SearchServiceResource.cs | 16 +- ...rchServicePrivateLinkResourceCollection.cs | 16 +- ...redSearchServicePrivateLinkResourceData.cs | 6 +- .../src/autorest.md | 2 +- 63 files changed, 1464 insertions(+), 332 deletions(-) create mode 100644 sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.Serialization.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.Serialization.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.Serialization.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSemanticSearch.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs create mode 100644 sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs diff --git a/sdk/search/Azure.ResourceManager.Search/api/Azure.ResourceManager.Search.netstandard2.0.cs b/sdk/search/Azure.ResourceManager.Search/api/Azure.ResourceManager.Search.netstandard2.0.cs index 7d94f9156cbc..9c0b9e2bb127 100644 --- a/sdk/search/Azure.ResourceManager.Search/api/Azure.ResourceManager.Search.netstandard2.0.cs +++ b/sdk/search/Azure.ResourceManager.Search/api/Azure.ResourceManager.Search.netstandard2.0.cs @@ -12,6 +12,10 @@ public static partial class SearchExtensions public static Azure.Pageable GetSearchServices(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetSearchServicesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Search.SharedSearchServicePrivateLinkResource GetSharedSearchServicePrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Pageable GetUsagesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetUsagesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response UsageBySubscriptionSku(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string skuName, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> UsageBySubscriptionSkuAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string skuName, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class SearchPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -80,6 +84,7 @@ public SearchServiceData(Azure.Core.AzureLocation location) : base (default(Azur public Azure.ResourceManager.Search.Models.SearchServiceProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } public int? ReplicaCount { get { throw null; } set { } } + public Azure.ResourceManager.Search.Models.SearchSemanticSearch? SemanticSearch { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList SharedPrivateLinkResources { get { throw null; } } public Azure.ResourceManager.Search.Models.SearchSkuName? SkuName { get { throw null; } set { } } public Azure.ResourceManager.Search.Models.SearchServiceStatus? Status { get { throw null; } } @@ -164,19 +169,36 @@ namespace Azure.ResourceManager.Search.Models { public static partial class ArmSearchModelFactory { + public static Azure.ResourceManager.Search.Models.QuotaUsageResult QuotaUsageResult(string id = null, string unit = null, int? currentValue = default(int?), int? limit = default(int?), Azure.ResourceManager.Search.Models.QuotaUsageResultName name = null) { throw null; } + public static Azure.ResourceManager.Search.Models.QuotaUsageResultName QuotaUsageResultName(string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Search.Models.SearchEncryptionWithCmk SearchEncryptionWithCmk(Azure.ResourceManager.Search.Models.SearchEncryptionWithCmkEnforcement? enforcement = default(Azure.ResourceManager.Search.Models.SearchEncryptionWithCmkEnforcement?), Azure.ResourceManager.Search.Models.SearchEncryptionComplianceStatus? encryptionComplianceStatus = default(Azure.ResourceManager.Search.Models.SearchEncryptionComplianceStatus?)) { throw null; } public static Azure.ResourceManager.Search.SearchPrivateEndpointConnectionData SearchPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Search.Models.SearchServicePrivateEndpointConnectionProperties properties = null) { throw null; } public static Azure.ResourceManager.Search.Models.SearchPrivateLinkResource SearchPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Search.Models.SearchPrivateLinkResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.Search.Models.SearchPrivateLinkResourceProperties SearchPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null, System.Collections.Generic.IEnumerable shareablePrivateLinkResourceTypes = null) { throw null; } public static Azure.ResourceManager.Search.Models.SearchServiceAdminKeyResult SearchServiceAdminKeyResult(string primaryKey = null, string secondaryKey = null) { throw null; } - public static Azure.ResourceManager.Search.SearchServiceData SearchServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Search.Models.SearchSkuName? skuName = default(Azure.ResourceManager.Search.Models.SearchSkuName?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, int? replicaCount = default(int?), int? partitionCount = default(int?), Azure.ResourceManager.Search.Models.SearchServiceHostingMode? hostingMode = default(Azure.ResourceManager.Search.Models.SearchServiceHostingMode?), Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess?), Azure.ResourceManager.Search.Models.SearchServiceStatus? status = default(Azure.ResourceManager.Search.Models.SearchServiceStatus?), string statusDetails = null, Azure.ResourceManager.Search.Models.SearchServiceProvisioningState? provisioningState = default(Azure.ResourceManager.Search.Models.SearchServiceProvisioningState?), System.Collections.Generic.IEnumerable ipRules = null, Azure.ResourceManager.Search.Models.SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = default(bool?), Azure.ResourceManager.Search.Models.SearchAadAuthDataPlaneAuthOptions authOptions = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null) { throw null; } + public static Azure.ResourceManager.Search.SearchServiceData SearchServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Search.Models.SearchSkuName? skuName = default(Azure.ResourceManager.Search.Models.SearchSkuName?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, int? replicaCount = default(int?), int? partitionCount = default(int?), Azure.ResourceManager.Search.Models.SearchServiceHostingMode? hostingMode = default(Azure.ResourceManager.Search.Models.SearchServiceHostingMode?), Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess?), Azure.ResourceManager.Search.Models.SearchServiceStatus? status = default(Azure.ResourceManager.Search.Models.SearchServiceStatus?), string statusDetails = null, Azure.ResourceManager.Search.Models.SearchServiceProvisioningState? provisioningState = default(Azure.ResourceManager.Search.Models.SearchServiceProvisioningState?), System.Collections.Generic.IEnumerable ipRules = null, Azure.ResourceManager.Search.Models.SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = default(bool?), Azure.ResourceManager.Search.Models.SearchAadAuthDataPlaneAuthOptions authOptions = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Search.Models.SearchSemanticSearch? semanticSearch = default(Azure.ResourceManager.Search.Models.SearchSemanticSearch?), System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null) { throw null; } public static Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult SearchServiceNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.Search.Models.SearchServiceNameUnavailableReason? reason = default(Azure.ResourceManager.Search.Models.SearchServiceNameUnavailableReason?), string message = null) { throw null; } - public static Azure.ResourceManager.Search.Models.SearchServicePatch SearchServicePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Search.Models.SearchSkuName? skuName = default(Azure.ResourceManager.Search.Models.SearchSkuName?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, int? replicaCount = default(int?), int? partitionCount = default(int?), Azure.ResourceManager.Search.Models.SearchServiceHostingMode? hostingMode = default(Azure.ResourceManager.Search.Models.SearchServiceHostingMode?), Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess?), Azure.ResourceManager.Search.Models.SearchServiceStatus? status = default(Azure.ResourceManager.Search.Models.SearchServiceStatus?), string statusDetails = null, Azure.ResourceManager.Search.Models.SearchServiceProvisioningState? provisioningState = default(Azure.ResourceManager.Search.Models.SearchServiceProvisioningState?), System.Collections.Generic.IEnumerable ipRules = null, Azure.ResourceManager.Search.Models.SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = default(bool?), Azure.ResourceManager.Search.Models.SearchAadAuthDataPlaneAuthOptions authOptions = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null) { throw null; } + public static Azure.ResourceManager.Search.Models.SearchServicePatch SearchServicePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Search.Models.SearchSkuName? skuName = default(Azure.ResourceManager.Search.Models.SearchSkuName?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, int? replicaCount = default(int?), int? partitionCount = default(int?), Azure.ResourceManager.Search.Models.SearchServiceHostingMode? hostingMode = default(Azure.ResourceManager.Search.Models.SearchServiceHostingMode?), Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess?), Azure.ResourceManager.Search.Models.SearchServiceStatus? status = default(Azure.ResourceManager.Search.Models.SearchServiceStatus?), string statusDetails = null, Azure.ResourceManager.Search.Models.SearchServiceProvisioningState? provisioningState = default(Azure.ResourceManager.Search.Models.SearchServiceProvisioningState?), System.Collections.Generic.IEnumerable ipRules = null, Azure.ResourceManager.Search.Models.SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = default(bool?), Azure.ResourceManager.Search.Models.SearchAadAuthDataPlaneAuthOptions authOptions = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Search.Models.SearchSemanticSearch? semanticSearch = default(Azure.ResourceManager.Search.Models.SearchSemanticSearch?), System.Collections.Generic.IEnumerable sharedPrivateLinkResources = null) { throw null; } public static Azure.ResourceManager.Search.Models.SearchServiceQueryKey SearchServiceQueryKey(string name = null, string key = null) { throw null; } public static Azure.ResourceManager.Search.Models.ShareableSearchServicePrivateLinkResourceProperties ShareableSearchServicePrivateLinkResourceProperties(string shareablePrivateLinkResourcePropertiesType = null, string groupId = null, string description = null) { throw null; } public static Azure.ResourceManager.Search.Models.ShareableSearchServicePrivateLinkResourceType ShareableSearchServicePrivateLinkResourceType(string name = null, Azure.ResourceManager.Search.Models.ShareableSearchServicePrivateLinkResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.Search.SharedSearchServicePrivateLinkResourceData SharedSearchServicePrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Search.Models.SharedSearchServicePrivateLinkResourceProperties properties = null) { throw null; } } + public partial class QuotaUsageResult + { + internal QuotaUsageResult() { } + public int? CurrentValue { get { throw null; } } + public string Id { get { throw null; } } + public int? Limit { get { throw null; } } + public Azure.ResourceManager.Search.Models.QuotaUsageResultName Name { get { throw null; } } + public string Unit { get { throw null; } } + } + public partial class QuotaUsageResultName + { + internal QuotaUsageResultName() { } + public string LocalizedValue { get { throw null; } } + public string Value { get { throw null; } } + } public partial class SearchAadAuthDataPlaneAuthOptions { public SearchAadAuthDataPlaneAuthOptions() { } @@ -245,6 +267,25 @@ internal SearchPrivateLinkResourceProperties() { } public static bool operator !=(Azure.ResourceManager.Search.Models.SearchPrivateLinkServiceConnectionProvisioningState left, Azure.ResourceManager.Search.Models.SearchPrivateLinkServiceConnectionProvisioningState right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SearchSemanticSearch : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SearchSemanticSearch(string value) { throw null; } + public static Azure.ResourceManager.Search.Models.SearchSemanticSearch Disabled { get { throw null; } } + public static Azure.ResourceManager.Search.Models.SearchSemanticSearch Free { get { throw null; } } + public static Azure.ResourceManager.Search.Models.SearchSemanticSearch Standard { get { throw null; } } + public bool Equals(Azure.ResourceManager.Search.Models.SearchSemanticSearch other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Search.Models.SearchSemanticSearch left, Azure.ResourceManager.Search.Models.SearchSemanticSearch right) { throw null; } + public static implicit operator Azure.ResourceManager.Search.Models.SearchSemanticSearch (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Search.Models.SearchSemanticSearch left, Azure.ResourceManager.Search.Models.SearchSemanticSearch right) { throw null; } + public override string ToString() { throw null; } + } public enum SearchServiceAdminKeyKind { Primary = 0, @@ -311,6 +352,7 @@ public SearchServicePatch(Azure.Core.AzureLocation location) : base (default(Azu public Azure.ResourceManager.Search.Models.SearchServiceProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Search.Models.SearchServicePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } public int? ReplicaCount { get { throw null; } set { } } + public Azure.ResourceManager.Search.Models.SearchSemanticSearch? SemanticSearch { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList SharedPrivateLinkResources { get { throw null; } } public Azure.ResourceManager.Search.Models.SearchSkuName? SkuName { get { throw null; } set { } } public Azure.ResourceManager.Search.Models.SearchServiceStatus? Status { get { throw null; } } diff --git a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionCollection.cs b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionCollection.cs index 24355c348672..b5376d6d8f20 100644 --- a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionCollection.cs +++ b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SearchPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PrivateEndpointConnectionUpdate() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/UpdatePrivateEndpointConnection.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/UpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -70,7 +70,7 @@ public async Task CreateOrUpdate_PrivateEndpointConnectionUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateEndpointConnectionGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetPrivateEndpointConnection.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task Get_PrivateEndpointConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PrivateEndpointConnectionGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetPrivateEndpointConnection.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task Exists_PrivateEndpointConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PrivateEndpointConnectionGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetPrivateEndpointConnection.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task GetIfExists_PrivateEndpointConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateEndpointConnectionsByService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/ListPrivateEndpointConnectionsByService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListPrivateEndpointConnectionsByService.json // this example is just showing the usage of "PrivateEndpointConnections_ListByService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionResource.cs b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionResource.cs index 1600582d88af..9949ad455977 100644 --- a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionResource.cs +++ b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchPrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SearchPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PrivateEndpointConnectionUpdate() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/UpdatePrivateEndpointConnection.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/UpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task Update_PrivateEndpointConnectionUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateEndpointConnectionGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetPrivateEndpointConnection.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_PrivateEndpointConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_PrivateEndpointConnectionDelete() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/DeletePrivateEndpointConnection.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/DeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceCollection.cs b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceCollection.cs index 458d3ae822b3..bd65ec38ee88 100644 --- a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceCollection.cs +++ b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_SearchServiceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SearchCreateOrUpdateService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateOrUpdateService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateService.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -71,7 +71,7 @@ public async Task CreateOrUpdate_SearchCreateOrUpdateService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SearchCreateOrUpdateServiceAuthOptions() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateOrUpdateServiceAuthOptions.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceAuthOptions.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task CreateOrUpdate_SearchCreateOrUpdateServiceAuthOptions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SearchCreateOrUpdateServiceDisableLocalAuth() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task CreateOrUpdate_SearchCreateOrUpdateServiceDisableLocalAuth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -215,7 +215,7 @@ public async Task CreateOrUpdate_SearchCreateOrUpdateServiceToAllowAccessFromPri [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -271,7 +271,7 @@ public async Task CreateOrUpdate_SearchCreateOrUpdateServiceToAllowAccessFromPub [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SearchCreateOrUpdateServiceWithCmkEnforcement() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -321,7 +321,7 @@ public async Task CreateOrUpdate_SearchCreateOrUpdateServiceWithCmkEnforcement() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SearchCreateOrUpdateServiceWithIdentity() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateOrUpdateServiceWithIdentity.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceWithIdentity.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -363,12 +363,59 @@ public async Task CreateOrUpdate_SearchCreateOrUpdateServiceWithIdentity() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // SearchCreateOrUpdateWithSemanticSearch + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_SearchCreateOrUpdateWithSemanticSearch() + { + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateWithSemanticSearch.json + // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this SearchServiceResource + SearchServiceCollection collection = resourceGroupResource.GetSearchServices(); + + // invoke the operation + string searchServiceName = "mysearchservice"; + SearchServiceData data = new SearchServiceData(new AzureLocation("westus")) + { + SkuName = SearchSkuName.Standard, + ReplicaCount = 3, + PartitionCount = 1, + HostingMode = SearchServiceHostingMode.Default, + SemanticSearch = SearchSemanticSearch.Free, + Tags = +{ +["app-name"] = "My e-commerce app", +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, searchServiceName, data); + SearchServiceResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SearchServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // SearchGetService [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SearchGetService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchGetService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetService.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -402,7 +449,7 @@ public async Task Get_SearchGetService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SearchGetService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchGetService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetService.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -432,7 +479,7 @@ public async Task Exists_SearchGetService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SearchGetService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchGetService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetService.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -474,7 +521,7 @@ public async Task GetIfExists_SearchGetService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_SearchListServicesByResourceGroup() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchListServicesByResourceGroup.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListServicesByResourceGroup.json // this example is just showing the usage of "Services_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceResource.cs b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceResource.cs index 405c12b6dff8..06d0c05058d2 100644 --- a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceResource.cs +++ b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SearchServiceResource.cs @@ -25,7 +25,7 @@ public partial class Sample_SearchServiceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAdminKey_SearchGetAdminKeys() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchGetAdminKeys.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetAdminKeys.json // this example is just showing the usage of "AdminKeys_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetAdminKey_SearchGetAdminKeys() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RegenerateAdminKey_SearchRegenerateAdminKey() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchRegenerateAdminKey.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchRegenerateAdminKey.json // this example is just showing the usage of "AdminKeys_Regenerate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task RegenerateAdminKey_SearchRegenerateAdminKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateQueryKey_SearchCreateQueryKey() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCreateQueryKey.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateQueryKey.json // this example is just showing the usage of "QueryKeys_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task CreateQueryKey_SearchCreateQueryKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetQueryKeysBySearchService_SearchListQueryKeysBySearchService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchListQueryKeysBySearchService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListQueryKeysBySearchService.json // this example is just showing the usage of "QueryKeys_ListBySearchService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task GetQueryKeysBySearchService_SearchListQueryKeysBySearchService [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DeleteQueryKey_SearchDeleteQueryKey() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchDeleteQueryKey.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchDeleteQueryKey.json // this example is just showing the usage of "QueryKeys_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task DeleteQueryKey_SearchDeleteQueryKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SearchUpdateService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchUpdateService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateService.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -206,7 +206,7 @@ public async Task Update_SearchUpdateService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SearchUpdateServiceAuthOptions() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchUpdateServiceAuthOptions.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceAuthOptions.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -250,7 +250,7 @@ public async Task Update_SearchUpdateServiceAuthOptions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SearchUpdateServiceDisableLocalAuth() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchUpdateServiceDisableLocalAuth.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceDisableLocalAuth.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -291,7 +291,7 @@ public async Task Update_SearchUpdateServiceDisableLocalAuth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SearchUpdateServiceToAllowAccessFromPrivateEndpoints() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -328,7 +328,7 @@ public async Task Update_SearchUpdateServiceToAllowAccessFromPrivateEndpoints() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SearchUpdateServiceToAllowAccessFromPublicCustomIPs() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -375,7 +375,7 @@ public async Task Update_SearchUpdateServiceToAllowAccessFromPublicCustomIPs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SearchUpdateServiceToRemoveIdentity() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchUpdateServiceToRemoveIdentity.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToRemoveIdentity.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -411,7 +411,7 @@ public async Task Update_SearchUpdateServiceToRemoveIdentity() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SearchUpdateServiceWithCmkEnforcement() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchUpdateServiceWithCmkEnforcement.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceWithCmkEnforcement.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -450,12 +450,53 @@ public async Task Update_SearchUpdateServiceWithCmkEnforcement() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // SearchUpdateServiceWithSemanticSearch + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_SearchUpdateServiceWithSemanticSearch() + { + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceWithSemanticSearch.json + // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SearchServiceResource created on azure + // for more information of creating SearchServiceResource, please refer to the document of SearchServiceResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + string searchServiceName = "mysearchservice"; + ResourceIdentifier searchServiceResourceId = SearchServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, searchServiceName); + SearchServiceResource searchService = client.GetSearchServiceResource(searchServiceResourceId); + + // invoke the operation + SearchServicePatch patch = new SearchServicePatch(new AzureLocation("placeholder")) + { + ReplicaCount = 2, + SemanticSearch = SearchSemanticSearch.Standard, + Tags = +{ +["app-name"] = "My e-commerce app", +["new-tag"] = "Adding a new tag", +}, + }; + SearchServiceResource result = await searchService.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SearchServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // SearchGetService [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SearchGetService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchGetService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetService.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -486,7 +527,7 @@ public async Task Get_SearchGetService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_SearchDeleteService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchDeleteService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchDeleteService.json // this example is just showing the usage of "Services_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -513,7 +554,7 @@ public async Task Delete_SearchDeleteService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSearchServices_SearchListServicesBySubscription() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchListServicesBySubscription.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListServicesBySubscription.json // this example is just showing the usage of "Services_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -545,7 +586,7 @@ public async Task GetSearchServices_SearchListServicesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckSearchServiceNameAvailability_SearchCheckNameAvailability() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/SearchCheckNameAvailability.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCheckNameAvailability.json // this example is just showing the usage of "Services_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -571,7 +612,7 @@ public async Task CheckSearchServiceNameAvailability_SearchCheckNameAvailability [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSupportedPrivateLinkResources_ListSupportedPrivateLinkResources() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/ListSupportedPrivateLinkResources.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListSupportedPrivateLinkResources.json // this example is just showing the usage of "PrivateLinkResources_ListSupported" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResource.cs b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResource.cs index 01a7c2aba6df..a171536430b4 100644 --- a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResource.cs +++ b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SharedSearchServicePrivateLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SharedPrivateLinkResourceCreateOrUpdate() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/CreateOrUpdateSharedPrivateLinkResource.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/CreateOrUpdateSharedPrivateLinkResource.json // this example is just showing the usage of "SharedPrivateLinkResources_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -66,7 +66,7 @@ public async Task Update_SharedPrivateLinkResourceCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SharedPrivateLinkResourceGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetSharedPrivateLinkResource.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetSharedPrivateLinkResource.json // this example is just showing the usage of "SharedPrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_SharedPrivateLinkResourceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_SharedPrivateLinkResourceDelete() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/DeleteSharedPrivateLinkResource.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/DeleteSharedPrivateLinkResource.json // this example is just showing the usage of "SharedPrivateLinkResources_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResourceCollection.cs b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResourceCollection.cs index b2faff876621..14e768422dbc 100644 --- a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResourceCollection.cs +++ b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SharedSearchServicePrivateLinkResourceCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SharedSearchServicePrivateLinkResourceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SharedPrivateLinkResourceCreateOrUpdate() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/CreateOrUpdateSharedPrivateLinkResource.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/CreateOrUpdateSharedPrivateLinkResource.json // this example is just showing the usage of "SharedPrivateLinkResources_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -69,7 +69,7 @@ public async Task CreateOrUpdate_SharedPrivateLinkResourceCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SharedPrivateLinkResourceGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetSharedPrivateLinkResource.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetSharedPrivateLinkResource.json // this example is just showing the usage of "SharedPrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +104,7 @@ public async Task Get_SharedPrivateLinkResourceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SharedPrivateLinkResourceGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetSharedPrivateLinkResource.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetSharedPrivateLinkResource.json // this example is just showing the usage of "SharedPrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task Exists_SharedPrivateLinkResourceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SharedPrivateLinkResourceGet() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/GetSharedPrivateLinkResource.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetSharedPrivateLinkResource.json // this example is just showing the usage of "SharedPrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task GetIfExists_SharedPrivateLinkResourceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSharedPrivateLinkResourcesByService() { - // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2022-09-01/examples/ListSharedPrivateLinkResourcesByService.json + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListSharedPrivateLinkResourcesByService.json // this example is just showing the usage of "SharedPrivateLinkResources_ListByService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs new file mode 100644 index 000000000000..b2d78c6de427 --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Search; +using Azure.ResourceManager.Search.Models; + +namespace Azure.ResourceManager.Search.Samples +{ + public partial class Sample_SubscriptionResourceExtensions + { + // GetQuotaUsagesList + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetUsagesBySubscription_GetQuotaUsagesList() + { + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetQuotaUsagesList.json + // this example is just showing the usage of "Usages_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "subid"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + AzureLocation location = new AzureLocation("westus"); + await foreach (QuotaUsageResult item in subscriptionResource.GetUsagesBySubscriptionAsync(location)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetQuotaUsage + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task UsageBySubscriptionSku_GetQuotaUsage() + { + // Generated from example definition: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetQuotaUsage.json + // this example is just showing the usage of "UsageBySubscriptionSku" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "subid"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AzureLocation location = new AzureLocation("westus"); + string skuName = "free"; + QuotaUsageResult result = await subscriptionResource.UsageBySubscriptionSkuAsync(location, skuName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/ArmSearchModelFactory.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/ArmSearchModelFactory.cs index a0a56b531a7e..c04e701cea72 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/ArmSearchModelFactory.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/ArmSearchModelFactory.cs @@ -42,35 +42,36 @@ public static SearchServiceQueryKey SearchServiceQueryKey(string name = null, st /// The systemData. /// The tags. /// The location. - /// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. + /// The SKU of the search service, which determines billing rate and capacity limits. This property is required when creating a new search service. /// The identity of the resource. Current supported identity types: None, SystemAssigned. /// The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. /// The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3. /// Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. /// This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. - /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, Microsoft is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. /// The details of the search service status. /// The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. - /// Network specific rules that determine how the Azure Cognitive Search service may be reached. + /// Network-specific rules that determine how the search service may be reached. /// Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. /// When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. /// Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. - /// The list of private endpoint connections to the Azure Cognitive Search service. - /// The list of shared private link resources managed by the Azure Cognitive Search service. + /// The list of private endpoint connections to the search service. + /// Sets options that control the availability of semantic search. This configuration is only possible for certain search SKUs in certain locations. + /// The list of shared private link resources managed by the search service. /// A new instance for mocking. - public static SearchServiceData SearchServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SearchSkuName? skuName = null, ManagedServiceIdentity identity = null, int? replicaCount = null, int? partitionCount = null, SearchServiceHostingMode? hostingMode = null, SearchServicePublicNetworkAccess? publicNetworkAccess = null, SearchServiceStatus? status = null, string statusDetails = null, SearchServiceProvisioningState? provisioningState = null, IEnumerable ipRules = null, SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = null, SearchAadAuthDataPlaneAuthOptions authOptions = null, IEnumerable privateEndpointConnections = null, IEnumerable sharedPrivateLinkResources = null) + public static SearchServiceData SearchServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SearchSkuName? skuName = null, ManagedServiceIdentity identity = null, int? replicaCount = null, int? partitionCount = null, SearchServiceHostingMode? hostingMode = null, SearchServicePublicNetworkAccess? publicNetworkAccess = null, SearchServiceStatus? status = null, string statusDetails = null, SearchServiceProvisioningState? provisioningState = null, IEnumerable ipRules = null, SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = null, SearchAadAuthDataPlaneAuthOptions authOptions = null, IEnumerable privateEndpointConnections = null, SearchSemanticSearch? semanticSearch = null, IEnumerable sharedPrivateLinkResources = null) { tags ??= new Dictionary(); ipRules ??= new List(); privateEndpointConnections ??= new List(); sharedPrivateLinkResources ??= new List(); - return new SearchServiceData(id, name, resourceType, systemData, tags, location, skuName != null ? new SearchSku(skuName) : null, identity, replicaCount, partitionCount, hostingMode, publicNetworkAccess, status, statusDetails, provisioningState, ipRules != null ? new NetworkRuleSet(ipRules?.ToList()) : null, encryptionWithCmk, isLocalAuthDisabled, authOptions, privateEndpointConnections?.ToList(), sharedPrivateLinkResources?.ToList()); + return new SearchServiceData(id, name, resourceType, systemData, tags, location, skuName != null ? new SearchSku(skuName) : null, identity, replicaCount, partitionCount, hostingMode, publicNetworkAccess, status, statusDetails, provisioningState, ipRules != null ? new NetworkRuleSet(ipRules?.ToList()) : null, encryptionWithCmk, isLocalAuthDisabled, authOptions, privateEndpointConnections?.ToList(), semanticSearch, sharedPrivateLinkResources?.ToList()); } /// Initializes a new instance of SearchEncryptionWithCmk. - /// Describes how a search service should enforce having one or more non customer encrypted resources. - /// Describes whether the search service is compliant or not with respect to having non customer encrypted resources. If a service has more than one non customer encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. + /// Describes how a search service should enforce having one or more non-customer-encrypted resources. + /// Describes whether the search service is compliant or not with respect to having non-customer-encrypted resources. If a service has more than one non-customer-encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. /// A new instance for mocking. public static SearchEncryptionWithCmk SearchEncryptionWithCmk(SearchEncryptionWithCmkEnforcement? enforcement = null, SearchEncryptionComplianceStatus? encryptionComplianceStatus = null) { @@ -82,7 +83,7 @@ public static SearchEncryptionWithCmk SearchEncryptionWithCmk(SearchEncryptionWi /// The name. /// The resourceType. /// The systemData. - /// Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. + /// Describes the properties of an existing private endpoint connection to the search service. /// A new instance for mocking. public static SearchPrivateEndpointConnectionData SearchPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SearchServicePrivateEndpointConnectionProperties properties = null) { @@ -94,7 +95,7 @@ public static SearchPrivateEndpointConnectionData SearchPrivateEndpointConnectio /// The name. /// The resourceType. /// The systemData. - /// Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service. + /// Describes the properties of a Shared Private Link Resource managed by the search service. /// A new instance for mocking. public static SharedSearchServicePrivateLinkResourceData SharedSearchServicePrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SharedSearchServicePrivateLinkResourceProperties properties = null) { @@ -108,30 +109,31 @@ public static SharedSearchServicePrivateLinkResourceData SharedSearchServicePriv /// The systemData. /// The tags. /// The location. - /// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. + /// The SKU of the search service, which determines the billing rate and capacity limits. This property is required when creating a new search service. /// The identity of the resource. Current supported identity types: None, SystemAssigned. /// The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. /// The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3. /// Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. /// This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. - /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, Microsoft is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. /// The details of the search service status. /// The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. - /// Network specific rules that determine how the Azure Cognitive Search service may be reached. + /// Network-specific rules that determine how the search service may be reached. /// Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. /// When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. /// Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. - /// The list of private endpoint connections to the Azure Cognitive Search service. - /// The list of shared private link resources managed by the Azure Cognitive Search service. + /// The list of private endpoint connections to the search service. + /// Sets options that control the availability of semantic search. This configuration is only possible for certain search SKUs in certain locations. + /// The list of shared private link resources managed by the search service. /// A new instance for mocking. - public static SearchServicePatch SearchServicePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SearchSkuName? skuName = null, ManagedServiceIdentity identity = null, int? replicaCount = null, int? partitionCount = null, SearchServiceHostingMode? hostingMode = null, SearchServicePublicNetworkAccess? publicNetworkAccess = null, SearchServiceStatus? status = null, string statusDetails = null, SearchServiceProvisioningState? provisioningState = null, IEnumerable ipRules = null, SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = null, SearchAadAuthDataPlaneAuthOptions authOptions = null, IEnumerable privateEndpointConnections = null, IEnumerable sharedPrivateLinkResources = null) + public static SearchServicePatch SearchServicePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SearchSkuName? skuName = null, ManagedServiceIdentity identity = null, int? replicaCount = null, int? partitionCount = null, SearchServiceHostingMode? hostingMode = null, SearchServicePublicNetworkAccess? publicNetworkAccess = null, SearchServiceStatus? status = null, string statusDetails = null, SearchServiceProvisioningState? provisioningState = null, IEnumerable ipRules = null, SearchEncryptionWithCmk encryptionWithCmk = null, bool? isLocalAuthDisabled = null, SearchAadAuthDataPlaneAuthOptions authOptions = null, IEnumerable privateEndpointConnections = null, SearchSemanticSearch? semanticSearch = null, IEnumerable sharedPrivateLinkResources = null) { tags ??= new Dictionary(); ipRules ??= new List(); privateEndpointConnections ??= new List(); sharedPrivateLinkResources ??= new List(); - return new SearchServicePatch(id, name, resourceType, systemData, tags, location, skuName != null ? new SearchSku(skuName) : null, identity, replicaCount, partitionCount, hostingMode, publicNetworkAccess, status, statusDetails, provisioningState, ipRules != null ? new NetworkRuleSet(ipRules?.ToList()) : null, encryptionWithCmk, isLocalAuthDisabled, authOptions, privateEndpointConnections?.ToList(), sharedPrivateLinkResources?.ToList()); + return new SearchServicePatch(id, name, resourceType, systemData, tags, location, skuName != null ? new SearchSku(skuName) : null, identity, replicaCount, partitionCount, hostingMode, publicNetworkAccess, status, statusDetails, provisioningState, ipRules != null ? new NetworkRuleSet(ipRules?.ToList()) : null, encryptionWithCmk, isLocalAuthDisabled, authOptions, privateEndpointConnections?.ToList(), semanticSearch, sharedPrivateLinkResources?.ToList()); } /// Initializes a new instance of SearchPrivateLinkResource. @@ -139,7 +141,7 @@ public static SearchServicePatch SearchServicePatch(ResourceIdentifier id = null /// The name. /// The resourceType. /// The systemData. - /// Describes the properties of a supported private link resource for the Azure Cognitive Search service. + /// Describes the properties of a supported private link resource for the search service. /// A new instance for mocking. public static SearchPrivateLinkResource SearchPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SearchPrivateLinkResourceProperties properties = null) { @@ -150,7 +152,7 @@ public static SearchPrivateLinkResource SearchPrivateLinkResource(ResourceIdenti /// The group ID of the private link resource. /// The list of required members of the private link resource. /// The list of required DNS zone names of the private link resource. - /// The list of resources that are onboarded to private link service, that are supported by Azure Cognitive Search. + /// The list of resources that are onboarded to private link service and that are supported by search. /// A new instance for mocking. public static SearchPrivateLinkResourceProperties SearchPrivateLinkResourceProperties(string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null, IEnumerable shareablePrivateLinkResourceTypes = null) { @@ -162,8 +164,8 @@ public static SearchPrivateLinkResourceProperties SearchPrivateLinkResourcePrope } /// Initializes a new instance of ShareableSearchServicePrivateLinkResourceType. - /// The name of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. - /// Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The name of the resource type that has been onboarded to private link service and that's supported by search. + /// Describes the properties of a resource type that has been onboarded to private link service and that's supported by search. /// A new instance for mocking. public static ShareableSearchServicePrivateLinkResourceType ShareableSearchServicePrivateLinkResourceType(string name = null, ShareableSearchServicePrivateLinkResourceProperties properties = null) { @@ -171,9 +173,9 @@ public static ShareableSearchServicePrivateLinkResourceType ShareableSearchServi } /// Initializes a new instance of ShareableSearchServicePrivateLinkResourceProperties. - /// The resource provider type for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. - /// The resource provider group id for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. - /// The description of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The resource provider type for the resource that has been onboarded to private link service and that's supported by search. + /// The resource provider group id for the resource that has been onboarded to private link service and that's supported by search. + /// The description of the resource type that has been onboarded to private link service and that's supported by search. /// A new instance for mocking. public static ShareableSearchServicePrivateLinkResourceProperties ShareableSearchServicePrivateLinkResourceProperties(string shareablePrivateLinkResourcePropertiesType = null, string groupId = null, string description = null) { @@ -189,5 +191,26 @@ public static SearchServiceNameAvailabilityResult SearchServiceNameAvailabilityR { return new SearchServiceNameAvailabilityResult(isNameAvailable, reason, message); } + + /// Initializes a new instance of QuotaUsageResult. + /// The resource ID of the quota usage SKU endpoint for Microsoft.Search provider. + /// The unit of measurement for the search SKU. + /// The currently used up value for the particular search SKU. + /// The quota limit for the particular search SKU. + /// The name of the SKU supported by Azure AI Search. + /// A new instance for mocking. + public static QuotaUsageResult QuotaUsageResult(string id = null, string unit = null, int? currentValue = null, int? limit = null, QuotaUsageResultName name = null) + { + return new QuotaUsageResult(id, unit, currentValue, limit, name); + } + + /// Initializes a new instance of QuotaUsageResultName. + /// The SKU name supported by Azure AI Search. + /// The localized string value for the SKU name. + /// A new instance for mocking. + public static QuotaUsageResultName QuotaUsageResultName(string value = null, string localizedValue = null) + { + return new QuotaUsageResultName(value, localizedValue); + } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SearchExtensions.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SearchExtensions.cs index 9c06291ee78a..cb787e4cd8be 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SearchExtensions.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SearchExtensions.cs @@ -129,7 +129,7 @@ public static SearchServiceCollection GetSearchServices(this ResourceGroupResour /// /// /// The instance the method will execute against. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -154,7 +154,7 @@ public static async Task> GetSearchServiceAsync( /// /// /// The instance the method will execute against. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -258,5 +258,105 @@ public static Response CheckSearchServiceNa return GetSubscriptionResourceExtensionClient(subscriptionResource).CheckSearchServiceNameAvailability(content, searchManagementRequestOptions, cancellationToken); } + + /// + /// Gets a list of all Search quota usages in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages + /// + /// + /// Operation Id + /// Usages_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetUsagesBySubscriptionAsync(this SubscriptionResource subscriptionResource, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetUsagesBySubscriptionAsync(location, searchManagementRequestOptions, cancellationToken); + } + + /// + /// Gets a list of all Search quota usages in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages + /// + /// + /// Operation Id + /// Usages_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetUsagesBySubscription(this SubscriptionResource subscriptionResource, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + return GetSubscriptionResourceExtensionClient(subscriptionResource).GetUsagesBySubscription(location, searchManagementRequestOptions, cancellationToken); + } + + /// + /// Gets the quota usage for a search SKU in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName} + /// + /// + /// Operation Id + /// UsageBySubscriptionSku + /// + /// + /// + /// The instance the method will execute against. + /// The unique location name for a Microsoft Azure geographic region. + /// The unique SKU name that identifies a billable tier. + /// Parameter group. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public static async Task> UsageBySubscriptionSkuAsync(this SubscriptionResource subscriptionResource, AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(skuName, nameof(skuName)); + + return await GetSubscriptionResourceExtensionClient(subscriptionResource).UsageBySubscriptionSkuAsync(location, skuName, searchManagementRequestOptions, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the quota usage for a search SKU in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName} + /// + /// + /// Operation Id + /// UsageBySubscriptionSku + /// + /// + /// + /// The instance the method will execute against. + /// The unique location name for a Microsoft Azure geographic region. + /// The unique SKU name that identifies a billable tier. + /// Parameter group. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public static Response UsageBySubscriptionSku(this SubscriptionResource subscriptionResource, AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(skuName, nameof(skuName)); + + return GetSubscriptionResourceExtensionClient(subscriptionResource).UsageBySubscriptionSku(location, skuName, searchManagementRequestOptions, cancellationToken); + } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 8c089073768a..d3be0ab4d9fa 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -22,6 +22,10 @@ internal partial class SubscriptionResourceExtensionClient : ArmResource { private ClientDiagnostics _searchServiceServicesClientDiagnostics; private ServicesRestOperations _searchServiceServicesRestClient; + private ClientDiagnostics _usagesClientDiagnostics; + private UsagesRestOperations _usagesRestClient; + private ClientDiagnostics _defaultClientDiagnostics; + private SearchManagementRestOperations _defaultRestClient; /// Initializes a new instance of the class for mocking. protected SubscriptionResourceExtensionClient() @@ -37,6 +41,10 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie private ClientDiagnostics SearchServiceServicesClientDiagnostics => _searchServiceServicesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Search", SearchServiceResource.ResourceType.Namespace, Diagnostics); private ServicesRestOperations SearchServiceServicesRestClient => _searchServiceServicesRestClient ??= new ServicesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(SearchServiceResource.ResourceType)); + private ClientDiagnostics UsagesClientDiagnostics => _usagesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Search", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private UsagesRestOperations UsagesRestClient => _usagesRestClient ??= new UsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics DefaultClientDiagnostics => _defaultClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Search", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private SearchManagementRestOperations DefaultRestClient => _defaultRestClient ??= new SearchManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -153,5 +161,119 @@ public virtual Response CheckSearchServiceN throw; } } + + /// + /// Gets a list of all Search quota usages in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages + /// + /// + /// Operation Id + /// Usages_ListBySubscription + /// + /// + /// + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetUsagesBySubscriptionAsync(AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => UsagesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, location, searchManagementRequestOptions); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => UsagesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, location, searchManagementRequestOptions); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, QuotaUsageResult.DeserializeQuotaUsageResult, UsagesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetUsagesBySubscription", "value", "nextLink", cancellationToken); + } + + /// + /// Gets a list of all Search quota usages in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages + /// + /// + /// Operation Id + /// Usages_ListBySubscription + /// + /// + /// + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetUsagesBySubscription(AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => UsagesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, location, searchManagementRequestOptions); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => UsagesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, location, searchManagementRequestOptions); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, QuotaUsageResult.DeserializeQuotaUsageResult, UsagesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetUsagesBySubscription", "value", "nextLink", cancellationToken); + } + + /// + /// Gets the quota usage for a search SKU in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName} + /// + /// + /// Operation Id + /// UsageBySubscriptionSku + /// + /// + /// + /// The unique location name for a Microsoft Azure geographic region. + /// The unique SKU name that identifies a billable tier. + /// Parameter group. + /// The cancellation token to use. + public virtual async Task> UsageBySubscriptionSkuAsync(AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + using var scope = DefaultClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.UsageBySubscriptionSku"); + scope.Start(); + try + { + var response = await DefaultRestClient.UsageBySubscriptionSkuAsync(Id.SubscriptionId, location, skuName, searchManagementRequestOptions, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the quota usage for a search SKU in the given subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName} + /// + /// + /// Operation Id + /// UsageBySubscriptionSku + /// + /// + /// + /// The unique location name for a Microsoft Azure geographic region. + /// The unique SKU name that identifies a billable tier. + /// Parameter group. + /// The cancellation token to use. + public virtual Response UsageBySubscriptionSku(AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + using var scope = DefaultClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.UsageBySubscriptionSku"); + scope.Start(); + try + { + var response = DefaultRestClient.UsageBySubscriptionSku(Id.SubscriptionId, location, skuName, searchManagementRequestOptions, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/DataPlaneAadOrApiKeyAuthOption.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/DataPlaneAadOrApiKeyAuthOption.cs index c88fe3605c84..c603cd1c23e8 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/DataPlaneAadOrApiKeyAuthOption.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/DataPlaneAadOrApiKeyAuthOption.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Indicates that either the API key or an access token from Azure Active Directory can be used for authentication. + /// Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication. internal partial class DataPlaneAadOrApiKeyAuthOption { /// Initializes a new instance of DataPlaneAadOrApiKeyAuthOption. @@ -16,13 +16,13 @@ public DataPlaneAadOrApiKeyAuthOption() } /// Initializes a new instance of DataPlaneAadOrApiKeyAuthOption. - /// Describes what response the data plane API of a Search service would send for requests that failed authentication. + /// Describes what response the data plane API of a search service would send for requests that failed authentication. internal DataPlaneAadOrApiKeyAuthOption(SearchAadAuthFailureMode? aadAuthFailureMode) { AadAuthFailureMode = aadAuthFailureMode; } - /// Describes what response the data plane API of a Search service would send for requests that failed authentication. + /// Describes what response the data plane API of a search service would send for requests that failed authentication. public SearchAadAuthFailureMode? AadAuthFailureMode { get; set; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs index 3baa6bcc9cbf..6cf9c3cfa451 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Response containing the query API keys for a given Azure Cognitive Search service. + /// Response containing the query API keys for a given search service. internal partial class ListQueryKeysResult { /// Initializes a new instance of ListQueryKeysResult. @@ -20,7 +20,7 @@ internal ListQueryKeysResult() } /// Initializes a new instance of ListQueryKeysResult. - /// The query keys for the Azure Cognitive Search service. + /// The query keys for the search service. /// Request URL that can be used to query next page of query keys. Returned when the total number of requested query keys exceed maximum page size. internal ListQueryKeysResult(IReadOnlyList value, string nextLink) { @@ -28,7 +28,7 @@ internal ListQueryKeysResult(IReadOnlyList value, string NextLink = nextLink; } - /// The query keys for the Azure Cognitive Search service. + /// The query keys for the search service. public IReadOnlyList Value { get; } /// Request URL that can be used to query next page of query keys. Returned when the total number of requested query keys exceed maximum page size. public string NextLink { get; } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs index 9b1ae82cb08e..6fb653e44b4f 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Network specific rules that determine how the Azure Cognitive Search service may be reached. + /// Network-specific rules that determine how the search service can be reached. internal partial class NetworkRuleSet { /// Initializes a new instance of NetworkRuleSet. @@ -20,13 +20,13 @@ public NetworkRuleSet() } /// Initializes a new instance of NetworkRuleSet. - /// A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method. + /// A list of IP restriction rules used for an IP firewall. Any IPs that do not match the rules are blocked by the firewall. These rules are only applied when the 'publicNetworkAccess' of the search service is 'enabled'. internal NetworkRuleSet(IList ipRules) { IPRules = ipRules; } - /// A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method. + /// A list of IP restriction rules used for an IP firewall. Any IPs that do not match the rules are blocked by the firewall. These rules are only applied when the 'publicNetworkAccess' of the search service is 'enabled'. public IList IPRules { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.Serialization.cs new file mode 100644 index 000000000000..bef755967938 --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.Serialization.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Search.Models +{ + public partial class QuotaUsageResult + { + internal static QuotaUsageResult DeserializeQuotaUsageResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional id = default; + Optional unit = default; + Optional currentValue = default; + Optional limit = default; + Optional name = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("unit"u8)) + { + unit = property.Value.GetString(); + continue; + } + if (property.NameEquals("currentValue"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + currentValue = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("limit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + limit = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("name"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = QuotaUsageResultName.DeserializeQuotaUsageResultName(property.Value); + continue; + } + } + return new QuotaUsageResult(id.Value, unit.Value, Optional.ToNullable(currentValue), Optional.ToNullable(limit), name.Value); + } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.cs new file mode 100644 index 000000000000..7727d2a093fb --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResult.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Search.Models +{ + /// Describes the quota usage for a particular SKU. + public partial class QuotaUsageResult + { + /// Initializes a new instance of QuotaUsageResult. + internal QuotaUsageResult() + { + } + + /// Initializes a new instance of QuotaUsageResult. + /// The resource ID of the quota usage SKU endpoint for Microsoft.Search provider. + /// The unit of measurement for the search SKU. + /// The currently used up value for the particular search SKU. + /// The quota limit for the particular search SKU. + /// The name of the SKU supported by Azure AI Search. + internal QuotaUsageResult(string id, string unit, int? currentValue, int? limit, QuotaUsageResultName name) + { + Id = id; + Unit = unit; + CurrentValue = currentValue; + Limit = limit; + Name = name; + } + + /// The resource ID of the quota usage SKU endpoint for Microsoft.Search provider. + public string Id { get; } + /// The unit of measurement for the search SKU. + public string Unit { get; } + /// The currently used up value for the particular search SKU. + public int? CurrentValue { get; } + /// The quota limit for the particular search SKU. + public int? Limit { get; } + /// The name of the SKU supported by Azure AI Search. + public QuotaUsageResultName Name { get; } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.Serialization.cs new file mode 100644 index 000000000000..adb76c308aff --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Search.Models +{ + public partial class QuotaUsageResultName + { + internal static QuotaUsageResultName DeserializeQuotaUsageResultName(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional value = default; + Optional localizedValue = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + if (property.NameEquals("localizedValue"u8)) + { + localizedValue = property.Value.GetString(); + continue; + } + } + return new QuotaUsageResultName(value.Value, localizedValue.Value); + } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.cs new file mode 100644 index 000000000000..650b0f1a64a6 --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsageResultName.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Search.Models +{ + /// The name of the SKU supported by Azure AI Search. + public partial class QuotaUsageResultName + { + /// Initializes a new instance of QuotaUsageResultName. + internal QuotaUsageResultName() + { + } + + /// Initializes a new instance of QuotaUsageResultName. + /// The SKU name supported by Azure AI Search. + /// The localized string value for the SKU name. + internal QuotaUsageResultName(string value, string localizedValue) + { + Value = value; + LocalizedValue = localizedValue; + } + + /// The SKU name supported by Azure AI Search. + public string Value { get; } + /// The localized string value for the SKU name. + public string LocalizedValue { get; } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.Serialization.cs new file mode 100644 index 000000000000..f570611f380b --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Search.Models +{ + internal partial class QuotaUsagesListResult + { + internal static QuotaUsagesListResult DeserializeQuotaUsagesListResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(QuotaUsageResult.DeserializeQuotaUsageResult(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new QuotaUsagesListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs new file mode 100644 index 000000000000..9b2a846f655b --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Search.Models +{ + /// Response containing the quota usage information for all the supported SKUs of Azure AI Search. + internal partial class QuotaUsagesListResult + { + /// Initializes a new instance of QuotaUsagesListResult. + internal QuotaUsagesListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of QuotaUsagesListResult. + /// The quota usages for the SKUs supported by Azure AI Search. + /// Request URL that can be used to query next page of quota usages. Returned when the total number of requested quota usages exceed maximum page size. + internal QuotaUsagesListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The quota usages for the SKUs supported by Azure AI Search. + public IReadOnlyList Value { get; } + /// Request URL that can be used to query next page of quota usages. Returned when the total number of requested quota usages exceed maximum page size. + public string NextLink { get; } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs index 3450b2495c92..e01803c35c82 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthDataPlaneAuthOptions.cs @@ -9,7 +9,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Defines the options for how the data plane API of a Search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. + /// Defines the options for how the search service authenticates a data plane request. This cannot be set if 'disableLocalAuth' is set to true. public partial class SearchAadAuthDataPlaneAuthOptions { /// Initializes a new instance of SearchAadAuthDataPlaneAuthOptions. @@ -18,8 +18,8 @@ public SearchAadAuthDataPlaneAuthOptions() } /// Initializes a new instance of SearchAadAuthDataPlaneAuthOptions. - /// Indicates that only the API key needs to be used for authentication. - /// Indicates that either the API key or an access token from Azure Active Directory can be used for authentication. + /// Indicates that only the API key can be used for authentication. + /// Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication. internal SearchAadAuthDataPlaneAuthOptions(BinaryData apiKeyOnly, DataPlaneAadOrApiKeyAuthOption aadOrApiKey) { ApiKeyOnly = apiKeyOnly; @@ -27,7 +27,7 @@ internal SearchAadAuthDataPlaneAuthOptions(BinaryData apiKeyOnly, DataPlaneAadOr } /// - /// Indicates that only the API key needs to be used for authentication. + /// Indicates that only the API key can be used for authentication. /// /// To assign an object to this property use . /// @@ -57,9 +57,9 @@ internal SearchAadAuthDataPlaneAuthOptions(BinaryData apiKeyOnly, DataPlaneAadOr /// /// public BinaryData ApiKeyOnly { get; set; } - /// Indicates that either the API key or an access token from Azure Active Directory can be used for authentication. + /// Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication. internal DataPlaneAadOrApiKeyAuthOption AadOrApiKey { get; set; } - /// Describes what response the data plane API of a Search service would send for requests that failed authentication. + /// Describes what response the data plane API of a search service would send for requests that failed authentication. public SearchAadAuthFailureMode? AadAuthFailureMode { get => AadOrApiKey is null ? default : AadOrApiKey.AadAuthFailureMode; diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthFailureMode.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthFailureMode.cs index b7d51fdc101a..51883f250547 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthFailureMode.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchAadAuthFailureMode.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes what response the data plane API of a Search service would send for requests that failed authentication. + /// Describes what response the data plane API of a search service would send for requests that failed authentication. public enum SearchAadAuthFailureMode { /// Indicates that requests that failed authentication should be presented with an HTTP status code of 403 (Forbidden). diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionComplianceStatus.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionComplianceStatus.cs index de877888d295..a65b73e901a7 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionComplianceStatus.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionComplianceStatus.cs @@ -7,12 +7,12 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes whether the search service is compliant or not with respect to having non customer encrypted resources. If a service has more than one non customer encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. + /// Describes whether the search service is compliant or not with respect to having non-customer-encrypted resources. If a service has more than one non-customer-encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. public enum SearchEncryptionComplianceStatus { - /// Indicates that the search service is compliant, either because number of non customer encrypted resources is zero or enforcement is disabled. + /// Indicates that the search service is compliant, either because number of non-customer-encrypted resources is zero or enforcement is disabled. Compliant, - /// Indicates that the search service has more than 1 non customer encrypted resources. + /// Indicates that the search service has more than one non-customer-encrypted resources. NonCompliant } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmk.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmk.cs index 3da0a89496cb..df362531dbcf 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmk.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmk.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes a policy that determines how resources within the search service are to be encrypted with Customer Managed Keys. + /// Describes a policy that determines how resources within the search service are to be encrypted with customer=managed keys. public partial class SearchEncryptionWithCmk { /// Initializes a new instance of SearchEncryptionWithCmk. @@ -16,17 +16,17 @@ public SearchEncryptionWithCmk() } /// Initializes a new instance of SearchEncryptionWithCmk. - /// Describes how a search service should enforce having one or more non customer encrypted resources. - /// Describes whether the search service is compliant or not with respect to having non customer encrypted resources. If a service has more than one non customer encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. + /// Describes how a search service should enforce having one or more non-customer-encrypted resources. + /// Describes whether the search service is compliant or not with respect to having non-customer-encrypted resources. If a service has more than one non-customer-encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. internal SearchEncryptionWithCmk(SearchEncryptionWithCmkEnforcement? enforcement, SearchEncryptionComplianceStatus? encryptionComplianceStatus) { Enforcement = enforcement; EncryptionComplianceStatus = encryptionComplianceStatus; } - /// Describes how a search service should enforce having one or more non customer encrypted resources. + /// Describes how a search service should enforce having one or more non-customer-encrypted resources. public SearchEncryptionWithCmkEnforcement? Enforcement { get; set; } - /// Describes whether the search service is compliant or not with respect to having non customer encrypted resources. If a service has more than one non customer encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. + /// Describes whether the search service is compliant or not with respect to having non-customer-encrypted resources. If a service has more than one non-customer-encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. public SearchEncryptionComplianceStatus? EncryptionComplianceStatus { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmkEnforcement.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmkEnforcement.cs index 776ba1c9bde4..b83056093406 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmkEnforcement.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchEncryptionWithCmkEnforcement.cs @@ -7,14 +7,14 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes how a search service should enforce having one or more non customer encrypted resources. + /// Describes how a search service should enforce having one or more non-customer-encrypted resources. public enum SearchEncryptionWithCmkEnforcement { /// Enforcement policy is not explicitly specified, with the behavior being the same as if it were set to 'Disabled'. Unspecified, - /// No enforcement will be made and the search service can have non customer encrypted resources. + /// No enforcement will be made and the search service can have non-customer-encrypted resources. Disabled, - /// Search service will be marked as non-compliant if there are one or more non customer encrypted resources. + /// Search service will be marked as non-compliant if there are one or more non-customer-encrypted resources. Enabled } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResource.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResource.cs index 44004ec939d0..9ed329d92694 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResource.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResource.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes a supported private link resource for the Azure Cognitive Search service. + /// Describes a supported private link resource for the search service. public partial class SearchPrivateLinkResource : ResourceData { /// Initializes a new instance of SearchPrivateLinkResource. @@ -23,13 +23,13 @@ public SearchPrivateLinkResource() /// The name. /// The resourceType. /// The systemData. - /// Describes the properties of a supported private link resource for the Azure Cognitive Search service. + /// Describes the properties of a supported private link resource for the search service. internal SearchPrivateLinkResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SearchPrivateLinkResourceProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } - /// Describes the properties of a supported private link resource for the Azure Cognitive Search service. + /// Describes the properties of a supported private link resource for the search service. public SearchPrivateLinkResourceProperties Properties { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs index 3de37110a413..f7b12136702b 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes the properties of a supported private link resource for the Azure Cognitive Search service. For a given API version, this represents the 'supported' groupIds when creating a shared private link resource. + /// Describes the properties of a supported private link resource for the search service. For a given API version, this represents the 'supported' groupIds when creating a shared private link resource. public partial class SearchPrivateLinkResourceProperties { /// Initializes a new instance of SearchPrivateLinkResourceProperties. @@ -25,7 +25,7 @@ internal SearchPrivateLinkResourceProperties() /// The group ID of the private link resource. /// The list of required members of the private link resource. /// The list of required DNS zone names of the private link resource. - /// The list of resources that are onboarded to private link service, that are supported by Azure Cognitive Search. + /// The list of resources that are onboarded to private link service and that are supported by search. internal SearchPrivateLinkResourceProperties(string groupId, IReadOnlyList requiredMembers, IReadOnlyList requiredZoneNames, IReadOnlyList shareablePrivateLinkResourceTypes) { GroupId = groupId; @@ -40,7 +40,7 @@ internal SearchPrivateLinkResourceProperties(string groupId, IReadOnlyList RequiredMembers { get; } /// The list of required DNS zone names of the private link resource. public IReadOnlyList RequiredZoneNames { get; } - /// The list of resources that are onboarded to private link service, that are supported by Azure Cognitive Search. + /// The list of resources that are onboarded to private link service and that are supported by search. public IReadOnlyList ShareablePrivateLinkResourceTypes { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkServiceConnectionProvisioningState.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkServiceConnectionProvisioningState.cs index fa6ea891820d..ba4fc42f3cd1 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkServiceConnectionProvisioningState.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkServiceConnectionProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Search.Models { - /// The provisioning state of the private link service connection. Can be Updating, Deleting, Failed, Succeeded, or Incomplete. + /// The provisioning state of the private link service connection. Valid values are Updating, Deleting, Failed, Succeeded, or Incomplete. public readonly partial struct SearchPrivateLinkServiceConnectionProvisioningState : IEquatable { private readonly string _value; diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSemanticSearch.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSemanticSearch.cs new file mode 100644 index 000000000000..768b12be31e0 --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSemanticSearch.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Search.Models +{ + /// Sets options that control the availability of semantic ranking. This configuration is only possible for certain search SKUs in certain locations. + public readonly partial struct SearchSemanticSearch : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SearchSemanticSearch(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DisabledValue = "disabled"; + private const string FreeValue = "free"; + private const string StandardValue = "standard"; + + /// Indicates that semantic ranking is disabled for the search service. + public static SearchSemanticSearch Disabled { get; } = new SearchSemanticSearch(DisabledValue); + /// Enables semantic ranking on a search service and indicates that it is to be used within the limits of the free tier. This would cap the volume of semantic ranking requests and is offered at no extra charge. This is the default for newly provisioned search services. + public static SearchSemanticSearch Free { get; } = new SearchSemanticSearch(FreeValue); + /// Enables semantic ranking on a search service as a billable feature, with higher throughput and volume of semantic ranking requests. + public static SearchSemanticSearch Standard { get; } = new SearchSemanticSearch(StandardValue); + /// Determines if two values are the same. + public static bool operator ==(SearchSemanticSearch left, SearchSemanticSearch right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SearchSemanticSearch left, SearchSemanticSearch right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SearchSemanticSearch(string value) => new SearchSemanticSearch(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SearchSemanticSearch other && Equals(other); + /// + public bool Equals(SearchSemanticSearch other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyResult.cs index 452afc05fef1..b9ce0d20e4a9 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceAdminKeyResult.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service. + /// Response containing the primary and secondary admin API keys for a given search service. public partial class SearchServiceAdminKeyResult { /// Initializes a new instance of SearchServiceAdminKeyResult. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceData.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceData.Serialization.cs index cf6199d2e8fb..0924218c4995 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceData.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceData.Serialization.cs @@ -90,6 +90,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("authOptions"u8); writer.WriteObjectValue(AuthOptions); } + if (Optional.IsDefined(SemanticSearch)) + { + if (SemanticSearch != null) + { + writer.WritePropertyName("semanticSearch"u8); + writer.WriteStringValue(SemanticSearch.Value.ToString()); + } + else + { + writer.WriteNull("semanticSearch"); + } + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -120,6 +132,7 @@ internal static SearchServiceData DeserializeSearchServiceData(JsonElement eleme Optional disableLocalAuth = default; Optional authOptions = default; Optional> privateEndpointConnections = default; + Optional semanticSearch = default; Optional> sharedPrivateLinkResources = default; foreach (var property in element.EnumerateObject()) { @@ -303,6 +316,16 @@ internal static SearchServiceData DeserializeSearchServiceData(JsonElement eleme privateEndpointConnections = array; continue; } + if (property0.NameEquals("semanticSearch"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + semanticSearch = null; + continue; + } + semanticSearch = new SearchSemanticSearch(property0.Value.GetString()); + continue; + } if (property0.NameEquals("sharedPrivateLinkResources"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -321,7 +344,7 @@ internal static SearchServiceData DeserializeSearchServiceData(JsonElement eleme continue; } } - return new SearchServiceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(replicaCount), Optional.ToNullable(partitionCount), Optional.ToNullable(hostingMode), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(status), statusDetails.Value, Optional.ToNullable(provisioningState), networkRuleSet.Value, encryptionWithCmk.Value, Optional.ToNullable(disableLocalAuth), authOptions.Value, Optional.ToList(privateEndpointConnections), Optional.ToList(sharedPrivateLinkResources)); + return new SearchServiceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(replicaCount), Optional.ToNullable(partitionCount), Optional.ToNullable(hostingMode), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(status), statusDetails.Value, Optional.ToNullable(provisioningState), networkRuleSet.Value, encryptionWithCmk.Value, Optional.ToNullable(disableLocalAuth), authOptions.Value, Optional.ToList(privateEndpointConnections), Optional.ToNullable(semanticSearch), Optional.ToList(sharedPrivateLinkResources)); } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceIPRule.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceIPRule.cs index 70c42e149478..19c6e7fd3ba4 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceIPRule.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceIPRule.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// The IP restriction rule of the Azure Cognitive Search service. + /// The IP restriction rule of the search service. public partial class SearchServiceIPRule { /// Initializes a new instance of SearchServiceIPRule. @@ -16,13 +16,13 @@ public SearchServiceIPRule() } /// Initializes a new instance of SearchServiceIPRule. - /// Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed. + /// Value corresponding to a single IPv4 address (for example, 123.1.2.3) or an IP range in CIDR format (for example, 123.1.2.3/24) to be allowed. internal SearchServiceIPRule(string value) { Value = value; } - /// Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed. + /// Value corresponding to a single IPv4 address (for example, 123.1.2.3) or an IP range in CIDR format (for example, 123.1.2.3/24) to be allowed. public string Value { get; set; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs index 02180a22b4b5..ec51a8b07ae0 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Response containing a list of Azure Cognitive Search services. + /// Response containing a list of search services. internal partial class SearchServiceListResult { /// Initializes a new instance of SearchServiceListResult. @@ -21,7 +21,7 @@ internal SearchServiceListResult() } /// Initializes a new instance of SearchServiceListResult. - /// The list of Search services. + /// The list of search services. /// Request URL that can be used to query next page of search services. Returned when the total number of requested search services exceed maximum page size. internal SearchServiceListResult(IReadOnlyList value, string nextLink) { @@ -29,7 +29,7 @@ internal SearchServiceListResult(IReadOnlyList value, string NextLink = nextLink; } - /// The list of Search services. + /// The list of search services. public IReadOnlyList Value { get; } /// Request URL that can be used to query next page of search services. Returned when the total number of requested search services exceed maximum page size. public string NextLink { get; } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.Serialization.cs index b9006c1f6603..8bd1f07d82c6 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.Serialization.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.Serialization.cs @@ -90,6 +90,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("authOptions"u8); writer.WriteObjectValue(AuthOptions); } + if (Optional.IsDefined(SemanticSearch)) + { + if (SemanticSearch != null) + { + writer.WritePropertyName("semanticSearch"u8); + writer.WriteStringValue(SemanticSearch.Value.ToString()); + } + else + { + writer.WriteNull("semanticSearch"); + } + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -120,6 +132,7 @@ internal static SearchServicePatch DeserializeSearchServicePatch(JsonElement ele Optional disableLocalAuth = default; Optional authOptions = default; Optional> privateEndpointConnections = default; + Optional semanticSearch = default; Optional> sharedPrivateLinkResources = default; foreach (var property in element.EnumerateObject()) { @@ -303,6 +316,16 @@ internal static SearchServicePatch DeserializeSearchServicePatch(JsonElement ele privateEndpointConnections = array; continue; } + if (property0.NameEquals("semanticSearch"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + semanticSearch = null; + continue; + } + semanticSearch = new SearchSemanticSearch(property0.Value.GetString()); + continue; + } if (property0.NameEquals("sharedPrivateLinkResources"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -321,7 +344,7 @@ internal static SearchServicePatch DeserializeSearchServicePatch(JsonElement ele continue; } } - return new SearchServicePatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(replicaCount), Optional.ToNullable(partitionCount), Optional.ToNullable(hostingMode), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(status), statusDetails.Value, Optional.ToNullable(provisioningState), networkRuleSet.Value, encryptionWithCmk.Value, Optional.ToNullable(disableLocalAuth), authOptions.Value, Optional.ToList(privateEndpointConnections), Optional.ToList(sharedPrivateLinkResources)); + return new SearchServicePatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(replicaCount), Optional.ToNullable(partitionCount), Optional.ToNullable(hostingMode), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(status), statusDetails.Value, Optional.ToNullable(provisioningState), networkRuleSet.Value, encryptionWithCmk.Value, Optional.ToNullable(disableLocalAuth), authOptions.Value, Optional.ToList(privateEndpointConnections), Optional.ToNullable(semanticSearch), Optional.ToList(sharedPrivateLinkResources)); } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.cs index 9a2674bad24a..ce1e381f66d5 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePatch.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Search.Models { - /// The parameters used to update an Azure Cognitive Search service. + /// The parameters used to update a search service. public partial class SearchServicePatch : TrackedResourceData { /// Initializes a new instance of SearchServicePatch. @@ -30,22 +30,23 @@ public SearchServicePatch(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. + /// The SKU of the search service, which determines the billing rate and capacity limits. This property is required when creating a new search service. /// The identity of the resource. Current supported identity types: None, SystemAssigned. /// The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. /// The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3. /// Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. /// This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. - /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, Microsoft is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. /// The details of the search service status. /// The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. - /// Network specific rules that determine how the Azure Cognitive Search service may be reached. + /// Network-specific rules that determine how the search service may be reached. /// Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. /// When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. /// Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. - /// The list of private endpoint connections to the Azure Cognitive Search service. - /// The list of shared private link resources managed by the Azure Cognitive Search service. - internal SearchServicePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, SearchSku sku, ManagedServiceIdentity identity, int? replicaCount, int? partitionCount, SearchServiceHostingMode? hostingMode, SearchServicePublicNetworkAccess? publicNetworkAccess, SearchServiceStatus? status, string statusDetails, SearchServiceProvisioningState? provisioningState, NetworkRuleSet networkRuleSet, SearchEncryptionWithCmk encryptionWithCmk, bool? isLocalAuthDisabled, SearchAadAuthDataPlaneAuthOptions authOptions, IReadOnlyList privateEndpointConnections, IReadOnlyList sharedPrivateLinkResources) : base(id, name, resourceType, systemData, tags, location) + /// The list of private endpoint connections to the search service. + /// Sets options that control the availability of semantic search. This configuration is only possible for certain search SKUs in certain locations. + /// The list of shared private link resources managed by the search service. + internal SearchServicePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, SearchSku sku, ManagedServiceIdentity identity, int? replicaCount, int? partitionCount, SearchServiceHostingMode? hostingMode, SearchServicePublicNetworkAccess? publicNetworkAccess, SearchServiceStatus? status, string statusDetails, SearchServiceProvisioningState? provisioningState, NetworkRuleSet networkRuleSet, SearchEncryptionWithCmk encryptionWithCmk, bool? isLocalAuthDisabled, SearchAadAuthDataPlaneAuthOptions authOptions, IReadOnlyList privateEndpointConnections, SearchSemanticSearch? semanticSearch, IReadOnlyList sharedPrivateLinkResources) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Identity = identity; @@ -61,10 +62,11 @@ internal SearchServicePatch(ResourceIdentifier id, string name, ResourceType res IsLocalAuthDisabled = isLocalAuthDisabled; AuthOptions = authOptions; PrivateEndpointConnections = privateEndpointConnections; + SemanticSearch = semanticSearch; SharedPrivateLinkResources = sharedPrivateLinkResources; } - /// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. + /// The SKU of the search service, which determines the billing rate and capacity limits. This property is required when creating a new search service. internal SearchSku Sku { get; set; } /// The SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. public SearchSkuName? SkuName @@ -88,15 +90,15 @@ public SearchSkuName? SkuName public SearchServiceHostingMode? HostingMode { get; set; } /// This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. public SearchServicePublicNetworkAccess? PublicNetworkAccess { get; set; } - /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, Microsoft is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. public SearchServiceStatus? Status { get; } /// The details of the search service status. public string StatusDetails { get; } /// The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. public SearchServiceProvisioningState? ProvisioningState { get; } - /// Network specific rules that determine how the Azure Cognitive Search service may be reached. + /// Network-specific rules that determine how the search service may be reached. internal NetworkRuleSet NetworkRuleSet { get; set; } - /// A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method. + /// A list of IP restriction rules used for an IP firewall. Any IPs that do not match the rules are blocked by the firewall. These rules are only applied when the 'publicNetworkAccess' of the search service is 'enabled'. public IList IPRules { get @@ -113,9 +115,11 @@ public IList IPRules public bool? IsLocalAuthDisabled { get; set; } /// Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. public SearchAadAuthDataPlaneAuthOptions AuthOptions { get; set; } - /// The list of private endpoint connections to the Azure Cognitive Search service. + /// The list of private endpoint connections to the search service. public IReadOnlyList PrivateEndpointConnections { get; } - /// The list of shared private link resources managed by the Azure Cognitive Search service. + /// Sets options that control the availability of semantic search. This configuration is only possible for certain search SKUs in certain locations. + public SearchSemanticSearch? SemanticSearch { get; set; } + /// The list of shared private link resources managed by the search service. public IReadOnlyList SharedPrivateLinkResources { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs index 87323e3bf349..67c13df7f107 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateEndpointConnectionProperties.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. + /// Describes the properties of an existing Private Endpoint connection to the search service. public partial class SearchServicePrivateEndpointConnectionProperties { /// Initializes a new instance of SearchServicePrivateEndpointConnectionProperties. @@ -22,7 +22,7 @@ public SearchServicePrivateEndpointConnectionProperties() /// The private endpoint resource from Microsoft.Network provider. /// Describes the current state of an existing Private Link Service connection to the Azure Private Endpoint. /// The group id from the provider of resource the private link service connection is for. - /// The provisioning state of the private link service connection. Can be Updating, Deleting, Failed, Succeeded, or Incomplete. + /// The provisioning state of the private link service connection. Valid values are Updating, Deleting, Failed, Succeeded, or Incomplete. internal SearchServicePrivateEndpointConnectionProperties(WritableSubResource privateEndpoint, SearchServicePrivateLinkServiceConnectionState connectionState, string groupId, SearchPrivateLinkServiceConnectionProvisioningState? provisioningState) { PrivateEndpoint = privateEndpoint; @@ -49,7 +49,7 @@ public ResourceIdentifier PrivateEndpointId public SearchServicePrivateLinkServiceConnectionState ConnectionState { get; set; } /// The group id from the provider of resource the private link service connection is for. public string GroupId { get; set; } - /// The provisioning state of the private link service connection. Can be Updating, Deleting, Failed, Succeeded, or Incomplete. + /// The provisioning state of the private link service connection. Valid values are Updating, Deleting, Failed, Succeeded, or Incomplete. public SearchPrivateLinkServiceConnectionProvisioningState? ProvisioningState { get; set; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs index 57755e4bd265..298ed7b55237 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionState.cs @@ -16,7 +16,7 @@ public SearchServicePrivateLinkServiceConnectionState() } /// Initializes a new instance of SearchServicePrivateLinkServiceConnectionState. - /// Status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected. + /// Status of the the private link service connection. Valid values are Pending, Approved, Rejected, or Disconnected. /// The description for the private link service connection state. /// A description of any extra actions that may be required. internal SearchServicePrivateLinkServiceConnectionState(SearchServicePrivateLinkServiceConnectionStatus? status, string description, string actionsRequired) @@ -26,7 +26,7 @@ internal SearchServicePrivateLinkServiceConnectionState(SearchServicePrivateLink ActionsRequired = actionsRequired; } - /// Status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected. + /// Status of the the private link service connection. Valid values are Pending, Approved, Rejected, or Disconnected. public SearchServicePrivateLinkServiceConnectionStatus? Status { get; set; } /// The description for the private link service connection state. public string Description { get; set; } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.cs index 3e71ac045527..7be3025dbb87 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServicePrivateLinkServiceConnectionStatus.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected. + /// Status of the the private link service connection. Valid values are Pending, Approved, Rejected, or Disconnected. public enum SearchServicePrivateLinkServiceConnectionStatus { /// The private endpoint connection has been created and is pending approval. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceQueryKey.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceQueryKey.cs index e9994557de00..2082930abe67 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceQueryKey.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceQueryKey.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes an API key for a given Azure Cognitive Search service that has permissions for query operations only. + /// Describes an API key for a given search service that has permissions for query operations only. public partial class SearchServiceQueryKey { /// Initializes a new instance of SearchServiceQueryKey. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.cs index c2805e51ff53..5a71290c9c69 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceStatus.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, Microsoft is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. public enum SearchServiceStatus { /// The search service is running and no provisioning operations are underway. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSku.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSku.cs index 5d0403801524..5920ffd9a4a7 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSku.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSku.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Defines the SKU of an Azure Cognitive Search Service, which determines price tier and capacity limits. + /// Defines the SKU of a search service, which determines billing rate and capacity limits. internal partial class SearchSku { /// Initializes a new instance of SearchSku. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.cs index 7186cc6f3c36..81dbb0949537 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchSkuName.cs @@ -10,19 +10,19 @@ namespace Azure.ResourceManager.Search.Models /// The SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. public enum SearchSkuName { - /// Free tier, with no SLA guarantees and a subset of features offered to paid tiers. + /// Free tier, with no SLA guarantees and a subset of the features offered on billable tiers. Free, - /// Paid tier dedicated service with up to 3 replicas. + /// Billable tier for a dedicated service having up to 3 replicas. Basic, - /// Paid tier dedicated service with up to 12 partitions and 12 replicas. + /// Billable tier for a dedicated service having up to 12 partitions and 12 replicas. Standard, /// Similar to 'standard', but with more capacity per search unit. Standard2, /// The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). Standard3, - /// Paid tier dedicated service that supports 1TB per partition, up to 12 partitions. + /// Billable tier for a dedicated service that supports 1TB per partition, up to 12 partitions. StorageOptimizedL1, - /// Paid tier dedicated service that supports 2TB per partition, up to 12 partitions. + /// Billable tier for a dedicated service that supports 2TB per partition, up to 12 partitions. StorageOptimizedL2 } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceProperties.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceProperties.cs index 37baf9af96cf..2b3c563ebcf2 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceProperties.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// Describes the properties of a resource type that has been onboarded to private link service and that's supported by search. public partial class ShareableSearchServicePrivateLinkResourceProperties { /// Initializes a new instance of ShareableSearchServicePrivateLinkResourceProperties. @@ -16,9 +16,9 @@ internal ShareableSearchServicePrivateLinkResourceProperties() } /// Initializes a new instance of ShareableSearchServicePrivateLinkResourceProperties. - /// The resource provider type for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. - /// The resource provider group id for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. - /// The description of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The resource provider type for the resource that has been onboarded to private link service and that's supported by search. + /// The resource provider group id for the resource that has been onboarded to private link service and that's supported by search. + /// The description of the resource type that has been onboarded to private link service and that's supported by search. internal ShareableSearchServicePrivateLinkResourceProperties(string shareablePrivateLinkResourcePropertiesType, string groupId, string description) { ShareablePrivateLinkResourcePropertiesType = shareablePrivateLinkResourcePropertiesType; @@ -26,11 +26,11 @@ internal ShareableSearchServicePrivateLinkResourceProperties(string shareablePri Description = description; } - /// The resource provider type for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The resource provider type for the resource that has been onboarded to private link service and that's supported by search. public string ShareablePrivateLinkResourcePropertiesType { get; } - /// The resource provider group id for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The resource provider group id for the resource that has been onboarded to private link service and that's supported by search. public string GroupId { get; } - /// The description of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The description of the resource type that has been onboarded to private link service and that's supported by search. public string Description { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceType.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceType.cs index df4c26f79e4d..539d3a6be0d9 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceType.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ShareableSearchServicePrivateLinkResourceType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes an resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// Describes a resource type that has been onboarded to private link service and that's supported by search. public partial class ShareableSearchServicePrivateLinkResourceType { /// Initializes a new instance of ShareableSearchServicePrivateLinkResourceType. @@ -16,17 +16,17 @@ internal ShareableSearchServicePrivateLinkResourceType() } /// Initializes a new instance of ShareableSearchServicePrivateLinkResourceType. - /// The name of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. - /// Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The name of the resource type that has been onboarded to private link service and that's supported by search. + /// Describes the properties of a resource type that has been onboarded to private link service and that's supported by search. internal ShareableSearchServicePrivateLinkResourceType(string name, ShareableSearchServicePrivateLinkResourceProperties properties) { Name = name; Properties = properties; } - /// The name of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// The name of the resource type that has been onboarded to private link service and that's supported by search. public string Name { get; } - /// Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + /// Describes the properties of a resource type that has been onboarded to private link service and that's supported by search. public ShareableSearchServicePrivateLinkResourceProperties Properties { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs index 6abcc17a3a1f..0a568a72c297 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProperties.cs @@ -9,7 +9,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Describes the properties of an existing Shared Private Link Resource managed by the Azure Cognitive Search service. + /// Describes the properties of an existing Shared Private Link Resource managed by the search service. public partial class SharedSearchServicePrivateLinkResourceProperties { /// Initializes a new instance of SharedSearchServicePrivateLinkResourceProperties. @@ -22,8 +22,8 @@ public SharedSearchServicePrivateLinkResourceProperties() /// The group id from the provider of resource the shared private link resource is for. /// The request message for requesting approval of the shared private link resource. /// Optional. Can be used to specify the Azure Resource Manager location of the resource to which a shared private link is to be created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service). - /// Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. - /// The provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete. + /// Status of the shared private link resource. Valid values are Pending, Approved, Rejected or Disconnected. + /// The provisioning state of the shared private link resource. Valid values are Updating, Deleting, Failed, Succeeded or Incomplete. internal SharedSearchServicePrivateLinkResourceProperties(ResourceIdentifier privateLinkResourceId, string groupId, string requestMessage, AzureLocation? resourceRegion, SharedSearchServicePrivateLinkResourceStatus? status, SharedSearchServicePrivateLinkResourceProvisioningState? provisioningState) { PrivateLinkResourceId = privateLinkResourceId; @@ -42,9 +42,9 @@ internal SharedSearchServicePrivateLinkResourceProperties(ResourceIdentifier pri public string RequestMessage { get; set; } /// Optional. Can be used to specify the Azure Resource Manager location of the resource to which a shared private link is to be created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service). public AzureLocation? ResourceRegion { get; set; } - /// Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. + /// Status of the shared private link resource. Valid values are Pending, Approved, Rejected or Disconnected. public SharedSearchServicePrivateLinkResourceStatus? Status { get; set; } - /// The provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete. + /// The provisioning state of the shared private link resource. Valid values are Updating, Deleting, Failed, Succeeded or Incomplete. public SharedSearchServicePrivateLinkResourceProvisioningState? ProvisioningState { get; set; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.cs index 61e1cb87872d..393a665b8c44 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceProvisioningState.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// The provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete. + /// The provisioning state of the shared private link resource. Valid values are Updating, Deleting, Failed, Succeeded or Incomplete. public enum SharedSearchServicePrivateLinkResourceProvisioningState { /// Updating. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.cs index b57e7f2867c4..850379abc77d 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResourceStatus.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Search.Models { - /// Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. + /// Status of the shared private link resource. Valid values are Pending, Approved, Rejected or Disconnected. public enum SharedSearchServicePrivateLinkResourceStatus { /// Pending. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs index 7a9958fa63e4..a7a7b1b496ff 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs @@ -33,7 +33,7 @@ public AdminKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -58,10 +58,10 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// Gets the primary and secondary admin API keys for the specified search service. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -88,10 +88,10 @@ public async Task> GetAsync(string subscri } } - /// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// Gets the primary and secondary admin API keys for the specified search service. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -141,9 +141,9 @@ internal HttpMessage CreateRegenerateRequest(string subscriptionId, string resou } /// Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. /// Parameter group. /// The cancellation token to use. @@ -172,9 +172,9 @@ public async Task> RegenerateAsync(string } /// Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. /// Parameter group. /// The cancellation token to use. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index a3633b904f16..a8304d8f7331 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -64,10 +64,10 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Updates a Private Endpoint connection to the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// The definition of the private endpoint connection to update. /// Parameter group. /// The cancellation token to use. @@ -98,10 +98,10 @@ public async Task> UpdateAsync(str } /// Updates a Private Endpoint connection to the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// The definition of the private endpoint connection to update. /// Parameter group. /// The cancellation token to use. @@ -154,10 +154,10 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets the details of the private endpoint connection to the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -188,10 +188,10 @@ public async Task> GetAsync(string } /// Gets the details of the private endpoint connection to the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -244,10 +244,10 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Disconnects the private endpoint connection and deletes it from the search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -278,10 +278,10 @@ public async Task> DeleteAsync(str } /// Disconnects the private endpoint connection and deletes it from the search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -333,9 +333,9 @@ internal HttpMessage CreateListByServiceRequest(string subscriptionId, string re } /// Gets a list of all private endpoint connections in the given service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -363,9 +363,9 @@ public async Task> ListBySer } /// Gets a list of all private endpoint connections in the given service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -408,9 +408,9 @@ internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string /// Gets a list of all private endpoint connections in the given service. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -440,9 +440,9 @@ public async Task> ListBySer /// Gets a list of all private endpoint connections in the given service. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index fa0180b3c97d..97a3ef08245f 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -59,9 +59,9 @@ internal HttpMessage CreateListSupportedRequest(string subscriptionId, string re } /// Gets a list of all supported private link resource types for the given service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -89,9 +89,9 @@ public async Task> ListSupportedAsync(strin } /// Gets a list of all supported private link resource types for the given service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs index a3b16ea0e2b5..43f4ab8a65b3 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs @@ -33,7 +33,7 @@ public QueryKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -60,9 +60,9 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG } /// Generates a new query key for the specified search service. You can create up to 50 query keys per service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// The name of the new query API key. /// Parameter group. /// The cancellation token to use. @@ -92,9 +92,9 @@ public async Task> CreateAsync(string subscripti } /// Generates a new query key for the specified search service. You can create up to 50 query keys per service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// The name of the new query API key. /// Parameter group. /// The cancellation token to use. @@ -144,10 +144,10 @@ internal HttpMessage CreateListBySearchServiceRequest(string subscriptionId, str return message; } - /// Returns the list of query API keys for the given Azure Cognitive Search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// Returns the list of query API keys for the given search service. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -174,10 +174,10 @@ public async Task> ListBySearchServiceAsync(string } } - /// Returns the list of query API keys for the given Azure Cognitive Search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// Returns the list of query API keys for the given search service. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -227,9 +227,9 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// The query key to be deleted. Query keys are identified by value, not by name. /// Parameter group. /// The cancellation token to use. @@ -256,9 +256,9 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// The query key to be deleted. Query keys are identified by value, not by name. /// Parameter group. /// The cancellation token to use. @@ -298,11 +298,11 @@ internal HttpMessage CreateListBySearchServiceNextPageRequest(string nextLink, s return message; } - /// Returns the list of query API keys for the given Azure Cognitive Search service. + /// Returns the list of query API keys for the given search service. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -330,11 +330,11 @@ public async Task> ListBySearchServiceNextPageAsyn } } - /// Returns the list of query API keys for the given Azure Cognitive Search service. + /// Returns the list of query API keys for the given search service. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs new file mode 100644 index 000000000000..927f66cb406b --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Search.Models; + +namespace Azure.ResourceManager.Search +{ + internal partial class SearchManagementRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SearchManagementRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public SearchManagementRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-11-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateUsageBySubscriptionSkuRequest(string subscriptionId, AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Search/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages/", false); + uri.AppendPath(skuName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the quota usage for a search SKU in the given subscription. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. + /// The unique location name for a Microsoft Azure geographic region. + /// The unique SKU name that identifies a billable tier. + /// Parameter group. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> UsageBySubscriptionSkuAsync(string subscriptionId, AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(skuName, nameof(skuName)); + + using var message = CreateUsageBySubscriptionSkuRequest(subscriptionId, location, skuName, searchManagementRequestOptions); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + QuotaUsageResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = QuotaUsageResult.DeserializeQuotaUsageResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the quota usage for a search SKU in the given subscription. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. + /// The unique location name for a Microsoft Azure geographic region. + /// The unique SKU name that identifies a billable tier. + /// Parameter group. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response UsageBySubscriptionSku(string subscriptionId, AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(skuName, nameof(skuName)); + + using var message = CreateUsageBySubscriptionSkuRequest(subscriptionId, location, skuName, searchManagementRequestOptions); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + QuotaUsageResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = QuotaUsageResult.DeserializeQuotaUsageResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs index 50e0a7081215..0882462f1039 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs @@ -33,7 +33,7 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -62,9 +62,9 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. + /// The name of the search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. /// The definition of the search service to create or update. /// Parameter group. /// The cancellation token to use. @@ -90,9 +90,9 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. + /// The name of the search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. /// The definition of the search service to create or update. /// Parameter group. /// The cancellation token to use. @@ -142,9 +142,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Updates an existing search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service to update. + /// The name of the search service to update. /// The definition of the search service to update. /// Parameter group. /// The cancellation token to use. @@ -174,9 +174,9 @@ public async Task> UpdateAsync(string subscriptionId } /// Updates an existing search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service to update. + /// The name of the search service to update. /// The definition of the search service to update. /// Parameter group. /// The cancellation token to use. @@ -226,9 +226,9 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets the search service with the given name in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -258,9 +258,9 @@ public async Task> GetAsync(string subscriptionId, s } /// Gets the search service with the given name in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -310,9 +310,9 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes a search service in the given resource group, along with its associated resources. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -337,9 +337,9 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes a search service in the given resource group, along with its associated resources. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -383,7 +383,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str } /// Gets a list of all Search services in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. /// Parameter group. /// The cancellation token to use. @@ -411,7 +411,7 @@ public async Task> ListByResourceGroupAsync(st } /// Gets a list of all Search services in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. /// Parameter group. /// The cancellation token to use. @@ -456,7 +456,7 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, Sear } /// Gets a list of all Search services in the given subscription. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// Parameter group. /// The cancellation token to use. /// is null. @@ -482,7 +482,7 @@ public async Task> ListBySubscriptionAsync(str } /// Gets a list of all Search services in the given subscription. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// Parameter group. /// The cancellation token to use. /// is null. @@ -529,7 +529,7 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, S } /// Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The resource name and type to check. /// Parameter group. /// The cancellation token to use. @@ -557,7 +557,7 @@ public async Task> CheckNameAvaila } /// Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The resource name and type to check. /// Parameter group. /// The cancellation token to use. @@ -600,7 +600,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s /// Gets a list of all Search services in the given resource group. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. /// Parameter group. /// The cancellation token to use. @@ -630,7 +630,7 @@ public async Task> ListByResourceGroupNextPage /// Gets a list of all Search services in the given resource group. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. /// Parameter group. /// The cancellation token to use. @@ -674,7 +674,7 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Gets a list of all Search services in the given subscription. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// Parameter group. /// The cancellation token to use. /// or is null. @@ -702,7 +702,7 @@ public async Task> ListBySubscriptionNextPageA /// Gets a list of all Search services in the given subscription. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// Parameter group. /// The cancellation token to use. /// or is null. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs index 58b3061f655b..20a37cd47b7c 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public SharedPrivateLinkResourcesRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -64,10 +64,10 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// The definition of the shared private link resource to create or update. /// Parameter group. /// The cancellation token to use. @@ -94,10 +94,10 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// The definition of the shared private link resource to create or update. /// Parameter group. /// The cancellation token to use. @@ -146,10 +146,10 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets the details of the shared private link resource managed by the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -180,10 +180,10 @@ public async Task> GetAsync } /// Gets the details of the shared private link resource managed by the search service in the given resource group. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -236,10 +236,10 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Initiates the deletion of the shared private link resource from the search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -265,10 +265,10 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Initiates the deletion of the shared private link resource from the search service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the search service associated with the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -315,9 +315,9 @@ internal HttpMessage CreateListByServiceRequest(string subscriptionId, string re } /// Gets a list of all shared private link resources managed by the given service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -345,9 +345,9 @@ public async Task> ListByServiceAs } /// Gets a list of all shared private link resources managed by the given service. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , or is null. @@ -390,9 +390,9 @@ internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string /// Gets a list of all shared private link resources managed by the given service. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. @@ -422,9 +422,9 @@ public async Task> ListByServiceNe /// Gets a list of all shared private link resources managed by the given service. /// The URL to the next page of results. - /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. /// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// , , or is null. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs new file mode 100644 index 000000000000..54b436c3e25f --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Search.Models; + +namespace Azure.ResourceManager.Search +{ + internal partial class UsagesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of UsagesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-11-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Search/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a list of all Search quota usages in the given subscription. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionAsync(string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId, location, searchManagementRequestOptions); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + QuotaUsagesListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = QuotaUsagesListResult.DeserializeQuotaUsagesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a list of all Search quota usages in the given subscription. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscription(string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId, location, searchManagementRequestOptions); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + QuotaUsagesListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = QuotaUsagesListResult.DeserializeQuotaUsagesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a list of all Search quota usages in the given subscription. + /// The URL to the next page of results. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, location, searchManagementRequestOptions); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + QuotaUsagesListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = QuotaUsagesListResult.DeserializeQuotaUsagesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a list of all Search quota usages in the given subscription. + /// The URL to the next page of results. + /// The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. + /// The unique location name for a Microsoft Azure geographic region. + /// Parameter group. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId, location, searchManagementRequestOptions); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + QuotaUsagesListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = QuotaUsagesListResult.DeserializeQuotaUsagesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs index 2bf1f5f252e9..3c7ec1c10109 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// The definition of the private endpoint connection to update. /// Parameter group. /// The cancellation token to use. @@ -110,7 +110,7 @@ public virtual async Task> /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// The definition of the private endpoint connection to update. /// Parameter group. /// The cancellation token to use. @@ -151,7 +151,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -189,7 +189,7 @@ public virtual async Task> Get /// /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -273,7 +273,7 @@ public virtual Pageable GetAll(SearchMa /// /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -309,7 +309,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -345,7 +345,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Searc /// /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -383,7 +383,7 @@ public virtual async Task /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionData.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionData.cs index 4fb5988e6567..1e498d2a1039 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionData.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionData.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Search { /// /// A class representing the SearchPrivateEndpointConnection data model. - /// Describes an existing Private Endpoint connection to the Azure Cognitive Search service. + /// Describes an existing private endpoint connection to the search service. /// public partial class SearchPrivateEndpointConnectionData : ResourceData { @@ -27,13 +27,13 @@ public SearchPrivateEndpointConnectionData() /// The name. /// The resourceType. /// The systemData. - /// Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. + /// Describes the properties of an existing private endpoint connection to the search service. internal SearchPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SearchServicePrivateEndpointConnectionProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } - /// Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. + /// Describes the properties of an existing private endpoint connection to the search service. public SearchServicePrivateEndpointConnectionProperties Properties { get; set; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceCollection.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceCollection.cs index a8d03a9395ef..1bde93f8e825 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceCollection.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the Azure Cognitive Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. + /// The name of the search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. /// The definition of the search service to create or update. /// Parameter group. /// The cancellation token to use. @@ -111,7 +111,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the Azure Cognitive Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. + /// The name of the search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created. /// The definition of the search service to create or update. /// Parameter group. /// The cancellation token to use. @@ -152,7 +152,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -190,7 +190,7 @@ public virtual async Task> GetAsync(string searc /// /// /// - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -274,7 +274,7 @@ public virtual Pageable GetAll(SearchManagementRequestOpt /// /// /// - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -310,7 +310,7 @@ public virtual async Task> ExistsAsync(string searchServiceName, /// /// /// - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -346,7 +346,7 @@ public virtual Response Exists(string searchServiceName, SearchManagementR /// /// /// - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -384,7 +384,7 @@ public virtual async Task> GetIfExistsAs /// /// /// - /// The name of the Azure Cognitive Search service associated with the specified resource group. + /// The name of the search service associated with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceData.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceData.cs index b576ec294090..2c2172d6b6bf 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceData.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceData.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Search { /// /// A class representing the SearchService data model. - /// Describes an Azure Cognitive Search service and its current state. + /// Describes a search service and its current state. /// public partial class SearchServiceData : TrackedResourceData { @@ -33,22 +33,23 @@ public SearchServiceData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. + /// The SKU of the search service, which determines billing rate and capacity limits. This property is required when creating a new search service. /// The identity of the resource. Current supported identity types: None, SystemAssigned. /// The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. /// The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3. /// Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. /// This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. - /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, Microsoft is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. /// The details of the search service status. /// The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. - /// Network specific rules that determine how the Azure Cognitive Search service may be reached. + /// Network-specific rules that determine how the search service may be reached. /// Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. /// When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. /// Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. - /// The list of private endpoint connections to the Azure Cognitive Search service. - /// The list of shared private link resources managed by the Azure Cognitive Search service. - internal SearchServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, SearchSku sku, ManagedServiceIdentity identity, int? replicaCount, int? partitionCount, SearchServiceHostingMode? hostingMode, SearchServicePublicNetworkAccess? publicNetworkAccess, SearchServiceStatus? status, string statusDetails, SearchServiceProvisioningState? provisioningState, NetworkRuleSet networkRuleSet, SearchEncryptionWithCmk encryptionWithCmk, bool? isLocalAuthDisabled, SearchAadAuthDataPlaneAuthOptions authOptions, IReadOnlyList privateEndpointConnections, IReadOnlyList sharedPrivateLinkResources) : base(id, name, resourceType, systemData, tags, location) + /// The list of private endpoint connections to the search service. + /// Sets options that control the availability of semantic search. This configuration is only possible for certain search SKUs in certain locations. + /// The list of shared private link resources managed by the search service. + internal SearchServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, SearchSku sku, ManagedServiceIdentity identity, int? replicaCount, int? partitionCount, SearchServiceHostingMode? hostingMode, SearchServicePublicNetworkAccess? publicNetworkAccess, SearchServiceStatus? status, string statusDetails, SearchServiceProvisioningState? provisioningState, NetworkRuleSet networkRuleSet, SearchEncryptionWithCmk encryptionWithCmk, bool? isLocalAuthDisabled, SearchAadAuthDataPlaneAuthOptions authOptions, IReadOnlyList privateEndpointConnections, SearchSemanticSearch? semanticSearch, IReadOnlyList sharedPrivateLinkResources) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Identity = identity; @@ -64,10 +65,11 @@ internal SearchServiceData(ResourceIdentifier id, string name, ResourceType reso IsLocalAuthDisabled = isLocalAuthDisabled; AuthOptions = authOptions; PrivateEndpointConnections = privateEndpointConnections; + SemanticSearch = semanticSearch; SharedPrivateLinkResources = sharedPrivateLinkResources; } - /// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. + /// The SKU of the search service, which determines billing rate and capacity limits. This property is required when creating a new search service. internal SearchSku Sku { get; set; } /// The SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. public SearchSkuName? SkuName @@ -91,15 +93,15 @@ public SearchSkuName? SkuName public SearchServiceHostingMode? HostingMode { get; set; } /// This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. public SearchServicePublicNetworkAccess? PublicNetworkAccess { get; set; } - /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + /// The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, Microsoft is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. public SearchServiceStatus? Status { get; } /// The details of the search service status. public string StatusDetails { get; } /// The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. public SearchServiceProvisioningState? ProvisioningState { get; } - /// Network specific rules that determine how the Azure Cognitive Search service may be reached. + /// Network-specific rules that determine how the search service may be reached. internal NetworkRuleSet NetworkRuleSet { get; set; } - /// A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method. + /// A list of IP restriction rules used for an IP firewall. Any IPs that do not match the rules are blocked by the firewall. These rules are only applied when the 'publicNetworkAccess' of the search service is 'enabled'. public IList IPRules { get @@ -116,9 +118,11 @@ public IList IPRules public bool? IsLocalAuthDisabled { get; set; } /// Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. public SearchAadAuthDataPlaneAuthOptions AuthOptions { get; set; } - /// The list of private endpoint connections to the Azure Cognitive Search service. + /// The list of private endpoint connections to the search service. public IReadOnlyList PrivateEndpointConnections { get; } - /// The list of shared private link resources managed by the Azure Cognitive Search service. + /// Sets options that control the availability of semantic search. This configuration is only possible for certain search SKUs in certain locations. + public SearchSemanticSearch? SemanticSearch { get; set; } + /// The list of shared private link resources managed by the search service. public IReadOnlyList SharedPrivateLinkResources { get; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs index 9402e5eebf3f..0502bb5d350e 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs @@ -122,7 +122,7 @@ public virtual SearchPrivateEndpointConnectionCollection GetSearchPrivateEndpoin /// /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -146,7 +146,7 @@ public virtual async Task> Get /// /// /// - /// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group. + /// The name of the private endpoint connection to the search service with the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -177,7 +177,7 @@ public virtual SharedSearchServicePrivateLinkResourceCollection GetSharedSearchS /// /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -201,7 +201,7 @@ public virtual async Task> GetS /// /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -419,7 +419,7 @@ public virtual Response Update(SearchServicePatch patch, } /// - /// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + /// Gets the primary and secondary admin API keys for the specified search service. /// /// /// Request Path @@ -450,7 +450,7 @@ public virtual async Task> GetAdminKeyAsyn } /// - /// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + /// Gets the primary and secondary admin API keys for the specified search service. /// /// /// Request Path @@ -617,7 +617,7 @@ public virtual Response CreateQueryKey(string name, Searc } /// - /// Returns the list of query API keys for the given Azure Cognitive Search service. + /// Returns the list of query API keys for the given search service. /// /// /// Request Path @@ -640,7 +640,7 @@ public virtual AsyncPageable GetQueryKeysBySearchServiceA } /// - /// Returns the list of query API keys for the given Azure Cognitive Search service. + /// Returns the list of query API keys for the given search service. /// /// /// Request Path diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceCollection.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceCollection.cs index c17ad28d8989..79c6568da5a5 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceCollection.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceCollection.cs @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// The definition of the shared private link resource to create or update. /// Parameter group. /// The cancellation token to use. @@ -110,7 +110,7 @@ public virtual async Task> /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// The definition of the shared private link resource to create or update. /// Parameter group. /// The cancellation token to use. @@ -151,7 +151,7 @@ public virtual ArmOperation CreateOrUpda /// /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -189,7 +189,7 @@ public virtual async Task> GetA /// /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -273,7 +273,7 @@ public virtual Pageable GetAll(SearchMan /// /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -309,7 +309,7 @@ public virtual async Task> ExistsAsync(string sharedPrivateLinkRe /// /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -345,7 +345,7 @@ public virtual Response Exists(string sharedPrivateLinkResourceName, Searc /// /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -383,7 +383,7 @@ public virtual async Task /// /// - /// The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group. + /// The name of the shared private link resource managed by the search service within the specified resource group. /// Parameter group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceData.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceData.cs index ad68b776beb0..29304b5e4305 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceData.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SharedSearchServicePrivateLinkResourceData.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Search { /// /// A class representing the SharedSearchServicePrivateLinkResource data model. - /// Describes a Shared Private Link Resource managed by the Azure Cognitive Search service. + /// Describes a Shared Private Link Resource managed by the search service. /// public partial class SharedSearchServicePrivateLinkResourceData : ResourceData { @@ -27,13 +27,13 @@ public SharedSearchServicePrivateLinkResourceData() /// The name. /// The resourceType. /// The systemData. - /// Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service. + /// Describes the properties of a Shared Private Link Resource managed by the search service. internal SharedSearchServicePrivateLinkResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SharedSearchServicePrivateLinkResourceProperties properties) : base(id, name, resourceType, systemData) { Properties = properties; } - /// Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service. + /// Describes the properties of a Shared Private Link Resource managed by the search service. public SharedSearchServicePrivateLinkResourceProperties Properties { get; set; } } } diff --git a/sdk/search/Azure.ResourceManager.Search/src/autorest.md b/sdk/search/Azure.ResourceManager.Search/src/autorest.md index 2aba249207da..865975048bbd 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/autorest.md +++ b/sdk/search/Azure.ResourceManager.Search/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Search namespace: Azure.ResourceManager.Search -require: https://github.com/Azure/azure-rest-api-specs/blob/20450db14856ccac2af2c28de56fd436c63bb726/specification/search/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/search/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: