From 4de2f43154da3b895e66a51961205427094c418f Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 09:47:08 +0000 Subject: [PATCH 1/8] Update Generator Version 3.0.0-beta.20240716.2 --- eng/Packages.Data.props | 2 +- eng/emitter-package-lock.json | 16 ++++++++-------- eng/emitter-package.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 4b17bfec9c115..a11d616993155 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -226,7 +226,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index dd64c67b7fd1c..cb550726ab329 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240715.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240716.2" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.43.0", @@ -22,9 +22,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240715.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240715.1.tgz", - "integrity": "sha512-3a/C33rCp1z7zxXZ+tTdlApgBDRZfPZjuwEEnWaYsMnhx0CQ7nD1Z7cM+r7QLqbeFrBtLW0Wg11/ElupCLYwZw==" + "version": "3.0.0-beta.20240716.2", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240716.2.tgz", + "integrity": "sha512-41B3k1dYg/LX5QrdepgKH6TvmKK5LLW+u+a5fp4GmbJSMPWVkubmrq3u+7VlNOUex050/f+qRG5hjuCV+Ghhmw==" }, "node_modules/@azure-tools/typespec-autorest": { "version": "0.43.0", @@ -116,11 +116,11 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240715.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240715.1.tgz", - "integrity": "sha512-uPfOE4Jq6GbDPrIjBBqMvRxuTrFs7SZG70HoUWhjYw/xhsmT8Kh/JxjYfAJEeC4sdcMXUh93j7/6rqyNXpAFMw==", + "version": "0.2.0-beta.20240716.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240716.2.tgz", + "integrity": "sha512-7Oa7i0J2TmcP3BFMHMzjSfQbp1hFQkLTNn1FUxAv8vNJaYTtP3Y2d5JZ2vTTrpULHsF8T3CwdQ1pGTS6xVk5iQ==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240715.1", + "@autorest/csharp": "3.0.0-beta.20240716.2", "@typespec/http-client-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240712.1.tgz", "json-serialize-refs": "0.1.0-0" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 23c25aa7c1b8a..76956d3f26eb6 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,7 +1,7 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240715.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240716.2" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.43.0", From 8e2ed0aede87c113142fa71dc842ab0968a81f3e Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 10:25:04 +0000 Subject: [PATCH 2/8] Update SDK codes de_he_2 --- .../Generated/DigitalTwinModelsRestClient.cs | 92 ++++++++-------- .../src/Generated/DigitalTwinsRestClient.cs | 102 +++++++++--------- .../src/Generated/EventRoutesRestClient.cs | 96 ++++++++--------- .../src/Generated/QueryRestClient.cs | 6 +- 4 files changed, 148 insertions(+), 148 deletions(-) diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinModelsRestClient.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinModelsRestClient.cs index ba2281f130577..228df56b63e5f 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinModelsRestClient.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinModelsRestClient.cs @@ -38,7 +38,7 @@ public DigitalTwinModelsRestClient(ClientDiagnostics clientDiagnostics, HttpPipe _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateAddRequest(IEnumerable models, CreateModelsOptions digitalTwinModelsAddOptions) + internal HttpMessage CreateAddRequest(IEnumerable models, CreateModelsOptions createModelsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -79,17 +79,17 @@ internal HttpMessage CreateAddRequest(IEnumerable models, CreateModelsOp /// * ModelAlreadyExists - The model provided already exists. /// /// An array of models to add. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task>> AddAsync(IEnumerable models, CreateModelsOptions digitalTwinModelsAddOptions = null, CancellationToken cancellationToken = default) + public async Task>> AddAsync(IEnumerable models, CreateModelsOptions createModelsOptions = null, CancellationToken cancellationToken = default) { if (models == null) { throw new ArgumentNullException(nameof(models)); } - using var message = CreateAddRequest(models, digitalTwinModelsAddOptions); + using var message = CreateAddRequest(models, createModelsOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -123,17 +123,17 @@ public async Task>> AddAsync(IEnum /// * ModelAlreadyExists - The model provided already exists. /// /// An array of models to add. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response> Add(IEnumerable models, CreateModelsOptions digitalTwinModelsAddOptions = null, CancellationToken cancellationToken = default) + public Response> Add(IEnumerable models, CreateModelsOptions createModelsOptions = null, CancellationToken cancellationToken = default) { if (models == null) { throw new ArgumentNullException(nameof(models)); } - using var message = CreateAddRequest(models, digitalTwinModelsAddOptions); + using var message = CreateAddRequest(models, createModelsOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -154,7 +154,7 @@ public Response> Add(IEnumerable mo } } - internal HttpMessage CreateListRequest(IEnumerable dependenciesFor, bool? includeModelDefinition, GetModelsOptions digitalTwinModelsListOptions) + internal HttpMessage CreateListRequest(IEnumerable dependenciesFor, bool? includeModelDefinition, GetModelsOptions getModelsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -175,9 +175,9 @@ internal HttpMessage CreateListRequest(IEnumerable dependenciesFor, bool } uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (digitalTwinModelsListOptions?.MaxItemsPerPage != null) + if (getModelsOptions?.MaxItemsPerPage != null) { - request.Headers.Add("max-items-per-page", digitalTwinModelsListOptions.MaxItemsPerPage.Value); + request.Headers.Add("max-items-per-page", getModelsOptions.MaxItemsPerPage.Value); } request.Headers.Add("Accept", "application/json"); return message; @@ -195,11 +195,11 @@ internal HttpMessage CreateListRequest(IEnumerable dependenciesFor, bool /// /// If specified, only return the set of the specified models along with their dependencies. If omitted, all models are retrieved. /// When true the model definition will be returned as part of the result. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> ListAsync(IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions digitalTwinModelsListOptions = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions getModelsOptions = null, CancellationToken cancellationToken = default) { - using var message = CreateListRequest(dependenciesFor, includeModelDefinition, digitalTwinModelsListOptions); + using var message = CreateListRequest(dependenciesFor, includeModelDefinition, getModelsOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -227,11 +227,11 @@ public async Task> ListAsync(IEnu /// /// If specified, only return the set of the specified models along with their dependencies. If omitted, all models are retrieved. /// When true the model definition will be returned as part of the result. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public Response List(IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions digitalTwinModelsListOptions = null, CancellationToken cancellationToken = default) + public Response List(IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions getModelsOptions = null, CancellationToken cancellationToken = default) { - using var message = CreateListRequest(dependenciesFor, includeModelDefinition, digitalTwinModelsListOptions); + using var message = CreateListRequest(dependenciesFor, includeModelDefinition, getModelsOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -247,7 +247,7 @@ public Response List(IEnumerable d } } - internal HttpMessage CreateGetByIdRequest(string id, bool? includeModelDefinition, GetModelOptions digitalTwinModelsGetByIdOptions) + internal HttpMessage CreateGetByIdRequest(string id, bool? includeModelDefinition, GetModelOptions getModelOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -278,17 +278,17 @@ internal HttpMessage CreateGetByIdRequest(string id, bool? includeModelDefinitio /// /// The id for the model. The id is globally unique and case sensitive. /// When true the model definition will be returned as part of the result. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> GetByIdAsync(string id, bool? includeModelDefinition = null, GetModelOptions digitalTwinModelsGetByIdOptions = null, CancellationToken cancellationToken = default) + public async Task> GetByIdAsync(string id, bool? includeModelDefinition = null, GetModelOptions getModelOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateGetByIdRequest(id, includeModelDefinition, digitalTwinModelsGetByIdOptions); + using var message = CreateGetByIdRequest(id, includeModelDefinition, getModelOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -316,17 +316,17 @@ public async Task> GetByIdAsync(string id, bool? /// /// The id for the model. The id is globally unique and case sensitive. /// When true the model definition will be returned as part of the result. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response GetById(string id, bool? includeModelDefinition = null, GetModelOptions digitalTwinModelsGetByIdOptions = null, CancellationToken cancellationToken = default) + public Response GetById(string id, bool? includeModelDefinition = null, GetModelOptions getModelOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateGetByIdRequest(id, includeModelDefinition, digitalTwinModelsGetByIdOptions); + using var message = CreateGetByIdRequest(id, includeModelDefinition, getModelOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -342,7 +342,7 @@ public Response GetById(string id, bool? includeModelDefi } } - internal HttpMessage CreateUpdateRequest(string id, IEnumerable updateModel, DecommissionModelOptions digitalTwinModelsUpdateOptions) + internal HttpMessage CreateUpdateRequest(string id, IEnumerable updateModel, DecommissionModelOptions decommissionModelOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -386,10 +386,10 @@ internal HttpMessage CreateUpdateRequest(string id, IEnumerable updateMo /// /// The id for the model. The id is globally unique and case sensitive. /// An update specification described by JSON Patch. Only the decommissioned property can be replaced. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public async Task UpdateAsync(string id, IEnumerable updateModel, DecommissionModelOptions digitalTwinModelsUpdateOptions = null, CancellationToken cancellationToken = default) + public async Task UpdateAsync(string id, IEnumerable updateModel, DecommissionModelOptions decommissionModelOptions = null, CancellationToken cancellationToken = default) { if (id == null) { @@ -400,7 +400,7 @@ public async Task UpdateAsync(string id, IEnumerable updateMod throw new ArgumentNullException(nameof(updateModel)); } - using var message = CreateUpdateRequest(id, updateModel, digitalTwinModelsUpdateOptions); + using var message = CreateUpdateRequest(id, updateModel, decommissionModelOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -426,10 +426,10 @@ public async Task UpdateAsync(string id, IEnumerable updateMod /// /// The id for the model. The id is globally unique and case sensitive. /// An update specification described by JSON Patch. Only the decommissioned property can be replaced. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public Response Update(string id, IEnumerable updateModel, DecommissionModelOptions digitalTwinModelsUpdateOptions = null, CancellationToken cancellationToken = default) + public Response Update(string id, IEnumerable updateModel, DecommissionModelOptions decommissionModelOptions = null, CancellationToken cancellationToken = default) { if (id == null) { @@ -440,7 +440,7 @@ public Response Update(string id, IEnumerable updateModel, DecommissionM throw new ArgumentNullException(nameof(updateModel)); } - using var message = CreateUpdateRequest(id, updateModel, digitalTwinModelsUpdateOptions); + using var message = CreateUpdateRequest(id, updateModel, decommissionModelOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -451,7 +451,7 @@ public Response Update(string id, IEnumerable updateModel, DecommissionM } } - internal HttpMessage CreateDeleteRequest(string id, DeleteModelOptions digitalTwinModelsDeleteOptions) + internal HttpMessage CreateDeleteRequest(string id, DeleteModelOptions deleteModelOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -479,17 +479,17 @@ internal HttpMessage CreateDeleteRequest(string id, DeleteModelOptions digitalTw /// * ModelReferencesNotDeleted - The model refers to models that are not deleted. /// /// The id for the model. The id is globally unique and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task DeleteAsync(string id, DeleteModelOptions digitalTwinModelsDeleteOptions = null, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string id, DeleteModelOptions deleteModelOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateDeleteRequest(id, digitalTwinModelsDeleteOptions); + using var message = CreateDeleteRequest(id, deleteModelOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -513,17 +513,17 @@ public async Task DeleteAsync(string id, DeleteModelOptions digitalTwi /// * ModelReferencesNotDeleted - The model refers to models that are not deleted. /// /// The id for the model. The id is globally unique and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response Delete(string id, DeleteModelOptions digitalTwinModelsDeleteOptions = null, CancellationToken cancellationToken = default) + public Response Delete(string id, DeleteModelOptions deleteModelOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateDeleteRequest(id, digitalTwinModelsDeleteOptions); + using var message = CreateDeleteRequest(id, deleteModelOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -534,7 +534,7 @@ public Response Delete(string id, DeleteModelOptions digitalTwinModelsDeleteOpti } } - internal HttpMessage CreateListNextPageRequest(string nextLink, IEnumerable dependenciesFor, bool? includeModelDefinition, GetModelsOptions digitalTwinModelsListOptions) + internal HttpMessage CreateListNextPageRequest(string nextLink, IEnumerable dependenciesFor, bool? includeModelDefinition, GetModelsOptions getModelsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -543,9 +543,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, IEnumerable The URL to the next page of results. /// If specified, only return the set of the specified models along with their dependencies. If omitted, all models are retrieved. /// When true the model definition will be returned as part of the result. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> ListNextPageAsync(string nextLink, IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions digitalTwinModelsListOptions = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions getModelsOptions = null, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateListNextPageRequest(nextLink, dependenciesFor, includeModelDefinition, digitalTwinModelsListOptions); + using var message = CreateListNextPageRequest(nextLink, dependenciesFor, includeModelDefinition, getModelsOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -603,17 +603,17 @@ public async Task> ListNextPageAs /// The URL to the next page of results. /// If specified, only return the set of the specified models along with their dependencies. If omitted, all models are retrieved. /// When true the model definition will be returned as part of the result. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response ListNextPage(string nextLink, IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions digitalTwinModelsListOptions = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, IEnumerable dependenciesFor = null, bool? includeModelDefinition = null, GetModelsOptions getModelsOptions = null, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateListNextPageRequest(nextLink, dependenciesFor, includeModelDefinition, digitalTwinModelsListOptions); + using var message = CreateListNextPageRequest(nextLink, dependenciesFor, includeModelDefinition, getModelsOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinsRestClient.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinsRestClient.cs index 46ad9cafadc06..a3d22ed0579c1 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinsRestClient.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DigitalTwinsRestClient.cs @@ -38,7 +38,7 @@ public DigitalTwinsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateGetByIdRequest(string id, GetDigitalTwinOptions digitalTwinsGetByIdOptions) + internal HttpMessage CreateGetByIdRequest(string id, GetDigitalTwinOptions getDigitalTwinOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -53,7 +53,7 @@ internal HttpMessage CreateGetByIdRequest(string id, GetDigitalTwinOptions digit return message; } - internal HttpMessage CreateDeleteRequest(string id, DeleteDigitalTwinOptions digitalTwinsDeleteOptions) + internal HttpMessage CreateDeleteRequest(string id, DeleteDigitalTwinOptions deleteDigitalTwinOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -64,9 +64,9 @@ internal HttpMessage CreateDeleteRequest(string id, DeleteDigitalTwinOptions dig uri.AppendPath(id, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (digitalTwinsDeleteOptions?.IfMatch != null) + if (deleteDigitalTwinOptions?.IfMatch != null) { - request.Headers.Add("If-Match", digitalTwinsDeleteOptions.IfMatch); + request.Headers.Add("If-Match", deleteDigitalTwinOptions.IfMatch); } request.Headers.Add("Accept", "application/json"); return message; @@ -85,17 +85,17 @@ internal HttpMessage CreateDeleteRequest(string id, DeleteDigitalTwinOptions dig /// * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed. /// /// The id of the digital twin. The id is unique within the service and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task DeleteAsync(string id, DeleteDigitalTwinOptions digitalTwinsDeleteOptions = null, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string id, DeleteDigitalTwinOptions deleteDigitalTwinOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateDeleteRequest(id, digitalTwinsDeleteOptions); + using var message = CreateDeleteRequest(id, deleteDigitalTwinOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -119,17 +119,17 @@ public async Task DeleteAsync(string id, DeleteDigitalTwinOptions digi /// * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed. /// /// The id of the digital twin. The id is unique within the service and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response Delete(string id, DeleteDigitalTwinOptions digitalTwinsDeleteOptions = null, CancellationToken cancellationToken = default) + public Response Delete(string id, DeleteDigitalTwinOptions deleteDigitalTwinOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateDeleteRequest(id, digitalTwinsDeleteOptions); + using var message = CreateDeleteRequest(id, deleteDigitalTwinOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -140,7 +140,7 @@ public Response Delete(string id, DeleteDigitalTwinOptions digitalTwinsDeleteOpt } } - internal HttpMessage CreateUpdateRequest(string id, IEnumerable patchDocument, UpdateDigitalTwinOptions digitalTwinsUpdateOptions) + internal HttpMessage CreateUpdateRequest(string id, IEnumerable patchDocument, UpdateDigitalTwinOptions updateDigitalTwinOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -151,9 +151,9 @@ internal HttpMessage CreateUpdateRequest(string id, IEnumerable patchDoc uri.AppendPath(id, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (digitalTwinsUpdateOptions?.IfMatch != null) + if (updateDigitalTwinOptions?.IfMatch != null) { - request.Headers.Add("If-Match", digitalTwinsUpdateOptions.IfMatch); + request.Headers.Add("If-Match", updateDigitalTwinOptions.IfMatch); } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json-patch+json"); @@ -173,7 +173,7 @@ internal HttpMessage CreateUpdateRequest(string id, IEnumerable patchDoc return message; } - internal HttpMessage CreateGetRelationshipByIdRequest(string id, string relationshipId, GetRelationshipOptions digitalTwinsGetRelationshipByIdOptions) + internal HttpMessage CreateGetRelationshipByIdRequest(string id, string relationshipId, GetRelationshipOptions getRelationshipOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -190,7 +190,7 @@ internal HttpMessage CreateGetRelationshipByIdRequest(string id, string relation return message; } - internal HttpMessage CreateAddRelationshipRequest(string id, string relationshipId, object relationship, CreateOrReplaceRelationshipOptions digitalTwinsAddRelationshipOptions) + internal HttpMessage CreateAddRelationshipRequest(string id, string relationshipId, object relationship, CreateOrReplaceRelationshipOptions createOrReplaceRelationshipOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -203,9 +203,9 @@ internal HttpMessage CreateAddRelationshipRequest(string id, string relationship uri.AppendPath(relationshipId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (digitalTwinsAddRelationshipOptions?.IfNoneMatch != null) + if (createOrReplaceRelationshipOptions?.IfNoneMatch != null) { - request.Headers.Add("If-None-Match", digitalTwinsAddRelationshipOptions.IfNoneMatch); + request.Headers.Add("If-None-Match", createOrReplaceRelationshipOptions.IfNoneMatch); } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -215,7 +215,7 @@ internal HttpMessage CreateAddRelationshipRequest(string id, string relationship return message; } - internal HttpMessage CreateDeleteRelationshipRequest(string id, string relationshipId, DeleteRelationshipOptions digitalTwinsDeleteRelationshipOptions) + internal HttpMessage CreateDeleteRelationshipRequest(string id, string relationshipId, DeleteRelationshipOptions deleteRelationshipOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -228,9 +228,9 @@ internal HttpMessage CreateDeleteRelationshipRequest(string id, string relations uri.AppendPath(relationshipId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (digitalTwinsDeleteRelationshipOptions?.IfMatch != null) + if (deleteRelationshipOptions?.IfMatch != null) { - request.Headers.Add("If-Match", digitalTwinsDeleteRelationshipOptions.IfMatch); + request.Headers.Add("If-Match", deleteRelationshipOptions.IfMatch); } request.Headers.Add("Accept", "application/json"); return message; @@ -250,10 +250,10 @@ internal HttpMessage CreateDeleteRelationshipRequest(string id, string relations /// /// The id of the digital twin. The id is unique within the service and case sensitive. /// The id of the relationship. The id is unique within the digital twin and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public async Task DeleteRelationshipAsync(string id, string relationshipId, DeleteRelationshipOptions digitalTwinsDeleteRelationshipOptions = null, CancellationToken cancellationToken = default) + public async Task DeleteRelationshipAsync(string id, string relationshipId, DeleteRelationshipOptions deleteRelationshipOptions = null, CancellationToken cancellationToken = default) { if (id == null) { @@ -264,7 +264,7 @@ public async Task DeleteRelationshipAsync(string id, string relationsh throw new ArgumentNullException(nameof(relationshipId)); } - using var message = CreateDeleteRelationshipRequest(id, relationshipId, digitalTwinsDeleteRelationshipOptions); + using var message = CreateDeleteRelationshipRequest(id, relationshipId, deleteRelationshipOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -289,10 +289,10 @@ public async Task DeleteRelationshipAsync(string id, string relationsh /// /// The id of the digital twin. The id is unique within the service and case sensitive. /// The id of the relationship. The id is unique within the digital twin and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public Response DeleteRelationship(string id, string relationshipId, DeleteRelationshipOptions digitalTwinsDeleteRelationshipOptions = null, CancellationToken cancellationToken = default) + public Response DeleteRelationship(string id, string relationshipId, DeleteRelationshipOptions deleteRelationshipOptions = null, CancellationToken cancellationToken = default) { if (id == null) { @@ -303,7 +303,7 @@ public Response DeleteRelationship(string id, string relationshipId, DeleteRelat throw new ArgumentNullException(nameof(relationshipId)); } - using var message = CreateDeleteRelationshipRequest(id, relationshipId, digitalTwinsDeleteRelationshipOptions); + using var message = CreateDeleteRelationshipRequest(id, relationshipId, deleteRelationshipOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -314,7 +314,7 @@ public Response DeleteRelationship(string id, string relationshipId, DeleteRelat } } - internal HttpMessage CreateUpdateRelationshipRequest(string id, string relationshipId, IEnumerable patchDocument, UpdateRelationshipOptions digitalTwinsUpdateRelationshipOptions) + internal HttpMessage CreateUpdateRelationshipRequest(string id, string relationshipId, IEnumerable patchDocument, UpdateRelationshipOptions updateRelationshipOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -327,9 +327,9 @@ internal HttpMessage CreateUpdateRelationshipRequest(string id, string relations uri.AppendPath(relationshipId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (digitalTwinsUpdateRelationshipOptions?.IfMatch != null) + if (updateRelationshipOptions?.IfMatch != null) { - request.Headers.Add("If-Match", digitalTwinsUpdateRelationshipOptions.IfMatch); + request.Headers.Add("If-Match", updateRelationshipOptions.IfMatch); } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json-patch+json"); @@ -349,7 +349,7 @@ internal HttpMessage CreateUpdateRelationshipRequest(string id, string relations return message; } - internal HttpMessage CreateListRelationshipsRequest(string id, string relationshipName, GetRelationshipsOptions digitalTwinsListRelationshipsOptions) + internal HttpMessage CreateListRelationshipsRequest(string id, string relationshipName, GetRelationshipsOptions getRelationshipsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -369,7 +369,7 @@ internal HttpMessage CreateListRelationshipsRequest(string id, string relationsh return message; } - internal HttpMessage CreateListIncomingRelationshipsRequest(string id, GetIncomingRelationshipsOptions digitalTwinsListIncomingRelationshipsOptions) + internal HttpMessage CreateListIncomingRelationshipsRequest(string id, GetIncomingRelationshipsOptions getIncomingRelationshipsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -395,17 +395,17 @@ internal HttpMessage CreateListIncomingRelationshipsRequest(string id, GetIncomi /// * DigitalTwinNotFound - The digital twin was not found. /// /// The id of the digital twin. The id is unique within the service and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> ListIncomingRelationshipsAsync(string id, GetIncomingRelationshipsOptions digitalTwinsListIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) + public async Task> ListIncomingRelationshipsAsync(string id, GetIncomingRelationshipsOptions getIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateListIncomingRelationshipsRequest(id, digitalTwinsListIncomingRelationshipsOptions); + using var message = CreateListIncomingRelationshipsRequest(id, getIncomingRelationshipsOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -431,17 +431,17 @@ public async Task> ListIncomingRelation /// * DigitalTwinNotFound - The digital twin was not found. /// /// The id of the digital twin. The id is unique within the service and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response ListIncomingRelationships(string id, GetIncomingRelationshipsOptions digitalTwinsListIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) + public Response ListIncomingRelationships(string id, GetIncomingRelationshipsOptions getIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateListIncomingRelationshipsRequest(id, digitalTwinsListIncomingRelationshipsOptions); + using var message = CreateListIncomingRelationshipsRequest(id, getIncomingRelationshipsOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -457,7 +457,7 @@ public Response ListIncomingRelationships(string } } - internal HttpMessage CreateSendTelemetryRequest(string id, string messageId, object telemetry, string telemetrySourceTime, PublishTelemetryOptions digitalTwinsSendTelemetryOptions) + internal HttpMessage CreateSendTelemetryRequest(string id, string messageId, object telemetry, string telemetrySourceTime, PublishTelemetryOptions publishTelemetryOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -482,7 +482,7 @@ internal HttpMessage CreateSendTelemetryRequest(string id, string messageId, obj return message; } - internal HttpMessage CreateSendComponentTelemetryRequest(string id, string componentPath, string messageId, object telemetry, string telemetrySourceTime, PublishComponentTelemetryOptions digitalTwinsSendComponentTelemetryOptions) + internal HttpMessage CreateSendComponentTelemetryRequest(string id, string componentPath, string messageId, object telemetry, string telemetrySourceTime, PublishComponentTelemetryOptions publishComponentTelemetryOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -509,7 +509,7 @@ internal HttpMessage CreateSendComponentTelemetryRequest(string id, string compo return message; } - internal HttpMessage CreateGetComponentRequest(string id, string componentPath, GetComponentOptions digitalTwinsGetComponentOptions) + internal HttpMessage CreateGetComponentRequest(string id, string componentPath, GetComponentOptions getComponentOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -526,7 +526,7 @@ internal HttpMessage CreateGetComponentRequest(string id, string componentPath, return message; } - internal HttpMessage CreateUpdateComponentRequest(string id, string componentPath, IEnumerable patchDocument, UpdateComponentOptions digitalTwinsUpdateComponentOptions) + internal HttpMessage CreateUpdateComponentRequest(string id, string componentPath, IEnumerable patchDocument, UpdateComponentOptions updateComponentOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -539,9 +539,9 @@ internal HttpMessage CreateUpdateComponentRequest(string id, string componentPat uri.AppendPath(componentPath, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (digitalTwinsUpdateComponentOptions?.IfMatch != null) + if (updateComponentOptions?.IfMatch != null) { - request.Headers.Add("If-Match", digitalTwinsUpdateComponentOptions.IfMatch); + request.Headers.Add("If-Match", updateComponentOptions.IfMatch); } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json-patch+json"); @@ -561,7 +561,7 @@ internal HttpMessage CreateUpdateComponentRequest(string id, string componentPat return message; } - internal HttpMessage CreateListRelationshipsNextPageRequest(string nextLink, string id, string relationshipName, GetRelationshipsOptions digitalTwinsListRelationshipsOptions) + internal HttpMessage CreateListRelationshipsNextPageRequest(string nextLink, string id, string relationshipName, GetRelationshipsOptions getRelationshipsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -574,7 +574,7 @@ internal HttpMessage CreateListRelationshipsNextPageRequest(string nextLink, str return message; } - internal HttpMessage CreateListIncomingRelationshipsNextPageRequest(string nextLink, string id, GetIncomingRelationshipsOptions digitalTwinsListIncomingRelationshipsOptions) + internal HttpMessage CreateListIncomingRelationshipsNextPageRequest(string nextLink, string id, GetIncomingRelationshipsOptions getIncomingRelationshipsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -598,10 +598,10 @@ internal HttpMessage CreateListIncomingRelationshipsNextPageRequest(string nextL /// /// The URL to the next page of results. /// The id of the digital twin. The id is unique within the service and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public async Task> ListIncomingRelationshipsNextPageAsync(string nextLink, string id, GetIncomingRelationshipsOptions digitalTwinsListIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) + public async Task> ListIncomingRelationshipsNextPageAsync(string nextLink, string id, GetIncomingRelationshipsOptions getIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) { if (nextLink == null) { @@ -612,7 +612,7 @@ public async Task> ListIncomingRelation throw new ArgumentNullException(nameof(id)); } - using var message = CreateListIncomingRelationshipsNextPageRequest(nextLink, id, digitalTwinsListIncomingRelationshipsOptions); + using var message = CreateListIncomingRelationshipsNextPageRequest(nextLink, id, getIncomingRelationshipsOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -639,10 +639,10 @@ public async Task> ListIncomingRelation /// /// The URL to the next page of results. /// The id of the digital twin. The id is unique within the service and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public Response ListIncomingRelationshipsNextPage(string nextLink, string id, GetIncomingRelationshipsOptions digitalTwinsListIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) + public Response ListIncomingRelationshipsNextPage(string nextLink, string id, GetIncomingRelationshipsOptions getIncomingRelationshipsOptions = null, CancellationToken cancellationToken = default) { if (nextLink == null) { @@ -653,7 +653,7 @@ public Response ListIncomingRelationshipsNextPag throw new ArgumentNullException(nameof(id)); } - using var message = CreateListIncomingRelationshipsNextPageRequest(nextLink, id, digitalTwinsListIncomingRelationshipsOptions); + using var message = CreateListIncomingRelationshipsNextPageRequest(nextLink, id, getIncomingRelationshipsOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/EventRoutesRestClient.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/EventRoutesRestClient.cs index b0a5d6fed11b7..88700b9554205 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/EventRoutesRestClient.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/EventRoutesRestClient.cs @@ -37,7 +37,7 @@ public EventRoutesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline p _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateListRequest(GetDigitalTwinsEventRoutesOptions eventRoutesListOptions) + internal HttpMessage CreateListRequest(GetDigitalTwinsEventRoutesOptions getDigitalTwinsEventRoutesOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -47,9 +47,9 @@ internal HttpMessage CreateListRequest(GetDigitalTwinsEventRoutesOptions eventRo uri.AppendPath("/eventroutes", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (eventRoutesListOptions?.MaxItemsPerPage != null) + if (getDigitalTwinsEventRoutesOptions?.MaxItemsPerPage != null) { - request.Headers.Add("max-items-per-page", eventRoutesListOptions.MaxItemsPerPage.Value); + request.Headers.Add("max-items-per-page", getDigitalTwinsEventRoutesOptions.MaxItemsPerPage.Value); } request.Headers.Add("Accept", "application/json"); return message; @@ -60,11 +60,11 @@ internal HttpMessage CreateListRequest(GetDigitalTwinsEventRoutesOptions eventRo /// Status codes: /// * 200 OK /// - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> ListAsync(GetDigitalTwinsEventRoutesOptions eventRoutesListOptions = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(GetDigitalTwinsEventRoutesOptions getDigitalTwinsEventRoutesOptions = null, CancellationToken cancellationToken = default) { - using var message = CreateListRequest(eventRoutesListOptions); + using var message = CreateListRequest(getDigitalTwinsEventRoutesOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -85,11 +85,11 @@ public async Task> ListAsync(GetDigit /// Status codes: /// * 200 OK /// - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public Response List(GetDigitalTwinsEventRoutesOptions eventRoutesListOptions = null, CancellationToken cancellationToken = default) + public Response List(GetDigitalTwinsEventRoutesOptions getDigitalTwinsEventRoutesOptions = null, CancellationToken cancellationToken = default) { - using var message = CreateListRequest(eventRoutesListOptions); + using var message = CreateListRequest(getDigitalTwinsEventRoutesOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -105,7 +105,7 @@ public Response List(GetDigitalTwinsEventRoute } } - internal HttpMessage CreateGetByIdRequest(string id, GetDigitalTwinsEventRouteOptions eventRoutesGetByIdOptions) + internal HttpMessage CreateGetByIdRequest(string id, GetDigitalTwinsEventRouteOptions getDigitalTwinsEventRouteOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -128,17 +128,17 @@ internal HttpMessage CreateGetByIdRequest(string id, GetDigitalTwinsEventRouteOp /// * EventRouteNotFound - The event route was not found. /// /// The id for an event route. The id is unique within event routes and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> GetByIdAsync(string id, GetDigitalTwinsEventRouteOptions eventRoutesGetByIdOptions = null, CancellationToken cancellationToken = default) + public async Task> GetByIdAsync(string id, GetDigitalTwinsEventRouteOptions getDigitalTwinsEventRouteOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateGetByIdRequest(id, eventRoutesGetByIdOptions); + using var message = CreateGetByIdRequest(id, getDigitalTwinsEventRouteOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -162,17 +162,17 @@ public async Task> GetByIdAsync(string id, GetD /// * EventRouteNotFound - The event route was not found. /// /// The id for an event route. The id is unique within event routes and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response GetById(string id, GetDigitalTwinsEventRouteOptions eventRoutesGetByIdOptions = null, CancellationToken cancellationToken = default) + public Response GetById(string id, GetDigitalTwinsEventRouteOptions getDigitalTwinsEventRouteOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateGetByIdRequest(id, eventRoutesGetByIdOptions); + using var message = CreateGetByIdRequest(id, getDigitalTwinsEventRouteOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -188,7 +188,7 @@ public Response GetById(string id, GetDigitalTwinsEventR } } - internal HttpMessage CreateAddRequest(string id, DigitalTwinsEventRoute eventRoute, CreateOrReplaceEventRouteOptions eventRoutesAddOptions) + internal HttpMessage CreateAddRequest(string id, DigitalTwinsEventRoute digitalTwinsEventRoute, CreateOrReplaceEventRouteOptions createOrReplaceEventRouteOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -202,7 +202,7 @@ internal HttpMessage CreateAddRequest(string id, DigitalTwinsEventRoute eventRou request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(eventRoute); + content.JsonWriter.WriteObjectValue(digitalTwinsEventRoute); request.Content = content; return message; } @@ -218,22 +218,22 @@ internal HttpMessage CreateAddRequest(string id, DigitalTwinsEventRoute eventRou /// * LimitExceeded - The maximum number of event routes allowed has been reached. /// /// The id for an event route. The id is unique within event routes and case sensitive. - /// The event route data. - /// Parameter group. + /// The event route data. + /// Parameter group. /// The cancellation token to use. - /// or is null. - public async Task AddAsync(string id, DigitalTwinsEventRoute eventRoute, CreateOrReplaceEventRouteOptions eventRoutesAddOptions = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task AddAsync(string id, DigitalTwinsEventRoute digitalTwinsEventRoute, CreateOrReplaceEventRouteOptions createOrReplaceEventRouteOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - if (eventRoute == null) + if (digitalTwinsEventRoute == null) { - throw new ArgumentNullException(nameof(eventRoute)); + throw new ArgumentNullException(nameof(digitalTwinsEventRoute)); } - using var message = CreateAddRequest(id, eventRoute, eventRoutesAddOptions); + using var message = CreateAddRequest(id, digitalTwinsEventRoute, createOrReplaceEventRouteOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -255,22 +255,22 @@ public async Task AddAsync(string id, DigitalTwinsEventRoute eventRout /// * LimitExceeded - The maximum number of event routes allowed has been reached. /// /// The id for an event route. The id is unique within event routes and case sensitive. - /// The event route data. - /// Parameter group. + /// The event route data. + /// Parameter group. /// The cancellation token to use. - /// or is null. - public Response Add(string id, DigitalTwinsEventRoute eventRoute, CreateOrReplaceEventRouteOptions eventRoutesAddOptions = null, CancellationToken cancellationToken = default) + /// or is null. + public Response Add(string id, DigitalTwinsEventRoute digitalTwinsEventRoute, CreateOrReplaceEventRouteOptions createOrReplaceEventRouteOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - if (eventRoute == null) + if (digitalTwinsEventRoute == null) { - throw new ArgumentNullException(nameof(eventRoute)); + throw new ArgumentNullException(nameof(digitalTwinsEventRoute)); } - using var message = CreateAddRequest(id, eventRoute, eventRoutesAddOptions); + using var message = CreateAddRequest(id, digitalTwinsEventRoute, createOrReplaceEventRouteOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -281,7 +281,7 @@ public Response Add(string id, DigitalTwinsEventRoute eventRoute, CreateOrReplac } } - internal HttpMessage CreateDeleteRequest(string id, DeleteEventRouteOptions eventRoutesDeleteOptions) + internal HttpMessage CreateDeleteRequest(string id, DeleteEventRouteOptions deleteEventRouteOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -304,17 +304,17 @@ internal HttpMessage CreateDeleteRequest(string id, DeleteEventRouteOptions even /// * EventRouteNotFound - The event route was not found. /// /// The id for an event route. The id is unique within event routes and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task DeleteAsync(string id, DeleteEventRouteOptions eventRoutesDeleteOptions = null, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string id, DeleteEventRouteOptions deleteEventRouteOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateDeleteRequest(id, eventRoutesDeleteOptions); + using var message = CreateDeleteRequest(id, deleteEventRouteOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -333,17 +333,17 @@ public async Task DeleteAsync(string id, DeleteEventRouteOptions event /// * EventRouteNotFound - The event route was not found. /// /// The id for an event route. The id is unique within event routes and case sensitive. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response Delete(string id, DeleteEventRouteOptions eventRoutesDeleteOptions = null, CancellationToken cancellationToken = default) + public Response Delete(string id, DeleteEventRouteOptions deleteEventRouteOptions = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - using var message = CreateDeleteRequest(id, eventRoutesDeleteOptions); + using var message = CreateDeleteRequest(id, deleteEventRouteOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -354,7 +354,7 @@ public Response Delete(string id, DeleteEventRouteOptions eventRoutesDeleteOptio } } - internal HttpMessage CreateListNextPageRequest(string nextLink, GetDigitalTwinsEventRoutesOptions eventRoutesListOptions) + internal HttpMessage CreateListNextPageRequest(string nextLink, GetDigitalTwinsEventRoutesOptions getDigitalTwinsEventRoutesOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -363,9 +363,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, GetDigitalTwinsE uri.Reset(_endpoint); uri.AppendRawNextLink(nextLink, false); request.Uri = uri; - if (eventRoutesListOptions?.MaxItemsPerPage != null) + if (getDigitalTwinsEventRoutesOptions?.MaxItemsPerPage != null) { - request.Headers.Add("max-items-per-page", eventRoutesListOptions.MaxItemsPerPage.Value); + request.Headers.Add("max-items-per-page", getDigitalTwinsEventRoutesOptions.MaxItemsPerPage.Value); } request.Headers.Add("Accept", "application/json"); return message; @@ -377,17 +377,17 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, GetDigitalTwinsE /// * 200 OK /// /// The URL to the next page of results. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> ListNextPageAsync(string nextLink, GetDigitalTwinsEventRoutesOptions eventRoutesListOptions = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, GetDigitalTwinsEventRoutesOptions getDigitalTwinsEventRoutesOptions = null, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateListNextPageRequest(nextLink, eventRoutesListOptions); + using var message = CreateListNextPageRequest(nextLink, getDigitalTwinsEventRoutesOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -409,17 +409,17 @@ public async Task> ListNextPageAsync( /// * 200 OK /// /// The URL to the next page of results. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public Response ListNextPage(string nextLink, GetDigitalTwinsEventRoutesOptions eventRoutesListOptions = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, GetDigitalTwinsEventRoutesOptions getDigitalTwinsEventRoutesOptions = null, CancellationToken cancellationToken = default) { if (nextLink == null) { throw new ArgumentNullException(nameof(nextLink)); } - using var message = CreateListNextPageRequest(nextLink, eventRoutesListOptions); + using var message = CreateListNextPageRequest(nextLink, getDigitalTwinsEventRoutesOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/QueryRestClient.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/QueryRestClient.cs index 40f6fbf0f00cd..57b5da76a719c 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/QueryRestClient.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/QueryRestClient.cs @@ -37,7 +37,7 @@ public QueryRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipelin _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateQueryTwinsRequest(QuerySpecification querySpecification, QueryOptions queryTwinsOptions) + internal HttpMessage CreateQueryTwinsRequest(QuerySpecification querySpecification, QueryOptions queryOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -47,9 +47,9 @@ internal HttpMessage CreateQueryTwinsRequest(QuerySpecification querySpecificati uri.AppendPath("/query", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (queryTwinsOptions?.MaxItemsPerPage != null) + if (queryOptions?.MaxItemsPerPage != null) { - request.Headers.Add("max-items-per-page", queryTwinsOptions.MaxItemsPerPage.Value); + request.Headers.Add("max-items-per-page", queryOptions.MaxItemsPerPage.Value); } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); From 8ba98018d7367c29e2564db4feb26d23538035f1 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 10:27:04 +0000 Subject: [PATCH 3/8] Update SDK codes he_me_3 --- .../src/Generated/ConfigurationRestClient.cs | 28 +-- .../src/Generated/DevicesRestClient.cs | 28 +-- .../src/Generated/ModulesRestClient.cs | 28 +-- .../src/Generated/RenderRestClient.cs | 96 +++++----- .../src/Generated/SearchRestClient.cs | 168 +++++++++--------- 5 files changed, 174 insertions(+), 174 deletions(-) diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ConfigurationRestClient.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ConfigurationRestClient.cs index 1a8f657dbc63d..66ed8a4be9b3f 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ConfigurationRestClient.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ConfigurationRestClient.cs @@ -108,7 +108,7 @@ public Response Get(string id, CancellationToken cancellation } } - internal HttpMessage CreateCreateOrUpdateRequest(string id, TwinConfiguration configuration, string ifMatch) + internal HttpMessage CreateCreateOrUpdateRequest(string id, TwinConfiguration twinConfiguration, string ifMatch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -126,29 +126,29 @@ internal HttpMessage CreateCreateOrUpdateRequest(string id, TwinConfiguration co request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(configuration); + content.JsonWriter.WriteObjectValue(twinConfiguration); request.Content = content; return message; } /// Creates or updates a configuration on the IoT Hub for automatic device/module management. Configuration identifier and Content cannot be updated. /// The unique identifier of the configuration. - /// The configuration to be created or updated. + /// The configuration to be created or updated. /// The string representing a weak ETag for the configuration, as per RFC7232. This should not be set when creating a configuration, but may be set when updating a configuration. /// The cancellation token to use. - /// or is null. - public async Task> CreateOrUpdateAsync(string id, TwinConfiguration configuration, string ifMatch = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task> CreateOrUpdateAsync(string id, TwinConfiguration twinConfiguration, string ifMatch = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - if (configuration == null) + if (twinConfiguration == null) { - throw new ArgumentNullException(nameof(configuration)); + throw new ArgumentNullException(nameof(twinConfiguration)); } - using var message = CreateCreateOrUpdateRequest(id, configuration, ifMatch); + using var message = CreateCreateOrUpdateRequest(id, twinConfiguration, ifMatch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -167,22 +167,22 @@ public async Task> CreateOrUpdateAsync(string id, Tw /// Creates or updates a configuration on the IoT Hub for automatic device/module management. Configuration identifier and Content cannot be updated. /// The unique identifier of the configuration. - /// The configuration to be created or updated. + /// The configuration to be created or updated. /// The string representing a weak ETag for the configuration, as per RFC7232. This should not be set when creating a configuration, but may be set when updating a configuration. /// The cancellation token to use. - /// or is null. - public Response CreateOrUpdate(string id, TwinConfiguration configuration, string ifMatch = null, CancellationToken cancellationToken = default) + /// or is null. + public Response CreateOrUpdate(string id, TwinConfiguration twinConfiguration, string ifMatch = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - if (configuration == null) + if (twinConfiguration == null) { - throw new ArgumentNullException(nameof(configuration)); + throw new ArgumentNullException(nameof(twinConfiguration)); } - using var message = CreateCreateOrUpdateRequest(id, configuration, ifMatch); + using var message = CreateCreateOrUpdateRequest(id, twinConfiguration, ifMatch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/DevicesRestClient.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/DevicesRestClient.cs index dbd6bff3acebf..2f1ea19831731 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/DevicesRestClient.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/DevicesRestClient.cs @@ -178,7 +178,7 @@ public Response GetIdentity(string id, CancellationToken cancell } } - internal HttpMessage CreateCreateOrUpdateIdentityRequest(string id, DeviceIdentity device, string ifMatch) + internal HttpMessage CreateCreateOrUpdateIdentityRequest(string id, DeviceIdentity deviceIdentity, string ifMatch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -196,29 +196,29 @@ internal HttpMessage CreateCreateOrUpdateIdentityRequest(string id, DeviceIdenti request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(device); + content.JsonWriter.WriteObjectValue(deviceIdentity); request.Content = content; return message; } /// Creates or updates the identity of a device in the identity registry of the IoT Hub. /// The unique identifier of the device. - /// The contents of the device identity. + /// The contents of the device identity. /// The string representing a weak ETag for the device identity, as per RFC7232. This should not be set when creating a device, but may be set when updating a device. /// The cancellation token to use. - /// or is null. - public async Task> CreateOrUpdateIdentityAsync(string id, DeviceIdentity device, string ifMatch = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task> CreateOrUpdateIdentityAsync(string id, DeviceIdentity deviceIdentity, string ifMatch = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - if (device == null) + if (deviceIdentity == null) { - throw new ArgumentNullException(nameof(device)); + throw new ArgumentNullException(nameof(deviceIdentity)); } - using var message = CreateCreateOrUpdateIdentityRequest(id, device, ifMatch); + using var message = CreateCreateOrUpdateIdentityRequest(id, deviceIdentity, ifMatch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -236,22 +236,22 @@ public async Task> CreateOrUpdateIdentityAsync(string i /// Creates or updates the identity of a device in the identity registry of the IoT Hub. /// The unique identifier of the device. - /// The contents of the device identity. + /// The contents of the device identity. /// The string representing a weak ETag for the device identity, as per RFC7232. This should not be set when creating a device, but may be set when updating a device. /// The cancellation token to use. - /// or is null. - public Response CreateOrUpdateIdentity(string id, DeviceIdentity device, string ifMatch = null, CancellationToken cancellationToken = default) + /// or is null. + public Response CreateOrUpdateIdentity(string id, DeviceIdentity deviceIdentity, string ifMatch = null, CancellationToken cancellationToken = default) { if (id == null) { throw new ArgumentNullException(nameof(id)); } - if (device == null) + if (deviceIdentity == null) { - throw new ArgumentNullException(nameof(device)); + throw new ArgumentNullException(nameof(deviceIdentity)); } - using var message = CreateCreateOrUpdateIdentityRequest(id, device, ifMatch); + using var message = CreateCreateOrUpdateIdentityRequest(id, deviceIdentity, ifMatch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ModulesRestClient.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ModulesRestClient.cs index ec9c02b96fd60..427f204eb437a 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ModulesRestClient.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/ModulesRestClient.cs @@ -483,7 +483,7 @@ public Response GetIdentity(string id, string mid, CancellationT } } - internal HttpMessage CreateCreateOrUpdateIdentityRequest(string id, string mid, ModuleIdentity module, string ifMatch) + internal HttpMessage CreateCreateOrUpdateIdentityRequest(string id, string mid, ModuleIdentity moduleIdentity, string ifMatch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -503,7 +503,7 @@ internal HttpMessage CreateCreateOrUpdateIdentityRequest(string id, string mid, request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(module); + content.JsonWriter.WriteObjectValue(moduleIdentity); request.Content = content; return message; } @@ -511,11 +511,11 @@ internal HttpMessage CreateCreateOrUpdateIdentityRequest(string id, string mid, /// Creates or updates the module identity for a device in the IoT Hub. The moduleId and generationId cannot be updated by the user. /// The unique identifier of the device. /// The unique identifier of the module. - /// The module identity. + /// The module identity. /// The string representing a weak ETag for the module, as per RFC7232. This should not be set when creating a module, but may be set when updating a module. /// The cancellation token to use. - /// , or is null. - public async Task> CreateOrUpdateIdentityAsync(string id, string mid, ModuleIdentity module, string ifMatch = null, CancellationToken cancellationToken = default) + /// , or is null. + public async Task> CreateOrUpdateIdentityAsync(string id, string mid, ModuleIdentity moduleIdentity, string ifMatch = null, CancellationToken cancellationToken = default) { if (id == null) { @@ -525,12 +525,12 @@ public async Task> CreateOrUpdateIdentityAsync(string i { throw new ArgumentNullException(nameof(mid)); } - if (module == null) + if (moduleIdentity == null) { - throw new ArgumentNullException(nameof(module)); + throw new ArgumentNullException(nameof(moduleIdentity)); } - using var message = CreateCreateOrUpdateIdentityRequest(id, mid, module, ifMatch); + using var message = CreateCreateOrUpdateIdentityRequest(id, mid, moduleIdentity, ifMatch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -550,11 +550,11 @@ public async Task> CreateOrUpdateIdentityAsync(string i /// Creates or updates the module identity for a device in the IoT Hub. The moduleId and generationId cannot be updated by the user. /// The unique identifier of the device. /// The unique identifier of the module. - /// The module identity. + /// The module identity. /// The string representing a weak ETag for the module, as per RFC7232. This should not be set when creating a module, but may be set when updating a module. /// The cancellation token to use. - /// , or is null. - public Response CreateOrUpdateIdentity(string id, string mid, ModuleIdentity module, string ifMatch = null, CancellationToken cancellationToken = default) + /// , or is null. + public Response CreateOrUpdateIdentity(string id, string mid, ModuleIdentity moduleIdentity, string ifMatch = null, CancellationToken cancellationToken = default) { if (id == null) { @@ -564,12 +564,12 @@ public Response CreateOrUpdateIdentity(string id, string mid, Mo { throw new ArgumentNullException(nameof(mid)); } - if (module == null) + if (moduleIdentity == null) { - throw new ArgumentNullException(nameof(module)); + throw new ArgumentNullException(nameof(moduleIdentity)); } - using var message = CreateCreateOrUpdateIdentityRequest(id, mid, module, ifMatch); + using var message = CreateCreateOrUpdateIdentityRequest(id, mid, moduleIdentity, ifMatch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs index bd4d92cfa3a30..1481ac3f5fd25 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs @@ -43,7 +43,7 @@ public RenderRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeli _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateGetMapTileRequest(MapTileSetId tilesetId, MapTileIndex tileIndex, DateTimeOffset? timeStamp, MapTileSize? tileSize, string language, LocalizedMapView? localizedMapView) + internal HttpMessage CreateGetMapTileRequest(MapTileSetId tilesetId, MapTileIndex mapTileIndex, DateTimeOffset? timeStamp, MapTileSize? tileSize, string language, LocalizedMapView? localizedMapView) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -53,9 +53,9 @@ internal HttpMessage CreateGetMapTileRequest(MapTileSetId tilesetId, MapTileInde uri.AppendPath("/map/tile", false); uri.AppendQuery("api-version", _apiVersion, true); uri.AppendQuery("tilesetId", tilesetId.ToString(), true); - uri.AppendQuery("zoom", tileIndex.Z, true); - uri.AppendQuery("x", tileIndex.X, true); - uri.AppendQuery("y", tileIndex.Y, true); + uri.AppendQuery("zoom", mapTileIndex.Z, true); + uri.AppendQuery("x", mapTileIndex.X, true); + uri.AppendQuery("y", mapTileIndex.Y, true); if (timeStamp != null) { uri.AppendQuery("timeStamp", timeStamp.Value, "O", true); @@ -87,7 +87,7 @@ internal HttpMessage CreateGetMapTileRequest(MapTileSetId tilesetId, MapTileInde /// The Get Map Tiles API allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control (Web SDK) and Android SDK. /// /// A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at preset zoom levels. Every tileset has a **tilesetId** to use when making requests. The **tilesetId** for tilesets created using [Azure Maps Creator](https://aka.ms/amcreator) are generated through the [Tileset Create API](https://docs.microsoft.com/rest/api/maps-creator/tileset). The ready-to-use tilesets supplied by Azure Maps are listed below. For example, microsoft.base. - /// Parameter group. + /// Parameter group. /// /// The desired date and time of the requested tile. This parameter must be specified in the standard date-time format (e.g. 2019-11-14T16:03:00-08:00), as defined by [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). This parameter is only supported when tilesetId parameter is set to one of the values below. /// @@ -106,15 +106,15 @@ internal HttpMessage CreateGetMapTileRequest(MapTileSetId tilesetId, MapTileInde /// Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. /// /// The cancellation token to use. - /// is null. - public async Task> GetMapTileAsync(MapTileSetId tilesetId, MapTileIndex tileIndex, DateTimeOffset? timeStamp = null, MapTileSize? tileSize = null, string language = null, LocalizedMapView? localizedMapView = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> GetMapTileAsync(MapTileSetId tilesetId, MapTileIndex mapTileIndex, DateTimeOffset? timeStamp = null, MapTileSize? tileSize = null, string language = null, LocalizedMapView? localizedMapView = null, CancellationToken cancellationToken = default) { - if (tileIndex == null) + if (mapTileIndex == null) { - throw new ArgumentNullException(nameof(tileIndex)); + throw new ArgumentNullException(nameof(mapTileIndex)); } - using var message = CreateGetMapTileRequest(tilesetId, tileIndex, timeStamp, tileSize, language, localizedMapView); + using var message = CreateGetMapTileRequest(tilesetId, mapTileIndex, timeStamp, tileSize, language, localizedMapView); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new RenderGetMapTileHeaders(message.Response); switch (message.Response.Status) @@ -135,7 +135,7 @@ public async Task> GetMapTi /// The Get Map Tiles API allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control (Web SDK) and Android SDK. /// /// A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at preset zoom levels. Every tileset has a **tilesetId** to use when making requests. The **tilesetId** for tilesets created using [Azure Maps Creator](https://aka.ms/amcreator) are generated through the [Tileset Create API](https://docs.microsoft.com/rest/api/maps-creator/tileset). The ready-to-use tilesets supplied by Azure Maps are listed below. For example, microsoft.base. - /// Parameter group. + /// Parameter group. /// /// The desired date and time of the requested tile. This parameter must be specified in the standard date-time format (e.g. 2019-11-14T16:03:00-08:00), as defined by [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). This parameter is only supported when tilesetId parameter is set to one of the values below. /// @@ -154,15 +154,15 @@ public async Task> GetMapTi /// Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. /// /// The cancellation token to use. - /// is null. - public ResponseWithHeaders GetMapTile(MapTileSetId tilesetId, MapTileIndex tileIndex, DateTimeOffset? timeStamp = null, MapTileSize? tileSize = null, string language = null, LocalizedMapView? localizedMapView = null, CancellationToken cancellationToken = default) + /// is null. + public ResponseWithHeaders GetMapTile(MapTileSetId tilesetId, MapTileIndex mapTileIndex, DateTimeOffset? timeStamp = null, MapTileSize? tileSize = null, string language = null, LocalizedMapView? localizedMapView = null, CancellationToken cancellationToken = default) { - if (tileIndex == null) + if (mapTileIndex == null) { - throw new ArgumentNullException(nameof(tileIndex)); + throw new ArgumentNullException(nameof(mapTileIndex)); } - using var message = CreateGetMapTileRequest(tilesetId, tileIndex, timeStamp, tileSize, language, localizedMapView); + using var message = CreateGetMapTileRequest(tilesetId, mapTileIndex, timeStamp, tileSize, language, localizedMapView); _pipeline.Send(message, cancellationToken); var headers = new RenderGetMapTileHeaders(message.Response); switch (message.Response.Status) @@ -336,7 +336,7 @@ public Response GetMapAttribution(MapTileSetId tilesetId, int zo } } - internal HttpMessage CreateGetMapStateTileRequest(string statesetId, MapTileIndex tileIndex) + internal HttpMessage CreateGetMapStateTileRequest(string statesetId, MapTileIndex mapTileIndex) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -345,9 +345,9 @@ internal HttpMessage CreateGetMapStateTileRequest(string statesetId, MapTileInde uri.Reset(_endpoint); uri.AppendPath("/map/statetile", false); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("zoom", tileIndex.Z, true); - uri.AppendQuery("x", tileIndex.X, true); - uri.AppendQuery("y", tileIndex.Y, true); + uri.AppendQuery("zoom", mapTileIndex.Z, true); + uri.AppendQuery("x", mapTileIndex.X, true); + uri.AppendQuery("y", mapTileIndex.Y, true); uri.AppendQuery("statesetId", statesetId, true); request.Uri = uri; if (_clientId != null) @@ -364,21 +364,21 @@ internal HttpMessage CreateGetMapStateTileRequest(string statesetId, MapTileInde /// Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling (see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid)) /// /// The stateset id. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - /// or is null. - public async Task> GetMapStateTileAsync(string statesetId, MapTileIndex tileIndex, CancellationToken cancellationToken = default) + /// or is null. + public async Task> GetMapStateTileAsync(string statesetId, MapTileIndex mapTileIndex, CancellationToken cancellationToken = default) { if (statesetId == null) { throw new ArgumentNullException(nameof(statesetId)); } - if (tileIndex == null) + if (mapTileIndex == null) { - throw new ArgumentNullException(nameof(tileIndex)); + throw new ArgumentNullException(nameof(mapTileIndex)); } - using var message = CreateGetMapStateTileRequest(statesetId, tileIndex); + using var message = CreateGetMapStateTileRequest(statesetId, mapTileIndex); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new RenderGetMapStateTileHeaders(message.Response); switch (message.Response.Status) @@ -399,21 +399,21 @@ public async Task> Get /// Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling (see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid)) /// /// The stateset id. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - /// or is null. - public ResponseWithHeaders GetMapStateTile(string statesetId, MapTileIndex tileIndex, CancellationToken cancellationToken = default) + /// or is null. + public ResponseWithHeaders GetMapStateTile(string statesetId, MapTileIndex mapTileIndex, CancellationToken cancellationToken = default) { if (statesetId == null) { throw new ArgumentNullException(nameof(statesetId)); } - if (tileIndex == null) + if (mapTileIndex == null) { - throw new ArgumentNullException(nameof(tileIndex)); + throw new ArgumentNullException(nameof(mapTileIndex)); } - using var message = CreateGetMapStateTileRequest(statesetId, tileIndex); + using var message = CreateGetMapStateTileRequest(statesetId, mapTileIndex); _pipeline.Send(message, cancellationToken); var headers = new RenderGetMapStateTileHeaders(message.Response); switch (message.Response.Status) @@ -1247,7 +1247,7 @@ public Response GetCopyrightFromBoundingBox(ResponseFormat form } } - internal HttpMessage CreateGetCopyrightForTileRequest(ResponseFormat format, MapTileIndex tileIndex, IncludeText? includeText) + internal HttpMessage CreateGetCopyrightForTileRequest(ResponseFormat format, MapTileIndex mapTileIndex, IncludeText? includeText) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1257,9 +1257,9 @@ internal HttpMessage CreateGetCopyrightForTileRequest(ResponseFormat format, Map uri.AppendPath("/map/copyright/tile/", false); uri.AppendPath(format.ToString(), true); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("zoom", tileIndex.Z, true); - uri.AppendQuery("x", tileIndex.X, true); - uri.AppendQuery("y", tileIndex.Y, true); + uri.AppendQuery("zoom", mapTileIndex.Z, true); + uri.AppendQuery("x", mapTileIndex.X, true); + uri.AppendQuery("y", mapTileIndex.Y, true); if (includeText != null) { uri.AppendQuery("text", includeText.Value.ToString(), true); @@ -1280,18 +1280,18 @@ internal HttpMessage CreateGetCopyrightForTileRequest(ResponseFormat format, Map /// Returns the copyright information for a given tile. To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates (see: Zoom Levels and Tile Grid). /// /// Desired format of the response. Value can be either _json_ or _xml_. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// Parameter group. + /// Parameter group. /// Yes/no value to exclude textual data from response. Only images and country/region names will be in response. /// The cancellation token to use. - /// is null. - public async Task> GetCopyrightForTileAsync(ResponseFormat format, MapTileIndex tileIndex, IncludeText? includeText = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> GetCopyrightForTileAsync(ResponseFormat format, MapTileIndex mapTileIndex, IncludeText? includeText = null, CancellationToken cancellationToken = default) { - if (tileIndex == null) + if (mapTileIndex == null) { - throw new ArgumentNullException(nameof(tileIndex)); + throw new ArgumentNullException(nameof(mapTileIndex)); } - using var message = CreateGetCopyrightForTileRequest(format, tileIndex, includeText); + using var message = CreateGetCopyrightForTileRequest(format, mapTileIndex, includeText); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1314,18 +1314,18 @@ public async Task> GetCopyrightForTileAsync(ResponseFo /// Returns the copyright information for a given tile. To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates (see: Zoom Levels and Tile Grid). /// /// Desired format of the response. Value can be either _json_ or _xml_. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// Parameter group. + /// Parameter group. /// Yes/no value to exclude textual data from response. Only images and country/region names will be in response. /// The cancellation token to use. - /// is null. - public Response GetCopyrightForTile(ResponseFormat format, MapTileIndex tileIndex, IncludeText? includeText = null, CancellationToken cancellationToken = default) + /// is null. + public Response GetCopyrightForTile(ResponseFormat format, MapTileIndex mapTileIndex, IncludeText? includeText = null, CancellationToken cancellationToken = default) { - if (tileIndex == null) + if (mapTileIndex == null) { - throw new ArgumentNullException(nameof(tileIndex)); + throw new ArgumentNullException(nameof(mapTileIndex)); } - using var message = CreateGetCopyrightForTileRequest(format, tileIndex, includeText); + using var message = CreateGetCopyrightForTileRequest(format, mapTileIndex, includeText); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/SearchRestClient.cs b/sdk/maps/Azure.Maps.Search/src/Generated/SearchRestClient.cs index ca02d112901c8..f3cb220f2d6be 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/SearchRestClient.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/SearchRestClient.cs @@ -2931,7 +2931,7 @@ public Response SearchAlongRoute(ResponseFormat format, str } } - internal HttpMessage CreateFuzzySearchBatchSyncRequest(JsonFormat format, BatchRequestInternal batchRequest) + internal HttpMessage CreateFuzzySearchBatchSyncRequest(JsonFormat format, BatchRequestInternal batchRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2949,7 +2949,7 @@ internal HttpMessage CreateFuzzySearchBatchSyncRequest(JsonFormat format, BatchR request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Common.Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(batchRequest); + content.JsonWriter.WriteObjectValue(batchRequestInternal); request.Content = content; return message; } @@ -3105,17 +3105,17 @@ internal HttpMessage CreateFuzzySearchBatchSyncRequest(JsonFormat format, BatchR /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public async Task> FuzzySearchBatchSyncAsync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> FuzzySearchBatchSyncAsync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateFuzzySearchBatchSyncRequest(format, batchRequest); + using var message = CreateFuzzySearchBatchSyncRequest(format, batchRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -3282,17 +3282,17 @@ public async Task> FuzzySearchBatchSyncAsync( /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public Response FuzzySearchBatchSync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public Response FuzzySearchBatchSync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateFuzzySearchBatchSyncRequest(format, batchRequest); + using var message = CreateFuzzySearchBatchSyncRequest(format, batchRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -3308,7 +3308,7 @@ public Response FuzzySearchBatchSync(JsonFormat format } } - internal HttpMessage CreateFuzzySearchBatchRequest(JsonFormat format, BatchRequestInternal batchRequest) + internal HttpMessage CreateFuzzySearchBatchRequest(JsonFormat format, BatchRequestInternal batchRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -3326,7 +3326,7 @@ internal HttpMessage CreateFuzzySearchBatchRequest(JsonFormat format, BatchReque request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Common.Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(batchRequest); + content.JsonWriter.WriteObjectValue(batchRequestInternal); request.Content = content; return message; } @@ -3482,17 +3482,17 @@ internal HttpMessage CreateFuzzySearchBatchRequest(JsonFormat format, BatchReque /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public async Task> FuzzySearchBatchAsync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> FuzzySearchBatchAsync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateFuzzySearchBatchRequest(format, batchRequest); + using var message = CreateFuzzySearchBatchRequest(format, batchRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new SearchFuzzySearchBatchHeaders(message.Response); switch (message.Response.Status) @@ -3656,17 +3656,17 @@ public async Task> FuzzySearc /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of search fuzzy queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public ResponseWithHeaders FuzzySearchBatch(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public ResponseWithHeaders FuzzySearchBatch(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateFuzzySearchBatchRequest(format, batchRequest); + using var message = CreateFuzzySearchBatchRequest(format, batchRequestInternal); _pipeline.Send(message, cancellationToken); var headers = new SearchFuzzySearchBatchHeaders(message.Response); switch (message.Response.Status) @@ -4044,7 +4044,7 @@ public ResponseWithHeaders GetFuzzySearchBatch } } - internal HttpMessage CreateSearchAddressBatchSyncRequest(JsonFormat format, BatchRequestInternal batchRequest) + internal HttpMessage CreateSearchAddressBatchSyncRequest(JsonFormat format, BatchRequestInternal batchRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4062,7 +4062,7 @@ internal HttpMessage CreateSearchAddressBatchSyncRequest(JsonFormat format, Batc request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Common.Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(batchRequest); + content.JsonWriter.WriteObjectValue(batchRequestInternal); request.Content = content; return message; } @@ -4210,17 +4210,17 @@ internal HttpMessage CreateSearchAddressBatchSyncRequest(JsonFormat format, Batc /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public async Task> SearchAddressBatchSyncAsync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> SearchAddressBatchSyncAsync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateSearchAddressBatchSyncRequest(format, batchRequest); + using var message = CreateSearchAddressBatchSyncRequest(format, batchRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -4379,17 +4379,17 @@ public async Task> SearchAddressBatchSyncAsyn /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public Response SearchAddressBatchSync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public Response SearchAddressBatchSync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateSearchAddressBatchSyncRequest(format, batchRequest); + using var message = CreateSearchAddressBatchSyncRequest(format, batchRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -4405,7 +4405,7 @@ public Response SearchAddressBatchSync(JsonFormat form } } - internal HttpMessage CreateSearchAddressBatchRequest(JsonFormat format, BatchRequestInternal batchRequest) + internal HttpMessage CreateSearchAddressBatchRequest(JsonFormat format, BatchRequestInternal batchRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4423,7 +4423,7 @@ internal HttpMessage CreateSearchAddressBatchRequest(JsonFormat format, BatchReq request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Common.Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(batchRequest); + content.JsonWriter.WriteObjectValue(batchRequestInternal); request.Content = content; return message; } @@ -4571,17 +4571,17 @@ internal HttpMessage CreateSearchAddressBatchRequest(JsonFormat format, BatchReq /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public async Task> SearchAddressBatchAsync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> SearchAddressBatchAsync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateSearchAddressBatchRequest(format, batchRequest); + using var message = CreateSearchAddressBatchRequest(format, batchRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new SearchSearchAddressBatchHeaders(message.Response); switch (message.Response.Status) @@ -4737,17 +4737,17 @@ public async Task> SearchAd /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of address geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public ResponseWithHeaders SearchAddressBatch(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public ResponseWithHeaders SearchAddressBatch(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateSearchAddressBatchRequest(format, batchRequest); + using var message = CreateSearchAddressBatchRequest(format, batchRequestInternal); _pipeline.Send(message, cancellationToken); var headers = new SearchSearchAddressBatchHeaders(message.Response); switch (message.Response.Status) @@ -5109,7 +5109,7 @@ public ResponseWithHeaders GetSearchAddressB } } - internal HttpMessage CreateReverseSearchAddressBatchSyncRequest(JsonFormat format, BatchRequestInternal batchRequest) + internal HttpMessage CreateReverseSearchAddressBatchSyncRequest(JsonFormat format, BatchRequestInternal batchRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -5127,7 +5127,7 @@ internal HttpMessage CreateReverseSearchAddressBatchSyncRequest(JsonFormat forma request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Common.Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(batchRequest); + content.JsonWriter.WriteObjectValue(batchRequestInternal); request.Content = content; return message; } @@ -5277,17 +5277,17 @@ internal HttpMessage CreateReverseSearchAddressBatchSyncRequest(JsonFormat forma /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public async Task> ReverseSearchAddressBatchSyncAsync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> ReverseSearchAddressBatchSyncAsync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateReverseSearchAddressBatchSyncRequest(format, batchRequest); + using var message = CreateReverseSearchAddressBatchSyncRequest(format, batchRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -5448,17 +5448,17 @@ public async Task> ReverseSearchAddres /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public Response ReverseSearchAddressBatchSync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public Response ReverseSearchAddressBatchSync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateReverseSearchAddressBatchSyncRequest(format, batchRequest); + using var message = CreateReverseSearchAddressBatchSyncRequest(format, batchRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -5474,7 +5474,7 @@ public Response ReverseSearchAddressBatchSync(J } } - internal HttpMessage CreateReverseSearchAddressBatchRequest(JsonFormat format, BatchRequestInternal batchRequest) + internal HttpMessage CreateReverseSearchAddressBatchRequest(JsonFormat format, BatchRequestInternal batchRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -5492,7 +5492,7 @@ internal HttpMessage CreateReverseSearchAddressBatchRequest(JsonFormat format, B request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Common.Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(batchRequest); + content.JsonWriter.WriteObjectValue(batchRequestInternal); request.Content = content; return message; } @@ -5642,17 +5642,17 @@ internal HttpMessage CreateReverseSearchAddressBatchRequest(JsonFormat format, B /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public async Task> ReverseSearchAddressBatchAsync(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> ReverseSearchAddressBatchAsync(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateReverseSearchAddressBatchRequest(format, batchRequest); + using var message = CreateReverseSearchAddressBatchRequest(format, batchRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new SearchReverseSearchAddressBatchHeaders(message.Response); switch (message.Response.Status) @@ -5810,17 +5810,17 @@ public async Task> R /// ``` /// /// Desired format of the response. Only `json` format is supported. The default value is AutoRest.CSharp.Output.Models.Types.EnumTypeValue. - /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. + /// The list of reverse geocoding queries/requests to process. The list can contain a max of 10,000 queries and must contain at least 1 query. /// The cancellation token to use. - /// is null. - public ResponseWithHeaders ReverseSearchAddressBatch(JsonFormat format, BatchRequestInternal batchRequest, CancellationToken cancellationToken = default) + /// is null. + public ResponseWithHeaders ReverseSearchAddressBatch(JsonFormat format, BatchRequestInternal batchRequestInternal, CancellationToken cancellationToken = default) { - if (batchRequest == null) + if (batchRequestInternal == null) { - throw new ArgumentNullException(nameof(batchRequest)); + throw new ArgumentNullException(nameof(batchRequestInternal)); } - using var message = CreateReverseSearchAddressBatchRequest(format, batchRequest); + using var message = CreateReverseSearchAddressBatchRequest(format, batchRequestInternal); _pipeline.Send(message, cancellationToken); var headers = new SearchReverseSearchAddressBatchHeaders(message.Response); switch (message.Response.Status) From 27703ae5ea0e0a6c0e9d54b0bec714924d3abac0 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 10:27:48 +0000 Subject: [PATCH 4/8] Update SDK codes st_wo_6 --- .../src/Generated/ServiceRestClient.cs | 28 +-- .../src/Generated/FileRestClient.cs | 216 +++++++++--------- .../src/Generated/ServiceRestClient.cs | 28 +-- .../src/Generated/ShareRestClient.cs | 144 ++++++------ .../src/Generated/ServiceRestClient.cs | 28 +-- 5 files changed, 222 insertions(+), 222 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs index f7a0d8f2a3425..e274940f81e8d 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs @@ -41,7 +41,7 @@ public ServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipel _version = version ?? throw new ArgumentNullException(nameof(version)); } - internal HttpMessage CreateSetPropertiesRequest(BlobServiceProperties storageServiceProperties, int? timeout) + internal HttpMessage CreateSetPropertiesRequest(BlobServiceProperties blobServiceProperties, int? timeout) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -60,24 +60,24 @@ internal HttpMessage CreateSetPropertiesRequest(BlobServiceProperties storageSer request.Headers.Add("Accept", "application/xml"); request.Headers.Add("Content-Type", "application/xml"); var content = new XmlWriterContent(); - content.XmlWriter.WriteObjectValue(storageServiceProperties, "StorageServiceProperties"); + content.XmlWriter.WriteObjectValue(blobServiceProperties, "StorageServiceProperties"); request.Content = content; return message; } /// Sets properties for a storage account's Blob service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. - /// The StorageService properties. + /// The StorageService properties. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. /// The cancellation token to use. - /// is null. - public async Task> SetPropertiesAsync(BlobServiceProperties storageServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> SetPropertiesAsync(BlobServiceProperties blobServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) { - if (storageServiceProperties == null) + if (blobServiceProperties == null) { - throw new ArgumentNullException(nameof(storageServiceProperties)); + throw new ArgumentNullException(nameof(blobServiceProperties)); } - using var message = CreateSetPropertiesRequest(storageServiceProperties, timeout); + using var message = CreateSetPropertiesRequest(blobServiceProperties, timeout); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ServiceSetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -90,18 +90,18 @@ public async Task> SetPropertie } /// Sets properties for a storage account's Blob service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. - /// The StorageService properties. + /// The StorageService properties. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. /// The cancellation token to use. - /// is null. - public ResponseWithHeaders SetProperties(BlobServiceProperties storageServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) + /// is null. + public ResponseWithHeaders SetProperties(BlobServiceProperties blobServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) { - if (storageServiceProperties == null) + if (blobServiceProperties == null) { - throw new ArgumentNullException(nameof(storageServiceProperties)); + throw new ArgumentNullException(nameof(blobServiceProperties)); } - using var message = CreateSetPropertiesRequest(storageServiceProperties, timeout); + using var message = CreateSetPropertiesRequest(blobServiceProperties, timeout); _pipeline.Send(message, cancellationToken); var headers = new ServiceSetPropertiesHeaders(message.Response); switch (message.Response.Status) diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs index 311768d7eb11d..88def29500e07 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs @@ -52,7 +52,7 @@ public FileRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline _allowSourceTrailingDot = allowSourceTrailingDot; } - internal HttpMessage CreateCreateRequest(long fileContentLength, string fileAttributes, int? timeout, IDictionary metadata, string filePermission, string filePermissionKey, string fileCreationTime, string fileLastWriteTime, string fileChangeTime, FileHttpHeaders fileHttpHeaders, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateCreateRequest(long fileContentLength, string fileAttributes, int? timeout, IDictionary metadata, string filePermission, string filePermissionKey, string fileCreationTime, string fileLastWriteTime, string fileChangeTime, FileHttpHeaders fileHttpHeaders, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -120,9 +120,9 @@ internal HttpMessage CreateCreateRequest(long fileContentLength, string fileAttr { request.Headers.Add("x-ms-file-change-time", fileChangeTime); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_fileRequestIntent != null) { @@ -143,17 +143,17 @@ internal HttpMessage CreateCreateRequest(long fileContentLength, string fileAttr /// Last write time for the file/directory. Default value: Now. /// Change time for the file/directory. Default value: Now. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> CreateAsync(long fileContentLength, string fileAttributes, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> CreateAsync(long fileContentLength, string fileAttributes, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (fileAttributes == null) { throw new ArgumentNullException(nameof(fileAttributes)); } - using var message = CreateCreateRequest(fileContentLength, fileAttributes, timeout, metadata, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, leaseAccessConditions); + using var message = CreateCreateRequest(fileContentLength, fileAttributes, timeout, metadata, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileCreateHeaders(message.Response); switch (message.Response.Status) @@ -176,17 +176,17 @@ public async Task> CreateAsync(long fileC /// Last write time for the file/directory. Default value: Now. /// Change time for the file/directory. Default value: Now. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public ResponseWithHeaders Create(long fileContentLength, string fileAttributes, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders Create(long fileContentLength, string fileAttributes, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (fileAttributes == null) { throw new ArgumentNullException(nameof(fileAttributes)); } - using var message = CreateCreateRequest(fileContentLength, fileAttributes, timeout, metadata, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, leaseAccessConditions); + using var message = CreateCreateRequest(fileContentLength, fileAttributes, timeout, metadata, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileCreateHeaders(message.Response); switch (message.Response.Status) @@ -198,7 +198,7 @@ public ResponseWithHeaders Create(long fileContentLength, str } } - internal HttpMessage CreateDownloadRequest(int? timeout, string range, bool? rangeGetContentMD5, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateDownloadRequest(int? timeout, string range, bool? rangeGetContentMD5, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -224,9 +224,9 @@ internal HttpMessage CreateDownloadRequest(int? timeout, string range, bool? ran { request.Headers.Add("x-ms-range-get-content-md5", rangeGetContentMD5.Value); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_fileRequestIntent != null) { @@ -240,11 +240,11 @@ internal HttpMessage CreateDownloadRequest(int? timeout, string range, bool? ran /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// Return file data only from the specified byte range. /// When this header is set to true and specified together with the Range header, the service returns the MD5 hash for the range, as long as the range is less than or equal to 4 MB in size. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> DownloadAsync(int? timeout = null, string range = null, bool? rangeGetContentMD5 = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> DownloadAsync(int? timeout = null, string range = null, bool? rangeGetContentMD5 = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateDownloadRequest(timeout, range, rangeGetContentMD5, leaseAccessConditions); + using var message = CreateDownloadRequest(timeout, range, rangeGetContentMD5, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileDownloadHeaders(message.Response); switch (message.Response.Status) @@ -264,11 +264,11 @@ public async Task> DownloadAsyn /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// Return file data only from the specified byte range. /// When this header is set to true and specified together with the Range header, the service returns the MD5 hash for the range, as long as the range is less than or equal to 4 MB in size. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders Download(int? timeout = null, string range = null, bool? rangeGetContentMD5 = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders Download(int? timeout = null, string range = null, bool? rangeGetContentMD5 = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateDownloadRequest(timeout, range, rangeGetContentMD5, leaseAccessConditions); + using var message = CreateDownloadRequest(timeout, range, rangeGetContentMD5, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileDownloadHeaders(message.Response); switch (message.Response.Status) @@ -284,7 +284,7 @@ public ResponseWithHeaders Download(int? timeout = } } - internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeout, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeout, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -305,9 +305,9 @@ internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeo request.Headers.Add("x-ms-allow-trailing-dot", _allowTrailingDot.Value); } request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_fileRequestIntent != null) { @@ -320,11 +320,11 @@ internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeo /// Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It does not return the content of the file. /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> GetPropertiesAsync(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> GetPropertiesAsync(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, leaseAccessConditions); + using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileGetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -339,11 +339,11 @@ public async Task> GetPropertiesAs /// Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It does not return the content of the file. /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders GetProperties(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders GetProperties(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, leaseAccessConditions); + using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileGetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -355,7 +355,7 @@ public ResponseWithHeaders GetProperties(string shares } } - internal HttpMessage CreateDeleteRequest(int? timeout, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateDeleteRequest(int? timeout, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -372,9 +372,9 @@ internal HttpMessage CreateDeleteRequest(int? timeout, ShareFileRequestCondition request.Headers.Add("x-ms-allow-trailing-dot", _allowTrailingDot.Value); } request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_fileRequestIntent != null) { @@ -386,11 +386,11 @@ internal HttpMessage CreateDeleteRequest(int? timeout, ShareFileRequestCondition /// removes the file from the storage account. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> DeleteAsync(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> DeleteAsync(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateDeleteRequest(timeout, leaseAccessConditions); + using var message = CreateDeleteRequest(timeout, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileDeleteHeaders(message.Response); switch (message.Response.Status) @@ -404,11 +404,11 @@ public async Task> DeleteAsync(int? timeo /// removes the file from the storage account. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders Delete(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders Delete(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateDeleteRequest(timeout, leaseAccessConditions); + using var message = CreateDeleteRequest(timeout, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileDeleteHeaders(message.Response); switch (message.Response.Status) @@ -420,7 +420,7 @@ public ResponseWithHeaders Delete(int? timeout = null, ShareF } } - internal HttpMessage CreateSetHttpHeadersRequest(string fileAttributes, int? timeout, long? fileContentLength, string filePermission, string filePermissionKey, string fileCreationTime, string fileLastWriteTime, string fileChangeTime, FileHttpHeaders fileHttpHeaders, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateSetHttpHeadersRequest(string fileAttributes, int? timeout, long? fileContentLength, string filePermission, string filePermissionKey, string fileCreationTime, string fileLastWriteTime, string fileChangeTime, FileHttpHeaders fileHttpHeaders, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -483,9 +483,9 @@ internal HttpMessage CreateSetHttpHeadersRequest(string fileAttributes, int? tim { request.Headers.Add("x-ms-file-change-time", fileChangeTime); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_allowTrailingDot != null) { @@ -509,17 +509,17 @@ internal HttpMessage CreateSetHttpHeadersRequest(string fileAttributes, int? tim /// Last write time for the file/directory. Default value: Now. /// Change time for the file/directory. Default value: Now. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> SetHttpHeadersAsync(string fileAttributes, int? timeout = null, long? fileContentLength = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> SetHttpHeadersAsync(string fileAttributes, int? timeout = null, long? fileContentLength = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (fileAttributes == null) { throw new ArgumentNullException(nameof(fileAttributes)); } - using var message = CreateSetHttpHeadersRequest(fileAttributes, timeout, fileContentLength, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, leaseAccessConditions); + using var message = CreateSetHttpHeadersRequest(fileAttributes, timeout, fileContentLength, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileSetHttpHeadersHeaders(message.Response); switch (message.Response.Status) @@ -541,17 +541,17 @@ public async Task> SetHttpHeaders /// Last write time for the file/directory. Default value: Now. /// Change time for the file/directory. Default value: Now. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public ResponseWithHeaders SetHttpHeaders(string fileAttributes, int? timeout = null, long? fileContentLength = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders SetHttpHeaders(string fileAttributes, int? timeout = null, long? fileContentLength = null, string filePermission = null, string filePermissionKey = null, string fileCreationTime = null, string fileLastWriteTime = null, string fileChangeTime = null, FileHttpHeaders fileHttpHeaders = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (fileAttributes == null) { throw new ArgumentNullException(nameof(fileAttributes)); } - using var message = CreateSetHttpHeadersRequest(fileAttributes, timeout, fileContentLength, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, leaseAccessConditions); + using var message = CreateSetHttpHeadersRequest(fileAttributes, timeout, fileContentLength, filePermission, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, fileHttpHeaders, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileSetHttpHeadersHeaders(message.Response); switch (message.Response.Status) @@ -563,7 +563,7 @@ public ResponseWithHeaders SetHttpHeaders(string file } } - internal HttpMessage CreateSetMetadataRequest(int? timeout, IDictionary metadata, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateSetMetadataRequest(int? timeout, IDictionary metadata, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -581,9 +581,9 @@ internal HttpMessage CreateSetMetadataRequest(int? timeout, IDictionary Updates user-defined metadata for the specified file. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// A name-value pair to associate with a file storage object. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> SetMetadataAsync(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> SetMetadataAsync(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetMetadataRequest(timeout, metadata, leaseAccessConditions); + using var message = CreateSetMetadataRequest(timeout, metadata, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileSetMetadataHeaders(message.Response); switch (message.Response.Status) @@ -619,11 +619,11 @@ public async Task> SetMetadataAsync( /// Updates user-defined metadata for the specified file. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// A name-value pair to associate with a file storage object. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders SetMetadata(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders SetMetadata(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetMetadataRequest(timeout, metadata, leaseAccessConditions); + using var message = CreateSetMetadataRequest(timeout, metadata, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileSetMetadataHeaders(message.Response); switch (message.Response.Status) @@ -866,7 +866,7 @@ public ResponseWithHeaders ChangeLease(string leaseId, i } } - internal HttpMessage CreateBreakLeaseRequest(int? timeout, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateBreakLeaseRequest(int? timeout, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -880,9 +880,9 @@ internal HttpMessage CreateBreakLeaseRequest(int? timeout, ShareFileRequestCondi } request.Uri = uri; request.Headers.Add("x-ms-lease-action", "break"); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } request.Headers.Add("x-ms-version", _version); if (_allowTrailingDot != null) @@ -899,11 +899,11 @@ internal HttpMessage CreateBreakLeaseRequest(int? timeout, ShareFileRequestCondi /// [Update] The Lease File operation establishes and manages a lock on a file for write and delete operations. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> BreakLeaseAsync(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> BreakLeaseAsync(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateBreakLeaseRequest(timeout, leaseAccessConditions); + using var message = CreateBreakLeaseRequest(timeout, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileBreakLeaseHeaders(message.Response); switch (message.Response.Status) @@ -917,11 +917,11 @@ public async Task> BreakLeaseAsync(in /// [Update] The Lease File operation establishes and manages a lock on a file for write and delete operations. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders BreakLease(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders BreakLease(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateBreakLeaseRequest(timeout, leaseAccessConditions); + using var message = CreateBreakLeaseRequest(timeout, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileBreakLeaseHeaders(message.Response); switch (message.Response.Status) @@ -933,7 +933,7 @@ public ResponseWithHeaders BreakLease(int? timeout = null } } - internal HttpMessage CreateUploadRangeRequest(string range, ShareFileRangeWriteType fileRangeWrite, long contentLength, int? timeout, byte[] contentMD5, FileLastWrittenMode? fileLastWrittenMode, Stream optionalbody, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateUploadRangeRequest(string range, ShareFileRangeWriteType fileRangeWrite, long contentLength, int? timeout, byte[] contentMD5, FileLastWrittenMode? fileLastWrittenMode, Stream optionalbody, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -949,9 +949,9 @@ internal HttpMessage CreateUploadRangeRequest(string range, ShareFileRangeWriteT request.Headers.Add("x-ms-range", range); request.Headers.Add("x-ms-write", fileRangeWrite.ToSerialString()); request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (fileLastWrittenMode != null) { @@ -987,17 +987,17 @@ internal HttpMessage CreateUploadRangeRequest(string range, ShareFileRangeWriteT /// An MD5 hash of the content. This hash is used to verify the integrity of the data during transport. When the Content-MD5 header is specified, the File service compares the hash of the content that has arrived with the header value that was sent. If the two hashes do not match, the operation will fail with error code 400 (Bad Request). /// If the file last write time should be preserved or overwritten. /// Initial data. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> UploadRangeAsync(string range, ShareFileRangeWriteType fileRangeWrite, long contentLength, int? timeout = null, byte[] contentMD5 = null, FileLastWrittenMode? fileLastWrittenMode = null, Stream optionalbody = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> UploadRangeAsync(string range, ShareFileRangeWriteType fileRangeWrite, long contentLength, int? timeout = null, byte[] contentMD5 = null, FileLastWrittenMode? fileLastWrittenMode = null, Stream optionalbody = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (range == null) { throw new ArgumentNullException(nameof(range)); } - using var message = CreateUploadRangeRequest(range, fileRangeWrite, contentLength, timeout, contentMD5, fileLastWrittenMode, optionalbody, leaseAccessConditions); + using var message = CreateUploadRangeRequest(range, fileRangeWrite, contentLength, timeout, contentMD5, fileLastWrittenMode, optionalbody, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileUploadRangeHeaders(message.Response); switch (message.Response.Status) @@ -1017,17 +1017,17 @@ public async Task> UploadRangeAsync( /// An MD5 hash of the content. This hash is used to verify the integrity of the data during transport. When the Content-MD5 header is specified, the File service compares the hash of the content that has arrived with the header value that was sent. If the two hashes do not match, the operation will fail with error code 400 (Bad Request). /// If the file last write time should be preserved or overwritten. /// Initial data. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public ResponseWithHeaders UploadRange(string range, ShareFileRangeWriteType fileRangeWrite, long contentLength, int? timeout = null, byte[] contentMD5 = null, FileLastWrittenMode? fileLastWrittenMode = null, Stream optionalbody = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders UploadRange(string range, ShareFileRangeWriteType fileRangeWrite, long contentLength, int? timeout = null, byte[] contentMD5 = null, FileLastWrittenMode? fileLastWrittenMode = null, Stream optionalbody = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (range == null) { throw new ArgumentNullException(nameof(range)); } - using var message = CreateUploadRangeRequest(range, fileRangeWrite, contentLength, timeout, contentMD5, fileLastWrittenMode, optionalbody, leaseAccessConditions); + using var message = CreateUploadRangeRequest(range, fileRangeWrite, contentLength, timeout, contentMD5, fileLastWrittenMode, optionalbody, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileUploadRangeHeaders(message.Response); switch (message.Response.Status) @@ -1039,7 +1039,7 @@ public ResponseWithHeaders UploadRange(string range, Sha } } - internal HttpMessage CreateUploadRangeFromURLRequest(string range, string copySource, long contentLength, int? timeout, string sourceRange, byte[] sourceContentCrc64, string copySourceAuthorization, FileLastWrittenMode? fileLastWrittenMode, SourceModifiedAccessConditions sourceModifiedAccessConditions, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateUploadRangeFromURLRequest(string range, string copySource, long contentLength, int? timeout, string sourceRange, byte[] sourceContentCrc64, string copySourceAuthorization, FileLastWrittenMode? fileLastWrittenMode, SourceModifiedAccessConditions sourceModifiedAccessConditions, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1072,9 +1072,9 @@ internal HttpMessage CreateUploadRangeFromURLRequest(string range, string copySo request.Headers.Add("x-ms-source-if-none-match-crc64", sourceModifiedAccessConditions.SourceIfNoneMatchCrc64, "D"); } request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (copySourceAuthorization != null) { @@ -1110,10 +1110,10 @@ internal HttpMessage CreateUploadRangeFromURLRequest(string range, string copySo /// Only Bearer type is supported. Credentials should be a valid OAuth access token to copy source. /// If the file last write time should be preserved or overwritten. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public async Task> UploadRangeFromURLAsync(string range, string copySource, long contentLength, int? timeout = null, string sourceRange = null, byte[] sourceContentCrc64 = null, string copySourceAuthorization = null, FileLastWrittenMode? fileLastWrittenMode = null, SourceModifiedAccessConditions sourceModifiedAccessConditions = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> UploadRangeFromURLAsync(string range, string copySource, long contentLength, int? timeout = null, string sourceRange = null, byte[] sourceContentCrc64 = null, string copySourceAuthorization = null, FileLastWrittenMode? fileLastWrittenMode = null, SourceModifiedAccessConditions sourceModifiedAccessConditions = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (range == null) { @@ -1124,7 +1124,7 @@ public async Task> UploadRang throw new ArgumentNullException(nameof(copySource)); } - using var message = CreateUploadRangeFromURLRequest(range, copySource, contentLength, timeout, sourceRange, sourceContentCrc64, copySourceAuthorization, fileLastWrittenMode, sourceModifiedAccessConditions, leaseAccessConditions); + using var message = CreateUploadRangeFromURLRequest(range, copySource, contentLength, timeout, sourceRange, sourceContentCrc64, copySourceAuthorization, fileLastWrittenMode, sourceModifiedAccessConditions, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileUploadRangeFromURLHeaders(message.Response); switch (message.Response.Status) @@ -1146,10 +1146,10 @@ public async Task> UploadRang /// Only Bearer type is supported. Credentials should be a valid OAuth access token to copy source. /// If the file last write time should be preserved or overwritten. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// or is null. - public ResponseWithHeaders UploadRangeFromURL(string range, string copySource, long contentLength, int? timeout = null, string sourceRange = null, byte[] sourceContentCrc64 = null, string copySourceAuthorization = null, FileLastWrittenMode? fileLastWrittenMode = null, SourceModifiedAccessConditions sourceModifiedAccessConditions = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders UploadRangeFromURL(string range, string copySource, long contentLength, int? timeout = null, string sourceRange = null, byte[] sourceContentCrc64 = null, string copySourceAuthorization = null, FileLastWrittenMode? fileLastWrittenMode = null, SourceModifiedAccessConditions sourceModifiedAccessConditions = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (range == null) { @@ -1160,7 +1160,7 @@ public ResponseWithHeaders UploadRangeFromURL(str throw new ArgumentNullException(nameof(copySource)); } - using var message = CreateUploadRangeFromURLRequest(range, copySource, contentLength, timeout, sourceRange, sourceContentCrc64, copySourceAuthorization, fileLastWrittenMode, sourceModifiedAccessConditions, leaseAccessConditions); + using var message = CreateUploadRangeFromURLRequest(range, copySource, contentLength, timeout, sourceRange, sourceContentCrc64, copySourceAuthorization, fileLastWrittenMode, sourceModifiedAccessConditions, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileUploadRangeFromURLHeaders(message.Response); switch (message.Response.Status) @@ -1172,7 +1172,7 @@ public ResponseWithHeaders UploadRangeFromURL(str } } - internal HttpMessage CreateGetRangeListRequest(string sharesnapshot, string prevsharesnapshot, int? timeout, string range, bool? supportRename, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateGetRangeListRequest(string sharesnapshot, string prevsharesnapshot, int? timeout, string range, bool? supportRename, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1198,9 +1198,9 @@ internal HttpMessage CreateGetRangeListRequest(string sharesnapshot, string prev { request.Headers.Add("x-ms-range", range); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_allowTrailingDot != null) { @@ -1224,11 +1224,11 @@ internal HttpMessage CreateGetRangeListRequest(string sharesnapshot, string prev /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// Specifies the range of bytes over which to list ranges, inclusively. /// This header is allowed only when PrevShareSnapshot query parameter is set. Determines whether the changed ranges for a file that has been renamed or moved between the target snapshot (or the live file) and the previous snapshot should be listed. If the value is true, the valid changed ranges for the file will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response. The default value is false. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> GetRangeListAsync(string sharesnapshot = null, string prevsharesnapshot = null, int? timeout = null, string range = null, bool? supportRename = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> GetRangeListAsync(string sharesnapshot = null, string prevsharesnapshot = null, int? timeout = null, string range = null, bool? supportRename = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetRangeListRequest(sharesnapshot, prevsharesnapshot, timeout, range, supportRename, leaseAccessConditions); + using var message = CreateGetRangeListRequest(sharesnapshot, prevsharesnapshot, timeout, range, supportRename, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileGetRangeListHeaders(message.Response); switch (message.Response.Status) @@ -1254,11 +1254,11 @@ public async Task The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// Specifies the range of bytes over which to list ranges, inclusively. /// This header is allowed only when PrevShareSnapshot query parameter is set. Determines whether the changed ranges for a file that has been renamed or moved between the target snapshot (or the live file) and the previous snapshot should be listed. If the value is true, the valid changed ranges for the file will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response. The default value is false. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders GetRangeList(string sharesnapshot = null, string prevsharesnapshot = null, int? timeout = null, string range = null, bool? supportRename = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders GetRangeList(string sharesnapshot = null, string prevsharesnapshot = null, int? timeout = null, string range = null, bool? supportRename = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetRangeListRequest(sharesnapshot, prevsharesnapshot, timeout, range, supportRename, leaseAccessConditions); + using var message = CreateGetRangeListRequest(sharesnapshot, prevsharesnapshot, timeout, range, supportRename, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileGetRangeListHeaders(message.Response); switch (message.Response.Status) @@ -1278,7 +1278,7 @@ public ResponseWithHeaders GetRange } } - internal HttpMessage CreateStartCopyRequest(string copySource, int? timeout, IDictionary metadata, string filePermission, string filePermissionKey, CopyFileSmbInfo copyFileSmbInfo, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateStartCopyRequest(string copySource, int? timeout, IDictionary metadata, string filePermission, string filePermissionKey, CopyFileSmbInfo copyFileSmbInfo, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1332,9 +1332,9 @@ internal HttpMessage CreateStartCopyRequest(string copySource, int? timeout, IDi { request.Headers.Add("x-ms-file-copy-set-archive", copyFileSmbInfo.SetArchiveAttribute.Value); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_allowTrailingDot != null) { @@ -1359,17 +1359,17 @@ internal HttpMessage CreateStartCopyRequest(string copySource, int? timeout, IDi /// If specified the permission (security descriptor) shall be set for the directory/file. This header can be used if Permission size is <= 8KB, else x-ms-file-permission-key header shall be used. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be specified. /// Key of the permission to be set for the directory/file. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be specified. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> StartCopyAsync(string copySource, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, CopyFileSmbInfo copyFileSmbInfo = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> StartCopyAsync(string copySource, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, CopyFileSmbInfo copyFileSmbInfo = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (copySource == null) { throw new ArgumentNullException(nameof(copySource)); } - using var message = CreateStartCopyRequest(copySource, timeout, metadata, filePermission, filePermissionKey, copyFileSmbInfo, leaseAccessConditions); + using var message = CreateStartCopyRequest(copySource, timeout, metadata, filePermission, filePermissionKey, copyFileSmbInfo, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileStartCopyHeaders(message.Response); switch (message.Response.Status) @@ -1388,17 +1388,17 @@ public async Task> StartCopyAsync(stri /// If specified the permission (security descriptor) shall be set for the directory/file. This header can be used if Permission size is <= 8KB, else x-ms-file-permission-key header shall be used. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be specified. /// Key of the permission to be set for the directory/file. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be specified. /// Parameter group. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public ResponseWithHeaders StartCopy(string copySource, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, CopyFileSmbInfo copyFileSmbInfo = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders StartCopy(string copySource, int? timeout = null, IDictionary metadata = null, string filePermission = null, string filePermissionKey = null, CopyFileSmbInfo copyFileSmbInfo = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (copySource == null) { throw new ArgumentNullException(nameof(copySource)); } - using var message = CreateStartCopyRequest(copySource, timeout, metadata, filePermission, filePermissionKey, copyFileSmbInfo, leaseAccessConditions); + using var message = CreateStartCopyRequest(copySource, timeout, metadata, filePermission, filePermissionKey, copyFileSmbInfo, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileStartCopyHeaders(message.Response); switch (message.Response.Status) @@ -1410,7 +1410,7 @@ public ResponseWithHeaders StartCopy(string copySource, in } } - internal HttpMessage CreateAbortCopyRequest(string copyId, int? timeout, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateAbortCopyRequest(string copyId, int? timeout, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1426,9 +1426,9 @@ internal HttpMessage CreateAbortCopyRequest(string copyId, int? timeout, ShareFi request.Uri = uri; request.Headers.Add("x-ms-copy-action", "abort"); request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (_allowTrailingDot != null) { @@ -1445,17 +1445,17 @@ internal HttpMessage CreateAbortCopyRequest(string copyId, int? timeout, ShareFi /// Aborts a pending Copy File operation, and leaves a destination file with zero length and full metadata. /// The copy identifier provided in the x-ms-copy-id header of the original Copy File operation. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public async Task> AbortCopyAsync(string copyId, int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> AbortCopyAsync(string copyId, int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (copyId == null) { throw new ArgumentNullException(nameof(copyId)); } - using var message = CreateAbortCopyRequest(copyId, timeout, leaseAccessConditions); + using var message = CreateAbortCopyRequest(copyId, timeout, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new FileAbortCopyHeaders(message.Response); switch (message.Response.Status) @@ -1470,17 +1470,17 @@ public async Task> AbortCopyAsync(stri /// Aborts a pending Copy File operation, and leaves a destination file with zero length and full metadata. /// The copy identifier provided in the x-ms-copy-id header of the original Copy File operation. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. /// is null. - public ResponseWithHeaders AbortCopy(string copyId, int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AbortCopy(string copyId, int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { if (copyId == null) { throw new ArgumentNullException(nameof(copyId)); } - using var message = CreateAbortCopyRequest(copyId, timeout, leaseAccessConditions); + using var message = CreateAbortCopyRequest(copyId, timeout, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new FileAbortCopyHeaders(message.Response); switch (message.Response.Status) diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs index 7f585a313d408..afe51d0302174 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs @@ -40,7 +40,7 @@ public ServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipel _version = version ?? throw new ArgumentNullException(nameof(version)); } - internal HttpMessage CreateSetPropertiesRequest(ShareServiceProperties storageServiceProperties, int? timeout) + internal HttpMessage CreateSetPropertiesRequest(ShareServiceProperties shareServiceProperties, int? timeout) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -59,24 +59,24 @@ internal HttpMessage CreateSetPropertiesRequest(ShareServiceProperties storageSe request.Headers.Add("Accept", "application/xml"); request.Headers.Add("Content-Type", "application/xml"); var content = new XmlWriterContent(); - content.XmlWriter.WriteObjectValue(storageServiceProperties, "StorageServiceProperties"); + content.XmlWriter.WriteObjectValue(shareServiceProperties, "StorageServiceProperties"); request.Content = content; return message; } /// Sets properties for a storage account's File service endpoint, including properties for Storage Analytics metrics and CORS (Cross-Origin Resource Sharing) rules. - /// The StorageService properties. + /// The StorageService properties. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// The cancellation token to use. - /// is null. - public async Task> SetPropertiesAsync(ShareServiceProperties storageServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> SetPropertiesAsync(ShareServiceProperties shareServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) { - if (storageServiceProperties == null) + if (shareServiceProperties == null) { - throw new ArgumentNullException(nameof(storageServiceProperties)); + throw new ArgumentNullException(nameof(shareServiceProperties)); } - using var message = CreateSetPropertiesRequest(storageServiceProperties, timeout); + using var message = CreateSetPropertiesRequest(shareServiceProperties, timeout); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ServiceSetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -89,18 +89,18 @@ public async Task> SetPropertie } /// Sets properties for a storage account's File service endpoint, including properties for Storage Analytics metrics and CORS (Cross-Origin Resource Sharing) rules. - /// The StorageService properties. + /// The StorageService properties. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// The cancellation token to use. - /// is null. - public ResponseWithHeaders SetProperties(ShareServiceProperties storageServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) + /// is null. + public ResponseWithHeaders SetProperties(ShareServiceProperties shareServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) { - if (storageServiceProperties == null) + if (shareServiceProperties == null) { - throw new ArgumentNullException(nameof(storageServiceProperties)); + throw new ArgumentNullException(nameof(shareServiceProperties)); } - using var message = CreateSetPropertiesRequest(storageServiceProperties, timeout); + using var message = CreateSetPropertiesRequest(shareServiceProperties, timeout); _pipeline.Send(message, cancellationToken); var headers = new ServiceSetPropertiesHeaders(message.Response); switch (message.Response.Status) diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs index 1845a43a18239..ee9a57104058f 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs @@ -132,7 +132,7 @@ public ResponseWithHeaders Create(int? timeout = null, IDict } } - internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeout, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeout, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -150,9 +150,9 @@ internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeo } request.Uri = uri; request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } request.Headers.Add("Accept", "application/xml"); return message; @@ -161,11 +161,11 @@ internal HttpMessage CreateGetPropertiesRequest(string sharesnapshot, int? timeo /// Returns all user-defined metadata and system properties for the specified share or share snapshot. The data returned does not include the share's list of files. /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> GetPropertiesAsync(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> GetPropertiesAsync(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, leaseAccessConditions); + using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareGetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -180,11 +180,11 @@ public async Task> GetPropertiesA /// Returns all user-defined metadata and system properties for the specified share or share snapshot. The data returned does not include the share's list of files. /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders GetProperties(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders GetProperties(string sharesnapshot = null, int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, leaseAccessConditions); + using var message = CreateGetPropertiesRequest(sharesnapshot, timeout, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareGetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -196,7 +196,7 @@ public ResponseWithHeaders GetProperties(string share } } - internal HttpMessage CreateDeleteRequest(string sharesnapshot, int? timeout, DeleteSnapshotsOptionType? deleteSnapshots, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateDeleteRequest(string sharesnapshot, int? timeout, DeleteSnapshotsOptionType? deleteSnapshots, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -218,9 +218,9 @@ internal HttpMessage CreateDeleteRequest(string sharesnapshot, int? timeout, Del { request.Headers.Add("x-ms-delete-snapshots", deleteSnapshots.Value.ToSerialString()); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } request.Headers.Add("Accept", "application/xml"); return message; @@ -230,11 +230,11 @@ internal HttpMessage CreateDeleteRequest(string sharesnapshot, int? timeout, Del /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// Specifies the option include to delete the base share and all of its snapshots. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> DeleteAsync(string sharesnapshot = null, int? timeout = null, DeleteSnapshotsOptionType? deleteSnapshots = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> DeleteAsync(string sharesnapshot = null, int? timeout = null, DeleteSnapshotsOptionType? deleteSnapshots = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateDeleteRequest(sharesnapshot, timeout, deleteSnapshots, leaseAccessConditions); + using var message = CreateDeleteRequest(sharesnapshot, timeout, deleteSnapshots, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareDeleteHeaders(message.Response); switch (message.Response.Status) @@ -250,11 +250,11 @@ public async Task> DeleteAsync(string sh /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// Specifies the option include to delete the base share and all of its snapshots. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders Delete(string sharesnapshot = null, int? timeout = null, DeleteSnapshotsOptionType? deleteSnapshots = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders Delete(string sharesnapshot = null, int? timeout = null, DeleteSnapshotsOptionType? deleteSnapshots = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateDeleteRequest(sharesnapshot, timeout, deleteSnapshots, leaseAccessConditions); + using var message = CreateDeleteRequest(sharesnapshot, timeout, deleteSnapshots, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareDeleteHeaders(message.Response); switch (message.Response.Status) @@ -569,7 +569,7 @@ public ResponseWithHeaders RenewLease(string leaseId, in } } - internal HttpMessage CreateBreakLeaseRequest(int? timeout, int? breakPeriod, string sharesnapshot, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateBreakLeaseRequest(int? timeout, int? breakPeriod, string sharesnapshot, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -592,9 +592,9 @@ internal HttpMessage CreateBreakLeaseRequest(int? timeout, int? breakPeriod, str { request.Headers.Add("x-ms-lease-break-period", breakPeriod.Value); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } request.Headers.Add("x-ms-version", _version); request.Headers.Add("Accept", "application/xml"); @@ -605,11 +605,11 @@ internal HttpMessage CreateBreakLeaseRequest(int? timeout, int? breakPeriod, str /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// For a break operation, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. This break period is only used if it is shorter than the time remaining on the lease. If longer, the time remaining on the lease is used. A new lease will not be available before the break period has expired, but the lease may be held for longer than the break period. If this header does not appear with a break operation, a fixed-duration lease breaks after the remaining lease period elapses, and an infinite lease breaks immediately. /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> BreakLeaseAsync(int? timeout = null, int? breakPeriod = null, string sharesnapshot = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> BreakLeaseAsync(int? timeout = null, int? breakPeriod = null, string sharesnapshot = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateBreakLeaseRequest(timeout, breakPeriod, sharesnapshot, leaseAccessConditions); + using var message = CreateBreakLeaseRequest(timeout, breakPeriod, sharesnapshot, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareBreakLeaseHeaders(message.Response); switch (message.Response.Status) @@ -625,11 +625,11 @@ public async Task> BreakLeaseAsync(i /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// For a break operation, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. This break period is only used if it is shorter than the time remaining on the lease. If longer, the time remaining on the lease is used. A new lease will not be available before the break period has expired, but the lease may be held for longer than the break period. If this header does not appear with a break operation, a fixed-duration lease breaks after the remaining lease period elapses, and an infinite lease breaks immediately. /// The snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders BreakLease(int? timeout = null, int? breakPeriod = null, string sharesnapshot = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders BreakLease(int? timeout = null, int? breakPeriod = null, string sharesnapshot = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateBreakLeaseRequest(timeout, breakPeriod, sharesnapshot, leaseAccessConditions); + using var message = CreateBreakLeaseRequest(timeout, breakPeriod, sharesnapshot, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareBreakLeaseHeaders(message.Response); switch (message.Response.Status) @@ -857,7 +857,7 @@ public ResponseWithHeaders GetPermis } } - internal HttpMessage CreateSetPropertiesRequest(int? timeout, int? quota, ShareAccessTier? accessTier, ShareRootSquash? rootSquash, bool? enableSnapshotVirtualDirectoryAccess, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateSetPropertiesRequest(int? timeout, int? quota, ShareAccessTier? accessTier, ShareRootSquash? rootSquash, bool? enableSnapshotVirtualDirectoryAccess, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -880,9 +880,9 @@ internal HttpMessage CreateSetPropertiesRequest(int? timeout, int? quota, ShareA { request.Headers.Add("x-ms-access-tier", accessTier.Value.ToString()); } - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } if (rootSquash != null) { @@ -902,11 +902,11 @@ internal HttpMessage CreateSetPropertiesRequest(int? timeout, int? quota, ShareA /// Specifies the access tier of the share. /// Root squash to set on the share. Only valid for NFS shares. /// The ? to use. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> SetPropertiesAsync(int? timeout = null, int? quota = null, ShareAccessTier? accessTier = null, ShareRootSquash? rootSquash = null, bool? enableSnapshotVirtualDirectoryAccess = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> SetPropertiesAsync(int? timeout = null, int? quota = null, ShareAccessTier? accessTier = null, ShareRootSquash? rootSquash = null, bool? enableSnapshotVirtualDirectoryAccess = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetPropertiesRequest(timeout, quota, accessTier, rootSquash, enableSnapshotVirtualDirectoryAccess, leaseAccessConditions); + using var message = CreateSetPropertiesRequest(timeout, quota, accessTier, rootSquash, enableSnapshotVirtualDirectoryAccess, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareSetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -924,11 +924,11 @@ public async Task> SetPropertiesA /// Specifies the access tier of the share. /// Root squash to set on the share. Only valid for NFS shares. /// The ? to use. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders SetProperties(int? timeout = null, int? quota = null, ShareAccessTier? accessTier = null, ShareRootSquash? rootSquash = null, bool? enableSnapshotVirtualDirectoryAccess = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders SetProperties(int? timeout = null, int? quota = null, ShareAccessTier? accessTier = null, ShareRootSquash? rootSquash = null, bool? enableSnapshotVirtualDirectoryAccess = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetPropertiesRequest(timeout, quota, accessTier, rootSquash, enableSnapshotVirtualDirectoryAccess, leaseAccessConditions); + using var message = CreateSetPropertiesRequest(timeout, quota, accessTier, rootSquash, enableSnapshotVirtualDirectoryAccess, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareSetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -940,7 +940,7 @@ public ResponseWithHeaders SetProperties(int? timeout } } - internal HttpMessage CreateSetMetadataRequest(int? timeout, IDictionary metadata, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateSetMetadataRequest(int? timeout, IDictionary metadata, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -959,9 +959,9 @@ internal HttpMessage CreateSetMetadataRequest(int? timeout, IDictionary Sets one or more user-defined name-value pairs for the specified share. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// A name-value pair to associate with a file storage object. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> SetMetadataAsync(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> SetMetadataAsync(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetMetadataRequest(timeout, metadata, leaseAccessConditions); + using var message = CreateSetMetadataRequest(timeout, metadata, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareSetMetadataHeaders(message.Response); switch (message.Response.Status) @@ -989,11 +989,11 @@ public async Task> SetMetadataAsync /// Sets one or more user-defined name-value pairs for the specified share. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// A name-value pair to associate with a file storage object. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders SetMetadata(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders SetMetadata(int? timeout = null, IDictionary metadata = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetMetadataRequest(timeout, metadata, leaseAccessConditions); + using var message = CreateSetMetadataRequest(timeout, metadata, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareSetMetadataHeaders(message.Response); switch (message.Response.Status) @@ -1005,7 +1005,7 @@ public ResponseWithHeaders SetMetadata(int? timeout = n } } - internal HttpMessage CreateGetAccessPolicyRequest(int? timeout, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateGetAccessPolicyRequest(int? timeout, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1020,9 +1020,9 @@ internal HttpMessage CreateGetAccessPolicyRequest(int? timeout, ShareFileRequest } request.Uri = uri; request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } request.Headers.Add("Accept", "application/xml"); return message; @@ -1030,11 +1030,11 @@ internal HttpMessage CreateGetAccessPolicyRequest(int? timeout, ShareFileRequest /// Returns information about stored access policies specified on the share. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task, ShareGetAccessPolicyHeaders>> GetAccessPolicyAsync(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task, ShareGetAccessPolicyHeaders>> GetAccessPolicyAsync(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetAccessPolicyRequest(timeout, leaseAccessConditions); + using var message = CreateGetAccessPolicyRequest(timeout, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareGetAccessPolicyHeaders(message.Response); switch (message.Response.Status) @@ -1061,11 +1061,11 @@ public async Task, Shar /// Returns information about stored access policies specified on the share. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders, ShareGetAccessPolicyHeaders> GetAccessPolicy(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders, ShareGetAccessPolicyHeaders> GetAccessPolicy(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetAccessPolicyRequest(timeout, leaseAccessConditions); + using var message = CreateGetAccessPolicyRequest(timeout, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareGetAccessPolicyHeaders(message.Response); switch (message.Response.Status) @@ -1090,7 +1090,7 @@ public ResponseWithHeaders, ShareGetAccessP } } - internal HttpMessage CreateSetAccessPolicyRequest(int? timeout, IEnumerable shareAcl, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateSetAccessPolicyRequest(int? timeout, IEnumerable shareAcl, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1105,9 +1105,9 @@ internal HttpMessage CreateSetAccessPolicyRequest(int? timeout, IEnumerable Sets a stored access policy for use with shared access signatures. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// The ACL for the share. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> SetAccessPolicyAsync(int? timeout = null, IEnumerable shareAcl = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> SetAccessPolicyAsync(int? timeout = null, IEnumerable shareAcl = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetAccessPolicyRequest(timeout, shareAcl, leaseAccessConditions); + using var message = CreateSetAccessPolicyRequest(timeout, shareAcl, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareSetAccessPolicyHeaders(message.Response); switch (message.Response.Status) @@ -1147,11 +1147,11 @@ public async Task> SetAccessPol /// Sets a stored access policy for use with shared access signatures. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. /// The ACL for the share. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders SetAccessPolicy(int? timeout = null, IEnumerable shareAcl = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders SetAccessPolicy(int? timeout = null, IEnumerable shareAcl = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateSetAccessPolicyRequest(timeout, shareAcl, leaseAccessConditions); + using var message = CreateSetAccessPolicyRequest(timeout, shareAcl, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareSetAccessPolicyHeaders(message.Response); switch (message.Response.Status) @@ -1163,7 +1163,7 @@ public ResponseWithHeaders SetAccessPolicy(int? tim } } - internal HttpMessage CreateGetStatisticsRequest(int? timeout, ShareFileRequestConditions leaseAccessConditions) + internal HttpMessage CreateGetStatisticsRequest(int? timeout, ShareFileRequestConditions shareFileRequestConditions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1178,9 +1178,9 @@ internal HttpMessage CreateGetStatisticsRequest(int? timeout, ShareFileRequestCo } request.Uri = uri; request.Headers.Add("x-ms-version", _version); - if (leaseAccessConditions?.LeaseId != null) + if (shareFileRequestConditions?.LeaseId != null) { - request.Headers.Add("x-ms-lease-id", leaseAccessConditions.LeaseId); + request.Headers.Add("x-ms-lease-id", shareFileRequestConditions.LeaseId); } request.Headers.Add("Accept", "application/xml"); return message; @@ -1188,11 +1188,11 @@ internal HttpMessage CreateGetStatisticsRequest(int? timeout, ShareFileRequestCo /// Retrieves statistics related to the share. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> GetStatisticsAsync(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public async Task> GetStatisticsAsync(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetStatisticsRequest(timeout, leaseAccessConditions); + using var message = CreateGetStatisticsRequest(timeout, shareFileRequestConditions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ShareGetStatisticsHeaders(message.Response); switch (message.Response.Status) @@ -1214,11 +1214,11 @@ public async Task Retrieves statistics related to the share. /// The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a>. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders GetStatistics(int? timeout = null, ShareFileRequestConditions leaseAccessConditions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders GetStatistics(int? timeout = null, ShareFileRequestConditions shareFileRequestConditions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetStatisticsRequest(timeout, leaseAccessConditions); + using var message = CreateGetStatisticsRequest(timeout, shareFileRequestConditions); _pipeline.Send(message, cancellationToken); var headers = new ShareGetStatisticsHeaders(message.Response); switch (message.Response.Status) diff --git a/sdk/storage/Azure.Storage.Queues/src/Generated/ServiceRestClient.cs b/sdk/storage/Azure.Storage.Queues/src/Generated/ServiceRestClient.cs index e1e13e3b7f13c..385b2bcedede5 100644 --- a/sdk/storage/Azure.Storage.Queues/src/Generated/ServiceRestClient.cs +++ b/sdk/storage/Azure.Storage.Queues/src/Generated/ServiceRestClient.cs @@ -40,7 +40,7 @@ public ServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipel _version = version ?? throw new ArgumentNullException(nameof(version)); } - internal HttpMessage CreateSetPropertiesRequest(QueueServiceProperties storageServiceProperties, int? timeout) + internal HttpMessage CreateSetPropertiesRequest(QueueServiceProperties queueServiceProperties, int? timeout) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -59,24 +59,24 @@ internal HttpMessage CreateSetPropertiesRequest(QueueServiceProperties storageSe request.Headers.Add("Accept", "application/xml"); request.Headers.Add("Content-Type", "application/xml"); var content = new XmlWriterContent(); - content.XmlWriter.WriteObjectValue(storageServiceProperties, "StorageServiceProperties"); + content.XmlWriter.WriteObjectValue(queueServiceProperties, "StorageServiceProperties"); request.Content = content; return message; } /// Sets properties for a storage account's Queue service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. - /// The StorageService properties. + /// The StorageService properties. /// The The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations>Setting Timeouts for Queue Service Operations.</a>. /// The cancellation token to use. - /// is null. - public async Task> SetPropertiesAsync(QueueServiceProperties storageServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> SetPropertiesAsync(QueueServiceProperties queueServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) { - if (storageServiceProperties == null) + if (queueServiceProperties == null) { - throw new ArgumentNullException(nameof(storageServiceProperties)); + throw new ArgumentNullException(nameof(queueServiceProperties)); } - using var message = CreateSetPropertiesRequest(storageServiceProperties, timeout); + using var message = CreateSetPropertiesRequest(queueServiceProperties, timeout); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new ServiceSetPropertiesHeaders(message.Response); switch (message.Response.Status) @@ -89,18 +89,18 @@ public async Task> SetPropertie } /// Sets properties for a storage account's Queue service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. - /// The StorageService properties. + /// The StorageService properties. /// The The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations>Setting Timeouts for Queue Service Operations.</a>. /// The cancellation token to use. - /// is null. - public ResponseWithHeaders SetProperties(QueueServiceProperties storageServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) + /// is null. + public ResponseWithHeaders SetProperties(QueueServiceProperties queueServiceProperties, int? timeout = null, CancellationToken cancellationToken = default) { - if (storageServiceProperties == null) + if (queueServiceProperties == null) { - throw new ArgumentNullException(nameof(storageServiceProperties)); + throw new ArgumentNullException(nameof(queueServiceProperties)); } - using var message = CreateSetPropertiesRequest(storageServiceProperties, timeout); + using var message = CreateSetPropertiesRequest(queueServiceProperties, timeout); _pipeline.Send(message, cancellationToken); var headers = new ServiceSetPropertiesHeaders(message.Response); switch (message.Response.Status) From 16a9c16f5aaf0d588a9c02bfc0ba85e3be6aa927 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 10:28:12 +0000 Subject: [PATCH 5/8] Update SDK codes ad_co_0 --- .../AzureCommunicationServicesRestClient.cs | 112 ++--- .../src/Generated/CallConnectionRestClient.cs | 168 ++++---- .../src/Generated/CallDialogRestClient.cs | 56 +-- .../src/Generated/CallMediaRestClient.cs | 392 +++++++++--------- .../Generated/CallConnectionsRestClient.cs | 84 ++-- .../src/Generated/ContentRestClient.cs | 56 +-- .../src/Generated/ServerCallingRestClient.cs | 112 ++--- 7 files changed, 490 insertions(+), 490 deletions(-) diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/AzureCommunicationServicesRestClient.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/AzureCommunicationServicesRestClient.cs index 12d9ad6706db7..30b3c24f2578d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/AzureCommunicationServicesRestClient.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/AzureCommunicationServicesRestClient.cs @@ -37,7 +37,7 @@ public AzureCommunicationServicesRestClient(ClientDiagnostics clientDiagnostics, _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateCreateCallRequest(CreateCallRequestInternal createCallRequest) + internal HttpMessage CreateCreateCallRequest(CreateCallRequestInternal createCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -52,23 +52,23 @@ internal HttpMessage CreateCreateCallRequest(CreateCallRequestInternal createCal request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(createCallRequest); + content.JsonWriter.WriteObjectValue(createCallRequestInternal); request.Content = content; return message; } /// Create an outbound call. - /// The create call request. + /// The create call request. /// The cancellation token to use. - /// is null. - public async Task> CreateCallAsync(CreateCallRequestInternal createCallRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> CreateCallAsync(CreateCallRequestInternal createCallRequestInternal, CancellationToken cancellationToken = default) { - if (createCallRequest == null) + if (createCallRequestInternal == null) { - throw new ArgumentNullException(nameof(createCallRequest)); + throw new ArgumentNullException(nameof(createCallRequestInternal)); } - using var message = CreateCreateCallRequest(createCallRequest); + using var message = CreateCreateCallRequest(createCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -85,17 +85,17 @@ public async Task> CreateCallAsync(Cr } /// Create an outbound call. - /// The create call request. + /// The create call request. /// The cancellation token to use. - /// is null. - public Response CreateCall(CreateCallRequestInternal createCallRequest, CancellationToken cancellationToken = default) + /// is null. + public Response CreateCall(CreateCallRequestInternal createCallRequestInternal, CancellationToken cancellationToken = default) { - if (createCallRequest == null) + if (createCallRequestInternal == null) { - throw new ArgumentNullException(nameof(createCallRequest)); + throw new ArgumentNullException(nameof(createCallRequestInternal)); } - using var message = CreateCreateCallRequest(createCallRequest); + using var message = CreateCreateCallRequest(createCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -111,7 +111,7 @@ public Response CreateCall(CreateCallRequestIn } } - internal HttpMessage CreateAnswerCallRequest(AnswerCallRequestInternal answerCallRequest) + internal HttpMessage CreateAnswerCallRequest(AnswerCallRequestInternal answerCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -126,24 +126,24 @@ internal HttpMessage CreateAnswerCallRequest(AnswerCallRequestInternal answerCal request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(answerCallRequest); + content.JsonWriter.WriteObjectValue(answerCallRequestInternal); request.Content = content; return message; } /// Answer a Call. - /// The answer call request. + /// The answer call request. /// The cancellation token to use. - /// is null. + /// is null. /// Answer a call using the IncomingCallContext from Event Grid. - public async Task> AnswerCallAsync(AnswerCallRequestInternal answerCallRequest, CancellationToken cancellationToken = default) + public async Task> AnswerCallAsync(AnswerCallRequestInternal answerCallRequestInternal, CancellationToken cancellationToken = default) { - if (answerCallRequest == null) + if (answerCallRequestInternal == null) { - throw new ArgumentNullException(nameof(answerCallRequest)); + throw new ArgumentNullException(nameof(answerCallRequestInternal)); } - using var message = CreateAnswerCallRequest(answerCallRequest); + using var message = CreateAnswerCallRequest(answerCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -160,18 +160,18 @@ public async Task> AnswerCallAsync(An } /// Answer a Call. - /// The answer call request. + /// The answer call request. /// The cancellation token to use. - /// is null. + /// is null. /// Answer a call using the IncomingCallContext from Event Grid. - public Response AnswerCall(AnswerCallRequestInternal answerCallRequest, CancellationToken cancellationToken = default) + public Response AnswerCall(AnswerCallRequestInternal answerCallRequestInternal, CancellationToken cancellationToken = default) { - if (answerCallRequest == null) + if (answerCallRequestInternal == null) { - throw new ArgumentNullException(nameof(answerCallRequest)); + throw new ArgumentNullException(nameof(answerCallRequestInternal)); } - using var message = CreateAnswerCallRequest(answerCallRequest); + using var message = CreateAnswerCallRequest(answerCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -187,7 +187,7 @@ public Response AnswerCall(AnswerCallRequestIn } } - internal HttpMessage CreateRedirectCallRequest(RedirectCallRequestInternal redirectCallRequest) + internal HttpMessage CreateRedirectCallRequest(RedirectCallRequestInternal redirectCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -202,23 +202,23 @@ internal HttpMessage CreateRedirectCallRequest(RedirectCallRequestInternal redir request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(redirectCallRequest); + content.JsonWriter.WriteObjectValue(redirectCallRequestInternal); request.Content = content; return message; } /// Redirect a call. - /// The redirect call request. + /// The redirect call request. /// The cancellation token to use. - /// is null. - public async Task RedirectCallAsync(RedirectCallRequestInternal redirectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task RedirectCallAsync(RedirectCallRequestInternal redirectCallRequestInternal, CancellationToken cancellationToken = default) { - if (redirectCallRequest == null) + if (redirectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(redirectCallRequest)); + throw new ArgumentNullException(nameof(redirectCallRequestInternal)); } - using var message = CreateRedirectCallRequest(redirectCallRequest); + using var message = CreateRedirectCallRequest(redirectCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -230,17 +230,17 @@ public async Task RedirectCallAsync(RedirectCallRequestInternal redire } /// Redirect a call. - /// The redirect call request. + /// The redirect call request. /// The cancellation token to use. - /// is null. - public Response RedirectCall(RedirectCallRequestInternal redirectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public Response RedirectCall(RedirectCallRequestInternal redirectCallRequestInternal, CancellationToken cancellationToken = default) { - if (redirectCallRequest == null) + if (redirectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(redirectCallRequest)); + throw new ArgumentNullException(nameof(redirectCallRequestInternal)); } - using var message = CreateRedirectCallRequest(redirectCallRequest); + using var message = CreateRedirectCallRequest(redirectCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -251,7 +251,7 @@ public Response RedirectCall(RedirectCallRequestInternal redirectCallRequest, Ca } } - internal HttpMessage CreateRejectCallRequest(RejectCallRequestInternal rejectCallRequest) + internal HttpMessage CreateRejectCallRequest(RejectCallRequestInternal rejectCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -266,23 +266,23 @@ internal HttpMessage CreateRejectCallRequest(RejectCallRequestInternal rejectCal request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(rejectCallRequest); + content.JsonWriter.WriteObjectValue(rejectCallRequestInternal); request.Content = content; return message; } /// Reject the call. - /// The reject call request. + /// The reject call request. /// The cancellation token to use. - /// is null. - public async Task RejectCallAsync(RejectCallRequestInternal rejectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task RejectCallAsync(RejectCallRequestInternal rejectCallRequestInternal, CancellationToken cancellationToken = default) { - if (rejectCallRequest == null) + if (rejectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(rejectCallRequest)); + throw new ArgumentNullException(nameof(rejectCallRequestInternal)); } - using var message = CreateRejectCallRequest(rejectCallRequest); + using var message = CreateRejectCallRequest(rejectCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -294,17 +294,17 @@ public async Task RejectCallAsync(RejectCallRequestInternal rejectCall } /// Reject the call. - /// The reject call request. + /// The reject call request. /// The cancellation token to use. - /// is null. - public Response RejectCall(RejectCallRequestInternal rejectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public Response RejectCall(RejectCallRequestInternal rejectCallRequestInternal, CancellationToken cancellationToken = default) { - if (rejectCallRequest == null) + if (rejectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(rejectCallRequest)); + throw new ArgumentNullException(nameof(rejectCallRequestInternal)); } - using var message = CreateRejectCallRequest(rejectCallRequest); + using var message = CreateRejectCallRequest(rejectCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallConnectionRestClient.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallConnectionRestClient.cs index 4cb37cb1dcb23..831f28de3d56c 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallConnectionRestClient.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallConnectionRestClient.cs @@ -227,7 +227,7 @@ public Response TerminateCall(string callConnectionId, CancellationToken cancell } } - internal HttpMessage CreateTransferToParticipantRequest(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest) + internal HttpMessage CreateTransferToParticipantRequest(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -244,28 +244,28 @@ internal HttpMessage CreateTransferToParticipantRequest(string callConnectionId, request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(transferToParticipantRequest); + content.JsonWriter.WriteObjectValue(transferToParticipantRequestInternal); request.Content = content; return message; } /// Transfer the call to a participant. /// The call connection id. - /// The transfer to participant request. + /// The transfer to participant request. /// The cancellation token to use. - /// or is null. - public async Task> TransferToParticipantAsync(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> TransferToParticipantAsync(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (transferToParticipantRequest == null) + if (transferToParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(transferToParticipantRequest)); + throw new ArgumentNullException(nameof(transferToParticipantRequestInternal)); } - using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequest); + using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -283,21 +283,21 @@ public async Task> TransferToParticipa /// Transfer the call to a participant. /// The call connection id. - /// The transfer to participant request. + /// The transfer to participant request. /// The cancellation token to use. - /// or is null. - public Response TransferToParticipant(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response TransferToParticipant(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (transferToParticipantRequest == null) + if (transferToParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(transferToParticipantRequest)); + throw new ArgumentNullException(nameof(transferToParticipantRequestInternal)); } - using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequest); + using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -383,7 +383,7 @@ public Response GetParticipants(string callConn } } - internal HttpMessage CreateAddParticipantRequest(string callConnectionId, AddParticipantRequestInternal addParticipantRequest) + internal HttpMessage CreateAddParticipantRequest(string callConnectionId, AddParticipantRequestInternal addParticipantRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -400,28 +400,28 @@ internal HttpMessage CreateAddParticipantRequest(string callConnectionId, AddPar request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(addParticipantRequest); + content.JsonWriter.WriteObjectValue(addParticipantRequestInternal); request.Content = content; return message; } /// Add a participant to the call. /// The call connection Id. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. - public async Task> AddParticipantAsync(string callConnectionId, AddParticipantRequestInternal addParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> AddParticipantAsync(string callConnectionId, AddParticipantRequestInternal addParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (addParticipantRequest == null) + if (addParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(addParticipantRequest)); + throw new ArgumentNullException(nameof(addParticipantRequestInternal)); } - using var message = CreateAddParticipantRequest(callConnectionId, addParticipantRequest); + using var message = CreateAddParticipantRequest(callConnectionId, addParticipantRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -439,21 +439,21 @@ public async Task> AddParticipantAsync( /// Add a participant to the call. /// The call connection Id. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. - public Response AddParticipant(string callConnectionId, AddParticipantRequestInternal addParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response AddParticipant(string callConnectionId, AddParticipantRequestInternal addParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (addParticipantRequest == null) + if (addParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(addParticipantRequest)); + throw new ArgumentNullException(nameof(addParticipantRequestInternal)); } - using var message = CreateAddParticipantRequest(callConnectionId, addParticipantRequest); + using var message = CreateAddParticipantRequest(callConnectionId, addParticipantRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -469,7 +469,7 @@ public Response AddParticipant(string callConnec } } - internal HttpMessage CreateRemoveParticipantRequest(string callConnectionId, RemoveParticipantRequestInternal removeParticipantRequest) + internal HttpMessage CreateRemoveParticipantRequest(string callConnectionId, RemoveParticipantRequestInternal removeParticipantRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -486,28 +486,28 @@ internal HttpMessage CreateRemoveParticipantRequest(string callConnectionId, Rem request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(removeParticipantRequest); + content.JsonWriter.WriteObjectValue(removeParticipantRequestInternal); request.Content = content; return message; } /// Remove a participant from the call using identifier. /// The call connection id. - /// The participant to be removed from the call. + /// The participant to be removed from the call. /// The cancellation token to use. - /// or is null. - public async Task> RemoveParticipantAsync(string callConnectionId, RemoveParticipantRequestInternal removeParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> RemoveParticipantAsync(string callConnectionId, RemoveParticipantRequestInternal removeParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (removeParticipantRequest == null) + if (removeParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(removeParticipantRequest)); + throw new ArgumentNullException(nameof(removeParticipantRequestInternal)); } - using var message = CreateRemoveParticipantRequest(callConnectionId, removeParticipantRequest); + using var message = CreateRemoveParticipantRequest(callConnectionId, removeParticipantRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -525,21 +525,21 @@ public async Task> RemoveParticipant /// Remove a participant from the call using identifier. /// The call connection id. - /// The participant to be removed from the call. + /// The participant to be removed from the call. /// The cancellation token to use. - /// or is null. - public Response RemoveParticipant(string callConnectionId, RemoveParticipantRequestInternal removeParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response RemoveParticipant(string callConnectionId, RemoveParticipantRequestInternal removeParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (removeParticipantRequest == null) + if (removeParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(removeParticipantRequest)); + throw new ArgumentNullException(nameof(removeParticipantRequestInternal)); } - using var message = CreateRemoveParticipantRequest(callConnectionId, removeParticipantRequest); + using var message = CreateRemoveParticipantRequest(callConnectionId, removeParticipantRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -555,7 +555,7 @@ public Response RemoveParticipant(string call } } - internal HttpMessage CreateMuteRequest(string callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequest) + internal HttpMessage CreateMuteRequest(string callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -572,28 +572,28 @@ internal HttpMessage CreateMuteRequest(string callConnectionId, MuteParticipants request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(muteParticipantsRequest); + content.JsonWriter.WriteObjectValue(muteParticipantsRequestInternal); request.Content = content; return message; } /// Mute participants from the call using identifier. /// The call connection id. - /// The participants to be muted from the call. + /// The participants to be muted from the call. /// The cancellation token to use. - /// or is null. - public async Task> MuteAsync(string callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> MuteAsync(string callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (muteParticipantsRequest == null) + if (muteParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(muteParticipantsRequest)); + throw new ArgumentNullException(nameof(muteParticipantsRequestInternal)); } - using var message = CreateMuteRequest(callConnectionId, muteParticipantsRequest); + using var message = CreateMuteRequest(callConnectionId, muteParticipantsRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -611,21 +611,21 @@ public async Task> MuteAsync(string callConnecti /// Mute participants from the call using identifier. /// The call connection id. - /// The participants to be muted from the call. + /// The participants to be muted from the call. /// The cancellation token to use. - /// or is null. - public Response Mute(string callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Mute(string callConnectionId, MuteParticipantsRequestInternal muteParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (muteParticipantsRequest == null) + if (muteParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(muteParticipantsRequest)); + throw new ArgumentNullException(nameof(muteParticipantsRequestInternal)); } - using var message = CreateMuteRequest(callConnectionId, muteParticipantsRequest); + using var message = CreateMuteRequest(callConnectionId, muteParticipantsRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -641,7 +641,7 @@ public Response Mute(string callConnectionId, MutePartici } } - internal HttpMessage CreateUnmuteRequest(string callConnectionId, UnmuteParticipantsRequestInternal unmuteParticipantsRequest) + internal HttpMessage CreateUnmuteRequest(string callConnectionId, UnmuteParticipantsRequestInternal unmuteParticipantsRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -658,28 +658,28 @@ internal HttpMessage CreateUnmuteRequest(string callConnectionId, UnmuteParticip request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(unmuteParticipantsRequest); + content.JsonWriter.WriteObjectValue(unmuteParticipantsRequestInternal); request.Content = content; return message; } /// Unmute participants from the call using identifier. /// The call connection id. - /// The participants to be unmuted from the call. + /// The participants to be unmuted from the call. /// The cancellation token to use. - /// or is null. - public async Task> UnmuteAsync(string callConnectionId, UnmuteParticipantsRequestInternal unmuteParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> UnmuteAsync(string callConnectionId, UnmuteParticipantsRequestInternal unmuteParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (unmuteParticipantsRequest == null) + if (unmuteParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(unmuteParticipantsRequest)); + throw new ArgumentNullException(nameof(unmuteParticipantsRequestInternal)); } - using var message = CreateUnmuteRequest(callConnectionId, unmuteParticipantsRequest); + using var message = CreateUnmuteRequest(callConnectionId, unmuteParticipantsRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -697,21 +697,21 @@ public async Task> UnmuteAsync(string callConn /// Unmute participants from the call using identifier. /// The call connection id. - /// The participants to be unmuted from the call. + /// The participants to be unmuted from the call. /// The cancellation token to use. - /// or is null. - public Response Unmute(string callConnectionId, UnmuteParticipantsRequestInternal unmuteParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Unmute(string callConnectionId, UnmuteParticipantsRequestInternal unmuteParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (unmuteParticipantsRequest == null) + if (unmuteParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(unmuteParticipantsRequest)); + throw new ArgumentNullException(nameof(unmuteParticipantsRequestInternal)); } - using var message = CreateUnmuteRequest(callConnectionId, unmuteParticipantsRequest); + using var message = CreateUnmuteRequest(callConnectionId, unmuteParticipantsRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -727,7 +727,7 @@ public Response Unmute(string callConnectionId, UnmuteP } } - internal HttpMessage CreateCancelAddParticipantRequest(string callConnectionId, CancelAddParticipantRequestInternal cancelAddParticipantRequest) + internal HttpMessage CreateCancelAddParticipantRequest(string callConnectionId, CancelAddParticipantRequestInternal cancelAddParticipantRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -744,28 +744,28 @@ internal HttpMessage CreateCancelAddParticipantRequest(string callConnectionId, request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(cancelAddParticipantRequest); + content.JsonWriter.WriteObjectValue(cancelAddParticipantRequestInternal); request.Content = content; return message; } /// Cancel add participant operation. /// The call connection Id. - /// Cancellation request. + /// Cancellation request. /// The cancellation token to use. - /// or is null. - public async Task> CancelAddParticipantAsync(string callConnectionId, CancelAddParticipantRequestInternal cancelAddParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> CancelAddParticipantAsync(string callConnectionId, CancelAddParticipantRequestInternal cancelAddParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (cancelAddParticipantRequest == null) + if (cancelAddParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(cancelAddParticipantRequest)); + throw new ArgumentNullException(nameof(cancelAddParticipantRequestInternal)); } - using var message = CreateCancelAddParticipantRequest(callConnectionId, cancelAddParticipantRequest); + using var message = CreateCancelAddParticipantRequest(callConnectionId, cancelAddParticipantRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -783,21 +783,21 @@ public async Task> CancelAddParti /// Cancel add participant operation. /// The call connection Id. - /// Cancellation request. + /// Cancellation request. /// The cancellation token to use. - /// or is null. - public Response CancelAddParticipant(string callConnectionId, CancelAddParticipantRequestInternal cancelAddParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response CancelAddParticipant(string callConnectionId, CancelAddParticipantRequestInternal cancelAddParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (cancelAddParticipantRequest == null) + if (cancelAddParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(cancelAddParticipantRequest)); + throw new ArgumentNullException(nameof(cancelAddParticipantRequestInternal)); } - using var message = CreateCancelAddParticipantRequest(callConnectionId, cancelAddParticipantRequest); + using var message = CreateCancelAddParticipantRequest(callConnectionId, cancelAddParticipantRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallDialogRestClient.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallDialogRestClient.cs index 454884aa67448..a82b7a6ce2e0e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallDialogRestClient.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallDialogRestClient.cs @@ -37,7 +37,7 @@ public CallDialogRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pi _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateStartDialogRequest(string callConnectionId, string dialogId, StartDialogRequestInternal startDialogRequest) + internal HttpMessage CreateStartDialogRequest(string callConnectionId, string dialogId, StartDialogRequestInternal startDialogRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -53,7 +53,7 @@ internal HttpMessage CreateStartDialogRequest(string callConnectionId, string di request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(startDialogRequest); + content.JsonWriter.WriteObjectValue(startDialogRequestInternal); request.Content = content; return message; } @@ -61,11 +61,11 @@ internal HttpMessage CreateStartDialogRequest(string callConnectionId, string di /// Start a dialog targeting a particular participant on the call. /// The call connection id. /// The dialog id. - /// The start dialog request. + /// The start dialog request. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// Start a dialog. - public async Task> StartDialogAsync(string callConnectionId, string dialogId, StartDialogRequestInternal startDialogRequest, CancellationToken cancellationToken = default) + public async Task> StartDialogAsync(string callConnectionId, string dialogId, StartDialogRequestInternal startDialogRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { @@ -75,12 +75,12 @@ public async Task> StartDialogAsync(string { throw new ArgumentNullException(nameof(dialogId)); } - if (startDialogRequest == null) + if (startDialogRequestInternal == null) { - throw new ArgumentNullException(nameof(startDialogRequest)); + throw new ArgumentNullException(nameof(startDialogRequestInternal)); } - using var message = CreateStartDialogRequest(callConnectionId, dialogId, startDialogRequest); + using var message = CreateStartDialogRequest(callConnectionId, dialogId, startDialogRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -99,11 +99,11 @@ public async Task> StartDialogAsync(string /// Start a dialog targeting a particular participant on the call. /// The call connection id. /// The dialog id. - /// The start dialog request. + /// The start dialog request. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// Start a dialog. - public Response StartDialog(string callConnectionId, string dialogId, StartDialogRequestInternal startDialogRequest, CancellationToken cancellationToken = default) + public Response StartDialog(string callConnectionId, string dialogId, StartDialogRequestInternal startDialogRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { @@ -113,12 +113,12 @@ public Response StartDialog(string callConnectionId { throw new ArgumentNullException(nameof(dialogId)); } - if (startDialogRequest == null) + if (startDialogRequestInternal == null) { - throw new ArgumentNullException(nameof(startDialogRequest)); + throw new ArgumentNullException(nameof(startDialogRequestInternal)); } - using var message = CreateStartDialogRequest(callConnectionId, dialogId, startDialogRequest); + using var message = CreateStartDialogRequest(callConnectionId, dialogId, startDialogRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -211,7 +211,7 @@ public Response StopDialog(string callConnectionId, string dialogId, string oper } } - internal HttpMessage CreateUpdateDialogRequest(string callConnectionId, string dialogId, UpdateDialogRequestInternal updateDialogRequest) + internal HttpMessage CreateUpdateDialogRequest(string callConnectionId, string dialogId, UpdateDialogRequestInternal updateDialogRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -227,7 +227,7 @@ internal HttpMessage CreateUpdateDialogRequest(string callConnectionId, string d request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(updateDialogRequest); + content.JsonWriter.WriteObjectValue(updateDialogRequestInternal); request.Content = content; return message; } @@ -235,11 +235,11 @@ internal HttpMessage CreateUpdateDialogRequest(string callConnectionId, string d /// Update an ongoing dialog in a call. /// The call connection id. /// The dialog id. - /// The update dialog request. + /// The update dialog request. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// Update a dialog. - public async Task UpdateDialogAsync(string callConnectionId, string dialogId, UpdateDialogRequestInternal updateDialogRequest, CancellationToken cancellationToken = default) + public async Task UpdateDialogAsync(string callConnectionId, string dialogId, UpdateDialogRequestInternal updateDialogRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { @@ -249,12 +249,12 @@ public async Task UpdateDialogAsync(string callConnectionId, string di { throw new ArgumentNullException(nameof(dialogId)); } - if (updateDialogRequest == null) + if (updateDialogRequestInternal == null) { - throw new ArgumentNullException(nameof(updateDialogRequest)); + throw new ArgumentNullException(nameof(updateDialogRequestInternal)); } - using var message = CreateUpdateDialogRequest(callConnectionId, dialogId, updateDialogRequest); + using var message = CreateUpdateDialogRequest(callConnectionId, dialogId, updateDialogRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -268,11 +268,11 @@ public async Task UpdateDialogAsync(string callConnectionId, string di /// Update an ongoing dialog in a call. /// The call connection id. /// The dialog id. - /// The update dialog request. + /// The update dialog request. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// Update a dialog. - public Response UpdateDialog(string callConnectionId, string dialogId, UpdateDialogRequestInternal updateDialogRequest, CancellationToken cancellationToken = default) + public Response UpdateDialog(string callConnectionId, string dialogId, UpdateDialogRequestInternal updateDialogRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { @@ -282,12 +282,12 @@ public Response UpdateDialog(string callConnectionId, string dialogId, UpdateDia { throw new ArgumentNullException(nameof(dialogId)); } - if (updateDialogRequest == null) + if (updateDialogRequestInternal == null) { - throw new ArgumentNullException(nameof(updateDialogRequest)); + throw new ArgumentNullException(nameof(updateDialogRequestInternal)); } - using var message = CreateUpdateDialogRequest(callConnectionId, dialogId, updateDialogRequest); + using var message = CreateUpdateDialogRequest(callConnectionId, dialogId, updateDialogRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs index 48a8007fa02dc..ec699000f7581 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallMediaRestClient.cs @@ -37,7 +37,7 @@ public CallMediaRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pip _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreatePlayRequest(string callConnectionId, PlayRequestInternal playRequest) + internal HttpMessage CreatePlayRequest(string callConnectionId, PlayRequestInternal playRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -52,28 +52,28 @@ internal HttpMessage CreatePlayRequest(string callConnectionId, PlayRequestInter request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(playRequest); + content.JsonWriter.WriteObjectValue(playRequestInternal); request.Content = content; return message; } /// Plays audio to participants in the call. /// The call connection id. - /// play request payload. + /// play request payload. /// The cancellation token to use. - /// or is null. - public async Task PlayAsync(string callConnectionId, PlayRequestInternal playRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task PlayAsync(string callConnectionId, PlayRequestInternal playRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (playRequest == null) + if (playRequestInternal == null) { - throw new ArgumentNullException(nameof(playRequest)); + throw new ArgumentNullException(nameof(playRequestInternal)); } - using var message = CreatePlayRequest(callConnectionId, playRequest); + using var message = CreatePlayRequest(callConnectionId, playRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -86,21 +86,21 @@ public async Task PlayAsync(string callConnectionId, PlayRequestIntern /// Plays audio to participants in the call. /// The call connection id. - /// play request payload. + /// play request payload. /// The cancellation token to use. - /// or is null. - public Response Play(string callConnectionId, PlayRequestInternal playRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Play(string callConnectionId, PlayRequestInternal playRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (playRequest == null) + if (playRequestInternal == null) { - throw new ArgumentNullException(nameof(playRequest)); + throw new ArgumentNullException(nameof(playRequestInternal)); } - using var message = CreatePlayRequest(callConnectionId, playRequest); + using var message = CreatePlayRequest(callConnectionId, playRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -111,7 +111,7 @@ public Response Play(string callConnectionId, PlayRequestInternal playRequest, C } } - internal HttpMessage CreateStartTranscriptionRequest(string callConnectionId, StartTranscriptionRequestInternal startTranscriptionRequest) + internal HttpMessage CreateStartTranscriptionRequest(string callConnectionId, StartTranscriptionRequestInternal startTranscriptionRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -126,28 +126,28 @@ internal HttpMessage CreateStartTranscriptionRequest(string callConnectionId, St request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(startTranscriptionRequest); + content.JsonWriter.WriteObjectValue(startTranscriptionRequestInternal); request.Content = content; return message; } /// Starts transcription in the call. /// The call connection id. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. - public async Task StartTranscriptionAsync(string callConnectionId, StartTranscriptionRequestInternal startTranscriptionRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task StartTranscriptionAsync(string callConnectionId, StartTranscriptionRequestInternal startTranscriptionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (startTranscriptionRequest == null) + if (startTranscriptionRequestInternal == null) { - throw new ArgumentNullException(nameof(startTranscriptionRequest)); + throw new ArgumentNullException(nameof(startTranscriptionRequestInternal)); } - using var message = CreateStartTranscriptionRequest(callConnectionId, startTranscriptionRequest); + using var message = CreateStartTranscriptionRequest(callConnectionId, startTranscriptionRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -160,21 +160,21 @@ public async Task StartTranscriptionAsync(string callConnectionId, Sta /// Starts transcription in the call. /// The call connection id. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. - public Response StartTranscription(string callConnectionId, StartTranscriptionRequestInternal startTranscriptionRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response StartTranscription(string callConnectionId, StartTranscriptionRequestInternal startTranscriptionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (startTranscriptionRequest == null) + if (startTranscriptionRequestInternal == null) { - throw new ArgumentNullException(nameof(startTranscriptionRequest)); + throw new ArgumentNullException(nameof(startTranscriptionRequestInternal)); } - using var message = CreateStartTranscriptionRequest(callConnectionId, startTranscriptionRequest); + using var message = CreateStartTranscriptionRequest(callConnectionId, startTranscriptionRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -185,7 +185,7 @@ public Response StartTranscription(string callConnectionId, StartTranscriptionRe } } - internal HttpMessage CreateStopTranscriptionRequest(string callConnectionId, StopTranscriptionRequestInternal stopTranscriptionRequest) + internal HttpMessage CreateStopTranscriptionRequest(string callConnectionId, StopTranscriptionRequestInternal stopTranscriptionRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -200,28 +200,28 @@ internal HttpMessage CreateStopTranscriptionRequest(string callConnectionId, Sto request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(stopTranscriptionRequest); + content.JsonWriter.WriteObjectValue(stopTranscriptionRequestInternal); request.Content = content; return message; } /// Stops transcription in the call. /// The call connection id. - /// stop transcription request payload. + /// stop transcription request payload. /// The cancellation token to use. - /// or is null. - public async Task StopTranscriptionAsync(string callConnectionId, StopTranscriptionRequestInternal stopTranscriptionRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task StopTranscriptionAsync(string callConnectionId, StopTranscriptionRequestInternal stopTranscriptionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (stopTranscriptionRequest == null) + if (stopTranscriptionRequestInternal == null) { - throw new ArgumentNullException(nameof(stopTranscriptionRequest)); + throw new ArgumentNullException(nameof(stopTranscriptionRequestInternal)); } - using var message = CreateStopTranscriptionRequest(callConnectionId, stopTranscriptionRequest); + using var message = CreateStopTranscriptionRequest(callConnectionId, stopTranscriptionRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -234,21 +234,21 @@ public async Task StopTranscriptionAsync(string callConnectionId, Stop /// Stops transcription in the call. /// The call connection id. - /// stop transcription request payload. + /// stop transcription request payload. /// The cancellation token to use. - /// or is null. - public Response StopTranscription(string callConnectionId, StopTranscriptionRequestInternal stopTranscriptionRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response StopTranscription(string callConnectionId, StopTranscriptionRequestInternal stopTranscriptionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (stopTranscriptionRequest == null) + if (stopTranscriptionRequestInternal == null) { - throw new ArgumentNullException(nameof(stopTranscriptionRequest)); + throw new ArgumentNullException(nameof(stopTranscriptionRequestInternal)); } - using var message = CreateStopTranscriptionRequest(callConnectionId, stopTranscriptionRequest); + using var message = CreateStopTranscriptionRequest(callConnectionId, stopTranscriptionRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -319,7 +319,7 @@ public Response CancelAllMediaOperations(string callConnectionId, CancellationTo } } - internal HttpMessage CreateRecognizeRequest(string callConnectionId, RecognizeRequestInternal recognizeRequest) + internal HttpMessage CreateRecognizeRequest(string callConnectionId, RecognizeRequestInternal recognizeRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -334,28 +334,28 @@ internal HttpMessage CreateRecognizeRequest(string callConnectionId, RecognizeRe request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(recognizeRequest); + content.JsonWriter.WriteObjectValue(recognizeRequestInternal); request.Content = content; return message; } /// Recognize media from call. /// The call connection id. - /// The media recognize request. + /// The media recognize request. /// The cancellation token to use. - /// or is null. - public async Task RecognizeAsync(string callConnectionId, RecognizeRequestInternal recognizeRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task RecognizeAsync(string callConnectionId, RecognizeRequestInternal recognizeRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (recognizeRequest == null) + if (recognizeRequestInternal == null) { - throw new ArgumentNullException(nameof(recognizeRequest)); + throw new ArgumentNullException(nameof(recognizeRequestInternal)); } - using var message = CreateRecognizeRequest(callConnectionId, recognizeRequest); + using var message = CreateRecognizeRequest(callConnectionId, recognizeRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -368,21 +368,21 @@ public async Task RecognizeAsync(string callConnectionId, RecognizeReq /// Recognize media from call. /// The call connection id. - /// The media recognize request. + /// The media recognize request. /// The cancellation token to use. - /// or is null. - public Response Recognize(string callConnectionId, RecognizeRequestInternal recognizeRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Recognize(string callConnectionId, RecognizeRequestInternal recognizeRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (recognizeRequest == null) + if (recognizeRequestInternal == null) { - throw new ArgumentNullException(nameof(recognizeRequest)); + throw new ArgumentNullException(nameof(recognizeRequestInternal)); } - using var message = CreateRecognizeRequest(callConnectionId, recognizeRequest); + using var message = CreateRecognizeRequest(callConnectionId, recognizeRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -393,7 +393,7 @@ public Response Recognize(string callConnectionId, RecognizeRequestInternal reco } } - internal HttpMessage CreateStartContinuousDtmfRecognitionRequest(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest) + internal HttpMessage CreateStartContinuousDtmfRecognitionRequest(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -408,28 +408,28 @@ internal HttpMessage CreateStartContinuousDtmfRecognitionRequest(string callConn request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(continuousDtmfRecognitionRequest); + content.JsonWriter.WriteObjectValue(continuousDtmfRecognitionRequestInternal); request.Content = content; return message; } /// Start continuous Dtmf recognition by subscribing to tones. /// The call connection id. - /// The continuous recognize request. + /// The continuous recognize request. /// The cancellation token to use. - /// or is null. - public async Task StartContinuousDtmfRecognitionAsync(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task StartContinuousDtmfRecognitionAsync(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (continuousDtmfRecognitionRequest == null) + if (continuousDtmfRecognitionRequestInternal == null) { - throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequest)); + throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequestInternal)); } - using var message = CreateStartContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequest); + using var message = CreateStartContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -442,21 +442,21 @@ public async Task StartContinuousDtmfRecognitionAsync(string callConne /// Start continuous Dtmf recognition by subscribing to tones. /// The call connection id. - /// The continuous recognize request. + /// The continuous recognize request. /// The cancellation token to use. - /// or is null. - public Response StartContinuousDtmfRecognition(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response StartContinuousDtmfRecognition(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (continuousDtmfRecognitionRequest == null) + if (continuousDtmfRecognitionRequestInternal == null) { - throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequest)); + throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequestInternal)); } - using var message = CreateStartContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequest); + using var message = CreateStartContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -467,7 +467,7 @@ public Response StartContinuousDtmfRecognition(string callConnectionId, Continuo } } - internal HttpMessage CreateStopContinuousDtmfRecognitionRequest(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest) + internal HttpMessage CreateStopContinuousDtmfRecognitionRequest(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -482,28 +482,28 @@ internal HttpMessage CreateStopContinuousDtmfRecognitionRequest(string callConne request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(continuousDtmfRecognitionRequest); + content.JsonWriter.WriteObjectValue(continuousDtmfRecognitionRequestInternal); request.Content = content; return message; } /// Stop continuous Dtmf recognition by unsubscribing to tones. /// The call connection id. - /// The continuous recognize request. + /// The continuous recognize request. /// The cancellation token to use. - /// or is null. - public async Task StopContinuousDtmfRecognitionAsync(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task StopContinuousDtmfRecognitionAsync(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (continuousDtmfRecognitionRequest == null) + if (continuousDtmfRecognitionRequestInternal == null) { - throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequest)); + throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequestInternal)); } - using var message = CreateStopContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequest); + using var message = CreateStopContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -516,21 +516,21 @@ public async Task StopContinuousDtmfRecognitionAsync(string callConnec /// Stop continuous Dtmf recognition by unsubscribing to tones. /// The call connection id. - /// The continuous recognize request. + /// The continuous recognize request. /// The cancellation token to use. - /// or is null. - public Response StopContinuousDtmfRecognition(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response StopContinuousDtmfRecognition(string callConnectionId, ContinuousDtmfRecognitionRequestInternal continuousDtmfRecognitionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (continuousDtmfRecognitionRequest == null) + if (continuousDtmfRecognitionRequestInternal == null) { - throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequest)); + throw new ArgumentNullException(nameof(continuousDtmfRecognitionRequestInternal)); } - using var message = CreateStopContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequest); + using var message = CreateStopContinuousDtmfRecognitionRequest(callConnectionId, continuousDtmfRecognitionRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -541,7 +541,7 @@ public Response StopContinuousDtmfRecognition(string callConnectionId, Continuou } } - internal HttpMessage CreateSendDtmfTonesRequest(string callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequest) + internal HttpMessage CreateSendDtmfTonesRequest(string callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -558,28 +558,28 @@ internal HttpMessage CreateSendDtmfTonesRequest(string callConnectionId, SendDtm request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(sendDtmfTonesRequest); + content.JsonWriter.WriteObjectValue(sendDtmfTonesRequestInternal); request.Content = content; return message; } /// Send dtmf tones. /// The call connection id. - /// The send dtmf tones request. + /// The send dtmf tones request. /// The cancellation token to use. - /// or is null. - public async Task> SendDtmfTonesAsync(string callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> SendDtmfTonesAsync(string callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (sendDtmfTonesRequest == null) + if (sendDtmfTonesRequestInternal == null) { - throw new ArgumentNullException(nameof(sendDtmfTonesRequest)); + throw new ArgumentNullException(nameof(sendDtmfTonesRequestInternal)); } - using var message = CreateSendDtmfTonesRequest(callConnectionId, sendDtmfTonesRequest); + using var message = CreateSendDtmfTonesRequest(callConnectionId, sendDtmfTonesRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -597,21 +597,21 @@ public async Task> SendDtmfTonesAsync(string callC /// Send dtmf tones. /// The call connection id. - /// The send dtmf tones request. + /// The send dtmf tones request. /// The cancellation token to use. - /// or is null. - public Response SendDtmfTones(string callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response SendDtmfTones(string callConnectionId, SendDtmfTonesRequestInternal sendDtmfTonesRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (sendDtmfTonesRequest == null) + if (sendDtmfTonesRequestInternal == null) { - throw new ArgumentNullException(nameof(sendDtmfTonesRequest)); + throw new ArgumentNullException(nameof(sendDtmfTonesRequestInternal)); } - using var message = CreateSendDtmfTonesRequest(callConnectionId, sendDtmfTonesRequest); + using var message = CreateSendDtmfTonesRequest(callConnectionId, sendDtmfTonesRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -627,7 +627,7 @@ public Response SendDtmfTones(string callConnectionId, Send } } - internal HttpMessage CreateUpdateTranscriptionRequest(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequest) + internal HttpMessage CreateUpdateTranscriptionRequest(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -642,29 +642,29 @@ internal HttpMessage CreateUpdateTranscriptionRequest(string callConnectionId, U request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(updateTranscriptionRequest); + content.JsonWriter.WriteObjectValue(updateTranscriptionRequestInternal); request.Content = content; return message; } /// UpdateTranscription Api. /// The call connection id. - /// The UpdateTranscription request. + /// The UpdateTranscription request. /// The cancellation token to use. - /// or is null. + /// or is null. /// API to change transcription language. - public async Task UpdateTranscriptionAsync(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequest, CancellationToken cancellationToken = default) + public async Task UpdateTranscriptionAsync(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (updateTranscriptionRequest == null) + if (updateTranscriptionRequestInternal == null) { - throw new ArgumentNullException(nameof(updateTranscriptionRequest)); + throw new ArgumentNullException(nameof(updateTranscriptionRequestInternal)); } - using var message = CreateUpdateTranscriptionRequest(callConnectionId, updateTranscriptionRequest); + using var message = CreateUpdateTranscriptionRequest(callConnectionId, updateTranscriptionRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -677,22 +677,22 @@ public async Task UpdateTranscriptionAsync(string callConnectionId, Up /// UpdateTranscription Api. /// The call connection id. - /// The UpdateTranscription request. + /// The UpdateTranscription request. /// The cancellation token to use. - /// or is null. + /// or is null. /// API to change transcription language. - public Response UpdateTranscription(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequest, CancellationToken cancellationToken = default) + public Response UpdateTranscription(string callConnectionId, UpdateTranscriptionRequestInternal updateTranscriptionRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (updateTranscriptionRequest == null) + if (updateTranscriptionRequestInternal == null) { - throw new ArgumentNullException(nameof(updateTranscriptionRequest)); + throw new ArgumentNullException(nameof(updateTranscriptionRequestInternal)); } - using var message = CreateUpdateTranscriptionRequest(callConnectionId, updateTranscriptionRequest); + using var message = CreateUpdateTranscriptionRequest(callConnectionId, updateTranscriptionRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -703,7 +703,7 @@ public Response UpdateTranscription(string callConnectionId, UpdateTranscription } } - internal HttpMessage CreateHoldRequest(string callConnectionId, HoldRequestInternal holdRequest) + internal HttpMessage CreateHoldRequest(string callConnectionId, HoldRequestInternal holdRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -718,28 +718,28 @@ internal HttpMessage CreateHoldRequest(string callConnectionId, HoldRequestInter request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(holdRequest); + content.JsonWriter.WriteObjectValue(holdRequestInternal); request.Content = content; return message; } /// Hold participant from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public async Task HoldAsync(string callConnectionId, HoldRequestInternal holdRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task HoldAsync(string callConnectionId, HoldRequestInternal holdRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (holdRequest == null) + if (holdRequestInternal == null) { - throw new ArgumentNullException(nameof(holdRequest)); + throw new ArgumentNullException(nameof(holdRequestInternal)); } - using var message = CreateHoldRequest(callConnectionId, holdRequest); + using var message = CreateHoldRequest(callConnectionId, holdRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -752,21 +752,21 @@ public async Task HoldAsync(string callConnectionId, HoldRequestIntern /// Hold participant from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public Response Hold(string callConnectionId, HoldRequestInternal holdRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Hold(string callConnectionId, HoldRequestInternal holdRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (holdRequest == null) + if (holdRequestInternal == null) { - throw new ArgumentNullException(nameof(holdRequest)); + throw new ArgumentNullException(nameof(holdRequestInternal)); } - using var message = CreateHoldRequest(callConnectionId, holdRequest); + using var message = CreateHoldRequest(callConnectionId, holdRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -777,7 +777,7 @@ public Response Hold(string callConnectionId, HoldRequestInternal holdRequest, C } } - internal HttpMessage CreateUnholdRequest(string callConnectionId, UnholdRequestInternal unholdRequest) + internal HttpMessage CreateUnholdRequest(string callConnectionId, UnholdRequestInternal unholdRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -792,28 +792,28 @@ internal HttpMessage CreateUnholdRequest(string callConnectionId, UnholdRequestI request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(unholdRequest); + content.JsonWriter.WriteObjectValue(unholdRequestInternal); request.Content = content; return message; } /// Unhold participants from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public async Task UnholdAsync(string callConnectionId, UnholdRequestInternal unholdRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task UnholdAsync(string callConnectionId, UnholdRequestInternal unholdRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (unholdRequest == null) + if (unholdRequestInternal == null) { - throw new ArgumentNullException(nameof(unholdRequest)); + throw new ArgumentNullException(nameof(unholdRequestInternal)); } - using var message = CreateUnholdRequest(callConnectionId, unholdRequest); + using var message = CreateUnholdRequest(callConnectionId, unholdRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -826,21 +826,21 @@ public async Task UnholdAsync(string callConnectionId, UnholdRequestIn /// Unhold participants from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public Response Unhold(string callConnectionId, UnholdRequestInternal unholdRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Unhold(string callConnectionId, UnholdRequestInternal unholdRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (unholdRequest == null) + if (unholdRequestInternal == null) { - throw new ArgumentNullException(nameof(unholdRequest)); + throw new ArgumentNullException(nameof(unholdRequestInternal)); } - using var message = CreateUnholdRequest(callConnectionId, unholdRequest); + using var message = CreateUnholdRequest(callConnectionId, unholdRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -851,7 +851,7 @@ public Response Unhold(string callConnectionId, UnholdRequestInternal unholdRequ } } - internal HttpMessage CreateStartHoldMusicRequest(string callConnectionId, StartHoldMusicRequestInternal startHoldMusicRequest) + internal HttpMessage CreateStartHoldMusicRequest(string callConnectionId, StartHoldMusicRequestInternal startHoldMusicRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -866,28 +866,28 @@ internal HttpMessage CreateStartHoldMusicRequest(string callConnectionId, StartH request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(startHoldMusicRequest); + content.JsonWriter.WriteObjectValue(startHoldMusicRequestInternal); request.Content = content; return message; } /// Hold participant from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public async Task StartHoldMusicAsync(string callConnectionId, StartHoldMusicRequestInternal startHoldMusicRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task StartHoldMusicAsync(string callConnectionId, StartHoldMusicRequestInternal startHoldMusicRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (startHoldMusicRequest == null) + if (startHoldMusicRequestInternal == null) { - throw new ArgumentNullException(nameof(startHoldMusicRequest)); + throw new ArgumentNullException(nameof(startHoldMusicRequestInternal)); } - using var message = CreateStartHoldMusicRequest(callConnectionId, startHoldMusicRequest); + using var message = CreateStartHoldMusicRequest(callConnectionId, startHoldMusicRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -900,21 +900,21 @@ public async Task StartHoldMusicAsync(string callConnectionId, StartHo /// Hold participant from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public Response StartHoldMusic(string callConnectionId, StartHoldMusicRequestInternal startHoldMusicRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response StartHoldMusic(string callConnectionId, StartHoldMusicRequestInternal startHoldMusicRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (startHoldMusicRequest == null) + if (startHoldMusicRequestInternal == null) { - throw new ArgumentNullException(nameof(startHoldMusicRequest)); + throw new ArgumentNullException(nameof(startHoldMusicRequestInternal)); } - using var message = CreateStartHoldMusicRequest(callConnectionId, startHoldMusicRequest); + using var message = CreateStartHoldMusicRequest(callConnectionId, startHoldMusicRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -925,7 +925,7 @@ public Response StartHoldMusic(string callConnectionId, StartHoldMusicRequestInt } } - internal HttpMessage CreateStopHoldMusicRequest(string callConnectionId, StopHoldMusicRequestInternal stopHoldMusicRequest) + internal HttpMessage CreateStopHoldMusicRequest(string callConnectionId, StopHoldMusicRequestInternal stopHoldMusicRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -940,28 +940,28 @@ internal HttpMessage CreateStopHoldMusicRequest(string callConnectionId, StopHol request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(stopHoldMusicRequest); + content.JsonWriter.WriteObjectValue(stopHoldMusicRequestInternal); request.Content = content; return message; } /// Unhold participants from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public async Task StopHoldMusicAsync(string callConnectionId, StopHoldMusicRequestInternal stopHoldMusicRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task StopHoldMusicAsync(string callConnectionId, StopHoldMusicRequestInternal stopHoldMusicRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (stopHoldMusicRequest == null) + if (stopHoldMusicRequestInternal == null) { - throw new ArgumentNullException(nameof(stopHoldMusicRequest)); + throw new ArgumentNullException(nameof(stopHoldMusicRequestInternal)); } - using var message = CreateStopHoldMusicRequest(callConnectionId, stopHoldMusicRequest); + using var message = CreateStopHoldMusicRequest(callConnectionId, stopHoldMusicRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -974,21 +974,21 @@ public async Task StopHoldMusicAsync(string callConnectionId, StopHold /// Unhold participants from the call using identifier. /// The call connection id. - /// The participants to be hold from the call. + /// The participants to be hold from the call. /// The cancellation token to use. - /// or is null. - public Response StopHoldMusic(string callConnectionId, StopHoldMusicRequestInternal stopHoldMusicRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response StopHoldMusic(string callConnectionId, StopHoldMusicRequestInternal stopHoldMusicRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (stopHoldMusicRequest == null) + if (stopHoldMusicRequestInternal == null) { - throw new ArgumentNullException(nameof(stopHoldMusicRequest)); + throw new ArgumentNullException(nameof(stopHoldMusicRequestInternal)); } - using var message = CreateStopHoldMusicRequest(callConnectionId, stopHoldMusicRequest); + using var message = CreateStopHoldMusicRequest(callConnectionId, stopHoldMusicRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -999,7 +999,7 @@ public Response StopHoldMusic(string callConnectionId, StopHoldMusicRequestInter } } - internal HttpMessage CreateStartMediaStreamingRequest(string callConnectionId, StartMediaStreamingRequestInternal startMediaStreamingRequest) + internal HttpMessage CreateStartMediaStreamingRequest(string callConnectionId, StartMediaStreamingRequestInternal startMediaStreamingRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1014,29 +1014,29 @@ internal HttpMessage CreateStartMediaStreamingRequest(string callConnectionId, S request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(startMediaStreamingRequest); + content.JsonWriter.WriteObjectValue(startMediaStreamingRequestInternal); request.Content = content; return message; } /// Starts media streaming in the call. /// The call connection id. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. + /// or is null. /// Starts media streaming in the call. - public async Task StartMediaStreamingAsync(string callConnectionId, StartMediaStreamingRequestInternal startMediaStreamingRequest, CancellationToken cancellationToken = default) + public async Task StartMediaStreamingAsync(string callConnectionId, StartMediaStreamingRequestInternal startMediaStreamingRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (startMediaStreamingRequest == null) + if (startMediaStreamingRequestInternal == null) { - throw new ArgumentNullException(nameof(startMediaStreamingRequest)); + throw new ArgumentNullException(nameof(startMediaStreamingRequestInternal)); } - using var message = CreateStartMediaStreamingRequest(callConnectionId, startMediaStreamingRequest); + using var message = CreateStartMediaStreamingRequest(callConnectionId, startMediaStreamingRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1049,22 +1049,22 @@ public async Task StartMediaStreamingAsync(string callConnectionId, St /// Starts media streaming in the call. /// The call connection id. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. + /// or is null. /// Starts media streaming in the call. - public Response StartMediaStreaming(string callConnectionId, StartMediaStreamingRequestInternal startMediaStreamingRequest, CancellationToken cancellationToken = default) + public Response StartMediaStreaming(string callConnectionId, StartMediaStreamingRequestInternal startMediaStreamingRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (startMediaStreamingRequest == null) + if (startMediaStreamingRequestInternal == null) { - throw new ArgumentNullException(nameof(startMediaStreamingRequest)); + throw new ArgumentNullException(nameof(startMediaStreamingRequestInternal)); } - using var message = CreateStartMediaStreamingRequest(callConnectionId, startMediaStreamingRequest); + using var message = CreateStartMediaStreamingRequest(callConnectionId, startMediaStreamingRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1075,7 +1075,7 @@ public Response StartMediaStreaming(string callConnectionId, StartMediaStreaming } } - internal HttpMessage CreateStopMediaStreamingRequest(string callConnectionId, StopMediaStreamingRequestInternal stopMediaStreamingRequest) + internal HttpMessage CreateStopMediaStreamingRequest(string callConnectionId, StopMediaStreamingRequestInternal stopMediaStreamingRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1090,29 +1090,29 @@ internal HttpMessage CreateStopMediaStreamingRequest(string callConnectionId, St request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(stopMediaStreamingRequest); + content.JsonWriter.WriteObjectValue(stopMediaStreamingRequestInternal); request.Content = content; return message; } /// Stops media streaming in the call. /// The call connection id. - /// stop media streaming request payload. + /// stop media streaming request payload. /// The cancellation token to use. - /// or is null. + /// or is null. /// Stops media streaming in the call. - public async Task StopMediaStreamingAsync(string callConnectionId, StopMediaStreamingRequestInternal stopMediaStreamingRequest, CancellationToken cancellationToken = default) + public async Task StopMediaStreamingAsync(string callConnectionId, StopMediaStreamingRequestInternal stopMediaStreamingRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (stopMediaStreamingRequest == null) + if (stopMediaStreamingRequestInternal == null) { - throw new ArgumentNullException(nameof(stopMediaStreamingRequest)); + throw new ArgumentNullException(nameof(stopMediaStreamingRequestInternal)); } - using var message = CreateStopMediaStreamingRequest(callConnectionId, stopMediaStreamingRequest); + using var message = CreateStopMediaStreamingRequest(callConnectionId, stopMediaStreamingRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1125,22 +1125,22 @@ public async Task StopMediaStreamingAsync(string callConnectionId, Sto /// Stops media streaming in the call. /// The call connection id. - /// stop media streaming request payload. + /// stop media streaming request payload. /// The cancellation token to use. - /// or is null. + /// or is null. /// Stops media streaming in the call. - public Response StopMediaStreaming(string callConnectionId, StopMediaStreamingRequestInternal stopMediaStreamingRequest, CancellationToken cancellationToken = default) + public Response StopMediaStreaming(string callConnectionId, StopMediaStreamingRequestInternal stopMediaStreamingRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (stopMediaStreamingRequest == null) + if (stopMediaStreamingRequestInternal == null) { - throw new ArgumentNullException(nameof(stopMediaStreamingRequest)); + throw new ArgumentNullException(nameof(stopMediaStreamingRequestInternal)); } - using var message = CreateStopMediaStreamingRequest(callConnectionId, stopMediaStreamingRequest); + using var message = CreateStopMediaStreamingRequest(callConnectionId, stopMediaStreamingRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallConnectionsRestClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallConnectionsRestClient.cs index 0fe3dfe46e4a9..43663262e69b1 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallConnectionsRestClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallConnectionsRestClient.cs @@ -225,7 +225,7 @@ public Response TerminateCall(string callConnectionId, CancellationToken cancell } } - internal HttpMessage CreateTransferToParticipantRequest(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest) + internal HttpMessage CreateTransferToParticipantRequest(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -242,28 +242,28 @@ internal HttpMessage CreateTransferToParticipantRequest(string callConnectionId, request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(transferToParticipantRequest); + content.JsonWriter.WriteObjectValue(transferToParticipantRequestInternal); request.Content = content; return message; } /// Transfer the call to a participant. /// The call connection id. - /// The transfer to participant request. + /// The transfer to participant request. /// The cancellation token to use. - /// or is null. - public async Task> TransferToParticipantAsync(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> TransferToParticipantAsync(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (transferToParticipantRequest == null) + if (transferToParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(transferToParticipantRequest)); + throw new ArgumentNullException(nameof(transferToParticipantRequestInternal)); } - using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequest); + using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -281,21 +281,21 @@ public async Task> TransferToParticipa /// Transfer the call to a participant. /// The call connection id. - /// The transfer to participant request. + /// The transfer to participant request. /// The cancellation token to use. - /// or is null. - public Response TransferToParticipant(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response TransferToParticipant(string callConnectionId, TransferToParticipantRequestInternal transferToParticipantRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (transferToParticipantRequest == null) + if (transferToParticipantRequestInternal == null) { - throw new ArgumentNullException(nameof(transferToParticipantRequest)); + throw new ArgumentNullException(nameof(transferToParticipantRequestInternal)); } - using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequest); + using var message = CreateTransferToParticipantRequest(callConnectionId, transferToParticipantRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -381,7 +381,7 @@ public Response GetParticipants(string callConn } } - internal HttpMessage CreateAddParticipantRequest(string callConnectionId, AddParticipantsRequestInternal addParticipantsRequest) + internal HttpMessage CreateAddParticipantRequest(string callConnectionId, AddParticipantsRequestInternal addParticipantsRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -398,28 +398,28 @@ internal HttpMessage CreateAddParticipantRequest(string callConnectionId, AddPar request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(addParticipantsRequest); + content.JsonWriter.WriteObjectValue(addParticipantsRequestInternal); request.Content = content; return message; } /// Add participants to the call. /// The call connection Id. - /// The add participants request. + /// The add participants request. /// The cancellation token to use. - /// or is null. - public async Task> AddParticipantAsync(string callConnectionId, AddParticipantsRequestInternal addParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> AddParticipantAsync(string callConnectionId, AddParticipantsRequestInternal addParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (addParticipantsRequest == null) + if (addParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(addParticipantsRequest)); + throw new ArgumentNullException(nameof(addParticipantsRequestInternal)); } - using var message = CreateAddParticipantRequest(callConnectionId, addParticipantsRequest); + using var message = CreateAddParticipantRequest(callConnectionId, addParticipantsRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -437,21 +437,21 @@ public async Task> AddParticipantAsync /// Add participants to the call. /// The call connection Id. - /// The add participants request. + /// The add participants request. /// The cancellation token to use. - /// or is null. - public Response AddParticipant(string callConnectionId, AddParticipantsRequestInternal addParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response AddParticipant(string callConnectionId, AddParticipantsRequestInternal addParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (addParticipantsRequest == null) + if (addParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(addParticipantsRequest)); + throw new ArgumentNullException(nameof(addParticipantsRequestInternal)); } - using var message = CreateAddParticipantRequest(callConnectionId, addParticipantsRequest); + using var message = CreateAddParticipantRequest(callConnectionId, addParticipantsRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -467,7 +467,7 @@ public Response AddParticipant(string callConne } } - internal HttpMessage CreateRemoveParticipantsRequest(string callConnectionId, RemoveParticipantsRequestInternal removeParticipantsRequest) + internal HttpMessage CreateRemoveParticipantsRequest(string callConnectionId, RemoveParticipantsRequestInternal removeParticipantsRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -484,28 +484,28 @@ internal HttpMessage CreateRemoveParticipantsRequest(string callConnectionId, Re request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(removeParticipantsRequest); + content.JsonWriter.WriteObjectValue(removeParticipantsRequestInternal); request.Content = content; return message; } /// Remove participant from the call using identifier. /// The call connection id. - /// The participants to be removed from the call. + /// The participants to be removed from the call. /// The cancellation token to use. - /// or is null. - public async Task> RemoveParticipantsAsync(string callConnectionId, RemoveParticipantsRequestInternal removeParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task> RemoveParticipantsAsync(string callConnectionId, RemoveParticipantsRequestInternal removeParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (removeParticipantsRequest == null) + if (removeParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(removeParticipantsRequest)); + throw new ArgumentNullException(nameof(removeParticipantsRequestInternal)); } - using var message = CreateRemoveParticipantsRequest(callConnectionId, removeParticipantsRequest); + using var message = CreateRemoveParticipantsRequest(callConnectionId, removeParticipantsRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -523,21 +523,21 @@ public async Task> RemoveParticipantsAsync(st /// Remove participant from the call using identifier. /// The call connection id. - /// The participants to be removed from the call. + /// The participants to be removed from the call. /// The cancellation token to use. - /// or is null. - public Response RemoveParticipants(string callConnectionId, RemoveParticipantsRequestInternal removeParticipantsRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response RemoveParticipants(string callConnectionId, RemoveParticipantsRequestInternal removeParticipantsRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (removeParticipantsRequest == null) + if (removeParticipantsRequestInternal == null) { - throw new ArgumentNullException(nameof(removeParticipantsRequest)); + throw new ArgumentNullException(nameof(removeParticipantsRequestInternal)); } - using var message = CreateRemoveParticipantsRequest(callConnectionId, removeParticipantsRequest); + using var message = CreateRemoveParticipantsRequest(callConnectionId, removeParticipantsRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/ContentRestClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/ContentRestClient.cs index a675a79ca68f8..2925d05f422b8 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/ContentRestClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/ContentRestClient.cs @@ -37,7 +37,7 @@ public ContentRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipel _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreatePlayRequest(string callConnectionId, PlayRequestInternal playRequest) + internal HttpMessage CreatePlayRequest(string callConnectionId, PlayRequestInternal playRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -51,28 +51,28 @@ internal HttpMessage CreatePlayRequest(string callConnectionId, PlayRequestInter request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(playRequest); + content.JsonWriter.WriteObjectValue(playRequestInternal); request.Content = content; return message; } /// Plays audio to participants in the call. /// The to use. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. - public async Task PlayAsync(string callConnectionId, PlayRequestInternal playRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task PlayAsync(string callConnectionId, PlayRequestInternal playRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (playRequest == null) + if (playRequestInternal == null) { - throw new ArgumentNullException(nameof(playRequest)); + throw new ArgumentNullException(nameof(playRequestInternal)); } - using var message = CreatePlayRequest(callConnectionId, playRequest); + using var message = CreatePlayRequest(callConnectionId, playRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -85,21 +85,21 @@ public async Task PlayAsync(string callConnectionId, PlayRequestIntern /// Plays audio to participants in the call. /// The to use. - /// The to use. + /// The to use. /// The cancellation token to use. - /// or is null. - public Response Play(string callConnectionId, PlayRequestInternal playRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Play(string callConnectionId, PlayRequestInternal playRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (playRequest == null) + if (playRequestInternal == null) { - throw new ArgumentNullException(nameof(playRequest)); + throw new ArgumentNullException(nameof(playRequestInternal)); } - using var message = CreatePlayRequest(callConnectionId, playRequest); + using var message = CreatePlayRequest(callConnectionId, playRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -169,7 +169,7 @@ public Response CancelAllMediaOperations(string callConnectionId, CancellationTo } } - internal HttpMessage CreateRecognizeRequest(string callConnectionId, RecognizeRequestInternal recognizeRequest) + internal HttpMessage CreateRecognizeRequest(string callConnectionId, RecognizeRequestInternal recognizeRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -183,28 +183,28 @@ internal HttpMessage CreateRecognizeRequest(string callConnectionId, RecognizeRe request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(recognizeRequest); + content.JsonWriter.WriteObjectValue(recognizeRequestInternal); request.Content = content; return message; } /// Recognize media from call. /// The call connection id. - /// The media recognize request. + /// The media recognize request. /// The cancellation token to use. - /// or is null. - public async Task RecognizeAsync(string callConnectionId, RecognizeRequestInternal recognizeRequest, CancellationToken cancellationToken = default) + /// or is null. + public async Task RecognizeAsync(string callConnectionId, RecognizeRequestInternal recognizeRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (recognizeRequest == null) + if (recognizeRequestInternal == null) { - throw new ArgumentNullException(nameof(recognizeRequest)); + throw new ArgumentNullException(nameof(recognizeRequestInternal)); } - using var message = CreateRecognizeRequest(callConnectionId, recognizeRequest); + using var message = CreateRecognizeRequest(callConnectionId, recognizeRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -217,21 +217,21 @@ public async Task RecognizeAsync(string callConnectionId, RecognizeReq /// Recognize media from call. /// The call connection id. - /// The media recognize request. + /// The media recognize request. /// The cancellation token to use. - /// or is null. - public Response Recognize(string callConnectionId, RecognizeRequestInternal recognizeRequest, CancellationToken cancellationToken = default) + /// or is null. + public Response Recognize(string callConnectionId, RecognizeRequestInternal recognizeRequestInternal, CancellationToken cancellationToken = default) { if (callConnectionId == null) { throw new ArgumentNullException(nameof(callConnectionId)); } - if (recognizeRequest == null) + if (recognizeRequestInternal == null) { - throw new ArgumentNullException(nameof(recognizeRequest)); + throw new ArgumentNullException(nameof(recognizeRequestInternal)); } - using var message = CreateRecognizeRequest(callConnectionId, recognizeRequest); + using var message = CreateRecognizeRequest(callConnectionId, recognizeRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/ServerCallingRestClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/ServerCallingRestClient.cs index 6b253bdf1be83..535960e7d04ca 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/ServerCallingRestClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/ServerCallingRestClient.cs @@ -37,7 +37,7 @@ public ServerCallingRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateCreateCallRequest(CreateCallRequestInternal createCallRequest) + internal HttpMessage CreateCreateCallRequest(CreateCallRequestInternal createCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -52,23 +52,23 @@ internal HttpMessage CreateCreateCallRequest(CreateCallRequestInternal createCal request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(createCallRequest); + content.JsonWriter.WriteObjectValue(createCallRequestInternal); request.Content = content; return message; } /// Create an outbound call. - /// The create call request. + /// The create call request. /// The cancellation token to use. - /// is null. - public async Task> CreateCallAsync(CreateCallRequestInternal createCallRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> CreateCallAsync(CreateCallRequestInternal createCallRequestInternal, CancellationToken cancellationToken = default) { - if (createCallRequest == null) + if (createCallRequestInternal == null) { - throw new ArgumentNullException(nameof(createCallRequest)); + throw new ArgumentNullException(nameof(createCallRequestInternal)); } - using var message = CreateCreateCallRequest(createCallRequest); + using var message = CreateCreateCallRequest(createCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -85,17 +85,17 @@ public async Task> CreateCallAsync(Cr } /// Create an outbound call. - /// The create call request. + /// The create call request. /// The cancellation token to use. - /// is null. - public Response CreateCall(CreateCallRequestInternal createCallRequest, CancellationToken cancellationToken = default) + /// is null. + public Response CreateCall(CreateCallRequestInternal createCallRequestInternal, CancellationToken cancellationToken = default) { - if (createCallRequest == null) + if (createCallRequestInternal == null) { - throw new ArgumentNullException(nameof(createCallRequest)); + throw new ArgumentNullException(nameof(createCallRequestInternal)); } - using var message = CreateCreateCallRequest(createCallRequest); + using var message = CreateCreateCallRequest(createCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -111,7 +111,7 @@ public Response CreateCall(CreateCallRequestIn } } - internal HttpMessage CreateAnswerCallRequest(AnswerCallRequestInternal answerCallRequest) + internal HttpMessage CreateAnswerCallRequest(AnswerCallRequestInternal answerCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -126,24 +126,24 @@ internal HttpMessage CreateAnswerCallRequest(AnswerCallRequestInternal answerCal request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(answerCallRequest); + content.JsonWriter.WriteObjectValue(answerCallRequestInternal); request.Content = content; return message; } /// Answer a Call. - /// The answer call request. + /// The answer call request. /// The cancellation token to use. - /// is null. + /// is null. /// Answer a call using the IncomingCallContext from Event Grid. - public async Task> AnswerCallAsync(AnswerCallRequestInternal answerCallRequest, CancellationToken cancellationToken = default) + public async Task> AnswerCallAsync(AnswerCallRequestInternal answerCallRequestInternal, CancellationToken cancellationToken = default) { - if (answerCallRequest == null) + if (answerCallRequestInternal == null) { - throw new ArgumentNullException(nameof(answerCallRequest)); + throw new ArgumentNullException(nameof(answerCallRequestInternal)); } - using var message = CreateAnswerCallRequest(answerCallRequest); + using var message = CreateAnswerCallRequest(answerCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -160,18 +160,18 @@ public async Task> AnswerCallAsync(An } /// Answer a Call. - /// The answer call request. + /// The answer call request. /// The cancellation token to use. - /// is null. + /// is null. /// Answer a call using the IncomingCallContext from Event Grid. - public Response AnswerCall(AnswerCallRequestInternal answerCallRequest, CancellationToken cancellationToken = default) + public Response AnswerCall(AnswerCallRequestInternal answerCallRequestInternal, CancellationToken cancellationToken = default) { - if (answerCallRequest == null) + if (answerCallRequestInternal == null) { - throw new ArgumentNullException(nameof(answerCallRequest)); + throw new ArgumentNullException(nameof(answerCallRequestInternal)); } - using var message = CreateAnswerCallRequest(answerCallRequest); + using var message = CreateAnswerCallRequest(answerCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -187,7 +187,7 @@ public Response AnswerCall(AnswerCallRequestIn } } - internal HttpMessage CreateRedirectCallRequest(RedirectCallRequestInternal redirectCallRequest) + internal HttpMessage CreateRedirectCallRequest(RedirectCallRequestInternal redirectCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -201,23 +201,23 @@ internal HttpMessage CreateRedirectCallRequest(RedirectCallRequestInternal redir request.Headers.Add("Repeatability-First-Sent", DateTimeOffset.Now, "R"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(redirectCallRequest); + content.JsonWriter.WriteObjectValue(redirectCallRequestInternal); request.Content = content; return message; } /// Redirect a call. - /// The to use. + /// The to use. /// The cancellation token to use. - /// is null. - public async Task RedirectCallAsync(RedirectCallRequestInternal redirectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task RedirectCallAsync(RedirectCallRequestInternal redirectCallRequestInternal, CancellationToken cancellationToken = default) { - if (redirectCallRequest == null) + if (redirectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(redirectCallRequest)); + throw new ArgumentNullException(nameof(redirectCallRequestInternal)); } - using var message = CreateRedirectCallRequest(redirectCallRequest); + using var message = CreateRedirectCallRequest(redirectCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -229,17 +229,17 @@ public async Task RedirectCallAsync(RedirectCallRequestInternal redire } /// Redirect a call. - /// The to use. + /// The to use. /// The cancellation token to use. - /// is null. - public Response RedirectCall(RedirectCallRequestInternal redirectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public Response RedirectCall(RedirectCallRequestInternal redirectCallRequestInternal, CancellationToken cancellationToken = default) { - if (redirectCallRequest == null) + if (redirectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(redirectCallRequest)); + throw new ArgumentNullException(nameof(redirectCallRequestInternal)); } - using var message = CreateRedirectCallRequest(redirectCallRequest); + using var message = CreateRedirectCallRequest(redirectCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -250,7 +250,7 @@ public Response RedirectCall(RedirectCallRequestInternal redirectCallRequest, Ca } } - internal HttpMessage CreateRejectCallRequest(RejectCallRequestInternal rejectCallRequest) + internal HttpMessage CreateRejectCallRequest(RejectCallRequestInternal rejectCallRequestInternal) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -264,23 +264,23 @@ internal HttpMessage CreateRejectCallRequest(RejectCallRequestInternal rejectCal request.Headers.Add("Repeatability-First-Sent", DateTimeOffset.Now, "R"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(rejectCallRequest); + content.JsonWriter.WriteObjectValue(rejectCallRequestInternal); request.Content = content; return message; } /// Reject the call. - /// The reject call request. + /// The reject call request. /// The cancellation token to use. - /// is null. - public async Task RejectCallAsync(RejectCallRequestInternal rejectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task RejectCallAsync(RejectCallRequestInternal rejectCallRequestInternal, CancellationToken cancellationToken = default) { - if (rejectCallRequest == null) + if (rejectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(rejectCallRequest)); + throw new ArgumentNullException(nameof(rejectCallRequestInternal)); } - using var message = CreateRejectCallRequest(rejectCallRequest); + using var message = CreateRejectCallRequest(rejectCallRequestInternal); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -292,17 +292,17 @@ public async Task RejectCallAsync(RejectCallRequestInternal rejectCall } /// Reject the call. - /// The reject call request. + /// The reject call request. /// The cancellation token to use. - /// is null. - public Response RejectCall(RejectCallRequestInternal rejectCallRequest, CancellationToken cancellationToken = default) + /// is null. + public Response RejectCall(RejectCallRequestInternal rejectCallRequestInternal, CancellationToken cancellationToken = default) { - if (rejectCallRequest == null) + if (rejectCallRequestInternal == null) { - throw new ArgumentNullException(nameof(rejectCallRequest)); + throw new ArgumentNullException(nameof(rejectCallRequestInternal)); } - using var message = CreateRejectCallRequest(rejectCallRequest); + using var message = CreateRejectCallRequest(rejectCallRequestInternal); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { From fa2b70063370f9973c6b2e2d819f1806e52cce01 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 10:29:17 +0000 Subject: [PATCH 6/8] Update SDK codes mi_pu_4 --- .../src/Generated/MixedRealityStsRestClient.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/MixedRealityStsRestClient.cs b/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/MixedRealityStsRestClient.cs index 5a2f0e403fb35..6c27029dac1eb 100644 --- a/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/MixedRealityStsRestClient.cs +++ b/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/MixedRealityStsRestClient.cs @@ -37,7 +37,7 @@ public MixedRealityStsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeli _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateGetTokenRequest(Guid accountId, MixedRealityTokenRequestOptions tokenRequestOptions) + internal HttpMessage CreateGetTokenRequest(Guid accountId, MixedRealityTokenRequestOptions mixedRealityTokenRequestOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -49,9 +49,9 @@ internal HttpMessage CreateGetTokenRequest(Guid accountId, MixedRealityTokenRequ uri.AppendPath("/token", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - if (tokenRequestOptions?.ClientRequestId != null) + if (mixedRealityTokenRequestOptions?.ClientRequestId != null) { - request.Headers.Add("X-MRC-CV", tokenRequestOptions.ClientRequestId); + request.Headers.Add("X-MRC-CV", mixedRealityTokenRequestOptions.ClientRequestId); } request.Headers.Add("Accept", "application/json"); return message; @@ -59,11 +59,11 @@ internal HttpMessage CreateGetTokenRequest(Guid accountId, MixedRealityTokenRequ /// Gets an access token to be used with Mixed Reality services. /// The Mixed Reality account identifier. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public async Task> GetTokenAsync(Guid accountId, MixedRealityTokenRequestOptions tokenRequestOptions = null, CancellationToken cancellationToken = default) + public async Task> GetTokenAsync(Guid accountId, MixedRealityTokenRequestOptions mixedRealityTokenRequestOptions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetTokenRequest(accountId, tokenRequestOptions); + using var message = CreateGetTokenRequest(accountId, mixedRealityTokenRequestOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); var headers = new MixedRealityStsGetTokenHeaders(message.Response); switch (message.Response.Status) @@ -82,11 +82,11 @@ public async Task Gets an access token to be used with Mixed Reality services. /// The Mixed Reality account identifier. - /// Parameter group. + /// Parameter group. /// The cancellation token to use. - public ResponseWithHeaders GetToken(Guid accountId, MixedRealityTokenRequestOptions tokenRequestOptions = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders GetToken(Guid accountId, MixedRealityTokenRequestOptions mixedRealityTokenRequestOptions = null, CancellationToken cancellationToken = default) { - using var message = CreateGetTokenRequest(accountId, tokenRequestOptions); + using var message = CreateGetTokenRequest(accountId, mixedRealityTokenRequestOptions); _pipeline.Send(message, cancellationToken); var headers = new MixedRealityStsGetTokenHeaders(message.Response); switch (message.Response.Status) From ff0b385245df5a1ced0f7f7059267e789a179ab9 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 10:34:53 +0000 Subject: [PATCH 7/8] Update SDK codes pu_sq_5 --- .../src/Generated/DocumentsRestClient.cs | 84 +++++++++---------- .../src/Generated/SkillsetsRestClient.cs | 28 +++---- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs index f6b4319938109..f86ce480b4b98 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs @@ -103,7 +103,7 @@ public Response Count(CancellationToken cancellationToken = default) } } - internal HttpMessage CreateSearchPostRequest(SearchOptions searchRequest) + internal HttpMessage CreateSearchPostRequest(SearchOptions searchOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -119,23 +119,23 @@ internal HttpMessage CreateSearchPostRequest(SearchOptions searchRequest) request.Headers.Add("Accept", "application/json; odata.metadata=none"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(searchRequest); + content.JsonWriter.WriteObjectValue(searchOptions); request.Content = content; return message; } /// Searches for documents in the index. - /// The definition of the Search request. + /// The definition of the Search request. /// The cancellation token to use. - /// is null. - public async Task> SearchPostAsync(SearchOptions searchRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> SearchPostAsync(SearchOptions searchOptions, CancellationToken cancellationToken = default) { - if (searchRequest == null) + if (searchOptions == null) { - throw new ArgumentNullException(nameof(searchRequest)); + throw new ArgumentNullException(nameof(searchOptions)); } - using var message = CreateSearchPostRequest(searchRequest); + using var message = CreateSearchPostRequest(searchOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -152,17 +152,17 @@ public async Task> SearchPostAsync(SearchOptions } /// Searches for documents in the index. - /// The definition of the Search request. + /// The definition of the Search request. /// The cancellation token to use. - /// is null. - public Response SearchPost(SearchOptions searchRequest, CancellationToken cancellationToken = default) + /// is null. + public Response SearchPost(SearchOptions searchOptions, CancellationToken cancellationToken = default) { - if (searchRequest == null) + if (searchOptions == null) { - throw new ArgumentNullException(nameof(searchRequest)); + throw new ArgumentNullException(nameof(searchOptions)); } - using var message = CreateSearchPostRequest(searchRequest); + using var message = CreateSearchPostRequest(searchOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -281,7 +281,7 @@ public Response> Get(string key, IEnumerable } } - internal HttpMessage CreateSuggestPostRequest(SuggestOptions suggestRequest) + internal HttpMessage CreateSuggestPostRequest(SuggestOptions suggestOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -297,23 +297,23 @@ internal HttpMessage CreateSuggestPostRequest(SuggestOptions suggestRequest) request.Headers.Add("Accept", "application/json; odata.metadata=none"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(suggestRequest); + content.JsonWriter.WriteObjectValue(suggestOptions); request.Content = content; return message; } /// Suggests documents in the index that match the given partial query text. - /// The Suggest request. + /// The Suggest request. /// The cancellation token to use. - /// is null. - public async Task> SuggestPostAsync(SuggestOptions suggestRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> SuggestPostAsync(SuggestOptions suggestOptions, CancellationToken cancellationToken = default) { - if (suggestRequest == null) + if (suggestOptions == null) { - throw new ArgumentNullException(nameof(suggestRequest)); + throw new ArgumentNullException(nameof(suggestOptions)); } - using var message = CreateSuggestPostRequest(suggestRequest); + using var message = CreateSuggestPostRequest(suggestOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -330,17 +330,17 @@ public async Task> SuggestPostAsync(SuggestOpti } /// Suggests documents in the index that match the given partial query text. - /// The Suggest request. + /// The Suggest request. /// The cancellation token to use. - /// is null. - public Response SuggestPost(SuggestOptions suggestRequest, CancellationToken cancellationToken = default) + /// is null. + public Response SuggestPost(SuggestOptions suggestOptions, CancellationToken cancellationToken = default) { - if (suggestRequest == null) + if (suggestOptions == null) { - throw new ArgumentNullException(nameof(suggestRequest)); + throw new ArgumentNullException(nameof(suggestOptions)); } - using var message = CreateSuggestPostRequest(suggestRequest); + using var message = CreateSuggestPostRequest(suggestOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -433,7 +433,7 @@ public Response Index(IndexBatch batch, CancellationToken } } - internal HttpMessage CreateAutocompletePostRequest(AutocompleteOptions autocompleteRequest) + internal HttpMessage CreateAutocompletePostRequest(AutocompleteOptions autocompleteOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -449,23 +449,23 @@ internal HttpMessage CreateAutocompletePostRequest(AutocompleteOptions autocompl request.Headers.Add("Accept", "application/json; odata.metadata=none"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(autocompleteRequest); + content.JsonWriter.WriteObjectValue(autocompleteOptions); request.Content = content; return message; } /// Autocompletes incomplete query terms based on input text and matching terms in the index. - /// The definition of the Autocomplete request. + /// The definition of the Autocomplete request. /// The cancellation token to use. - /// is null. - public async Task> AutocompletePostAsync(AutocompleteOptions autocompleteRequest, CancellationToken cancellationToken = default) + /// is null. + public async Task> AutocompletePostAsync(AutocompleteOptions autocompleteOptions, CancellationToken cancellationToken = default) { - if (autocompleteRequest == null) + if (autocompleteOptions == null) { - throw new ArgumentNullException(nameof(autocompleteRequest)); + throw new ArgumentNullException(nameof(autocompleteOptions)); } - using var message = CreateAutocompletePostRequest(autocompleteRequest); + using var message = CreateAutocompletePostRequest(autocompleteOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -482,17 +482,17 @@ public async Task> AutocompletePostAsync(Autocompl } /// Autocompletes incomplete query terms based on input text and matching terms in the index. - /// The definition of the Autocomplete request. + /// The definition of the Autocomplete request. /// The cancellation token to use. - /// is null. - public Response AutocompletePost(AutocompleteOptions autocompleteRequest, CancellationToken cancellationToken = default) + /// is null. + public Response AutocompletePost(AutocompleteOptions autocompleteOptions, CancellationToken cancellationToken = default) { - if (autocompleteRequest == null) + if (autocompleteOptions == null) { - throw new ArgumentNullException(nameof(autocompleteRequest)); + throw new ArgumentNullException(nameof(autocompleteOptions)); } - using var message = CreateAutocompletePostRequest(autocompleteRequest); + using var message = CreateAutocompletePostRequest(autocompleteOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs index bd041fd4340a4..2cbb5a7f66d5c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs @@ -429,7 +429,7 @@ public Response Create(SearchIndexerSkillset skillset, Ca } } - internal HttpMessage CreateResetSkillsRequest(string skillsetName, ResetSkillsOptions skillNames) + internal HttpMessage CreateResetSkillsRequest(string skillsetName, ResetSkillsOptions resetSkillsOptions) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -444,28 +444,28 @@ internal HttpMessage CreateResetSkillsRequest(string skillsetName, ResetSkillsOp request.Headers.Add("Accept", "application/json; odata.metadata=minimal"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(skillNames); + content.JsonWriter.WriteObjectValue(resetSkillsOptions); request.Content = content; return message; } /// Reset an existing skillset in a search service. /// The name of the skillset to reset. - /// The names of skills to reset. + /// The names of skills to reset. /// The cancellation token to use. - /// or is null. - public async Task ResetSkillsAsync(string skillsetName, ResetSkillsOptions skillNames, CancellationToken cancellationToken = default) + /// or is null. + public async Task ResetSkillsAsync(string skillsetName, ResetSkillsOptions resetSkillsOptions, CancellationToken cancellationToken = default) { if (skillsetName == null) { throw new ArgumentNullException(nameof(skillsetName)); } - if (skillNames == null) + if (resetSkillsOptions == null) { - throw new ArgumentNullException(nameof(skillNames)); + throw new ArgumentNullException(nameof(resetSkillsOptions)); } - using var message = CreateResetSkillsRequest(skillsetName, skillNames); + using var message = CreateResetSkillsRequest(skillsetName, resetSkillsOptions); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -478,21 +478,21 @@ public async Task ResetSkillsAsync(string skillsetName, ResetSkillsOpt /// Reset an existing skillset in a search service. /// The name of the skillset to reset. - /// The names of skills to reset. + /// The names of skills to reset. /// The cancellation token to use. - /// or is null. - public Response ResetSkills(string skillsetName, ResetSkillsOptions skillNames, CancellationToken cancellationToken = default) + /// or is null. + public Response ResetSkills(string skillsetName, ResetSkillsOptions resetSkillsOptions, CancellationToken cancellationToken = default) { if (skillsetName == null) { throw new ArgumentNullException(nameof(skillsetName)); } - if (skillNames == null) + if (resetSkillsOptions == null) { - throw new ArgumentNullException(nameof(skillNames)); + throw new ArgumentNullException(nameof(resetSkillsOptions)); } - using var message = CreateResetSkillsRequest(skillsetName, skillNames); + using var message = CreateResetSkillsRequest(skillsetName, resetSkillsOptions); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { From b107ba94743595c4aaac2bd24803153ff8b82ae2 Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Fri, 12 Jul 2024 14:02:16 +0800 Subject: [PATCH 8/8] fix compilation error due to parameter name changes --- .../src/CallAutomationClient.cs | 4 +- .../src/BlobServiceClient.cs | 4 +- .../src/ShareClient.cs | 28 +++++------ .../src/ShareFileClient.cs | 48 +++++++++---------- .../src/ShareLeaseClient.cs | 8 ++-- .../src/ShareServiceClient.cs | 4 +- .../src/QueueServiceClient.cs | 4 +- 7 files changed, 50 insertions(+), 50 deletions(-) diff --git a/sdk/communication/Azure.Communication.CallingServer/src/CallAutomationClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/CallAutomationClient.cs index 7818abb58da65..081098c4f441e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/CallAutomationClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/CallAutomationClient.cs @@ -338,7 +338,7 @@ public virtual async Task> CreateCallAsync(CreateCall CreateCallRequestInternal request = CreateCallRequest(options); var createCallResponse = await ServerCallingRestClient.CreateCallAsync( - createCallRequest: request, + createCallRequestInternal: request, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -391,7 +391,7 @@ public virtual Response CreateCall(CreateCallOptions options, CreateCallRequestInternal request = CreateCallRequest(options); var createCallResponse = ServerCallingRestClient.CreateCall( - createCallRequest: request, + createCallRequestInternal: request, cancellationToken: cancellationToken ); diff --git a/sdk/storage/Azure.Storage.Blobs/src/BlobServiceClient.cs b/sdk/storage/Azure.Storage.Blobs/src/BlobServiceClient.cs index c0b0954ac9079..cc867bcdce9d9 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/BlobServiceClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/BlobServiceClient.cs @@ -1276,14 +1276,14 @@ private async Task SetPropertiesInternal( if (async) { response = await ServiceRestClient.SetPropertiesAsync( - storageServiceProperties: properties, + blobServiceProperties: properties, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = ServiceRestClient.SetProperties( - storageServiceProperties: properties, + blobServiceProperties: properties, cancellationToken: cancellationToken); } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/ShareClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/ShareClient.cs index 8e8bd32d3781b..b9a5f2101ee2c 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/ShareClient.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/ShareClient.cs @@ -1649,7 +1649,7 @@ internal async Task DeleteInternal( { response = await ShareRestClient.DeleteAsync( deleteSnapshots: shareSnapshotsDeleteOption.ToShareSnapshotsDeleteOptionInternal(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -1657,7 +1657,7 @@ internal async Task DeleteInternal( { response = ShareRestClient.Delete( deleteSnapshots: shareSnapshotsDeleteOption.ToShareSnapshotsDeleteOptionInternal(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -1866,14 +1866,14 @@ private async Task> GetPropertiesInternal( if (async) { response = await ShareRestClient.GetPropertiesAsync( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = ShareRestClient.GetProperties( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -2047,7 +2047,7 @@ internal virtual async Task> SetPropertiesInternal( accessTier: accessTier, rootSquash: rootSquash, enableSnapshotVirtualDirectoryAccess: enableSnapshotVirtualDirectoryAccess, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -2058,7 +2058,7 @@ internal virtual async Task> SetPropertiesInternal( accessTier: accessTier, rootSquash: rootSquash, enableSnapshotVirtualDirectoryAccess: enableSnapshotVirtualDirectoryAccess, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -2454,7 +2454,7 @@ private async Task> SetMetadataInternal( { response = await ShareRestClient.SetMetadataAsync( metadata: metadata, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -2462,7 +2462,7 @@ private async Task> SetMetadataInternal( { response = ShareRestClient.SetMetadata( metadata: metadata, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -2667,14 +2667,14 @@ private async Task>> GetAccessPolicy if (async) { response = await ShareRestClient.GetAccessPolicyAsync( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = ShareRestClient.GetAccessPolicy( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -2915,7 +2915,7 @@ private async Task> SetAccessPolicyInternal( { response = await ShareRestClient.SetAccessPolicyAsync( shareAcl: permissions, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -2923,7 +2923,7 @@ private async Task> SetAccessPolicyInternal( { response = ShareRestClient.SetAccessPolicy( shareAcl: permissions, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -3119,14 +3119,14 @@ private async Task> GetStatisticsInternal( if (async) { response = await ShareRestClient.GetStatisticsAsync( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = ShareRestClient.GetStatistics( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/ShareFileClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/ShareFileClient.cs index 5091d1b47a2c4..771a4f1d59ee2 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/ShareFileClient.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/ShareFileClient.cs @@ -870,7 +870,7 @@ private async Task> CreateInternal( filePermission: filePermission, filePermissionKey: smbProps.FilePermissionKey, fileHttpHeaders: httpHeaders.ToFileHttpHeaders(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -886,7 +886,7 @@ private async Task> CreateInternal( filePermission: filePermission, filePermissionKey: smbProps.FilePermissionKey, fileHttpHeaders: httpHeaders.ToFileHttpHeaders(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -1654,7 +1654,7 @@ private async Task> StartCopyInternal( filePermission: filePermission, filePermissionKey: smbProperties?.FilePermissionKey, copyFileSmbInfo: copyFileSmbInfo, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -1666,7 +1666,7 @@ private async Task> StartCopyInternal( filePermission: filePermission, filePermissionKey: smbProperties?.FilePermissionKey, copyFileSmbInfo: copyFileSmbInfo, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -1885,7 +1885,7 @@ private async Task AbortCopyInternal( { response = await FileRestClient.AbortCopyAsync( copyId: copyId, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -1893,7 +1893,7 @@ private async Task AbortCopyInternal( { response = FileRestClient.AbortCopy( copyId: copyId, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -2414,7 +2414,7 @@ await ContentHasher.AssertResponseHashMatchInternal( response = await FileRestClient.DownloadAsync( range: pageRange == default ? null : pageRange.ToString(), rangeGetContentMD5: transferValidationOverride?.ChecksumAlgorithm.ResolveAuto() == StorageChecksumAlgorithm.MD5 ? true : null, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -2423,7 +2423,7 @@ await ContentHasher.AssertResponseHashMatchInternal( response = FileRestClient.Download( range: pageRange == default ? null : pageRange.ToString(), rangeGetContentMD5: transferValidationOverride?.ChecksumAlgorithm.ResolveAuto() == StorageChecksumAlgorithm.MD5 ? true : null, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -2970,14 +2970,14 @@ private async Task DeleteInternal( if (async) { response = await FileRestClient.DeleteAsync( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = FileRestClient.Delete( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -3190,14 +3190,14 @@ private async Task> GetPropertiesInternal( if (async) { response = await FileRestClient.GetPropertiesAsync( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = FileRestClient.GetProperties( - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -3531,7 +3531,7 @@ private async Task> SetHttpHeadersInternal( filePermissionKey: smbProps.FilePermissionKey, fileChangeTime: smbProps.FileChangedOn.ToFileDateTimeString(), fileHttpHeaders: httpHeaders.ToFileHttpHeaders(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -3546,7 +3546,7 @@ private async Task> SetHttpHeadersInternal( filePermissionKey: smbProps.FilePermissionKey, fileChangeTime: smbProps.FileChangedOn.ToFileDateTimeString(), fileHttpHeaders: httpHeaders.ToFileHttpHeaders(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -3771,7 +3771,7 @@ private async Task> SetMetadataInternal( { response = await FileRestClient.SetMetadataAsync( metadata: metadata, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -3779,7 +3779,7 @@ private async Task> SetMetadataInternal( { response = FileRestClient.SetMetadata( metadata: metadata, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -3937,7 +3937,7 @@ private async Task> ClearRangeInternal( contentLength: 0, // TODO remove this optionalbody: new MemoryStream(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -3949,7 +3949,7 @@ private async Task> ClearRangeInternal( contentLength: 0, // TODO remove this optionalbody: new MemoryStream(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -4432,7 +4432,7 @@ internal async Task> UploadRangeInternal( fileLastWrittenMode: fileLastWrittenMode, optionalbody: content, contentMD5: hashResult?.MD5AsArray, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -4445,7 +4445,7 @@ internal async Task> UploadRangeInternal( fileLastWrittenMode: fileLastWrittenMode, optionalbody: content, contentMD5: hashResult?.MD5AsArray, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -4834,7 +4834,7 @@ private async Task> UploadRangeFromUriInternal( sourceRange: sourceRange.ToString(), copySourceAuthorization: sourceAuthentication?.ToString(), fileLastWrittenMode: fileLastWrittenMode, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -4847,7 +4847,7 @@ private async Task> UploadRangeFromUriInternal( sourceRange: sourceRange.ToString(), copySourceAuthorization: sourceAuthentication?.ToString(), fileLastWrittenMode: fileLastWrittenMode, - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } @@ -5619,7 +5619,7 @@ private async Task> GetRangeListInternal( prevsharesnapshot: previousSnapshot, supportRename: supportRename, range: range?.ToString(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -5630,7 +5630,7 @@ private async Task> GetRangeListInternal( prevsharesnapshot: previousSnapshot, supportRename: supportRename, range: range?.ToString(), - leaseAccessConditions: conditions, + shareFileRequestConditions: conditions, cancellationToken: cancellationToken); } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/ShareLeaseClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/ShareLeaseClient.cs index 3f1ea0458790b..32a8e1935a552 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/ShareLeaseClient.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/ShareLeaseClient.cs @@ -861,14 +861,14 @@ private async Task> BreakInternal( if (async) { response = await FileClient.FileRestClient.BreakLeaseAsync( - leaseAccessConditions: null, + shareFileRequestConditions: null, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = FileClient.FileRestClient.BreakLease( - leaseAccessConditions: null, + shareFileRequestConditions: null, cancellationToken: cancellationToken); } @@ -884,7 +884,7 @@ private async Task> BreakInternal( { response = await ShareClient.ShareRestClient.BreakLeaseAsync( breakPeriod: null, - leaseAccessConditions: null, + shareFileRequestConditions: null, cancellationToken: cancellationToken) .ConfigureAwait(false); } @@ -892,7 +892,7 @@ private async Task> BreakInternal( { response = ShareClient.ShareRestClient.BreakLease( breakPeriod: null, - leaseAccessConditions: null, + shareFileRequestConditions: null, cancellationToken: cancellationToken); } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/ShareServiceClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/ShareServiceClient.cs index 83b764accd8c9..2f624c8317558 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/ShareServiceClient.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/ShareServiceClient.cs @@ -819,14 +819,14 @@ private async Task SetPropertiesInternal( if (async) { response = await ServiceRestClient.SetPropertiesAsync( - storageServiceProperties: properties, + shareServiceProperties: properties, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = ServiceRestClient.SetProperties( - storageServiceProperties: properties, + shareServiceProperties: properties, cancellationToken: cancellationToken); } diff --git a/sdk/storage/Azure.Storage.Queues/src/QueueServiceClient.cs b/sdk/storage/Azure.Storage.Queues/src/QueueServiceClient.cs index 1afb4df923509..041cab4cc2b69 100644 --- a/sdk/storage/Azure.Storage.Queues/src/QueueServiceClient.cs +++ b/sdk/storage/Azure.Storage.Queues/src/QueueServiceClient.cs @@ -718,14 +718,14 @@ private async Task SetPropertiesInternal( if (async) { response = await _serviceRestClient.SetPropertiesAsync( - storageServiceProperties: properties, + queueServiceProperties: properties, cancellationToken: cancellationToken) .ConfigureAwait(false); } else { response = _serviceRestClient.SetProperties( - storageServiceProperties: properties, + queueServiceProperties: properties, cancellationToken: cancellationToken); }