From e5cd8f66d845e7b677a20e2d4376e52e09fd987d Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 01:58:42 +0000 Subject: [PATCH 1/9] Initialize repository for autorest build 20240711.6 --- eng/Packages.Data.props | 2 +- eng/emitter-package-lock.json | 16 ++++++++-------- eng/emitter-package.json | 5 ++++- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 53c61afeab195..b5913b9bbac08 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 1b900f546b036..5f8de92920ebf 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.20240711.1" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240711.6.tgz" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.43.0", @@ -22,9 +22,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240711.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240711.1.tgz", - "integrity": "sha512-gZNbt8UqtTkTWVvmKIG6PifZRKvsvJbZk74gKvTruxxmnMJru8rct+xUwzfvio8eQmo5Z0xvrUAnSNCF7/0+DA==" + "version": "3.0.0-alpha.20240711.6", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240711.6.tgz", + "integrity": "sha512-b3UH+FX25pJ2ELUcMCQpX4n8rsAk/e6fCtUXFaaKLtMVDAfJt6gqfZqi5ZIpGf3aMHQv4Ki0+effXOa0NHipFw==" }, "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.20240711.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240711.1.tgz", - "integrity": "sha512-Y/gYQR/cPnPYZyORTEIM7Gvh2NrWOpRlwJE5bRDUx3n0rG+bOtmbqfrLaMSav/E/EPwA4bRO6KpK84XzZYQhoA==", + "version": "0.2.0-alpha.20240711.6", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240711.6.tgz", + "integrity": "sha512-I5MmR/KLrvGx8yChSpDInYXRV3dWAFhwm1Z8U6uOubQO5B9pcel0U8OiiZwkOcsk2qACdzQ1H/c2g2SheR6GVg==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240711.1", + "@autorest/csharp": "3.0.0-alpha.20240711.6", "json-serialize-refs": "0.1.0-0" }, "peerDependencies": { diff --git a/eng/emitter-package.json b/eng/emitter-package.json index cb79576a6d7fe..9e479999e5d85 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.20240711.1" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240711.6.tgz" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.43.0", @@ -15,5 +15,8 @@ "@typespec/rest": "0.57.0", "@typespec/versioning": "0.57.0", "@typespec/xml": "0.57.0" + }, + "overrides": { + "@autorest/csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240711.6.tgz" } } From 723398c3ee86a1a0ceaba1b009bd5aff3be10960 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:11:28 +0000 Subject: [PATCH 2/9] Update SDK code ba_co_1 --- .../src/Generated/tspCodeModel.json | 616 +++++++++--------- ...ionProgrammableConnectivityModelFactory.cs | 70 +- .../ProgrammableConnectivityClient.cs | 2 +- 3 files changed, 344 insertions(+), 344 deletions(-) diff --git a/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json b/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json index fc12a52cfd2af..7697a9069b251 100644 --- a/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json +++ b/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json @@ -140,8 +140,8 @@ { "$id": "22", "Kind": "enum", - "Name": "RepeatabilityResult", - "CrossLanguageDefinitionId": "Azure.Core.RepeatabilityResult", + "Name": "Versions", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.Versions", "ValueType": { "$id": "23", "Kind": "string" @@ -149,51 +149,45 @@ "Values": [ { "$id": "24", - "Name": "accepted", - "Value": "accepted", - "Description": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation." - }, - { - "$id": "25", - "Name": "rejected", - "Value": "rejected", - "Description": "If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid\nor because the Repeatability-First-Sent value was outside the range of values held by the server." + "Name": "c2024_02_01", + "Value": "2024-02-01", + "Description": "Azure Communication Messages 2024-02-01 api version" } ], - "Description": "Repeatability Result header options", + "Description": "Azure Communication Messages Versions", "IsExtensible": false, - "Usage": "Output" + "Usage": "None" }, { - "$id": "26", + "$id": "25", "Kind": "enum", "Name": "MessageTemplateStatus", "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateStatus", "ValueType": { - "$id": "27", + "$id": "26", "Kind": "string" }, "Values": [ { - "$id": "28", + "$id": "27", "Name": "approved", "Value": "approved", "Description": "Message template is approved." }, { - "$id": "29", + "$id": "28", "Name": "rejected", "Value": "rejected", "Description": "Message template is rejected." }, { - "$id": "30", + "$id": "29", "Name": "pending", "Value": "pending", "Description": "Message template is pending." }, { - "$id": "31", + "$id": "30", "Name": "paused", "Value": "paused", "Description": "Message template is paused." @@ -204,17 +198,17 @@ "Usage": "Output" }, { - "$id": "32", + "$id": "31", "Kind": "enum", "Name": "CommunicationMessagesChannel", "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessagesChannel", "ValueType": { - "$id": "33", + "$id": "32", "Kind": "string" }, "Values": [ { - "$id": "34", + "$id": "33", "Name": "whatsApp", "Value": "whatsApp", "Description": "The WhatsApp communication messages channel type." @@ -225,23 +219,29 @@ "Usage": "Output" }, { - "$id": "35", + "$id": "34", "Kind": "enum", - "Name": "Versions", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.Versions", + "Name": "RepeatabilityResult", + "CrossLanguageDefinitionId": "Azure.Core.RepeatabilityResult", "ValueType": { - "$id": "36", + "$id": "35", "Kind": "string" }, "Values": [ + { + "$id": "36", + "Name": "accepted", + "Value": "accepted", + "Description": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation." + }, { "$id": "37", - "Name": "c2024_02_01", - "Value": "2024-02-01", - "Description": "Azure Communication Messages 2024-02-01 api version" + "Name": "rejected", + "Value": "rejected", + "Description": "If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid\nor because the Repeatability-First-Sent value was outside the range of values held by the server." } ], - "Description": "Azure Communication Messages Versions", + "Description": "Repeatability Result header options", "IsExtensible": false, "Usage": "None" } @@ -1212,126 +1212,132 @@ { "$id": "164", "Kind": "model", + "Name": "MessageTemplateItem", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem", + "Usage": "Output", + "Description": "The message template as returned from the service.", + "DiscriminatorProperty": { + "$id": "165", + "Name": "kind", + "SerializedName": "kind", + "Description": "The type discriminator describing a template type.", + "Type": { + "$ref": "31" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + "Properties": [ + { + "$id": "166", + "Name": "name", + "SerializedName": "name", + "Description": "The template's name.", + "Type": { + "$id": "167", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": true + }, + { + "$id": "168", + "Name": "language", + "SerializedName": "language", + "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", + "Type": { + "$id": "169", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "170", + "Name": "status", + "SerializedName": "status", + "Description": "The aggregated template status.", + "Type": { + "$ref": "25" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$ref": "165" + } + ], + "DiscriminatedSubtypes": { + "$id": "171", + "whatsApp": { + "$id": "172", + "Kind": "model", + "Name": "WhatsAppMessageTemplateItem", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem", + "Usage": "Output", + "Description": "The WhatsApp-specific template response contract", + "DiscriminatorValue": "whatsApp", + "BaseModel": { + "$ref": "164" + }, + "Properties": [ + { + "$id": "173", + "Name": "content", + "SerializedName": "content", + "Description": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", + "Type": { + "$id": "174", + "Kind": "any" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "175", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message template response type is whatsApp.", + "Type": { + "$id": "176", + "Kind": "constant", + "ValueType": { + "$id": "177", + "Kind": "string" + }, + "Value": "whatsApp" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + } + ] + } + } + }, + { + "$ref": "172" + }, + { + "$id": "178", + "Kind": "model", "Name": "PagedMessageTemplateItem", "CrossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", - "Usage": "Output", + "Usage": "None", "Description": "Paged collection of MessageTemplateItem items", "Properties": [ { - "$id": "165", + "$id": "179", "Name": "value", "SerializedName": "value", "Description": "The MessageTemplateItem items on this page", "Type": { - "$id": "166", + "$id": "180", "Kind": "array", "Name": "ArrayMessageTemplateItem", "ValueType": { - "$id": "167", - "Kind": "model", - "Name": "MessageTemplateItem", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem", - "Usage": "Output", - "Description": "The message template as returned from the service.", - "DiscriminatorProperty": { - "$id": "168", - "Name": "kind", - "SerializedName": "kind", - "Description": "The type discriminator describing a template type.", - "Type": { - "$ref": "32" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - "Properties": [ - { - "$id": "169", - "Name": "name", - "SerializedName": "name", - "Description": "The template's name.", - "Type": { - "$id": "170", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": true - }, - { - "$id": "171", - "Name": "language", - "SerializedName": "language", - "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", - "Type": { - "$id": "172", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "173", - "Name": "status", - "SerializedName": "status", - "Description": "The aggregated template status.", - "Type": { - "$ref": "26" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$ref": "168" - } - ], - "DiscriminatedSubtypes": { - "$id": "174", - "whatsApp": { - "$id": "175", - "Kind": "model", - "Name": "WhatsAppMessageTemplateItem", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem", - "Usage": "Output", - "Description": "The WhatsApp-specific template response contract", - "DiscriminatorValue": "whatsApp", - "BaseModel": { - "$ref": "167" - }, - "Properties": [ - { - "$id": "176", - "Name": "content", - "SerializedName": "content", - "Description": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", - "Type": { - "$id": "177", - "Kind": "any" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "178", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message template response type is whatsApp.", - "Type": { - "$id": "179", - "Kind": "constant", - "ValueType": { - "$id": "180", - "Kind": "string" - }, - "Value": "whatsApp" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - } - ] - } - } + "$ref": "164" }, "CrossLanguageDefinitionId": "TypeSpec.Array" }, @@ -1351,19 +1357,12 @@ "IsReadOnly": false } ] - }, - { - "$ref": "167" - }, - { - "$ref": "175" } ], "Clients": [ { "$id": "183", "Name": "NotificationMessagesClient", - "Description": "", "Operations": [ { "$id": "184", @@ -1379,7 +1378,7 @@ "Description": "The communication resource, for example https://my-resource.communication.azure.com", "Type": { "$id": "186", - "Kind": "url" + "Kind": "uri" }, "Location": "Uri", "IsApiVersion": false, @@ -1401,6 +1400,12 @@ "Kind": "string" }, "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", "DefaultValue": { "$id": "189", "Type": { @@ -1408,15 +1413,7 @@ "Kind": "string" }, "Value": "2024-02-01" - }, - "IsRequired": true, - "IsApiVersion": true, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + } }, { "$id": "191", @@ -1428,13 +1425,11 @@ "Kind": "string" }, "Location": "Header", - "IsRequired": false, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": false, "Kind": "Method" }, { @@ -1452,13 +1447,11 @@ } }, "Location": "Header", - "IsRequired": false, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": false, "Kind": "Method" }, { @@ -1472,82 +1465,71 @@ "Encode": "string" }, "Location": "Header", - "IsRequired": false, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": false, "Kind": "Method" }, { "$id": "198", - "Name": "notificationContent", - "NameInRequest": "body", - "Description": "Details of the message to send.", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$ref": "38" + "$id": "199", + "Kind": "constant", + "ValueType": { + "$id": "200", + "Kind": "string" + }, + "Value": "application/json" }, - "Location": "Body", - "IsRequired": true, + "Location": "Header", "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, + "IsContentType": true, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, - "Kind": "Method" + "IsRequired": true, + "Kind": "Constant" }, { - "$id": "199", + "$id": "201", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "200", - "Kind": "string" + "$id": "202", + "Kind": "constant", + "ValueType": { + "$id": "203", + "Kind": "string" + }, + "Value": "application/json" }, "Location": "Header", "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, - "IsRequired": true, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "201", - "Type": { - "$ref": "200" - }, - "Value": "application/json" - } + "IsRequired": true, + "Kind": "Constant" }, { - "$id": "202", - "Name": "contentType", - "NameInRequest": "Content-Type", + "$id": "204", + "Name": "notificationContent", + "NameInRequest": "notificationContent", + "Description": "Details of the message to send.", "Type": { - "$id": "203", - "Kind": "string" + "$ref": "38" }, - "Location": "Header", + "Location": "Body", "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": true, - "IsRequired": true, + "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "204", - "Type": { - "$ref": "203" - }, - "Value": "application/json" - } + "IsRequired": true, + "Kind": "Method" } ], "Responses": [ @@ -1563,17 +1545,17 @@ "Headers": [ { "$id": "206", - "Name": "Repeatability-Result", - "NameInResponse": "repeatabilityResult", + "Name": "repeatabilityResult", + "NameInResponse": "Repeatability-Result", "Description": "Indicates whether the repeatable request was accepted or rejected.", "Type": { - "$ref": "22" + "$ref": "34" } }, { "$id": "207", - "Name": "x-ms-client-request-id", - "NameInResponse": "clientRequestId", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", "Description": "An opaque, globally-unique, client-generated string identifier for the request.", "Type": { "$id": "208", @@ -1619,106 +1601,116 @@ "Kind": "string" }, "Location": "Query", - "DefaultValue": { - "$ref": "189" - }, - "IsRequired": true, "IsApiVersion": true, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, - "Kind": "Client" + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "212", + "Type": { + "$id": "213", + "Kind": "string" + }, + "Value": "2024-02-01" + } }, { - "$id": "212", + "$id": "214", "Name": "id", "NameInRequest": "id", "Description": "The stream ID.", "Type": { - "$id": "213", + "$id": "215", "Kind": "string" }, "Location": "Path", - "IsRequired": true, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": true, "Kind": "Method" }, { - "$id": "214", + "$id": "216", "Name": "clientRequestId", "NameInRequest": "x-ms-client-request-id", "Description": "An opaque, globally-unique, client-generated string identifier for the request.", "Type": { - "$id": "215", + "$id": "217", "Kind": "uuid", "Encode": "string" }, "Location": "Header", - "IsRequired": false, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": false, "Kind": "Method" }, { - "$id": "216", + "$id": "218", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "217", - "Kind": "string" + "$id": "219", + "Kind": "constant", + "ValueType": { + "$id": "220", + "Kind": "string" + }, + "Value": "application/octet-stream" }, "Location": "Header", "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, - "IsRequired": true, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "218", - "Type": { - "$ref": "217" - }, - "Value": "application/octet-stream" - } + "IsRequired": true, + "Kind": "Constant" } ], "Responses": [ { - "$id": "219", + "$id": "221", "StatusCodes": [ 200 ], "BodyType": { - "$id": "220", + "$id": "222", "Kind": "bytes", "Encode": "base64" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "221", - "Name": "x-ms-client-request-id", - "NameInResponse": "clientRequestId", + "$id": "223", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", "Description": "An opaque, globally-unique, client-generated string identifier for the request.", "Type": { - "$id": "222", + "$id": "224", "Kind": "uuid", "Encode": "string" } + }, + { + "$id": "225", + "Name": "contentType", + "NameInResponse": "content-type", + "Description": "The stream content type.", + "Type": { + "$id": "226", + "Kind": "constant", + "ValueType": { + "$id": "227", + "Kind": "string" + }, + "Value": "application/octet-stream" + } } ], "IsErrorResponse": false, @@ -1737,7 +1729,7 @@ } ], "Protocol": { - "$id": "223" + "$id": "228" }, "Parameters": [ { @@ -1746,145 +1738,153 @@ ] }, { - "$id": "224", + "$id": "229", "Name": "MessageTemplateClient", - "Description": "", "Operations": [ { - "$id": "225", + "$id": "230", "Name": "getTemplates", "ResourceName": "MessageTemplateItem", "Description": "List all templates for given Azure Communication Services channel", "Accessibility": "public", "Parameters": [ { - "$ref": "185" + "$id": "231", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Description": "The communication resource, for example https://my-resource.communication.azure.com", + "Type": { + "$id": "232", + "Kind": "uri" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "226", + "$id": "233", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "The API version to use for this operation.", "Type": { - "$id": "227", + "$id": "234", "Kind": "string" }, "Location": "Query", - "DefaultValue": { - "$ref": "189" - }, - "IsRequired": true, "IsApiVersion": true, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, - "Kind": "Client" + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "235", + "Type": { + "$id": "236", + "Kind": "string" + }, + "Value": "2024-02-01" + } }, { - "$id": "228", + "$id": "237", "Name": "channelId", "NameInRequest": "channelId", "Description": "The registration ID of the channel.", "Type": { - "$id": "229", + "$id": "238", "Kind": "uuid", "Encode": "string" }, "Location": "Path", - "IsRequired": true, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": true, "Kind": "Method" }, { - "$id": "230", + "$id": "239", "Name": "maxpagesize", "NameInRequest": "maxpagesize", "Description": "Number of objects to return per page.", "Type": { - "$id": "231", + "$id": "240", "Kind": "int32" }, "Location": "Query", - "IsRequired": false, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": false, "Kind": "Method" }, { - "$id": "232", + "$id": "241", "Name": "clientRequestId", "NameInRequest": "x-ms-client-request-id", "Description": "An opaque, globally-unique, client-generated string identifier for the request.", "Type": { - "$id": "233", + "$id": "242", "Kind": "uuid", "Encode": "string" }, "Location": "Header", - "IsRequired": false, "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, + "IsRequired": false, "Kind": "Method" }, { - "$id": "234", + "$id": "243", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "235", - "Kind": "string" + "$id": "244", + "Kind": "constant", + "ValueType": { + "$id": "245", + "Kind": "string" + }, + "Value": "application/json" }, "Location": "Header", "IsApiVersion": false, - "IsResourceParameter": false, "IsContentType": false, - "IsRequired": true, "IsEndpoint": false, - "SkipUrlEncoding": false, "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "236", - "Type": { - "$ref": "235" - }, - "Value": "application/json" - } + "IsRequired": true, + "Kind": "Constant" } ], "Responses": [ { - "$id": "237", + "$id": "246", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "164" + "$ref": "178" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "238", - "Name": "x-ms-client-request-id", - "NameInResponse": "clientRequestId", + "$id": "247", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", "Description": "An opaque, globally-unique, client-generated string identifier for the request.", "Type": { - "$id": "239", + "$id": "248", "Kind": "uuid", "Encode": "string" } @@ -1902,35 +1902,35 @@ "Path": "/messages/channels/{channelId}/templates", "BufferResponse": true, "Paging": { - "$id": "240", - "NextLinkName": "nextLink", - "ItemName": "value" + "$id": "249", + "ItemName": "value", + "NextLinkName": "nextLink" }, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true } ], "Protocol": { - "$id": "241" + "$id": "250" }, "Parameters": [ { - "$ref": "185" + "$ref": "231" } ] } ], "Auth": { - "$id": "242", - "ApiKey": { - "$id": "243", - "Name": "Authorization" - }, + "$id": "251", "OAuth2": { - "$id": "244", + "$id": "252", "Scopes": [ "https://communication.azure.com/.default" ] + }, + "ApiKey": { + "$id": "253", + "Name": "Authorization" } } } diff --git a/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/CommunicationProgrammableConnectivityModelFactory.cs b/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/CommunicationProgrammableConnectivityModelFactory.cs index 7db65bfba6a7b..ddd8c4a84efbc 100644 --- a/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/CommunicationProgrammableConnectivityModelFactory.cs +++ b/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/CommunicationProgrammableConnectivityModelFactory.cs @@ -12,41 +12,6 @@ namespace Azure.Communication.ProgrammableConnectivity /// Model factory for models. public static partial class CommunicationProgrammableConnectivityModelFactory { - /// Initializes a new instance of . - /// True if the location is in the specified area, False otherwise. - /// A new instance for mocking. - public static DeviceLocationVerificationResult DeviceLocationVerificationResult(bool verificationResult = default) - { - return new DeviceLocationVerificationResult(verificationResult, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The identifier for the network. This can be used as the networkIdentifier for the service APIs. - /// A new instance for mocking. - public static NetworkRetrievalResult NetworkRetrievalResult(string networkCode = null) - { - return new NetworkRetrievalResult(networkCode, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Identifier for the network to query for this device. - /// Phone number in E.164 format (starting with country code), and optionally prefixed with '+'. - /// Hashed phone number. SHA-256 (in hexadecimal representation) of the mobile phone number in **E.164 format (starting with country code)**. Optionally prefixed with '+'. - /// Redirect URI to backend application. - /// A new instance for mocking. - public static NumberVerificationWithoutCodeContent NumberVerificationWithoutCodeContent(NetworkIdentifier networkIdentifier = null, string phoneNumber = null, string hashedPhoneNumber = null, Uri redirectUri = null) - { - return new NumberVerificationWithoutCodeContent(networkIdentifier, phoneNumber, hashedPhoneNumber, redirectUri, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// True if number if the phone number matches the device, False otherwise. - /// A new instance for mocking. - public static NumberVerificationResult NumberVerificationResult(bool verificationResult = default) - { - return new NumberVerificationResult(verificationResult, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Phone number in E.164 format (starting with country code), and optionally prefixed with '+'. /// Network to query for this device. @@ -81,5 +46,40 @@ public static SimSwapVerificationResult SimSwapVerificationResult(bool verificat { return new SimSwapVerificationResult(verificationResult, serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// Identifier for the network to query for this device. + /// Phone number in E.164 format (starting with country code), and optionally prefixed with '+'. + /// Hashed phone number. SHA-256 (in hexadecimal representation) of the mobile phone number in **E.164 format (starting with country code)**. Optionally prefixed with '+'. + /// Redirect URI to backend application. + /// A new instance for mocking. + public static NumberVerificationWithoutCodeContent NumberVerificationWithoutCodeContent(NetworkIdentifier networkIdentifier = null, string phoneNumber = null, string hashedPhoneNumber = null, Uri redirectUri = null) + { + return new NumberVerificationWithoutCodeContent(networkIdentifier, phoneNumber, hashedPhoneNumber, redirectUri, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// True if number if the phone number matches the device, False otherwise. + /// A new instance for mocking. + public static NumberVerificationResult NumberVerificationResult(bool verificationResult = default) + { + return new NumberVerificationResult(verificationResult, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The identifier for the network. This can be used as the networkIdentifier for the service APIs. + /// A new instance for mocking. + public static NetworkRetrievalResult NetworkRetrievalResult(string networkCode = null) + { + return new NetworkRetrievalResult(networkCode, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// True if the location is in the specified area, False otherwise. + /// A new instance for mocking. + public static DeviceLocationVerificationResult DeviceLocationVerificationResult(bool verificationResult = default) + { + return new DeviceLocationVerificationResult(verificationResult, serializedAdditionalRawData: null); + } } } diff --git a/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/ProgrammableConnectivityClient.cs b/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/ProgrammableConnectivityClient.cs index b8e68d0151463..78178e8158dbe 100644 --- a/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/ProgrammableConnectivityClient.cs +++ b/sdk/communication/Azure.Communication.ProgrammableConnectivity/src/Generated/ProgrammableConnectivityClient.cs @@ -12,7 +12,7 @@ namespace Azure.Communication.ProgrammableConnectivity { // Data plane generated client. - /// The ProgrammableConnectivity service client. + /// Azure Programmable Connectivity (APC) provides a unified interface to the Network APIs of multiple Telecom Operators. Note that Operators may deprecate a Network API with less advance notice than the Azure standard, in which case APC will also deprecate that Network API. public partial class ProgrammableConnectivityClient { private static readonly string[] AuthorizationScopes = new string[] { "https://management.azure.com//.default" }; From 440833c505a5939d773a6052ac2c5fc6eb9e6ecd Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:16:30 +0000 Subject: [PATCH 3/9] Update SDK code ex_ke_4 --- .../src/Generated/AIVisionFaceModelFactory.cs | 38 ++-- .../src/Generated/FaceClient.cs | 4 +- .../src/Generated/FaceSessionClient.cs | 2 +- .../FhirR4Condition.Serialization.cs | 10 +- .../src/Generated/FhirR4Condition.cs | 46 ++--- .../src/Generated/FhirR4ConditionStage.cs | 6 +- .../FhirR4ContactDetail.Serialization.cs | 2 +- .../src/Generated/FhirR4ContactDetail.cs | 8 +- .../src/Generated/FhirR4ContactPoint.cs | 12 +- .../FhirR4ResearchStudy.Serialization.cs | 28 +-- .../src/Generated/FhirR4ResearchStudy.cs | 50 ++--- ...thInsightsRadiologyInsightsModelFactory.cs | 60 ++++++ .../src/Generated/ResearchStudyArm.cs | 8 +- .../src/Generated/ResearchStudyObjective.cs | 6 +- ...rmInformaticaDataManagementModelFactory.cs | 174 +++++++++--------- .../OrganizationsRestOperations.cs | 2 +- .../ServerlessRuntimesRestOperations.cs | 2 +- 17 files changed, 259 insertions(+), 199 deletions(-) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/AIVisionFaceModelFactory.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/AIVisionFaceModelFactory.cs index f85eca0446885..900556a07ecef 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/AIVisionFaceModelFactory.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/AIVisionFaceModelFactory.cs @@ -277,6 +277,25 @@ public static FaceGroupingResult FaceGroupingResult(IEnumerable> gro return new FaceGroupingResult(groups?.ToList(), messyGroup?.ToList(), serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The unique session ID of the created session. It will expire 48 hours after it was created or may be deleted sooner using the corresponding Session DELETE operation. + /// Bearer token to provide authentication for the Vision SDK running on a client application. This Bearer token has limited permissions to perform only the required action and expires after the TTL time. It is also auditable. + /// The detail of face for verification. + /// A new instance for mocking. + public static CreateLivenessWithVerifySessionResult CreateLivenessWithVerifySessionResult(string sessionId = null, string authToken = null, LivenessWithVerifyImage verifyImage = null) + { + return new CreateLivenessWithVerifySessionResult(sessionId, authToken, verifyImage, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The face region where the comparison image's classification was made. + /// Quality of face image for recognition. + /// A new instance for mocking. + public static LivenessWithVerifyImage LivenessWithVerifyImage(FaceRectangle faceRectangle = null, QualityForRecognition qualityForRecognition = default) + { + return new LivenessWithVerifyImage(faceRectangle, qualityForRecognition, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Type of liveness mode the client should follow. /// Whether or not to allow a '200 - Success' response body to be sent to the client, which may be undesirable for security reasons. Default is false, clients will receive a '204 - NoContent' empty body response. Regardless of selection, calling Session GetResult will always contain a response body enabling business logic to be implemented. @@ -415,15 +434,6 @@ public static LivenessWithVerifyOutputs LivenessWithVerifyOutputs(LivenessWithVe return new LivenessWithVerifyOutputs(verifyImage, matchConfidence, isIdentical, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The face region where the comparison image's classification was made. - /// Quality of face image for recognition. - /// A new instance for mocking. - public static LivenessWithVerifyImage LivenessWithVerifyImage(FaceRectangle faceRectangle = null, QualityForRecognition qualityForRecognition = default) - { - return new LivenessWithVerifyImage(faceRectangle, qualityForRecognition, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The unique ID to reference this session. /// DateTime when this session was created. @@ -444,16 +454,6 @@ public static LivenessSessionItem LivenessSessionItem(string id = null, DateTime serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The unique session ID of the created session. It will expire 48 hours after it was created or may be deleted sooner using the corresponding Session DELETE operation. - /// Bearer token to provide authentication for the Vision SDK running on a client application. This Bearer token has limited permissions to perform only the required action and expires after the TTL time. It is also auditable. - /// The detail of face for verification. - /// A new instance for mocking. - public static CreateLivenessWithVerifySessionResult CreateLivenessWithVerifySessionResult(string sessionId = null, string authToken = null, LivenessWithVerifyImage verifyImage = null) - { - return new CreateLivenessWithVerifySessionResult(sessionId, authToken, verifyImage, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The unique ID to reference this session. /// DateTime when this session was created. diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs index 1a0b973e92019..17409686c3354 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs @@ -891,7 +891,7 @@ internal HttpMessage CreateDetectFromUrlImplRequest(RequestContent content, stri } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); + request.Headers.Add("content-type", "application/json"); request.Content = content; return message; } @@ -936,7 +936,7 @@ internal HttpMessage CreateDetectImplRequest(RequestContent content, string dete } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/octet-stream"); + request.Headers.Add("content-type", "application/octet-stream"); request.Content = content; return message; } diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs index 4019a5bc3493c..d1dd989f98190 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs @@ -1526,7 +1526,7 @@ internal HttpMessage CreateCreateLivenessWithVerifySessionWithVerifyImageRequest uri.AppendPath("/detectLivenessWithVerify/singleModal/sessions", false); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", contentType); + request.Headers.Add("content-type", contentType); request.Content = content; return message; } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs index 5a6ecace8eaa4..a8bce61f567e7 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs @@ -248,13 +248,13 @@ internal static FhirR4Condition DeserializeFhirR4Condition(JsonElement element, { return null; } - IList identifier = default; + IReadOnlyList identifier = default; FhirR4CodeableConcept clinicalStatus = default; FhirR4CodeableConcept verificationStatus = default; - IList category = default; + IReadOnlyList category = default; FhirR4CodeableConcept severity = default; FhirR4CodeableConcept code = default; - IList bodySite = default; + IReadOnlyList bodySite = default; FhirR4Reference encounter = default; string onsetDateTime = default; FhirR4Quantity onsetAge = default; @@ -267,8 +267,8 @@ internal static FhirR4Condition DeserializeFhirR4Condition(JsonElement element, FhirR4Range abatementRange = default; string abatementString = default; string recordedDate = default; - IList stage = default; - IList note = default; + IReadOnlyList stage = default; + IReadOnlyList note = default; FhirR4Narrative text = default; IReadOnlyList contained = default; IReadOnlyList extension = default; diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.cs index bfaf63002c176..5bd486a58e6a7 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.cs @@ -17,7 +17,7 @@ namespace Azure.Health.Insights.RadiologyInsights public partial class FhirR4Condition : FhirR4DomainResource { /// Initializes a new instance of . - public FhirR4Condition() : base("Condition") + internal FhirR4Condition() : base("Condition") { Identifier = new ChangeTrackingList(); Category = new ChangeTrackingList(); @@ -58,7 +58,7 @@ public FhirR4Condition() : base("Condition") /// Date record was first recorded. /// stge/grade, usually assessed formally. /// Additional information about the Condition. - internal FhirR4Condition(string resourceType, string id, FhirR4Meta meta, string implicitRules, string language, IDictionary additionalProperties, FhirR4Narrative text, IReadOnlyList contained, IReadOnlyList extension, IReadOnlyList modifierExtension, IList identifier, FhirR4CodeableConcept clinicalStatus, FhirR4CodeableConcept verificationStatus, IList category, FhirR4CodeableConcept severity, FhirR4CodeableConcept code, IList bodySite, FhirR4Reference encounter, string onsetDateTime, FhirR4Quantity onsetAge, FhirR4Period onsetPeriod, FhirR4Range onsetRange, string onsetString, string abatementDateTime, FhirR4Quantity abatementAge, FhirR4Period abatementPeriod, FhirR4Range abatementRange, string abatementString, string recordedDate, IList stage, IList note) : base(resourceType, id, meta, implicitRules, language, additionalProperties, text, contained, extension, modifierExtension) + internal FhirR4Condition(string resourceType, string id, FhirR4Meta meta, string implicitRules, string language, IDictionary additionalProperties, FhirR4Narrative text, IReadOnlyList contained, IReadOnlyList extension, IReadOnlyList modifierExtension, IReadOnlyList identifier, FhirR4CodeableConcept clinicalStatus, FhirR4CodeableConcept verificationStatus, IReadOnlyList category, FhirR4CodeableConcept severity, FhirR4CodeableConcept code, IReadOnlyList bodySite, FhirR4Reference encounter, string onsetDateTime, FhirR4Quantity onsetAge, FhirR4Period onsetPeriod, FhirR4Range onsetRange, string onsetString, string abatementDateTime, FhirR4Quantity abatementAge, FhirR4Period abatementPeriod, FhirR4Range abatementRange, string abatementString, string recordedDate, IReadOnlyList stage, IReadOnlyList note) : base(resourceType, id, meta, implicitRules, language, additionalProperties, text, contained, extension, modifierExtension) { Identifier = identifier; ClinicalStatus = clinicalStatus; @@ -84,46 +84,46 @@ internal FhirR4Condition(string resourceType, string id, FhirR4Meta meta, string } /// External Ids for this condition. - public IList Identifier { get; } + public IReadOnlyList Identifier { get; } /// active | recurrence | relapse | inactive | remission | resolved. - public FhirR4CodeableConcept ClinicalStatus { get; set; } + public FhirR4CodeableConcept ClinicalStatus { get; } /// unconfirmed | provisional | differential | confirmed | refuted | entered-in-error. - public FhirR4CodeableConcept VerificationStatus { get; set; } + public FhirR4CodeableConcept VerificationStatus { get; } /// problem-list-item | encounter-diagnosis. - public IList Category { get; } + public IReadOnlyList Category { get; } /// Subjective severity of condition. - public FhirR4CodeableConcept Severity { get; set; } + public FhirR4CodeableConcept Severity { get; } /// Identification of the condition, problem or diagnosis. - public FhirR4CodeableConcept Code { get; set; } + public FhirR4CodeableConcept Code { get; } /// Anatomical location, if relevant. - public IList BodySite { get; } + public IReadOnlyList BodySite { get; } /// Encounter created as part of. - public FhirR4Reference Encounter { get; set; } + public FhirR4Reference Encounter { get; } /// Estimated or actual date, date-time, or age. - public string OnsetDateTime { get; set; } + public string OnsetDateTime { get; } /// Estimated or actual date, date-time, or age. - public FhirR4Quantity OnsetAge { get; set; } + public FhirR4Quantity OnsetAge { get; } /// Estimated or actual date, date-time, or age. - public FhirR4Period OnsetPeriod { get; set; } + public FhirR4Period OnsetPeriod { get; } /// Estimated or actual date, date-time, or age. - public FhirR4Range OnsetRange { get; set; } + public FhirR4Range OnsetRange { get; } /// Estimated or actual date, date-time, or age. - public string OnsetString { get; set; } + public string OnsetString { get; } /// When in resolution/remission. - public string AbatementDateTime { get; set; } + public string AbatementDateTime { get; } /// When in resolution/remission. - public FhirR4Quantity AbatementAge { get; set; } + public FhirR4Quantity AbatementAge { get; } /// When in resolution/remission. - public FhirR4Period AbatementPeriod { get; set; } + public FhirR4Period AbatementPeriod { get; } /// When in resolution/remission. - public FhirR4Range AbatementRange { get; set; } + public FhirR4Range AbatementRange { get; } /// When in resolution/remission. - public string AbatementString { get; set; } + public string AbatementString { get; } /// Date record was first recorded. - public string RecordedDate { get; set; } + public string RecordedDate { get; } /// stge/grade, usually assessed formally. - public IList Stage { get; } + public IReadOnlyList Stage { get; } /// Additional information about the Condition. - public IList Note { get; } + public IReadOnlyList Note { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.cs index b60c8bf76cb7e..3ed3080976f96 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.cs @@ -49,7 +49,7 @@ public partial class FhirR4ConditionStage private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public FhirR4ConditionStage() + internal FhirR4ConditionStage() { } @@ -65,8 +65,8 @@ internal FhirR4ConditionStage(FhirR4CodeableConcept summary, FhirR4CodeableConce } /// Simple summary (disease specific). - public FhirR4CodeableConcept Summary { get; set; } + public FhirR4CodeableConcept Summary { get; } /// Kind of staging. - public FhirR4CodeableConcept Type { get; set; } + public FhirR4CodeableConcept Type { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs index 8a0f20d0c0020..619c4e53d4746 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs @@ -95,7 +95,7 @@ internal static FhirR4ContactDetail DeserializeFhirR4ContactDetail(JsonElement e return null; } string name = default; - IList telecom = default; + IReadOnlyList telecom = default; string id = default; IList extension = default; IDictionary serializedAdditionalRawData = default; diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.cs index 7878abde4604d..add9046b96033 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.cs @@ -14,7 +14,7 @@ namespace Azure.Health.Insights.RadiologyInsights public partial class FhirR4ContactDetail : FhirR4Element { /// Initializes a new instance of . - public FhirR4ContactDetail() + internal FhirR4ContactDetail() { Telecom = new ChangeTrackingList(); } @@ -25,15 +25,15 @@ public FhirR4ContactDetail() /// Keeps track of any properties unknown to the library. /// Name of an individual to contact. /// Contact details for individual or organization. - internal FhirR4ContactDetail(string id, IList extension, IDictionary serializedAdditionalRawData, string name, IList telecom) : base(id, extension, serializedAdditionalRawData) + internal FhirR4ContactDetail(string id, IList extension, IDictionary serializedAdditionalRawData, string name, IReadOnlyList telecom) : base(id, extension, serializedAdditionalRawData) { Name = name; Telecom = telecom; } /// Name of an individual to contact. - public string Name { get; set; } + public string Name { get; } /// Contact details for individual or organization. - public IList Telecom { get; } + public IReadOnlyList Telecom { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.cs index f5c7114f07689..355fdc094c5f4 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.cs @@ -49,7 +49,7 @@ public partial class FhirR4ContactPoint private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public FhirR4ContactPoint() + internal FhirR4ContactPoint() { } @@ -71,14 +71,14 @@ internal FhirR4ContactPoint(ContactPointSystem? system, string value, ContactPoi } /// phone | fax | email | pager | url | sms | other. - public ContactPointSystem? System { get; set; } + public ContactPointSystem? System { get; } /// The actual contact point details. - public string Value { get; set; } + public string Value { get; } /// home | work | temp | old | mobile - purpose of this contact point. - public ContactPointUse? Use { get; set; } + public ContactPointUse? Use { get; } /// Specify preferred order of use (1 = highest). - public int? Rank { get; set; } + public int? Rank { get; } /// Time period when the contact point was/is in use. - public FhirR4Period Period { get; set; } + public FhirR4Period Period { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs index 3a26a2283c1b5..2d2ac4d94ee6e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs @@ -300,29 +300,29 @@ internal static FhirR4ResearchStudy DeserializeFhirR4ResearchStudy(JsonElement e { return null; } - IList identifier = default; + IReadOnlyList identifier = default; string title = default; - IList protocol = default; - IList partOf = default; + IReadOnlyList protocol = default; + IReadOnlyList partOf = default; ResearchStudyStatusCodeType status = default; FhirR4CodeableConcept primaryPurposeType = default; FhirR4CodeableConcept phase = default; - IList category = default; - IList focus = default; - IList condition = default; - IList contact = default; - IList keyword = default; - IList location = default; + IReadOnlyList category = default; + IReadOnlyList focus = default; + IReadOnlyList condition = default; + IReadOnlyList contact = default; + IReadOnlyList keyword = default; + IReadOnlyList location = default; string description = default; - IList enrollment = default; + IReadOnlyList enrollment = default; FhirR4Period period = default; FhirR4Reference sponsor = default; FhirR4Reference principalInvestigator = default; - IList site = default; + IReadOnlyList site = default; FhirR4CodeableConcept reasonStopped = default; - IList note = default; - IList arm = default; - IList objective = default; + IReadOnlyList note = default; + IReadOnlyList arm = default; + IReadOnlyList objective = default; FhirR4Narrative text = default; IReadOnlyList contained = default; IReadOnlyList extension = default; diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.cs index 38328484a111d..8cdecea007297 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.cs @@ -18,7 +18,7 @@ public partial class FhirR4ResearchStudy : FhirR4DomainResource { /// Initializes a new instance of . /// active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn. - public FhirR4ResearchStudy(ResearchStudyStatusCodeType status) : base("ResearchStudy") + internal FhirR4ResearchStudy(ResearchStudyStatusCodeType status) : base("ResearchStudy") { Identifier = new ChangeTrackingList(); Protocol = new ChangeTrackingList(); @@ -71,7 +71,7 @@ public FhirR4ResearchStudy(ResearchStudyStatusCodeType status) : base("ResearchS /// Comments made about the study. /// Defined path through the study for a subject. /// A goal for the study. - internal FhirR4ResearchStudy(string resourceType, string id, FhirR4Meta meta, string implicitRules, string language, IDictionary additionalProperties, FhirR4Narrative text, IReadOnlyList contained, IReadOnlyList extension, IReadOnlyList modifierExtension, IList identifier, string title, IList protocol, IList partOf, ResearchStudyStatusCodeType status, FhirR4CodeableConcept primaryPurposeType, FhirR4CodeableConcept phase, IList category, IList focus, IList condition, IList contact, IList keyword, IList location, string description, IList enrollment, FhirR4Period period, FhirR4Reference sponsor, FhirR4Reference principalInvestigator, IList site, FhirR4CodeableConcept reasonStopped, IList note, IList arm, IList objective) : base(resourceType, id, meta, implicitRules, language, additionalProperties, text, contained, extension, modifierExtension) + internal FhirR4ResearchStudy(string resourceType, string id, FhirR4Meta meta, string implicitRules, string language, IDictionary additionalProperties, FhirR4Narrative text, IReadOnlyList contained, IReadOnlyList extension, IReadOnlyList modifierExtension, IReadOnlyList identifier, string title, IReadOnlyList protocol, IReadOnlyList partOf, ResearchStudyStatusCodeType status, FhirR4CodeableConcept primaryPurposeType, FhirR4CodeableConcept phase, IReadOnlyList category, IReadOnlyList focus, IReadOnlyList condition, IReadOnlyList contact, IReadOnlyList keyword, IReadOnlyList location, string description, IReadOnlyList enrollment, FhirR4Period period, FhirR4Reference sponsor, FhirR4Reference principalInvestigator, IReadOnlyList site, FhirR4CodeableConcept reasonStopped, IReadOnlyList note, IReadOnlyList arm, IReadOnlyList objective) : base(resourceType, id, meta, implicitRules, language, additionalProperties, text, contained, extension, modifierExtension) { Identifier = identifier; Title = title; @@ -104,50 +104,50 @@ internal FhirR4ResearchStudy() } /// Business Identifier for study. - public IList Identifier { get; } + public IReadOnlyList Identifier { get; } /// Name for this study. - public string Title { get; set; } + public string Title { get; } /// Steps followed in executing study. - public IList Protocol { get; } + public IReadOnlyList Protocol { get; } /// Part of larger study. - public IList PartOf { get; } + public IReadOnlyList PartOf { get; } /// active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn. - public ResearchStudyStatusCodeType Status { get; set; } + public ResearchStudyStatusCodeType Status { get; } /// treatment | prevention | diagnostic | supportive-care | screening | health-services-research | basic-science | device-feasibility. - public FhirR4CodeableConcept PrimaryPurposeType { get; set; } + public FhirR4CodeableConcept PrimaryPurposeType { get; } /// n-a | early-phase-1 | phase-1 | phase-1-phase-2 | phase-2 | phase-2-phase-3 | phase-3 | phase-4. - public FhirR4CodeableConcept Phase { get; set; } + public FhirR4CodeableConcept Phase { get; } /// Classifications for the study. - public IList Category { get; } + public IReadOnlyList Category { get; } /// Drugs, devices, etc. under study. - public IList Focus { get; } + public IReadOnlyList Focus { get; } /// Condition being studied. - public IList Condition { get; } + public IReadOnlyList Condition { get; } /// Contact details for the study. - public IList Contact { get; } + public IReadOnlyList Contact { get; } /// Used to search for the study. - public IList Keyword { get; } + public IReadOnlyList Keyword { get; } /// Geographic region(s) for study. - public IList Location { get; } + public IReadOnlyList Location { get; } /// What this is study doing. - public string Description { get; set; } + public string Description { get; } /// Inclusion & exclusion criteria. - public IList Enrollment { get; } + public IReadOnlyList Enrollment { get; } /// When the study began and ended. - public FhirR4Period Period { get; set; } + public FhirR4Period Period { get; } /// Organization that initiates and is legally responsible for the study. - public FhirR4Reference Sponsor { get; set; } + public FhirR4Reference Sponsor { get; } /// Researcher who oversees multiple aspects of the study. - public FhirR4Reference PrincipalInvestigator { get; set; } + public FhirR4Reference PrincipalInvestigator { get; } /// Facility where study activities are conducted. - public IList Site { get; } + public IReadOnlyList Site { get; } /// accrual-goal-met | closed-due-to-toxicity | closed-due-to-lack-of-study-progress | temporarily-closed-per-study-design. - public FhirR4CodeableConcept ReasonStopped { get; set; } + public FhirR4CodeableConcept ReasonStopped { get; } /// Comments made about the study. - public IList Note { get; } + public IReadOnlyList Note { get; } /// Defined path through the study for a subject. - public IList Arm { get; } + public IReadOnlyList Arm { get; } /// A goal for the study. - public IList Objective { get; } + public IReadOnlyList Objective { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs index 36e82df07c856..98ceba927fc68 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs @@ -504,6 +504,15 @@ public static FhirR4Condition FhirR4Condition(string id = null, FhirR4Meta meta note?.ToList()); } + /// Initializes a new instance of . + /// Simple summary (disease specific). + /// Kind of staging. + /// A new instance for mocking. + public static FhirR4ConditionStage FhirR4ConditionStage(FhirR4CodeableConcept summary = null, FhirR4CodeableConcept type = null) + { + return new FhirR4ConditionStage(summary, type, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource Id. /// Metadata about the resource. @@ -595,6 +604,57 @@ public static FhirR4ResearchStudy FhirR4ResearchStudy(string id = null, FhirR4Me objective?.ToList()); } + /// Initializes a new instance of . + /// Unique id for inter-element referencing. + /// Additional Content defined by implementations. + /// Name of an individual to contact. + /// Contact details for individual or organization. + /// A new instance for mocking. + public static FhirR4ContactDetail FhirR4ContactDetail(string id = null, IEnumerable extension = null, string name = null, IEnumerable telecom = null) + { + extension ??= new List(); + telecom ??= new List(); + + return new FhirR4ContactDetail(id, extension?.ToList(), serializedAdditionalRawData: null, name, telecom?.ToList()); + } + + /// Initializes a new instance of . + /// phone | fax | email | pager | url | sms | other. + /// The actual contact point details. + /// home | work | temp | old | mobile - purpose of this contact point. + /// Specify preferred order of use (1 = highest). + /// Time period when the contact point was/is in use. + /// A new instance for mocking. + public static FhirR4ContactPoint FhirR4ContactPoint(ContactPointSystem? system = null, string value = null, ContactPointUse? use = null, int? rank = null, FhirR4Period period = null) + { + return new FhirR4ContactPoint( + system, + value, + use, + rank, + period, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Label for study arm. + /// Categorization of study arm. + /// Short explanation of study path. + /// A new instance for mocking. + public static ResearchStudyArm ResearchStudyArm(string name = null, FhirR4CodeableConcept type = null, string description = null) + { + return new ResearchStudyArm(name, type, description, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Label for the objective. + /// primary | secondary | exploratory. + /// A new instance for mocking. + public static ResearchStudyObjective ResearchStudyObjective(string name = null, FhirR4CodeableConcept type = null) + { + return new ResearchStudyObjective(name, type, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Additional Content defined by implementations. /// The complete Critical Result, as outlined below, will be reused for the recommendation. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.cs index e3d69889d903a..8e1d5e6eb3eab 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.cs @@ -48,7 +48,7 @@ public partial class ResearchStudyArm /// Initializes a new instance of . /// Label for study arm. /// is null. - public ResearchStudyArm(string name) + internal ResearchStudyArm(string name) { Argument.AssertNotNull(name, nameof(name)); @@ -74,10 +74,10 @@ internal ResearchStudyArm() } /// Label for study arm. - public string Name { get; set; } + public string Name { get; } /// Categorization of study arm. - public FhirR4CodeableConcept Type { get; set; } + public FhirR4CodeableConcept Type { get; } /// Short explanation of study path. - public string Description { get; set; } + public string Description { get; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.cs index b71d851dfb6a7..a811526406dba 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.cs @@ -48,7 +48,7 @@ public partial class ResearchStudyObjective /// Initializes a new instance of . /// Label for the objective. /// is null. - public ResearchStudyObjective(string name) + internal ResearchStudyObjective(string name) { Argument.AssertNotNull(name, nameof(name)); @@ -72,8 +72,8 @@ internal ResearchStudyObjective() } /// Label for the objective. - public string Name { get; set; } + public string Name { get; } /// primary | secondary | exploratory. - public FhirR4CodeableConcept Type { get; set; } + public FhirR4CodeableConcept Type { get; } } } diff --git a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs index 316d98e89f10a..02b21e7f171c6 100644 --- a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs +++ b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs @@ -16,6 +16,93 @@ namespace Azure.ResourceManager.InformaticaDataManagement.Models /// Model factory for models. public static partial class ArmInformaticaDataManagementModelFactory { + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource-specific properties for this resource. + /// A new instance for mocking. + public static InformaticaServerlessRuntimeData InformaticaServerlessRuntimeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, InformaticaServerlessRuntimeProperties properties = null) + { + return new InformaticaServerlessRuntimeData( + id, + name, + resourceType, + systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Provisioning State of the resource. + /// description of the serverless runtime. + /// Platform type of the Serverless Runtime. + /// Application type of the Serverless Runtime environment. + /// Compute units of the serverless runtime. + /// Serverless Execution timeout. + /// Serverless account creation location. + /// Informatica Serverless Network profile properties. + /// String KV pairs indicating Advanced custom properties. + /// Supplementary file location. + /// Serverless config properties. + /// Serverless Runtime Tags. + /// Serverless runtime user context properties. + /// A new instance for mocking. + public static InformaticaServerlessRuntimeProperties InformaticaServerlessRuntimeProperties(InformaticaProvisioningState? provisioningState = null, string description = null, InformaticaPlatformType? platform = null, InformaticaApplicationType? applicationType = null, string computeUnits = null, string executionTimeout = null, string serverlessAccountLocation = null, InformaticaNetworkInterfaceConfiguration networkInterfaceConfiguration = null, IEnumerable advancedCustomProperties = null, string supplementaryFileLocation = null, ServerlessRuntimeConfigProperties serverlessRuntimeConfig = null, IEnumerable serverlessRuntimeTags = null, string userContextToken = null) + { + advancedCustomProperties ??= new List(); + serverlessRuntimeTags ??= new List(); + + return new InformaticaServerlessRuntimeProperties( + provisioningState, + description, + platform, + applicationType, + computeUnits, + executionTimeout, + serverlessAccountLocation, + networkInterfaceConfiguration != null ? new ServerlessRuntimeNetworkProfile(networkInterfaceConfiguration, serializedAdditionalRawData: null) : null, + advancedCustomProperties?.ToList(), + supplementaryFileLocation, + serverlessRuntimeConfig, + serverlessRuntimeTags?.ToList(), + userContextToken != null ? new ServerlessRuntimeUserContextProperties(userContextToken, serializedAdditionalRawData: null) : null, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Count of dependencies. + /// id of resource. + /// List of dependencies. + /// A new instance for mocking. + public static CheckDependenciesResult CheckDependenciesResult(int count = default, string id = null, IEnumerable references = null) + { + references ??= new List(); + + return new CheckDependenciesResult(count, id, references?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Dependency ID. + /// Application context ID. + /// Dependency path. + /// document type. + /// description of Dependency. + /// Last Update Time. + /// A new instance for mocking. + public static ServerlessRuntimeDependency ServerlessRuntimeDependency(string id = null, string appContextId = null, string path = null, string documentType = null, string description = null, string lastUpdatedTime = null) + { + return new ServerlessRuntimeDependency( + id, + appContextId, + path, + documentType, + description, + lastUpdatedTime, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -198,92 +285,5 @@ public static InformaticaServerlessFetchConfigProperties InformaticaServerlessFe serverlessArmResourceId, serializedAdditionalRawData: null); } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The resource-specific properties for this resource. - /// A new instance for mocking. - public static InformaticaServerlessRuntimeData InformaticaServerlessRuntimeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, InformaticaServerlessRuntimeProperties properties = null) - { - return new InformaticaServerlessRuntimeData( - id, - name, - resourceType, - systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Provisioning State of the resource. - /// description of the serverless runtime. - /// Platform type of the Serverless Runtime. - /// Application type of the Serverless Runtime environment. - /// Compute units of the serverless runtime. - /// Serverless Execution timeout. - /// Serverless account creation location. - /// Informatica Serverless Network profile properties. - /// String KV pairs indicating Advanced custom properties. - /// Supplementary file location. - /// Serverless config properties. - /// Serverless Runtime Tags. - /// Serverless runtime user context properties. - /// A new instance for mocking. - public static InformaticaServerlessRuntimeProperties InformaticaServerlessRuntimeProperties(InformaticaProvisioningState? provisioningState = null, string description = null, InformaticaPlatformType? platform = null, InformaticaApplicationType? applicationType = null, string computeUnits = null, string executionTimeout = null, string serverlessAccountLocation = null, InformaticaNetworkInterfaceConfiguration networkInterfaceConfiguration = null, IEnumerable advancedCustomProperties = null, string supplementaryFileLocation = null, ServerlessRuntimeConfigProperties serverlessRuntimeConfig = null, IEnumerable serverlessRuntimeTags = null, string userContextToken = null) - { - advancedCustomProperties ??= new List(); - serverlessRuntimeTags ??= new List(); - - return new InformaticaServerlessRuntimeProperties( - provisioningState, - description, - platform, - applicationType, - computeUnits, - executionTimeout, - serverlessAccountLocation, - networkInterfaceConfiguration != null ? new ServerlessRuntimeNetworkProfile(networkInterfaceConfiguration, serializedAdditionalRawData: null) : null, - advancedCustomProperties?.ToList(), - supplementaryFileLocation, - serverlessRuntimeConfig, - serverlessRuntimeTags?.ToList(), - userContextToken != null ? new ServerlessRuntimeUserContextProperties(userContextToken, serializedAdditionalRawData: null) : null, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Count of dependencies. - /// id of resource. - /// List of dependencies. - /// A new instance for mocking. - public static CheckDependenciesResult CheckDependenciesResult(int count = default, string id = null, IEnumerable references = null) - { - references ??= new List(); - - return new CheckDependenciesResult(count, id, references?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Dependency ID. - /// Application context ID. - /// Dependency path. - /// document type. - /// description of Dependency. - /// Last Update Time. - /// A new instance for mocking. - public static ServerlessRuntimeDependency ServerlessRuntimeDependency(string id = null, string appContextId = null, string path = null, string documentType = null, string description = null, string lastUpdatedTime = null) - { - return new ServerlessRuntimeDependency( - id, - appContextId, - path, - documentType, - description, - lastUpdatedTime, - serializedAdditionalRawData: null); - } } } diff --git a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/OrganizationsRestOperations.cs b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/OrganizationsRestOperations.cs index c8c2a43cbced8..01105766ae080 100644 --- a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/OrganizationsRestOperations.cs +++ b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/OrganizationsRestOperations.cs @@ -25,7 +25,7 @@ internal partial class OrganizationsRestOperations /// Initializes a new instance of OrganizationsRestOperations. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The application id to use for user agent. - /// Azure Resource Manager url. + /// Service host. /// The API version to use for this operation. /// or is null. public OrganizationsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) diff --git a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/ServerlessRuntimesRestOperations.cs b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/ServerlessRuntimesRestOperations.cs index 5718ba7bb255f..22b6a2fbd1fc0 100644 --- a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/ServerlessRuntimesRestOperations.cs +++ b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/RestOperations/ServerlessRuntimesRestOperations.cs @@ -25,7 +25,7 @@ internal partial class ServerlessRuntimesRestOperations /// Initializes a new instance of ServerlessRuntimesRestOperations. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The application id to use for user agent. - /// Azure Resource Manager url. + /// Service host. /// The API version to use for this operation. /// or is null. public ServerlessRuntimesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) From f1b7075fbae5b9dc886617002b05860729ede9fe Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:18:21 +0000 Subject: [PATCH 4/9] Update SDK code pr_re_7 --- ...csPurviewDataMapClientBuilderExtensions.cs | 2 +- .../AnalyticsPurviewDataMapModelFactory.cs | 600 +++++++++--------- .../src/Generated/DataMapClient.cs | 4 +- .../src/Generated/Discovery.cs | 2 +- .../src/Generated/Entity.cs | 4 +- .../src/Generated/Glossary.cs | 2 +- .../src/Generated/Lineage.cs | 2 +- .../src/Generated/Relationship.cs | 2 +- .../src/Generated/TypeDefinition.cs | 2 +- 9 files changed, 310 insertions(+), 310 deletions(-) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapClientBuilderExtensions.cs index 2d6f5b66cd410..8eb5aa3a6d72a 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapClientBuilderExtensions.cs @@ -16,7 +16,7 @@ public static partial class AnalyticsPurviewDataMapClientBuilderExtensions { /// Registers a instance. /// The builder to register with. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. public static IAzureClientBuilder AddDataMapClient(this TBuilder builder, Uri endpoint) where TBuilder : IAzureClientFactoryBuilderWithCredential { diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs index d545a38b54e9b..f9ad7b88c68ad 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs @@ -14,175 +14,186 @@ namespace Azure.Analytics.Purview.DataMap /// Model factory for models. public static partial class AnalyticsPurviewDataMapModelFactory { - /// Initializes a new instance of . - /// The attributes of the struct. - /// The name of the type. - /// ETag for concurrency control. - /// Business attributes. - /// An array of classifications. + /// Initializes a new instance of . + /// The enum of type category. /// The created time of the record. /// The user who created the record. - /// Custom Attribute. - /// The GUID of the entity. - /// The home ID of the entity. - /// The collection ID of the entity. - /// Whether it is a shell entity. - /// labels. - /// An array of term assignment headers indicating the meanings of the entity. - /// Used to record the provenance of an instance of an entity or relationship. - /// Determines if there's a proxy. - /// The attributes of relationship. - /// - /// Status of the entity - can be active or deleted. Deleted entities are not - /// removed. - /// + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. /// The update time of the record. /// The user who updated the record. - /// The version of the entity. - /// The dictionary of contacts for entities. Key could be Expert or Owner. - /// A new instance for mocking. - public static AtlasEntity AtlasEntity(IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, IDictionary businessAttributes = null, IEnumerable classifications = null, long? createTime = null, string createdBy = null, IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = null, IEnumerable labels = null, IEnumerable meanings = null, int? provenanceType = null, bool? proxy = null, IDictionary relationshipAttributes = null, EntityStatus? status = null, long? updateTime = null, string updatedBy = null, long? version = null, IDictionary> contacts = null) + /// The version of the record. + /// ETag for concurrency control. + /// + /// Specifying a list of entityType names in the classificationDef, ensures that + /// classifications can + /// only be applied to those entityTypes. + /// + /// Any subtypes of the entity types inherit the restriction. + /// + /// Any classificationDef subtypes inherit the parents entityTypes restrictions. + /// + /// Any classificationDef subtypes can further restrict the parents entityTypes + /// restrictions by specifying a subset of the entityTypes. + /// + /// An empty entityTypes list when there are no parent restrictions means there are no + /// restrictions. + /// + /// An empty entityTypes list when there are parent + /// restrictions means that the subtype picks up the parents + /// restrictions. + /// + /// If a list of entityTypes are supplied, where one inherits + /// from another, this will be rejected. This should encourage cleaner + /// classificationsDefs. + /// + /// + /// An array of sub types. + /// An array of super types. + /// An array of relationship attributes. + /// The default value. + /// An array of enum element definitions. + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// + /// The Relationship category determines the style of relationship around + /// containment and lifecycle. + /// UML terminology is used for the values. + /// + /// ASSOCIATION is a relationship with no containment. + /// COMPOSITION and AGGREGATION are containment relationships. + /// + /// The difference being in the lifecycles of the container and its children. + /// In the COMPOSITION case, the children cannot exist without the container. + /// For AGGREGATION, the life cycles of the container and children are totally independent. + /// + /// The label of the relationship. + /// An array of attribute definitions. + /// A new instance for mocking. + public static AtlasTypeDef AtlasTypeDef(TypeCategory? category = null, long? createTime = null, string createdBy = null, AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, IReadOnlyDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = null, string updatedBy = null, long? version = null, string lastModifiedTS = null, IEnumerable entityTypes = null, IEnumerable subTypes = null, IEnumerable superTypes = null, IEnumerable relationshipAttributeDefs = null, string defaultValue = null, IEnumerable elementDefs = null, AtlasRelationshipEndDef endDef1 = null, AtlasRelationshipEndDef endDef2 = null, RelationshipCategory? relationshipCategory = null, string relationshipLabel = null, IEnumerable attributeDefs = null) { - attributes ??= new Dictionary(); - businessAttributes ??= new Dictionary(); - classifications ??= new List(); - customAttributes ??= new Dictionary(); - labels ??= new List(); - meanings ??= new List(); - relationshipAttributes ??= new Dictionary(); - contacts ??= new Dictionary>(); + options ??= new Dictionary(); + entityTypes ??= new List(); + subTypes ??= new List(); + superTypes ??= new List(); + relationshipAttributeDefs ??= new List(); + elementDefs ??= new List(); + attributeDefs ??= new List(); - return new AtlasEntity( - attributes, - typeName, - lastModifiedTS, - businessAttributes, - classifications?.ToList(), + return new AtlasTypeDef( + category, createTime, createdBy, - customAttributes, + dateFormatter, + description, guid, - homeId, - collectionId, - isIncomplete, - labels?.ToList(), - meanings?.ToList(), - provenanceType, - proxy, - relationshipAttributes, - status, + name, + options, + serviceType, + typeVersion, updateTime, updatedBy, version, - contacts, + lastModifiedTS, + entityTypes?.ToList(), + subTypes?.ToList(), + superTypes?.ToList(), + relationshipAttributeDefs?.ToList(), + defaultValue, + elementDefs?.ToList(), + endDef1, + endDef2, + relationshipCategory, + relationshipLabel, + attributeDefs?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// A map of GUID assignments with entities. - /// The entity headers of mutated entities. - /// An array of entity headers that partially updated. - /// A new instance for mocking. - public static EntityMutationResult EntityMutationResult(IReadOnlyDictionary guidAssignments = null, IReadOnlyDictionary> mutatedEntities = null, IEnumerable partialUpdatedEntities = null) + /// Initializes a new instance of . + /// The enum of type category. + /// The GUID of the type definition. + /// The name of the type definition. + /// A new instance for mocking. + public static AtlasTypeDefHeader AtlasTypeDefHeader(TypeCategory? category = null, string guid = null, string name = null) { - guidAssignments ??= new Dictionary(); - mutatedEntities ??= new Dictionary>(); - partialUpdatedEntities ??= new List(); + return new AtlasTypeDefHeader(category, guid, name, serializedAdditionalRawData: null); + } - return new EntityMutationResult(guidAssignments, mutatedEntities, partialUpdatedEntities?.ToList(), serializedAdditionalRawData: null); + /// Initializes a new instance of . + /// The referred entity header. + /// Atlas relationship instance. + /// A new instance for mocking. + public static AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(IReadOnlyDictionary referredEntities = null, AtlasRelationship relationship = null) + { + referredEntities ??= new Dictionary(); + + return new AtlasRelationshipWithExtInfo(referredEntities, relationship, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// An array of objects. - /// The size of the page. - /// The sorted by field. - /// to specify whether the result should be sorted? If yes, whether asc or desc. - /// The start index of the page. - /// The total count of items. - /// A new instance for mocking. - public static AtlasClassifications AtlasClassifications(IEnumerable list = null, int? pageSize = null, string sortBy = null, AtlasSortType? sortType = null, int? startIndex = null, int? totalCount = null) + /// Initializes a new instance of . + /// The GUID of the base entity. + /// The GUID entity map. + /// The entity count in specific direction. + /// The depth of lineage. + /// The width of lineage. + /// The number of children node. + /// The enum of lineage direction. + /// An array of parentRelations relations. + /// An array of lineage relations. + /// A new instance for mocking. + public static AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, IReadOnlyDictionary guidEntityMap = null, IReadOnlyDictionary> widthCounts = null, int? lineageDepth = null, int? lineageWidth = null, int? childrenCount = null, LineageDirection? lineageDirection = null, IEnumerable parentRelations = null, IEnumerable relations = null) { - list ??= new List(); + guidEntityMap ??= new Dictionary(); + widthCounts ??= new Dictionary>(); + parentRelations ??= new List(); + relations ??= new List(); - return new AtlasClassifications( - list?.ToList(), - pageSize, - sortBy, - sortType, - startIndex, - totalCount, + return new AtlasLineageInfo( + baseEntityGuid, + guidEntityMap, + widthCounts, + lineageDepth, + lineageWidth, + childrenCount, + lineageDirection, + parentRelations?.ToList(), + relations?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// failed importInfoList. - /// successful importInfoList. - /// A new instance for mocking. - public static BulkImportResult BulkImportResult(IEnumerable failedImportInfoList = null, IEnumerable successImportInfoList = null) + /// Initializes a new instance of . + /// The GUID of child entity. + /// The GUID of relationship. + /// The GUID of parent entity. + /// A new instance for mocking. + public static ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { - failedImportInfoList ??= new List(); - successImportInfoList ??= new List(); - - return new BulkImportResult(failedImportInfoList?.ToList(), successImportInfoList?.ToList(), serializedAdditionalRawData: null); + return new ParentRelation(childEntityId, relationshipId, parentEntityId, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// childObjectName. - /// importStatus. - /// parentObjectName. - /// remarks. - /// A new instance for mocking. - public static ImportInfo ImportInfo(string childObjectName = null, ImportStatus? importStatus = null, string parentObjectName = null, string remarks = null) + /// Initializes a new instance of . + /// The GUID of from-entity. + /// The GUID of relationship. + /// The GUID of to-entity. + /// A new instance for mocking. + public static LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { - return new ImportInfo(childObjectName, importStatus, parentObjectName, remarks, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The GUID of the object. - /// An array of classifications. - /// The long version description. - /// The name of the glossary object. - /// The qualified name of the glossary object. - /// The short version of description. - /// ETag for concurrency control. - /// The created time of the record. - /// The user who created the record. - /// The update time of the record. - /// The user who updated the record. - /// An array of categories. - /// The language of the glossary. - /// An array of related term headers. - /// The usage of the glossary. - /// The glossary category information. - /// The glossary term information. - /// A new instance for mocking. - public static AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = null, string createdBy = null, long? updateTime = null, string updatedBy = null, IEnumerable categories = null, string language = null, IEnumerable terms = null, string usage = null, IReadOnlyDictionary categoryInfo = null, IReadOnlyDictionary termInfo = null) - { - classifications ??= new List(); - categories ??= new List(); - terms ??= new List(); - categoryInfo ??= new Dictionary(); - termInfo ??= new Dictionary(); - - return new AtlasGlossaryExtInfo( - guid, - classifications?.ToList(), - longDescription, - name, - qualifiedName, - shortDescription, - lastModifiedTS, - createTime, - createdBy, - updateTime, - updatedBy, - categories?.ToList(), - language, - terms?.ToList(), - usage, - categoryInfo, - termInfo, - serializedAdditionalRawData: null); + return new LineageRelation(fromEntityId, relationshipId, toEntityId, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -480,186 +491,175 @@ public static AutoCompleteResultValue AutoCompleteResultValue(string text = null return new AutoCompleteResultValue(text, queryPlusText, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The GUID of the base entity. - /// The GUID entity map. - /// The entity count in specific direction. - /// The depth of lineage. - /// The width of lineage. - /// The number of children node. - /// The enum of lineage direction. - /// An array of parentRelations relations. - /// An array of lineage relations. - /// A new instance for mocking. - public static AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, IReadOnlyDictionary guidEntityMap = null, IReadOnlyDictionary> widthCounts = null, int? lineageDepth = null, int? lineageWidth = null, int? childrenCount = null, LineageDirection? lineageDirection = null, IEnumerable parentRelations = null, IEnumerable relations = null) + /// Initializes a new instance of . + /// The GUID of the object. + /// An array of classifications. + /// The long version description. + /// The name of the glossary object. + /// The qualified name of the glossary object. + /// The short version of description. + /// ETag for concurrency control. + /// The created time of the record. + /// The user who created the record. + /// The update time of the record. + /// The user who updated the record. + /// An array of categories. + /// The language of the glossary. + /// An array of related term headers. + /// The usage of the glossary. + /// The glossary category information. + /// The glossary term information. + /// A new instance for mocking. + public static AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = null, string createdBy = null, long? updateTime = null, string updatedBy = null, IEnumerable categories = null, string language = null, IEnumerable terms = null, string usage = null, IReadOnlyDictionary categoryInfo = null, IReadOnlyDictionary termInfo = null) { - guidEntityMap ??= new Dictionary(); - widthCounts ??= new Dictionary>(); - parentRelations ??= new List(); - relations ??= new List(); + classifications ??= new List(); + categories ??= new List(); + terms ??= new List(); + categoryInfo ??= new Dictionary(); + termInfo ??= new Dictionary(); - return new AtlasLineageInfo( - baseEntityGuid, - guidEntityMap, - widthCounts, - lineageDepth, - lineageWidth, - childrenCount, - lineageDirection, - parentRelations?.ToList(), - relations?.ToList(), + return new AtlasGlossaryExtInfo( + guid, + classifications?.ToList(), + longDescription, + name, + qualifiedName, + shortDescription, + lastModifiedTS, + createTime, + createdBy, + updateTime, + updatedBy, + categories?.ToList(), + language, + terms?.ToList(), + usage, + categoryInfo, + termInfo, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The GUID of child entity. - /// The GUID of relationship. - /// The GUID of parent entity. - /// A new instance for mocking. - public static ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) - { - return new ParentRelation(childEntityId, relationshipId, parentEntityId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The GUID of from-entity. - /// The GUID of relationship. - /// The GUID of to-entity. - /// A new instance for mocking. - public static LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) - { - return new LineageRelation(fromEntityId, relationshipId, toEntityId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The referred entity header. - /// Atlas relationship instance. - /// A new instance for mocking. - public static AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(IReadOnlyDictionary referredEntities = null, AtlasRelationship relationship = null) - { - referredEntities ??= new Dictionary(); - - return new AtlasRelationshipWithExtInfo(referredEntities, relationship, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The enum of type category. + /// Initializes a new instance of . + /// The attributes of the struct. + /// The name of the type. + /// ETag for concurrency control. + /// Business attributes. + /// An array of classifications. /// The created time of the record. /// The user who created the record. - /// The date format. - /// The description of the type definition. - /// The GUID of the type definition. - /// The name of the type definition. - /// The options for the type definition. - /// The service type. - /// The version of the type. + /// Custom Attribute. + /// The GUID of the entity. + /// The home ID of the entity. + /// The collection ID of the entity. + /// Whether it is a shell entity. + /// labels. + /// An array of term assignment headers indicating the meanings of the entity. + /// Used to record the provenance of an instance of an entity or relationship. + /// Determines if there's a proxy. + /// The attributes of relationship. + /// + /// Status of the entity - can be active or deleted. Deleted entities are not + /// removed. + /// /// The update time of the record. /// The user who updated the record. - /// The version of the record. - /// ETag for concurrency control. - /// - /// Specifying a list of entityType names in the classificationDef, ensures that - /// classifications can - /// only be applied to those entityTypes. - /// - /// Any subtypes of the entity types inherit the restriction. - /// - /// Any classificationDef subtypes inherit the parents entityTypes restrictions. - /// - /// Any classificationDef subtypes can further restrict the parents entityTypes - /// restrictions by specifying a subset of the entityTypes. - /// - /// An empty entityTypes list when there are no parent restrictions means there are no - /// restrictions. - /// - /// An empty entityTypes list when there are parent - /// restrictions means that the subtype picks up the parents - /// restrictions. - /// - /// If a list of entityTypes are supplied, where one inherits - /// from another, this will be rejected. This should encourage cleaner - /// classificationsDefs. - /// - /// - /// An array of sub types. - /// An array of super types. - /// An array of relationship attributes. - /// The default value. - /// An array of enum element definitions. - /// - /// The relationshipEndDef represents an end of the relationship. The end of the - /// relationship is defined by a type, an - /// attribute name, cardinality and whether - /// it is the container end of the relationship. - /// - /// - /// The relationshipEndDef represents an end of the relationship. The end of the - /// relationship is defined by a type, an - /// attribute name, cardinality and whether - /// it is the container end of the relationship. - /// - /// - /// The Relationship category determines the style of relationship around - /// containment and lifecycle. - /// UML terminology is used for the values. - /// - /// ASSOCIATION is a relationship with no containment. - /// COMPOSITION and AGGREGATION are containment relationships. - /// - /// The difference being in the lifecycles of the container and its children. - /// In the COMPOSITION case, the children cannot exist without the container. - /// For AGGREGATION, the life cycles of the container and children are totally independent. - /// - /// The label of the relationship. - /// An array of attribute definitions. - /// A new instance for mocking. - public static AtlasTypeDef AtlasTypeDef(TypeCategory? category = null, long? createTime = null, string createdBy = null, AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, IReadOnlyDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = null, string updatedBy = null, long? version = null, string lastModifiedTS = null, IEnumerable entityTypes = null, IEnumerable subTypes = null, IEnumerable superTypes = null, IEnumerable relationshipAttributeDefs = null, string defaultValue = null, IEnumerable elementDefs = null, AtlasRelationshipEndDef endDef1 = null, AtlasRelationshipEndDef endDef2 = null, RelationshipCategory? relationshipCategory = null, string relationshipLabel = null, IEnumerable attributeDefs = null) + /// The version of the entity. + /// The dictionary of contacts for entities. Key could be Expert or Owner. + /// A new instance for mocking. + public static AtlasEntity AtlasEntity(IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, IDictionary businessAttributes = null, IEnumerable classifications = null, long? createTime = null, string createdBy = null, IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = null, IEnumerable labels = null, IEnumerable meanings = null, int? provenanceType = null, bool? proxy = null, IDictionary relationshipAttributes = null, EntityStatus? status = null, long? updateTime = null, string updatedBy = null, long? version = null, IDictionary> contacts = null) { - options ??= new Dictionary(); - entityTypes ??= new List(); - subTypes ??= new List(); - superTypes ??= new List(); - relationshipAttributeDefs ??= new List(); - elementDefs ??= new List(); - attributeDefs ??= new List(); + attributes ??= new Dictionary(); + businessAttributes ??= new Dictionary(); + classifications ??= new List(); + customAttributes ??= new Dictionary(); + labels ??= new List(); + meanings ??= new List(); + relationshipAttributes ??= new Dictionary(); + contacts ??= new Dictionary>(); - return new AtlasTypeDef( - category, + return new AtlasEntity( + attributes, + typeName, + lastModifiedTS, + businessAttributes, + classifications?.ToList(), createTime, createdBy, - dateFormatter, - description, + customAttributes, guid, - name, - options, - serviceType, - typeVersion, + homeId, + collectionId, + isIncomplete, + labels?.ToList(), + meanings?.ToList(), + provenanceType, + proxy, + relationshipAttributes, + status, updateTime, updatedBy, version, - lastModifiedTS, - entityTypes?.ToList(), - subTypes?.ToList(), - superTypes?.ToList(), - relationshipAttributeDefs?.ToList(), - defaultValue, - elementDefs?.ToList(), - endDef1, - endDef2, - relationshipCategory, - relationshipLabel, - attributeDefs?.ToList(), + contacts, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The enum of type category. - /// The GUID of the type definition. - /// The name of the type definition. - /// A new instance for mocking. - public static AtlasTypeDefHeader AtlasTypeDefHeader(TypeCategory? category = null, string guid = null, string name = null) + /// Initializes a new instance of . + /// A map of GUID assignments with entities. + /// The entity headers of mutated entities. + /// An array of entity headers that partially updated. + /// A new instance for mocking. + public static EntityMutationResult EntityMutationResult(IReadOnlyDictionary guidAssignments = null, IReadOnlyDictionary> mutatedEntities = null, IEnumerable partialUpdatedEntities = null) { - return new AtlasTypeDefHeader(category, guid, name, serializedAdditionalRawData: null); + guidAssignments ??= new Dictionary(); + mutatedEntities ??= new Dictionary>(); + partialUpdatedEntities ??= new List(); + + return new EntityMutationResult(guidAssignments, mutatedEntities, partialUpdatedEntities?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// An array of objects. + /// The size of the page. + /// The sorted by field. + /// to specify whether the result should be sorted? If yes, whether asc or desc. + /// The start index of the page. + /// The total count of items. + /// A new instance for mocking. + public static AtlasClassifications AtlasClassifications(IEnumerable list = null, int? pageSize = null, string sortBy = null, AtlasSortType? sortType = null, int? startIndex = null, int? totalCount = null) + { + list ??= new List(); + + return new AtlasClassifications( + list?.ToList(), + pageSize, + sortBy, + sortType, + startIndex, + totalCount, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// failed importInfoList. + /// successful importInfoList. + /// A new instance for mocking. + public static BulkImportResult BulkImportResult(IEnumerable failedImportInfoList = null, IEnumerable successImportInfoList = null) + { + failedImportInfoList ??= new List(); + successImportInfoList ??= new List(); + + return new BulkImportResult(failedImportInfoList?.ToList(), successImportInfoList?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// childObjectName. + /// importStatus. + /// parentObjectName. + /// remarks. + /// A new instance for mocking. + public static ImportInfo ImportInfo(string childObjectName = null, ImportStatus? importStatus = null, string parentObjectName = null, string remarks = null) + { + return new ImportInfo(childObjectName, importStatus, parentObjectName, remarks, serializedAdditionalRawData: null); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs index 1ddf6c2565899..ee9e5dc7d8548 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs @@ -33,7 +33,7 @@ protected DataMapClient() } /// Initializes a new instance of DataMapClient. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. /// A credential used to authenticate to an Azure Service. /// or is null. public DataMapClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new DataMapClientOptions()) @@ -41,7 +41,7 @@ public DataMapClient(Uri endpoint, TokenCredential credential) : this(endpoint, } /// Initializes a new instance of DataMapClient. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. /// A credential used to authenticate to an Azure Service. /// The options for configuring the client. /// or is null. diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs index e4fce86155aff..fb37ae5bb3f31 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs @@ -38,7 +38,7 @@ protected Discovery() /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The token credential to copy. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. /// The API version to use for this operation. internal Discovery(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) { diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs index 38fdb7f1c8071..89bb0c265b556 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs @@ -40,7 +40,7 @@ protected Entity() /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The token credential to copy. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. /// The API version to use for this operation. internal Entity(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) { @@ -5310,7 +5310,7 @@ internal HttpMessage CreateImportBusinessMetadataRequest(RequestContent content, uri.AppendPath("/atlas/v2/entity/businessmetadata/import", false); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", contentType); + request.Headers.Add("content-type", contentType); request.Content = content; return message; } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs index 2755c07b0e21b..f2517e386f096 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs @@ -40,7 +40,7 @@ protected Glossary() /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The token credential to copy. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. /// The API version to use for this operation. internal Glossary(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) { diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs index a7a8e053873d1..459971cfb468a 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs @@ -38,7 +38,7 @@ protected Lineage() /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The token credential to copy. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. /// The API version to use for this operation. internal Lineage(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) { diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs index 0958359785652..29c135adb6956 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs @@ -37,7 +37,7 @@ protected Relationship() /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The token credential to copy. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. internal Relationship(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint) { ClientDiagnostics = clientDiagnostics; diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs index 90cbe70034295..39c250b247e85 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs @@ -40,7 +40,7 @@ protected TypeDefinition() /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The token credential to copy. - /// The to use. + /// Purview Data Map Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Map helps organizations get more value from their existing investments. /// The API version to use for this operation. internal TypeDefinition(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) { From be9e38fb7914e7b31018ce6222ce6bb0515ecc80 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:19:34 +0000 Subject: [PATCH 5/9] Update SDK code da_ex_3 --- .../Generated/DocumentIntelligenceClient.cs | 4 +- .../DocumentIntelligenceModelFactory.cs | 62 +++++++++---------- .../EventGridNamespacesModelFactory.cs | 56 ++++++++--------- .../src/Generated/EventGridSenderClient.cs | 4 +- .../src/Generated/SystemEventsClient.cs | 18 +++++- 5 files changed, 78 insertions(+), 66 deletions(-) diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs index f10211a632023..379f54b9c4ac5 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs @@ -416,7 +416,7 @@ internal HttpMessage CreateAnalyzeDocumentRequest(string modelId, RequestContent } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); + request.Headers.Add("content-type", "application/json"); request.Content = content; return message; } @@ -443,7 +443,7 @@ internal HttpMessage CreateClassifyDocumentRequest(string classifierId, RequestC } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); + request.Headers.Add("content-type", "application/json"); request.Content = content; return message; } diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs index 1578040429509..52c6847a3cea0 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs @@ -664,37 +664,6 @@ public static BuildDocumentModelContent BuildDocumentModelContent(string modelId serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Operation ID. - /// Operation status. notStarted, running, completed, or failed. - /// Operation progress (0-100). - /// Date and time (UTC) when the operation was created. - /// Date and time (UTC) when the status was last updated. - /// URL of the resource targeted by this operation. - /// API version used to create this operation. - /// List of key-value tag attributes associated with the document model. - /// Encountered error. - /// Operation result upon success. - /// A new instance for mocking. - public static DocumentModelBuildOperationDetails DocumentModelBuildOperationDetails(string operationId = null, OperationStatus status = default, int? percentCompleted = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, Uri resourceLocation = null, string apiVersion = null, IReadOnlyDictionary tags = null, DocumentIntelligenceError error = null, DocumentModelDetails result = null) - { - tags ??= new Dictionary(); - - return new DocumentModelBuildOperationDetails( - operationId, - status, - percentCompleted, - createdOn, - lastUpdatedOn, - OperationKind.DocumentModelBuild, - resourceLocation, - apiVersion, - tags, - error, - serializedAdditionalRawData: null, - result); - } - /// Initializes a new instance of . /// Unique document model name. /// Document model description. @@ -779,6 +748,37 @@ public static DocumentIntelligenceWarning DocumentIntelligenceWarning(string cod return new DocumentIntelligenceWarning(code, message, target, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Operation ID. + /// Operation status. notStarted, running, completed, or failed. + /// Operation progress (0-100). + /// Date and time (UTC) when the operation was created. + /// Date and time (UTC) when the status was last updated. + /// URL of the resource targeted by this operation. + /// API version used to create this operation. + /// List of key-value tag attributes associated with the document model. + /// Encountered error. + /// Operation result upon success. + /// A new instance for mocking. + public static DocumentModelBuildOperationDetails DocumentModelBuildOperationDetails(string operationId = null, OperationStatus status = default, int? percentCompleted = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, Uri resourceLocation = null, string apiVersion = null, IReadOnlyDictionary tags = null, DocumentIntelligenceError error = null, DocumentModelDetails result = null) + { + tags ??= new Dictionary(); + + return new DocumentModelBuildOperationDetails( + operationId, + status, + percentCompleted, + createdOn, + lastUpdatedOn, + OperationKind.DocumentModelBuild, + resourceLocation, + apiVersion, + tags, + error, + serializedAdditionalRawData: null, + result); + } + /// Initializes a new instance of . /// Operation ID. /// Operation status. notStarted, running, completed, or failed. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridNamespacesModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridNamespacesModelFactory.cs index e353f948d5cc0..5204bf28004e6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridNamespacesModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridNamespacesModelFactory.cs @@ -13,34 +13,6 @@ namespace Azure.Messaging.EventGrid.Namespaces /// Model factory for models. public static partial class EventGridNamespacesModelFactory { - /// Initializes a new instance of . - /// Array of receive responses, one per cloud event. - /// A new instance for mocking. - public static ReceiveResult ReceiveResult(IEnumerable details = null) - { - details ??= new List(); - - return new ReceiveResult(details?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The Event Broker details. - /// Cloud Event details. - /// A new instance for mocking. - public static ReceiveDetails ReceiveDetails(BrokerProperties brokerProperties = null, CloudEvent @event = null) - { - return new ReceiveDetails(brokerProperties, @event, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The token of the lock on the event. - /// The attempt count for delivering the event. - /// A new instance for mocking. - public static BrokerProperties BrokerProperties(string lockToken = null, int deliveryCount = default) - { - return new BrokerProperties(lockToken, deliveryCount, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). /// Array of lock tokens for the successfully acknowledged cloud events. @@ -97,5 +69,33 @@ public static RenewLocksResult RenewLocksResult(IEnumerable fai return new RenewLocksResult(failedLockTokens?.ToList(), succeededLockTokens?.ToList(), serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// Array of receive responses, one per cloud event. + /// A new instance for mocking. + public static ReceiveResult ReceiveResult(IEnumerable details = null) + { + details ??= new List(); + + return new ReceiveResult(details?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The Event Broker details. + /// Cloud Event details. + /// A new instance for mocking. + public static ReceiveDetails ReceiveDetails(BrokerProperties brokerProperties = null, CloudEvent @event = null) + { + return new ReceiveDetails(brokerProperties, @event, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The token of the lock on the event. + /// The attempt count for delivering the event. + /// A new instance for mocking. + public static BrokerProperties BrokerProperties(string lockToken = null, int deliveryCount = default) + { + return new BrokerProperties(lockToken, deliveryCount, serializedAdditionalRawData: null); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs index 1d0b8a0a3d046..c15f5c156ae3a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs @@ -283,7 +283,7 @@ internal HttpMessage CreateSendRequest(string topicName, RequestContent content, uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/cloudevents+json; charset=utf-8"); + request.Headers.Add("content-type", "application/cloudevents+json; charset=utf-8"); request.Content = content; return message; } @@ -301,7 +301,7 @@ internal HttpMessage CreateSendEventsRequest(string topicName, RequestContent co uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/cloudevents-batch+json; charset=utf-8"); + request.Headers.Add("content-type", "application/cloudevents-batch+json; charset=utf-8"); request.Content = content; return message; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClient.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClient.cs index 3d3aeae078636..3d19f6f8d843a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClient.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClient.cs @@ -12,10 +12,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { // Data plane generated client. - /// The SystemEvents service client. + /// Azure Messaging EventGrid SystemEvents. internal partial class SystemEventsClient { private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; /// The ClientDiagnostics is used to provide tracing support for the client library. internal ClientDiagnostics ClientDiagnostics { get; } @@ -23,19 +24,30 @@ internal partial class SystemEventsClient /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline => _pipeline; + /// Initializes a new instance of SystemEventsClient for mocking. + protected SystemEventsClient() + { + } + /// Initializes a new instance of SystemEventsClient. - public SystemEventsClient() : this(new SystemEventsClientOptions()) + /// Service host. + /// is null. + public SystemEventsClient(Uri endpoint) : this(endpoint, new SystemEventsClientOptions()) { } /// Initializes a new instance of SystemEventsClient. + /// Service host. /// The options for configuring the client. - public SystemEventsClient(SystemEventsClientOptions options) + /// is null. + public SystemEventsClient(Uri endpoint, SystemEventsClientOptions options) { + Argument.AssertNotNull(endpoint, nameof(endpoint)); options ??= new SystemEventsClientOptions(); ClientDiagnostics = new ClientDiagnostics(options, true); _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), Array.Empty(), new ResponseClassifier()); + _endpoint = endpoint; } } } From 6ce7b0c36f619ee8dca4d8d891ceeb3edd1c4938 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:21:34 +0000 Subject: [PATCH 6/9] Update SDK code ad_ba_0 --- .../AIAnomalyDetectorModelFactory.cs | 236 +++++++++--------- .../src/Generated/AnomalyDetectorClient.cs | 19 +- .../src/Generated/BatchClient.cs | 46 ++-- .../src/Generated/ComputeBatchModelFactory.cs | 60 ++--- 4 files changed, 189 insertions(+), 172 deletions(-) diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs index 6267245646194..5131b55d15450 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs @@ -14,124 +14,6 @@ namespace Azure.AI.AnomalyDetector /// Model factory for models. public static partial class AIAnomalyDetectorModelFactory { - /// Initializes a new instance of . - /// Argument that indicates the time stamp of a data point (ISO8601 format). - /// Measurement of that point. - /// A new instance for mocking. - public static TimeSeriesPoint TimeSeriesPoint(DateTimeOffset? timestamp = null, float value = default) - { - return new TimeSeriesPoint(timestamp, value, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// Frequency extracted from the series. Zero means no recurrent pattern has been - /// found. - /// - /// Suggested input series points needed for detecting the latest point. - /// Expected value of the latest point. - /// - /// Upper margin of the latest point. UpperMargin is used to calculate - /// upperBoundary, which is equal to expectedValue + (100 - marginScale)*upperMargin. - /// If the value of latest point is between upperBoundary and lowerBoundary, it - /// should be treated as a normal value. Adjusting the marginScale value enables the anomaly - /// status of the latest point to be changed. - /// - /// - /// Lower margin of the latest point. LowerMargin is used to calculate - /// lowerBoundary, which is equal to expectedValue - (100 - marginScale)*lowerMargin. - /// - /// - /// Anomaly status of the latest point. True means the latest point is an anomaly, - /// either in the negative direction or in the positive direction. - /// - /// - /// Anomaly status of the latest point in a negative direction. True means the latest - /// point is an anomaly and its real value is smaller than the expected one. - /// - /// - /// Anomaly status of the latest point in a positive direction. True means the latest - /// point is an anomaly and its real value is larger than the expected one. - /// - /// - /// Severity score for the last input point. The larger the value is, the more - /// severe the anomaly is. For normal points, the severity is always 0. - /// - /// A new instance for mocking. - public static UnivariateLastDetectionResult UnivariateLastDetectionResult(int period = default, int suggestedWindow = default, float expectedValue = default, float upperMargin = default, float lowerMargin = default, bool isAnomaly = default, bool isNegativeAnomaly = default, bool isPositiveAnomaly = default, float? severity = null) - { - return new UnivariateLastDetectionResult( - period, - suggestedWindow, - expectedValue, - upperMargin, - lowerMargin, - isAnomaly, - isNegativeAnomaly, - isPositiveAnomaly, - severity, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// Time series data points. Points should be sorted by time stamp in ascending - /// order to match the change point detection result. - /// - /// Granularity is used to verify whether the input series is valid. - /// - /// A custom interval is used to set a nonstandard time interval. For example, if the - /// series is 5 minutes, the request can be set as {"granularity":"minutely", - /// "customInterval":5}. - /// - /// - /// Argument that indicates the periodic value of a time series. If the value is null or - /// not present, the API will determine the period automatically. - /// - /// - /// Argument that indicates an advanced model parameter. A default stableTrendWindow value will - /// be used in detection. - /// - /// - /// Argument that indicates an advanced model parameter between 0.0 and 1.0. The lower the - /// value is, the larger the trend error is, which means less change point will - /// be accepted. - /// - /// A new instance for mocking. - public static UnivariateChangePointDetectionOptions UnivariateChangePointDetectionOptions(IEnumerable series = null, TimeGranularity granularity = default, int? customInterval = null, int? period = null, int? stableTrendWindow = null, float? threshold = null) - { - series ??= new List(); - - return new UnivariateChangePointDetectionOptions( - series?.ToList(), - granularity, - customInterval, - period, - stableTrendWindow, - threshold, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// Frequency extracted from the series. Zero means no recurrent pattern has been - /// found. - /// - /// - /// Change point properties for each input point. True means - /// an anomaly (either negative or positive) has been detected. The index of the - /// array is consistent with the input series. - /// - /// Change point confidence of each point. - /// A new instance for mocking. - public static UnivariateChangePointDetectionResult UnivariateChangePointDetectionResult(int? period = null, IEnumerable isChangePoint = null, IEnumerable confidenceScores = null) - { - isChangePoint ??= new List(); - confidenceScores ??= new List(); - - return new UnivariateChangePointDetectionResult(period, isChangePoint?.ToList(), confidenceScores?.ToList(), serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Result identifier that's used to fetch the results of an inference call. /// Multivariate anomaly detection status. @@ -349,5 +231,123 @@ public static MultivariateLastDetectionResult MultivariateLastDetectionResult(IE return new MultivariateLastDetectionResult(variableStates?.ToList(), results?.ToList(), serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// Argument that indicates the time stamp of a data point (ISO8601 format). + /// Measurement of that point. + /// A new instance for mocking. + public static TimeSeriesPoint TimeSeriesPoint(DateTimeOffset? timestamp = null, float value = default) + { + return new TimeSeriesPoint(timestamp, value, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Frequency extracted from the series. Zero means no recurrent pattern has been + /// found. + /// + /// Suggested input series points needed for detecting the latest point. + /// Expected value of the latest point. + /// + /// Upper margin of the latest point. UpperMargin is used to calculate + /// upperBoundary, which is equal to expectedValue + (100 - marginScale)*upperMargin. + /// If the value of latest point is between upperBoundary and lowerBoundary, it + /// should be treated as a normal value. Adjusting the marginScale value enables the anomaly + /// status of the latest point to be changed. + /// + /// + /// Lower margin of the latest point. LowerMargin is used to calculate + /// lowerBoundary, which is equal to expectedValue - (100 - marginScale)*lowerMargin. + /// + /// + /// Anomaly status of the latest point. True means the latest point is an anomaly, + /// either in the negative direction or in the positive direction. + /// + /// + /// Anomaly status of the latest point in a negative direction. True means the latest + /// point is an anomaly and its real value is smaller than the expected one. + /// + /// + /// Anomaly status of the latest point in a positive direction. True means the latest + /// point is an anomaly and its real value is larger than the expected one. + /// + /// + /// Severity score for the last input point. The larger the value is, the more + /// severe the anomaly is. For normal points, the severity is always 0. + /// + /// A new instance for mocking. + public static UnivariateLastDetectionResult UnivariateLastDetectionResult(int period = default, int suggestedWindow = default, float expectedValue = default, float upperMargin = default, float lowerMargin = default, bool isAnomaly = default, bool isNegativeAnomaly = default, bool isPositiveAnomaly = default, float? severity = null) + { + return new UnivariateLastDetectionResult( + period, + suggestedWindow, + expectedValue, + upperMargin, + lowerMargin, + isAnomaly, + isNegativeAnomaly, + isPositiveAnomaly, + severity, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Time series data points. Points should be sorted by time stamp in ascending + /// order to match the change point detection result. + /// + /// Granularity is used to verify whether the input series is valid. + /// + /// A custom interval is used to set a nonstandard time interval. For example, if the + /// series is 5 minutes, the request can be set as {"granularity":"minutely", + /// "customInterval":5}. + /// + /// + /// Argument that indicates the periodic value of a time series. If the value is null or + /// not present, the API will determine the period automatically. + /// + /// + /// Argument that indicates an advanced model parameter. A default stableTrendWindow value will + /// be used in detection. + /// + /// + /// Argument that indicates an advanced model parameter between 0.0 and 1.0. The lower the + /// value is, the larger the trend error is, which means less change point will + /// be accepted. + /// + /// A new instance for mocking. + public static UnivariateChangePointDetectionOptions UnivariateChangePointDetectionOptions(IEnumerable series = null, TimeGranularity granularity = default, int? customInterval = null, int? period = null, int? stableTrendWindow = null, float? threshold = null) + { + series ??= new List(); + + return new UnivariateChangePointDetectionOptions( + series?.ToList(), + granularity, + customInterval, + period, + stableTrendWindow, + threshold, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Frequency extracted from the series. Zero means no recurrent pattern has been + /// found. + /// + /// + /// Change point properties for each input point. True means + /// an anomaly (either negative or positive) has been detected. The index of the + /// array is consistent with the input series. + /// + /// Change point confidence of each point. + /// A new instance for mocking. + public static UnivariateChangePointDetectionResult UnivariateChangePointDetectionResult(int? period = null, IEnumerable isChangePoint = null, IEnumerable confidenceScores = null) + { + isChangePoint ??= new List(); + confidenceScores ??= new List(); + + return new UnivariateChangePointDetectionResult(period, isChangePoint?.ToList(), confidenceScores?.ToList(), serializedAdditionalRawData: null); + } } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorClient.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorClient.cs index 0826d24f88f39..28869804a4bbd 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorClient.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorClient.cs @@ -13,7 +13,24 @@ namespace Azure.AI.AnomalyDetector { // Data plane generated client. - /// The AnomalyDetector service client. + /// + /// The Anomaly Detector API detects anomalies automatically in time series data. + /// It supports both a stateless detection mode and a + /// stateful detection mode. In stateless mode, there are three functionalities. Entire + /// Detect is for detecting the whole series, with the model trained by the time series. + /// Last Detect is for detecting the last point, with the model trained by points before. + /// ChangePoint Detect is for detecting trend changes in the time series. In stateful + /// mode, the user can store time series. The stored time series will be used for + /// detection anomalies. In this mode, the user can still use the preceding three + /// functionalities by only giving a time range without preparing time series on the + /// client side. Besides the preceding three functionalities, the stateful model + /// provides group-based detection and labeling services. By using the labeling + /// service, the user can provide labels for each detection result. These labels will be + /// used for retuning or regenerating detection models. Inconsistency detection is + /// a kind of group-based detection that finds inconsistencies in + /// a set of time series. By using the anomaly detector service, business customers can + /// discover incidents and establish a logic flow for root cause analysis. + /// public partial class AnomalyDetectorClient { private const string AuthorizationHeader = "Ocp-Apim-Subscription-Key"; diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs index 47672eb0c12fb..e9ae40ae68a88 100644 --- a/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs +++ b/sdk/batch/Azure.Compute.Batch/src/Generated/BatchClient.cs @@ -9284,7 +9284,7 @@ internal HttpMessage CreateCreatePoolRequest(RequestContent content, int? timeOu { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9450,7 +9450,7 @@ internal HttpMessage CreateUpdatePoolRequest(string poolId, RequestContent conte { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9508,7 +9508,7 @@ internal HttpMessage CreateEnablePoolAutoScaleRequest(string poolId, RequestCont { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9536,7 +9536,7 @@ internal HttpMessage CreateEvaluatePoolAutoScaleRequest(string poolId, RequestCo { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9568,7 +9568,7 @@ internal HttpMessage CreateResizePoolRequest(string poolId, RequestContent conte { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9626,7 +9626,7 @@ internal HttpMessage CreateReplacePoolPropertiesRequest(string poolId, RequestCo { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9658,7 +9658,7 @@ internal HttpMessage CreateRemoveNodesRequest(string poolId, RequestContent cont { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9819,7 +9819,7 @@ internal HttpMessage CreateUpdateJobRequest(string jobId, RequestContent content { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9850,7 +9850,7 @@ internal HttpMessage CreateReplaceJobRequest(string jobId, RequestContent conten { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9882,7 +9882,7 @@ internal HttpMessage CreateDisableJobRequest(string jobId, RequestContent conten { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9944,7 +9944,7 @@ internal HttpMessage CreateTerminateJobRequest(string jobId, RequestContent cont { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -9970,7 +9970,7 @@ internal HttpMessage CreateCreateJobRequest(RequestContent content, int? timeOut { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10242,7 +10242,7 @@ internal HttpMessage CreateUpdateJobScheduleRequest(string jobScheduleId, Reques { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10273,7 +10273,7 @@ internal HttpMessage CreateReplaceJobScheduleRequest(string jobScheduleId, Reque { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10389,7 +10389,7 @@ internal HttpMessage CreateCreateJobScheduleRequest(RequestContent content, int? { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10457,7 +10457,7 @@ internal HttpMessage CreateCreateTaskRequest(string jobId, RequestContent conten { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10527,7 +10527,7 @@ internal HttpMessage CreateCreateTaskCollectionRequest(string jobId, RequestCont { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10630,7 +10630,7 @@ internal HttpMessage CreateReplaceTaskRequest(string jobId, string taskId, Reque { request.Headers.Add(requestConditions, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10899,7 +10899,7 @@ internal HttpMessage CreateCreateNodeUserRequest(string poolId, string nodeId, R { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -10959,7 +10959,7 @@ internal HttpMessage CreateReplaceNodeUserRequest(string poolId, string nodeId, { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -11020,7 +11020,7 @@ internal HttpMessage CreateRebootNodeRequest(string poolId, string nodeId, Reque { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -11050,7 +11050,7 @@ internal HttpMessage CreateDisableNodeSchedulingRequest(string poolId, string no { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } @@ -11136,7 +11136,7 @@ internal HttpMessage CreateUploadNodeLogsRequest(string poolId, string nodeId, R { request.Headers.Add("ocp-date", ocpdate.Value, "R"); } - request.Headers.Add("Content-Type", "application/json; odata=minimalmetadata"); + request.Headers.Add("content-type", "application/json; odata=minimalmetadata"); request.Content = content; return message; } diff --git a/sdk/batch/Azure.Compute.Batch/src/Generated/ComputeBatchModelFactory.cs b/sdk/batch/Azure.Compute.Batch/src/Generated/ComputeBatchModelFactory.cs index 740040cdfeaa7..51e40bc9f43a2 100644 --- a/sdk/batch/Azure.Compute.Batch/src/Generated/ComputeBatchModelFactory.cs +++ b/sdk/batch/Azure.Compute.Batch/src/Generated/ComputeBatchModelFactory.cs @@ -26,6 +26,36 @@ public static BatchApplication BatchApplication(string id = null, string display return new BatchApplication(id, displayName, versions?.ToList(), serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// A message describing the error, intended to be suitable for display in a user interface. + /// A collection of key-value pairs containing additional details about the error. + /// A new instance for mocking. + public static BatchError BatchError(string code = null, BatchErrorMessage message = null, IEnumerable values = null) + { + values ??= new List(); + + return new BatchError(code, message, values?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The language code of the error message. + /// The text of the message. + /// A new instance for mocking. + public static BatchErrorMessage BatchErrorMessage(string lang = null, string value = null) + { + return new BatchErrorMessage(lang, value, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// An identifier specifying the meaning of the Value property. + /// The additional information included with the error response. + /// A new instance for mocking. + public static BatchErrorDetail BatchErrorDetail(string key = null, string value = null) + { + return new BatchErrorDetail(key, value, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The ID of the Pool whose metrics are aggregated in this entry. /// The start time of the aggregation interval covered by this entry. @@ -1057,36 +1087,6 @@ public static BatchTaskAddResult BatchTaskAddResult(BatchTaskAddStatus status = serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// A message describing the error, intended to be suitable for display in a user interface. - /// A collection of key-value pairs containing additional details about the error. - /// A new instance for mocking. - public static BatchError BatchError(string code = null, BatchErrorMessage message = null, IEnumerable values = null) - { - values ??= new List(); - - return new BatchError(code, message, values?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The language code of the error message. - /// The text of the message. - /// A new instance for mocking. - public static BatchErrorMessage BatchErrorMessage(string lang = null, string value = null) - { - return new BatchErrorMessage(lang, value, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// An identifier specifying the meaning of the Value property. - /// The additional information included with the error response. - /// A new instance for mocking. - public static BatchErrorDetail BatchErrorDetail(string key = null, string value = null) - { - return new BatchErrorDetail(key, value, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The ID of the subtask. /// Information about the Compute Node on which the subtask ran. From ef299bb0f8f4753bc80dbb7cf24b13c990ecba5a Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:23:58 +0000 Subject: [PATCH 7/9] Update SDK code re_st_8 --- .../src/Generated/SchemaRegistryClient.cs | 80 +++++++++++-------- 1 file changed, 48 insertions(+), 32 deletions(-) diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/SchemaRegistryClient.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/SchemaRegistryClient.cs index 09f5d7667091f..798fedf1bc673 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/SchemaRegistryClient.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/SchemaRegistryClient.cs @@ -32,31 +32,35 @@ public partial class SchemaRegistryClient /// Get a registered schema by its unique ID reference. /// Schema ID that uniquely identifies a schema in the registry namespace. + /// The to use. /// The cancellation token to use. - /// is null. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Gets a registered schema by its unique ID. Azure Schema Registry guarantees that ID is unique within a namespace. Operation response type is based on serialization of schema requested. - internal virtual async Task> GetSchemaByIdAsync(string id, CancellationToken cancellationToken = default) + internal virtual async Task> GetSchemaByIdAsync(string id, string accept, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(accept, nameof(accept)); RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetSchemaByIdAsync(id, context).ConfigureAwait(false); + Response response = await GetSchemaByIdAsync(id, accept, context).ConfigureAwait(false); return Response.FromValue(response.Content, response); } /// Get a registered schema by its unique ID reference. /// Schema ID that uniquely identifies a schema in the registry namespace. + /// The to use. /// The cancellation token to use. - /// is null. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Gets a registered schema by its unique ID. Azure Schema Registry guarantees that ID is unique within a namespace. Operation response type is based on serialization of schema requested. - internal virtual Response GetSchemaById(string id, CancellationToken cancellationToken = default) + internal virtual Response GetSchemaById(string id, string accept, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(accept, nameof(accept)); RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetSchemaById(id, context); + Response response = GetSchemaById(id, accept, context); return Response.FromValue(response.Content, response); } @@ -70,26 +74,28 @@ internal virtual Response GetSchemaById(string id, CancellationToken /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// /// /// Schema ID that uniquely identifies a schema in the registry namespace. + /// The to use. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - internal virtual async Task GetSchemaByIdAsync(string id, RequestContext context) + internal virtual async Task GetSchemaByIdAsync(string id, string accept, RequestContext context) { Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(accept, nameof(accept)); using var scope = ClientDiagnostics.CreateScope("SchemaRegistryClient.GetSchemaById"); scope.Start(); try { - using HttpMessage message = CreateGetSchemaByIdRequest(id, context); + using HttpMessage message = CreateGetSchemaByIdRequest(id, accept, context); return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) @@ -109,26 +115,28 @@ internal virtual async Task GetSchemaByIdAsync(string id, RequestConte /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// /// /// Schema ID that uniquely identifies a schema in the registry namespace. + /// The to use. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - internal virtual Response GetSchemaById(string id, RequestContext context) + internal virtual Response GetSchemaById(string id, string accept, RequestContext context) { Argument.AssertNotNullOrEmpty(id, nameof(id)); + Argument.AssertNotNull(accept, nameof(accept)); using var scope = ClientDiagnostics.CreateScope("SchemaRegistryClient.GetSchemaById"); scope.Start(); try { - using HttpMessage message = CreateGetSchemaByIdRequest(id, context); + using HttpMessage message = CreateGetSchemaByIdRequest(id, accept, context); return _pipeline.ProcessMessage(message, context); } catch (Exception e) @@ -142,17 +150,19 @@ internal virtual Response GetSchemaById(string id, RequestContext context) /// Name of schema group. /// Name of schema. /// Version number of specific schema. + /// The to use. /// The cancellation token to use. - /// or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. /// Gets one specific version of one schema. - internal virtual async Task> GetSchemaByVersionAsync(string groupName, string schemaName, int schemaVersion, CancellationToken cancellationToken = default) + internal virtual async Task> GetSchemaByVersionAsync(string groupName, string schemaName, int schemaVersion, string accept, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); Argument.AssertNotNullOrEmpty(schemaName, nameof(schemaName)); + Argument.AssertNotNull(accept, nameof(accept)); RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetSchemaByVersionAsync(groupName, schemaName, schemaVersion, context).ConfigureAwait(false); + Response response = await GetSchemaByVersionAsync(groupName, schemaName, schemaVersion, accept, context).ConfigureAwait(false); return Response.FromValue(response.Content, response); } @@ -160,17 +170,19 @@ internal virtual async Task> GetSchemaByVersionAsync(string /// Name of schema group. /// Name of schema. /// Version number of specific schema. + /// The to use. /// The cancellation token to use. - /// or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. /// Gets one specific version of one schema. - internal virtual Response GetSchemaByVersion(string groupName, string schemaName, int schemaVersion, CancellationToken cancellationToken = default) + internal virtual Response GetSchemaByVersion(string groupName, string schemaName, int schemaVersion, string accept, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); Argument.AssertNotNullOrEmpty(schemaName, nameof(schemaName)); + Argument.AssertNotNull(accept, nameof(accept)); RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetSchemaByVersion(groupName, schemaName, schemaVersion, context); + Response response = GetSchemaByVersion(groupName, schemaName, schemaVersion, accept, context); return Response.FromValue(response.Content, response); } @@ -184,7 +196,7 @@ internal virtual Response GetSchemaByVersion(string groupName, strin /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -192,21 +204,23 @@ internal virtual Response GetSchemaByVersion(string groupName, strin /// Name of schema group. /// Name of schema. /// Version number of specific schema. + /// The to use. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - internal virtual async Task GetSchemaByVersionAsync(string groupName, string schemaName, int schemaVersion, RequestContext context) + internal virtual async Task GetSchemaByVersionAsync(string groupName, string schemaName, int schemaVersion, string accept, RequestContext context) { Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); Argument.AssertNotNullOrEmpty(schemaName, nameof(schemaName)); + Argument.AssertNotNull(accept, nameof(accept)); using var scope = ClientDiagnostics.CreateScope("SchemaRegistryClient.GetSchemaByVersion"); scope.Start(); try { - using HttpMessage message = CreateGetSchemaByVersionRequest(groupName, schemaName, schemaVersion, context); + using HttpMessage message = CreateGetSchemaByVersionRequest(groupName, schemaName, schemaVersion, accept, context); return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) @@ -226,7 +240,7 @@ internal virtual async Task GetSchemaByVersionAsync(string groupName, /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -234,21 +248,23 @@ internal virtual async Task GetSchemaByVersionAsync(string groupName, /// Name of schema group. /// Name of schema. /// Version number of specific schema. + /// The to use. /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - internal virtual Response GetSchemaByVersion(string groupName, string schemaName, int schemaVersion, RequestContext context) + internal virtual Response GetSchemaByVersion(string groupName, string schemaName, int schemaVersion, string accept, RequestContext context) { Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); Argument.AssertNotNullOrEmpty(schemaName, nameof(schemaName)); + Argument.AssertNotNull(accept, nameof(accept)); using var scope = ClientDiagnostics.CreateScope("SchemaRegistryClient.GetSchemaByVersion"); scope.Start(); try { - using HttpMessage message = CreateGetSchemaByVersionRequest(groupName, schemaName, schemaVersion, context); + using HttpMessage message = CreateGetSchemaByVersionRequest(groupName, schemaName, schemaVersion, accept, context); return _pipeline.ProcessMessage(message, context); } catch (Exception e) @@ -724,7 +740,7 @@ internal HttpMessage CreateGetSchemaVersionsRequest(string groupName, string sch return message; } - internal HttpMessage CreateGetSchemaByIdRequest(string id, RequestContext context) + internal HttpMessage CreateGetSchemaByIdRequest(string id, string accept, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; @@ -736,11 +752,11 @@ internal HttpMessage CreateGetSchemaByIdRequest(string id, RequestContext contex uri.AppendPath(id, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - request.Headers.Add("Accept", "application/json; serialization=Avro"); + request.Headers.Add("Accept", accept); return message; } - internal HttpMessage CreateGetSchemaByVersionRequest(string groupName, string schemaName, int schemaVersion, RequestContext context) + internal HttpMessage CreateGetSchemaByVersionRequest(string groupName, string schemaName, int schemaVersion, string accept, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier200); var request = message.Request; @@ -756,7 +772,7 @@ internal HttpMessage CreateGetSchemaByVersionRequest(string groupName, string sc uri.AppendPath(schemaVersion, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - request.Headers.Add("Accept", "application/json; serialization=Avro"); + request.Headers.Add("Accept", accept); return message; } From 1b9c80d6f7beb552e41cb22e807f8329026fcea1 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:24:10 +0000 Subject: [PATCH 8/9] Update SDK code st_wo_9 --- .../src/Generated/SingleDocumentTranslationClient.cs | 2 +- .../src/Generated/ImageAnalysisClient.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs index c2f94f2c81701..2fc39eb28f5d2 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs @@ -301,7 +301,7 @@ internal HttpMessage CreateDocumentTranslateRequest(string targetLanguage, Reque } request.Uri = uri; request.Headers.Add("Accept", "application/octet-stream"); - request.Headers.Add("Content-Type", contentType); + request.Headers.Add("content-type", contentType); request.Content = content; return message; } diff --git a/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs b/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs index c2e4d366784d5..22c9ea7670b43 100644 --- a/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs +++ b/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs @@ -573,7 +573,7 @@ internal HttpMessage CreateAnalyzeFromImageDataRequest(IEnumerable } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); + request.Headers.Add("content-type", "application/json"); request.Content = content; return message; } From c5091169e70f5f944fb006e459cdc250695b7e82 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 12 Jul 2024 02:30:17 +0000 Subject: [PATCH 9/9] Update SDK code co_da_2 --- .../src/Generated/CodeTransparencyClient.cs | 2 +- .../SecurityCodeTransparencyClientBuilderExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/CodeTransparencyClient.cs b/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/CodeTransparencyClient.cs index f81053449e3bd..44ba7b26c04bb 100644 --- a/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/CodeTransparencyClient.cs +++ b/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/CodeTransparencyClient.cs @@ -37,7 +37,7 @@ protected CodeTransparencyClient() } /// Initializes a new instance of CodeTransparencyClient. - /// The to use. + /// Code Transparency Service. /// A credential used to authenticate to an Azure Service. /// or is null. public CodeTransparencyClient(Uri endpoint, AzureKeyCredential credential) : this(endpoint, credential, new CodeTransparencyClientOptions()) diff --git a/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/SecurityCodeTransparencyClientBuilderExtensions.cs b/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/SecurityCodeTransparencyClientBuilderExtensions.cs index 7eb9efd1f91b0..058fa2e773eb6 100644 --- a/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/SecurityCodeTransparencyClientBuilderExtensions.cs +++ b/sdk/confidentialledger/Azure.Security.CodeTransparency/src/Generated/SecurityCodeTransparencyClientBuilderExtensions.cs @@ -17,7 +17,7 @@ public static partial class SecurityCodeTransparencyClientBuilderExtensions { /// Registers a instance. /// The builder to register with. - /// The to use. + /// Code Transparency Service. /// A credential used to authenticate to an Azure Service. public static IAzureClientBuilder AddCodeTransparencyClient(this TBuilder builder, Uri endpoint, AzureKeyCredential credential) where TBuilder : IAzureClientFactoryBuilder