diff --git a/sdk/apicenter/azure.ApiCenter/Configuration.json b/sdk/apicenter/azure.ApiCenter/Configuration.json
new file mode 100644
index 000000000000..485b7a85641c
--- /dev/null
+++ b/sdk/apicenter/azure.ApiCenter/Configuration.json
@@ -0,0 +1,12 @@
+{
+ "output-folder": ".",
+ "namespace": "azure.ApiCenter",
+ "library-name": "azure.ApiCenter",
+ "flavor": "azure",
+ "use-model-reader-writer": true,
+ "shared-source-folders": [
+ "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Generator.Shared",
+ "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Azure.Core.Shared"
+ ],
+ "model-namespace": false
+}
diff --git a/sdk/apicenter/azure.ApiCenter/tsp-location.yaml b/sdk/apicenter/azure.ApiCenter/tsp-location.yaml
new file mode 100644
index 000000000000..f922473710a1
--- /dev/null
+++ b/sdk/apicenter/azure.ApiCenter/tsp-location.yaml
@@ -0,0 +1,4 @@
+directory: specification/apicenter/ApiCenter.DataApi
+commit: 60cdfa5bab6d13277f65080c556de2eef80561c0
+repo: Azure/azure-rest-api-specs
+additionalDirectories:
diff --git a/sdk/apicenter/azure.ApiCenter/tspCodeModel.json b/sdk/apicenter/azure.ApiCenter/tspCodeModel.json
new file mode 100644
index 000000000000..34402de36525
--- /dev/null
+++ b/sdk/apicenter/azure.ApiCenter/tspCodeModel.json
@@ -0,0 +1,8116 @@
+{
+ "$id": "1",
+ "Name": "ApiCenter.DataApi",
+ "ApiVersions": [
+ "2024-02-01-preview"
+ ],
+ "Enums": [
+ {
+ "$id": "2",
+ "kind": "enum",
+ "name": "LifecycleStage",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.LifecycleStage",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "4",
+ "kind": "enumvalue",
+ "name": "Design",
+ "value": "design",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "API is in the design stage",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "enumvalue",
+ "name": "Development",
+ "value": "development",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "API is in the development stage",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "enumvalue",
+ "name": "Testing",
+ "value": "testing",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "API is in the testing stage",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "enumvalue",
+ "name": "Preview",
+ "value": "preview",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "API is in the preview stage",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "enumvalue",
+ "name": "Production",
+ "value": "production",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "API is in the production stage",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "enumvalue",
+ "name": "Deprecated",
+ "value": "deprecated",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "API is in the deprecated stage",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "enumvalue",
+ "name": "Retired",
+ "value": "retired",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "API is in the retired stage",
+ "decorators": []
+ }
+ ],
+ "namespace": "ApiCenter.DataApi",
+ "doc": "API Lifecycle Stage",
+ "isFixed": false,
+ "isFlags": false,
+ "usage": "Output,Json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "enum",
+ "name": "EnvironmentKind",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.EnvironmentKind",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "20",
+ "kind": "enumvalue",
+ "name": "Development",
+ "value": "development",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "18"
+ },
+ "doc": "Environment is in the development stage",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "enumvalue",
+ "name": "Testing",
+ "value": "testing",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "18"
+ },
+ "doc": "Environment is in the testing stage",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "enumvalue",
+ "name": "Staging",
+ "value": "staging",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "18"
+ },
+ "doc": "Environment is in the staging stage",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "enumvalue",
+ "name": "Production",
+ "value": "production",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "18"
+ },
+ "doc": "Environment is in the production stage",
+ "decorators": []
+ }
+ ],
+ "namespace": "ApiCenter.DataApi",
+ "doc": "Environment kind",
+ "isFixed": false,
+ "isFlags": false,
+ "usage": "Output,Json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "enum",
+ "name": "ApiSpecExportResultFormat",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecExportResultFormat",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "30",
+ "kind": "enumvalue",
+ "name": "Link",
+ "value": "link",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "28"
+ },
+ "doc": "Link format",
+ "decorators": []
+ }
+ ],
+ "namespace": "ApiCenter.DataApi",
+ "doc": "Export specification result format",
+ "isFixed": false,
+ "isFlags": false,
+ "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "enum",
+ "name": "ApiKind",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiKind",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "34",
+ "kind": "enumvalue",
+ "name": "Rest",
+ "value": "rest",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
+ },
+ "doc": "REST API",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "enumvalue",
+ "name": "Graphql",
+ "value": "graphql",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
+ },
+ "doc": "GraphQL API",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "enumvalue",
+ "name": "Grpc",
+ "value": "grpc",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
+ },
+ "doc": "GRPC API",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "enumvalue",
+ "name": "Soap",
+ "value": "soap",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
+ },
+ "doc": "SOAP API",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "enumvalue",
+ "name": "Webhook",
+ "value": "webhook",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
+ },
+ "doc": "Webhook API",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "enumvalue",
+ "name": "Websocket",
+ "value": "websocket",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
+ },
+ "doc": "Websocket API",
+ "decorators": []
+ }
+ ],
+ "namespace": "ApiCenter.DataApi",
+ "doc": "API kind",
+ "isFixed": false,
+ "isFlags": false,
+ "usage": "Output,Json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "enum",
+ "name": "Versions",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Versions",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "48",
+ "kind": "enumvalue",
+ "name": "v2024_02_01_preview",
+ "value": "2024-02-01-preview",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "46"
+ },
+ "doc": "Preview release version 2024-02-01-preview",
+ "decorators": []
+ }
+ ],
+ "namespace": "ApiCenter.DataApi",
+ "doc": "API versions",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "ApiVersionEnum",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "enum",
+ "name": "OperationState",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationState",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "52",
+ "kind": "enumvalue",
+ "name": "NotStarted",
+ "value": "NotStarted",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "50"
+ },
+ "doc": "The operation has not started.",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "enumvalue",
+ "name": "Running",
+ "value": "Running",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "50"
+ },
+ "doc": "The operation is in progress.",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "enumvalue",
+ "name": "Succeeded",
+ "value": "Succeeded",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "50"
+ },
+ "doc": "The operation has completed successfully.",
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "enumvalue",
+ "name": "Failed",
+ "value": "Failed",
+ "valueType": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "50"
+ },
+ "doc": "The operation has failed.",
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "enumvalue",
+ "name": "Canceled",
+ "value": "Canceled",
+ "valueType": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "50"
+ },
+ "doc": "The operation has been canceled by the user.",
+ "decorators": []
+ }
+ ],
+ "namespace": "Azure.Core.Foundations",
+ "doc": "Enum describing allowed operation states.",
+ "isFixed": false,
+ "isFlags": false,
+ "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "decorators": []
+ }
+ ],
+ "Models": [
+ {
+ "$id": "62",
+ "kind": "model",
+ "name": "ApiVersion",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiVersion",
+ "usage": "Output,Json",
+ "doc": "API version resource model.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "63",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "Version identifier.",
+ "type": {
+ "$id": "64",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiVersion.name",
+ "serializationOptions": {
+ "$id": "65",
+ "json": {
+ "$id": "66",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "67",
+ "kind": "property",
+ "name": "title",
+ "serializedName": "title",
+ "doc": "Version title.",
+ "type": {
+ "$id": "68",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiVersion.title",
+ "serializationOptions": {
+ "$id": "69",
+ "json": {
+ "$id": "70",
+ "name": "title"
+ }
+ }
+ },
+ {
+ "$id": "71",
+ "kind": "property",
+ "name": "lifecycleStage",
+ "serializedName": "lifecycleStage",
+ "doc": "Current lifecycle stage of the API version.",
+ "type": {
+ "$ref": "2"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiVersion.lifecycleStage",
+ "serializationOptions": {
+ "$id": "72",
+ "json": {
+ "$id": "73",
+ "name": "lifecycleStage"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "74",
+ "kind": "model",
+ "name": "Environment",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment",
+ "usage": "Output,Json",
+ "doc": "Environment resource model.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "75",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "Environment identifier.",
+ "type": {
+ "$id": "76",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.name",
+ "serializationOptions": {
+ "$id": "77",
+ "json": {
+ "$id": "78",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "79",
+ "kind": "property",
+ "name": "title",
+ "serializedName": "title",
+ "doc": "The name of the environment.",
+ "type": {
+ "$id": "80",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.title",
+ "serializationOptions": {
+ "$id": "81",
+ "json": {
+ "$id": "82",
+ "name": "title"
+ }
+ }
+ },
+ {
+ "$id": "83",
+ "kind": "property",
+ "name": "kind",
+ "serializedName": "kind",
+ "doc": "Kind of deployment environment.",
+ "type": {
+ "$ref": "18"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.kind",
+ "serializationOptions": {
+ "$id": "84",
+ "json": {
+ "$id": "85",
+ "name": "kind"
+ }
+ }
+ },
+ {
+ "$id": "86",
+ "kind": "property",
+ "name": "description",
+ "serializedName": "description",
+ "doc": "Description of the environment.",
+ "type": {
+ "$id": "87",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.description",
+ "serializationOptions": {
+ "$id": "88",
+ "json": {
+ "$id": "89",
+ "name": "description"
+ }
+ }
+ },
+ {
+ "$id": "90",
+ "kind": "property",
+ "name": "server",
+ "serializedName": "server",
+ "doc": "Server information of the environment.",
+ "type": {
+ "$id": "91",
+ "kind": "model",
+ "name": "EnvironmentServer",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.EnvironmentServer",
+ "usage": "Output,Json",
+ "doc": "Environment Server",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "92",
+ "kind": "property",
+ "name": "type",
+ "serializedName": "type",
+ "doc": "Type of the server that represents the environment.",
+ "type": {
+ "$id": "93",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.EnvironmentServer.type",
+ "serializationOptions": {
+ "$id": "94",
+ "json": {
+ "$id": "95",
+ "name": "type"
+ }
+ }
+ },
+ {
+ "$id": "96",
+ "kind": "property",
+ "name": "managementPortalUris",
+ "serializedName": "managementPortalUris",
+ "doc": "URIs of the server's management portal.",
+ "type": {
+ "$id": "97",
+ "kind": "array",
+ "name": "Array",
+ "valueType": {
+ "$id": "98",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.EnvironmentServer.managementPortalUris",
+ "serializationOptions": {
+ "$id": "99",
+ "json": {
+ "$id": "100",
+ "name": "managementPortalUris"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.server",
+ "serializationOptions": {
+ "$id": "101",
+ "json": {
+ "$id": "102",
+ "name": "server"
+ }
+ }
+ },
+ {
+ "$id": "103",
+ "kind": "property",
+ "name": "onboarding",
+ "serializedName": "onboarding",
+ "doc": "Onboarding information for this environment.",
+ "type": {
+ "$id": "104",
+ "kind": "model",
+ "name": "EnvironmentOnboardingModel",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.EnvironmentOnboardingModel",
+ "usage": "Output,Json",
+ "doc": "Environment Onboarding Model",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "105",
+ "kind": "property",
+ "name": "instructions",
+ "serializedName": "instructions",
+ "doc": "Instructions how to onboard to the environment.",
+ "type": {
+ "$id": "106",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.EnvironmentOnboardingModel.instructions",
+ "serializationOptions": {
+ "$id": "107",
+ "json": {
+ "$id": "108",
+ "name": "instructions"
+ }
+ }
+ },
+ {
+ "$id": "109",
+ "kind": "property",
+ "name": "developerPortalUris",
+ "serializedName": "developerPortalUris",
+ "doc": "Developer portal URIs of the environment.",
+ "type": {
+ "$id": "110",
+ "kind": "array",
+ "name": "Array",
+ "valueType": {
+ "$id": "111",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.EnvironmentOnboardingModel.developerPortalUris",
+ "serializationOptions": {
+ "$id": "112",
+ "json": {
+ "$id": "113",
+ "name": "developerPortalUris"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.onboarding",
+ "serializationOptions": {
+ "$id": "114",
+ "json": {
+ "$id": "115",
+ "name": "onboarding"
+ }
+ }
+ },
+ {
+ "$id": "116",
+ "kind": "property",
+ "name": "customProperties",
+ "serializedName": "customProperties",
+ "doc": "The custom metadata defined for environment entities.",
+ "type": {
+ "$id": "117",
+ "kind": "model",
+ "name": "EnvironmentCustomProperties",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.customProperties.anonymous",
+ "usage": "Output,Json",
+ "decorators": [],
+ "properties": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Environment.customProperties",
+ "serializationOptions": {
+ "$id": "118",
+ "json": {
+ "$id": "119",
+ "name": "customProperties"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$ref": "91"
+ },
+ {
+ "$ref": "104"
+ },
+ {
+ "$ref": "117"
+ },
+ {
+ "$id": "120",
+ "kind": "model",
+ "name": "PagedEnvironmentAll",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.PagedEnvironmentAll",
+ "usage": "Output,Json",
+ "doc": "Paged collection of Environment items across workspaces",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "121",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The Environment items on this page",
+ "type": {
+ "$id": "122",
+ "kind": "array",
+ "name": "ArrayEnvironment",
+ "valueType": {
+ "$ref": "74"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.PagedEnvironmentAll.value",
+ "serializationOptions": {
+ "$id": "123",
+ "json": {
+ "$id": "124",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "125",
+ "kind": "property",
+ "name": "nextLink",
+ "serializedName": "nextLink",
+ "doc": "The link to the next page of items",
+ "type": {
+ "$id": "126",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "127",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.PagedEnvironmentAll.nextLink",
+ "serializationOptions": {
+ "$id": "128",
+ "json": {
+ "$id": "129",
+ "name": "nextLink"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "130",
+ "kind": "model",
+ "name": "ApiDeployment",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment",
+ "usage": "Output,Json",
+ "doc": "API deployment resource model.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "131",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "Deployment identifier.",
+ "type": {
+ "$id": "132",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.name",
+ "serializationOptions": {
+ "$id": "133",
+ "json": {
+ "$id": "134",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "135",
+ "kind": "property",
+ "name": "title",
+ "serializedName": "title",
+ "doc": "The name of the deployment.",
+ "type": {
+ "$id": "136",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.title",
+ "serializationOptions": {
+ "$id": "137",
+ "json": {
+ "$id": "138",
+ "name": "title"
+ }
+ }
+ },
+ {
+ "$id": "139",
+ "kind": "property",
+ "name": "description",
+ "serializedName": "description",
+ "doc": "The description of the deployment.",
+ "type": {
+ "$id": "140",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.description",
+ "serializationOptions": {
+ "$id": "141",
+ "json": {
+ "$id": "142",
+ "name": "description"
+ }
+ }
+ },
+ {
+ "$id": "143",
+ "kind": "property",
+ "name": "environment",
+ "serializedName": "environment",
+ "doc": "The name of the deployment environment.",
+ "type": {
+ "$id": "144",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.environment",
+ "serializationOptions": {
+ "$id": "145",
+ "json": {
+ "$id": "146",
+ "name": "environment"
+ }
+ }
+ },
+ {
+ "$id": "147",
+ "kind": "property",
+ "name": "server",
+ "serializedName": "server",
+ "doc": "The server information of the API deployment.",
+ "type": {
+ "$id": "148",
+ "kind": "model",
+ "name": "ApiDeploymentServer",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeploymentServer",
+ "usage": "Output,Json",
+ "doc": "Api Deployment Server",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "149",
+ "kind": "property",
+ "name": "runtimeUris",
+ "serializedName": "runtimeUris",
+ "doc": "Base runtime URIs for this deployment.",
+ "type": {
+ "$id": "150",
+ "kind": "array",
+ "name": "Array",
+ "valueType": {
+ "$id": "151",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeploymentServer.runtimeUris",
+ "serializationOptions": {
+ "$id": "152",
+ "json": {
+ "$id": "153",
+ "name": "runtimeUris"
+ }
+ }
+ }
+ ]
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.server",
+ "serializationOptions": {
+ "$id": "154",
+ "json": {
+ "$id": "155",
+ "name": "server"
+ }
+ }
+ },
+ {
+ "$id": "156",
+ "kind": "property",
+ "name": "customProperties",
+ "serializedName": "customProperties",
+ "doc": "The custom metadata defined for API deployment entities.",
+ "type": {
+ "$id": "157",
+ "kind": "model",
+ "name": "ApiDeploymentCustomProperties",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.customProperties.anonymous",
+ "usage": "Output,Json",
+ "decorators": [],
+ "properties": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.customProperties",
+ "serializationOptions": {
+ "$id": "158",
+ "json": {
+ "$id": "159",
+ "name": "customProperties"
+ }
+ }
+ },
+ {
+ "$id": "160",
+ "kind": "property",
+ "name": "recommended",
+ "serializedName": "recommended",
+ "doc": "Indicates if this is currently recommended deployment.",
+ "type": {
+ "$id": "161",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployment.recommended",
+ "serializationOptions": {
+ "$id": "162",
+ "json": {
+ "$id": "163",
+ "name": "recommended"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$ref": "148"
+ },
+ {
+ "$ref": "157"
+ },
+ {
+ "$id": "164",
+ "kind": "model",
+ "name": "ApiDefinition",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinition",
+ "usage": "Output,Json",
+ "doc": "API definition resource model.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "165",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "Definition identifier.",
+ "type": {
+ "$id": "166",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinition.name",
+ "serializationOptions": {
+ "$id": "167",
+ "json": {
+ "$id": "168",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "169",
+ "kind": "property",
+ "name": "title",
+ "serializedName": "title",
+ "doc": "The name of the API definition.",
+ "type": {
+ "$id": "170",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinition.title",
+ "serializationOptions": {
+ "$id": "171",
+ "json": {
+ "$id": "172",
+ "name": "title"
+ }
+ }
+ },
+ {
+ "$id": "173",
+ "kind": "property",
+ "name": "description",
+ "serializedName": "description",
+ "doc": "The description of the API definition.",
+ "type": {
+ "$id": "174",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinition.description",
+ "serializationOptions": {
+ "$id": "175",
+ "json": {
+ "$id": "176",
+ "name": "description"
+ }
+ }
+ },
+ {
+ "$id": "177",
+ "kind": "property",
+ "name": "specification",
+ "serializedName": "specification",
+ "doc": "The API specification details.",
+ "type": {
+ "$id": "178",
+ "kind": "model",
+ "name": "ApiSpecification",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecification",
+ "usage": "Output,Json",
+ "doc": "API specification",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "179",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "API specification name, e.g. 'swagger' or 'openapi'.",
+ "type": {
+ "$id": "180",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecification.name",
+ "serializationOptions": {
+ "$id": "181",
+ "json": {
+ "$id": "182",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "183",
+ "kind": "property",
+ "name": "version",
+ "serializedName": "version",
+ "doc": "API specification version, e.g. '3.0.1'.",
+ "type": {
+ "$id": "184",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecification.version",
+ "serializationOptions": {
+ "$id": "185",
+ "json": {
+ "$id": "186",
+ "name": "version"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinition.specification",
+ "serializationOptions": {
+ "$id": "187",
+ "json": {
+ "$id": "188",
+ "name": "specification"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$ref": "178"
+ },
+ {
+ "$id": "189",
+ "kind": "model",
+ "name": "ApiSpecExportResult",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecExportResult",
+ "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "Export specification result model.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "190",
+ "kind": "property",
+ "name": "definitionName",
+ "serializedName": "definitionName",
+ "doc": "API definition identifier.",
+ "type": {
+ "$id": "191",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecExportResult.definitionName",
+ "serializationOptions": {
+ "$id": "192",
+ "json": {
+ "$id": "193",
+ "name": "definitionName"
+ }
+ }
+ },
+ {
+ "$id": "194",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The result of the specification export.",
+ "type": {
+ "$id": "195",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecExportResult.value",
+ "serializationOptions": {
+ "$id": "196",
+ "json": {
+ "$id": "197",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "198",
+ "kind": "property",
+ "name": "format",
+ "serializedName": "format",
+ "doc": "The format of the specification export result.",
+ "type": {
+ "$ref": "28"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ApiSpecExportResult.format",
+ "serializationOptions": {
+ "$id": "199",
+ "json": {
+ "$id": "200",
+ "name": "format"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "201",
+ "kind": "model",
+ "name": "Api",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api",
+ "usage": "Output,Json",
+ "doc": "API resource model.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "202",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "Api identifier.",
+ "type": {
+ "$id": "203",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.name",
+ "serializationOptions": {
+ "$id": "204",
+ "json": {
+ "$id": "205",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "206",
+ "kind": "property",
+ "name": "title",
+ "serializedName": "title",
+ "doc": "The name of the API.",
+ "type": {
+ "$id": "207",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.title",
+ "serializationOptions": {
+ "$id": "208",
+ "json": {
+ "$id": "209",
+ "name": "title"
+ }
+ }
+ },
+ {
+ "$id": "210",
+ "kind": "property",
+ "name": "summary",
+ "serializedName": "summary",
+ "doc": "Short description of the API.",
+ "type": {
+ "$id": "211",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.summary",
+ "serializationOptions": {
+ "$id": "212",
+ "json": {
+ "$id": "213",
+ "name": "summary"
+ }
+ }
+ },
+ {
+ "$id": "214",
+ "kind": "property",
+ "name": "description",
+ "serializedName": "description",
+ "doc": "The description of the API",
+ "type": {
+ "$id": "215",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.description",
+ "serializationOptions": {
+ "$id": "216",
+ "json": {
+ "$id": "217",
+ "name": "description"
+ }
+ }
+ },
+ {
+ "$id": "218",
+ "kind": "property",
+ "name": "kind",
+ "serializedName": "kind",
+ "doc": "Kind of API. For example, REST or GraphQL.",
+ "type": {
+ "$ref": "32"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.kind",
+ "serializationOptions": {
+ "$id": "219",
+ "json": {
+ "$id": "220",
+ "name": "kind"
+ }
+ }
+ },
+ {
+ "$id": "221",
+ "kind": "property",
+ "name": "lifecycleStage",
+ "serializedName": "lifecycleStage",
+ "doc": "Current lifecycle stage of the API.",
+ "type": {
+ "$ref": "2"
+ },
+ "optional": true,
+ "readOnly": true,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.lifecycleStage",
+ "serializationOptions": {
+ "$id": "222",
+ "json": {
+ "$id": "223",
+ "name": "lifecycleStage"
+ }
+ }
+ },
+ {
+ "$id": "224",
+ "kind": "property",
+ "name": "termsOfService",
+ "serializedName": "termsOfService",
+ "doc": "Terms of service for the API.",
+ "type": {
+ "$id": "225",
+ "kind": "model",
+ "name": "TermsOfService",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.TermsOfService",
+ "usage": "Output,Json",
+ "doc": "API Terms of Service",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "226",
+ "kind": "property",
+ "name": "url",
+ "serializedName": "url",
+ "doc": "URL pointing to the terms of service.",
+ "type": {
+ "$id": "227",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.TermsOfService.url",
+ "serializationOptions": {
+ "$id": "228",
+ "json": {
+ "$id": "229",
+ "name": "url"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.termsOfService",
+ "serializationOptions": {
+ "$id": "230",
+ "json": {
+ "$id": "231",
+ "name": "termsOfService"
+ }
+ }
+ },
+ {
+ "$id": "232",
+ "kind": "property",
+ "name": "license",
+ "serializedName": "license",
+ "doc": "The license information for the API.",
+ "type": {
+ "$id": "233",
+ "kind": "model",
+ "name": "License",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.License",
+ "usage": "Output,Json",
+ "doc": "API License Model",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "234",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "Name of the license.",
+ "type": {
+ "$id": "235",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.License.name",
+ "serializationOptions": {
+ "$id": "236",
+ "json": {
+ "$id": "237",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "238",
+ "kind": "property",
+ "name": "url",
+ "serializedName": "url",
+ "doc": "URL pointing to the license details. The URL field is mutually exclusive of the identifier field.",
+ "type": {
+ "$id": "239",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.License.url",
+ "serializationOptions": {
+ "$id": "240",
+ "json": {
+ "$id": "241",
+ "name": "url"
+ }
+ }
+ },
+ {
+ "$id": "242",
+ "kind": "property",
+ "name": "identifier",
+ "serializedName": "identifier",
+ "doc": "SPDX license information for the API. The identifier field is mutually exclusive of the URL field.",
+ "type": {
+ "$id": "243",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.License.identifier",
+ "serializationOptions": {
+ "$id": "244",
+ "json": {
+ "$id": "245",
+ "name": "identifier"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.license",
+ "serializationOptions": {
+ "$id": "246",
+ "json": {
+ "$id": "247",
+ "name": "license"
+ }
+ }
+ },
+ {
+ "$id": "248",
+ "kind": "property",
+ "name": "externalDocumentation",
+ "serializedName": "externalDocumentation",
+ "doc": "External documentation",
+ "type": {
+ "$id": "249",
+ "kind": "array",
+ "name": "ArrayExternalDocumentation",
+ "valueType": {
+ "$id": "250",
+ "kind": "model",
+ "name": "ExternalDocumentation",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ExternalDocumentation",
+ "usage": "Output,Json",
+ "doc": "Api External Documentation Model",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "251",
+ "kind": "property",
+ "name": "title",
+ "serializedName": "title",
+ "doc": "Title of the documentation.",
+ "type": {
+ "$id": "252",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ExternalDocumentation.title",
+ "serializationOptions": {
+ "$id": "253",
+ "json": {
+ "$id": "254",
+ "name": "title"
+ }
+ }
+ },
+ {
+ "$id": "255",
+ "kind": "property",
+ "name": "description",
+ "serializedName": "description",
+ "doc": "Description of the documentation.",
+ "type": {
+ "$id": "256",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ExternalDocumentation.description",
+ "serializationOptions": {
+ "$id": "257",
+ "json": {
+ "$id": "258",
+ "name": "description"
+ }
+ }
+ },
+ {
+ "$id": "259",
+ "kind": "property",
+ "name": "url",
+ "serializedName": "url",
+ "doc": "URL pointing to the documentation.",
+ "type": {
+ "$id": "260",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.ExternalDocumentation.url",
+ "serializationOptions": {
+ "$id": "261",
+ "json": {
+ "$id": "262",
+ "name": "url"
+ }
+ }
+ }
+ ]
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.externalDocumentation",
+ "serializationOptions": {
+ "$id": "263",
+ "json": {
+ "$id": "264",
+ "name": "externalDocumentation"
+ }
+ }
+ },
+ {
+ "$id": "265",
+ "kind": "property",
+ "name": "contacts",
+ "serializedName": "contacts",
+ "doc": "Points of contact for the API.",
+ "type": {
+ "$id": "266",
+ "kind": "array",
+ "name": "ArrayContact",
+ "valueType": {
+ "$id": "267",
+ "kind": "model",
+ "name": "Contact",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Contact",
+ "usage": "Output,Json",
+ "doc": "API contact information",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "268",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "Name of the contact.",
+ "type": {
+ "$id": "269",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Contact.name",
+ "serializationOptions": {
+ "$id": "270",
+ "json": {
+ "$id": "271",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "272",
+ "kind": "property",
+ "name": "url",
+ "serializedName": "url",
+ "doc": "URL for the contact.",
+ "type": {
+ "$id": "273",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Contact.url",
+ "serializationOptions": {
+ "$id": "274",
+ "json": {
+ "$id": "275",
+ "name": "url"
+ }
+ }
+ },
+ {
+ "$id": "276",
+ "kind": "property",
+ "name": "email",
+ "serializedName": "email",
+ "doc": "Email address for the contact.",
+ "type": {
+ "$id": "277",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Contact.email",
+ "serializationOptions": {
+ "$id": "278",
+ "json": {
+ "$id": "279",
+ "name": "email"
+ }
+ }
+ }
+ ]
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.contacts",
+ "serializationOptions": {
+ "$id": "280",
+ "json": {
+ "$id": "281",
+ "name": "contacts"
+ }
+ }
+ },
+ {
+ "$id": "282",
+ "kind": "property",
+ "name": "customProperties",
+ "serializedName": "customProperties",
+ "doc": "The custom metadata defined for API entities.",
+ "type": {
+ "$id": "283",
+ "kind": "model",
+ "name": "ApiCustomProperties",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.customProperties.anonymous",
+ "usage": "Output,Json",
+ "decorators": [],
+ "properties": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.customProperties",
+ "serializationOptions": {
+ "$id": "284",
+ "json": {
+ "$id": "285",
+ "name": "customProperties"
+ }
+ }
+ },
+ {
+ "$id": "286",
+ "kind": "property",
+ "name": "lastUpdated",
+ "serializedName": "lastUpdated",
+ "doc": "Last updated date and time.",
+ "type": {
+ "$id": "287",
+ "kind": "utcDateTime",
+ "name": "utcDateTime",
+ "encode": "rfc3339",
+ "wireType": {
+ "$id": "288",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "crossLanguageDefinitionId": "TypeSpec.utcDateTime",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": true,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.Api.lastUpdated",
+ "serializationOptions": {
+ "$id": "289",
+ "json": {
+ "$id": "290",
+ "name": "lastUpdated"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$ref": "225"
+ },
+ {
+ "$ref": "233"
+ },
+ {
+ "$ref": "250"
+ },
+ {
+ "$ref": "267"
+ },
+ {
+ "$ref": "283"
+ },
+ {
+ "$id": "291",
+ "kind": "model",
+ "name": "PagedApiAll",
+ "namespace": "ApiCenter.DataApi",
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.PagedApiAll",
+ "usage": "Output,Json",
+ "doc": "Paged collection of API items across workspaces.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "292",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The Api items on this page",
+ "type": {
+ "$id": "293",
+ "kind": "array",
+ "name": "ArrayApi",
+ "valueType": {
+ "$ref": "201"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.PagedApiAll.value",
+ "serializationOptions": {
+ "$id": "294",
+ "json": {
+ "$id": "295",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "296",
+ "kind": "property",
+ "name": "nextLink",
+ "serializedName": "nextLink",
+ "doc": "The link to the next page of items",
+ "type": {
+ "$id": "297",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "298",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "ApiCenter.DataApi.PagedApiAll.nextLink",
+ "serializationOptions": {
+ "$id": "299",
+ "json": {
+ "$id": "300",
+ "name": "nextLink"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "301",
+ "kind": "model",
+ "name": "PagedApi",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage",
+ "usage": "Output,Json",
+ "doc": "Paged collection of Api items",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "302",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The Api items on this page",
+ "type": {
+ "$id": "303",
+ "kind": "array",
+ "name": "ArrayApi",
+ "valueType": {
+ "$ref": "201"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value",
+ "serializationOptions": {
+ "$id": "304",
+ "json": {
+ "$id": "305",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "306",
+ "kind": "property",
+ "name": "nextLink",
+ "serializedName": "nextLink",
+ "doc": "The link to the next page of items",
+ "type": {
+ "$id": "307",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "308",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink",
+ "serializationOptions": {
+ "$id": "309",
+ "json": {
+ "$id": "310",
+ "name": "nextLink"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "311",
+ "kind": "model",
+ "name": "PagedApiDefinition",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage",
+ "usage": "Output,Json",
+ "doc": "Paged collection of ApiDefinition items",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "312",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The ApiDefinition items on this page",
+ "type": {
+ "$id": "313",
+ "kind": "array",
+ "name": "ArrayApiDefinition",
+ "valueType": {
+ "$ref": "164"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value",
+ "serializationOptions": {
+ "$id": "314",
+ "json": {
+ "$id": "315",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "316",
+ "kind": "property",
+ "name": "nextLink",
+ "serializedName": "nextLink",
+ "doc": "The link to the next page of items",
+ "type": {
+ "$id": "317",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "318",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink",
+ "serializationOptions": {
+ "$id": "319",
+ "json": {
+ "$id": "320",
+ "name": "nextLink"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "321",
+ "kind": "model",
+ "name": "ResourceOperationStatusApiSpecExportResultApiSpecExportResultError",
+ "namespace": "Azure.Core",
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus",
+ "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "Provides status details for long running operations.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "322",
+ "kind": "property",
+ "name": "id",
+ "serializedName": "id",
+ "doc": "The unique ID of the operation.",
+ "type": {
+ "$id": "323",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.id",
+ "serializationOptions": {
+ "$id": "324",
+ "json": {
+ "$id": "325",
+ "name": "id"
+ }
+ }
+ },
+ {
+ "$id": "326",
+ "kind": "property",
+ "name": "status",
+ "serializedName": "status",
+ "doc": "The status of the operation",
+ "type": {
+ "$ref": "50"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.status",
+ "serializationOptions": {
+ "$id": "327",
+ "json": {
+ "$id": "328",
+ "name": "status"
+ }
+ }
+ },
+ {
+ "$id": "329",
+ "kind": "property",
+ "name": "error",
+ "serializedName": "error",
+ "doc": "Error object that describes the error when status is \"Failed\".",
+ "type": {
+ "$id": "330",
+ "kind": "model",
+ "name": "Error",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error",
+ "usage": "Output,Json,Exception,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "The error object.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "331",
+ "kind": "property",
+ "name": "code",
+ "serializedName": "code",
+ "doc": "One of a server-defined set of error codes.",
+ "type": {
+ "$id": "332",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.code",
+ "serializationOptions": {
+ "$id": "333",
+ "json": {
+ "$id": "334",
+ "name": "code"
+ }
+ }
+ },
+ {
+ "$id": "335",
+ "kind": "property",
+ "name": "message",
+ "serializedName": "message",
+ "doc": "A human-readable representation of the error.",
+ "type": {
+ "$id": "336",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.message",
+ "serializationOptions": {
+ "$id": "337",
+ "json": {
+ "$id": "338",
+ "name": "message"
+ }
+ }
+ },
+ {
+ "$id": "339",
+ "kind": "property",
+ "name": "target",
+ "serializedName": "target",
+ "doc": "The target of the error.",
+ "type": {
+ "$id": "340",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.target",
+ "serializationOptions": {
+ "$id": "341",
+ "json": {
+ "$id": "342",
+ "name": "target"
+ }
+ }
+ },
+ {
+ "$id": "343",
+ "kind": "property",
+ "name": "details",
+ "serializedName": "details",
+ "doc": "An array of details about specific errors that led to this reported error.",
+ "type": {
+ "$id": "344",
+ "kind": "array",
+ "name": "ArrayError",
+ "valueType": {
+ "$ref": "330"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.details",
+ "serializationOptions": {
+ "$id": "345",
+ "json": {
+ "$id": "346",
+ "name": "details"
+ }
+ }
+ },
+ {
+ "$id": "347",
+ "kind": "property",
+ "name": "innererror",
+ "serializedName": "innererror",
+ "doc": "An object containing more specific information than the current object about the error.",
+ "type": {
+ "$id": "348",
+ "kind": "model",
+ "name": "InnerError",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError",
+ "usage": "Output,Json,Exception,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "349",
+ "kind": "property",
+ "name": "code",
+ "serializedName": "code",
+ "doc": "One of a server-defined set of error codes.",
+ "type": {
+ "$id": "350",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.code",
+ "serializationOptions": {
+ "$id": "351",
+ "json": {
+ "$id": "352",
+ "name": "code"
+ }
+ }
+ },
+ {
+ "$id": "353",
+ "kind": "property",
+ "name": "innererror",
+ "serializedName": "innererror",
+ "doc": "Inner error.",
+ "type": {
+ "$ref": "348"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.innererror",
+ "serializationOptions": {
+ "$id": "354",
+ "json": {
+ "$id": "355",
+ "name": "innererror"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.innererror",
+ "serializationOptions": {
+ "$id": "356",
+ "json": {
+ "$id": "357",
+ "name": "innererror"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.error",
+ "serializationOptions": {
+ "$id": "358",
+ "json": {
+ "$id": "359",
+ "name": "error"
+ }
+ }
+ },
+ {
+ "$id": "360",
+ "kind": "property",
+ "name": "result",
+ "serializedName": "result",
+ "doc": "The result of the operation.",
+ "type": {
+ "$ref": "189"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.result",
+ "serializationOptions": {
+ "$id": "361",
+ "json": {
+ "$id": "362",
+ "name": "result"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$ref": "330"
+ },
+ {
+ "$ref": "348"
+ },
+ {
+ "$id": "363",
+ "kind": "model",
+ "name": "PagedApiDeployment",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage",
+ "usage": "Output,Json",
+ "doc": "Paged collection of ApiDeployment items",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "364",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The ApiDeployment items on this page",
+ "type": {
+ "$id": "365",
+ "kind": "array",
+ "name": "ArrayApiDeployment",
+ "valueType": {
+ "$ref": "130"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value",
+ "serializationOptions": {
+ "$id": "366",
+ "json": {
+ "$id": "367",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "368",
+ "kind": "property",
+ "name": "nextLink",
+ "serializedName": "nextLink",
+ "doc": "The link to the next page of items",
+ "type": {
+ "$id": "369",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "370",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink",
+ "serializationOptions": {
+ "$id": "371",
+ "json": {
+ "$id": "372",
+ "name": "nextLink"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "373",
+ "kind": "model",
+ "name": "PagedEnvironment",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage",
+ "usage": "Output,Json",
+ "doc": "Paged collection of Environment items",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "374",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The Environment items on this page",
+ "type": {
+ "$id": "375",
+ "kind": "array",
+ "name": "ArrayEnvironment",
+ "valueType": {
+ "$ref": "74"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value",
+ "serializationOptions": {
+ "$id": "376",
+ "json": {
+ "$id": "377",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "378",
+ "kind": "property",
+ "name": "nextLink",
+ "serializedName": "nextLink",
+ "doc": "The link to the next page of items",
+ "type": {
+ "$id": "379",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "380",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink",
+ "serializationOptions": {
+ "$id": "381",
+ "json": {
+ "$id": "382",
+ "name": "nextLink"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "383",
+ "kind": "model",
+ "name": "PagedApiVersion",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage",
+ "usage": "Output,Json",
+ "doc": "Paged collection of ApiVersion items",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "384",
+ "kind": "property",
+ "name": "value",
+ "serializedName": "value",
+ "doc": "The ApiVersion items on this page",
+ "type": {
+ "$id": "385",
+ "kind": "array",
+ "name": "ArrayApiVersion",
+ "valueType": {
+ "$ref": "62"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value",
+ "serializationOptions": {
+ "$id": "386",
+ "json": {
+ "$id": "387",
+ "name": "value"
+ }
+ }
+ },
+ {
+ "$id": "388",
+ "kind": "property",
+ "name": "nextLink",
+ "serializedName": "nextLink",
+ "doc": "The link to the next page of items",
+ "type": {
+ "$id": "389",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "390",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink",
+ "serializationOptions": {
+ "$id": "391",
+ "json": {
+ "$id": "392",
+ "name": "nextLink"
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "Clients": [
+ {
+ "$id": "393",
+ "Name": "DataApiClient",
+ "Namespace": "ApiCenter.DataApi",
+ "Doc": "Data API introduces endpoints to manage your API Center resources.",
+ "Operations": [],
+ "Protocol": {
+ "$id": "394"
+ },
+ "Parameters": [],
+ "Decorators": [],
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi"
+ },
+ {
+ "$id": "395",
+ "Name": "Apis",
+ "Namespace": "ApiCenter.DataApi",
+ "Operations": [
+ {
+ "$id": "396",
+ "Name": "list",
+ "ResourceName": "Api",
+ "Doc": "List a collection of APIs.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "397",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "398",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "399",
+ "Type": {
+ "$id": "400",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "401",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "402",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "403",
+ "Name": "top",
+ "NameInRequest": "top",
+ "Doc": "The number of result items to return.",
+ "Type": {
+ "$id": "404",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "405",
+ "Name": "skip",
+ "NameInRequest": "skip",
+ "Doc": "The number of result items to skip.",
+ "Type": {
+ "$id": "406",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "407",
+ "Name": "maxpagesize",
+ "NameInRequest": "maxpagesize",
+ "Doc": "The maximum number of result items per page.",
+ "Type": {
+ "$id": "408",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "409",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "410",
+ "kind": "constant",
+ "valueType": {
+ "$id": "411",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "412",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "301"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "413",
+ "ItemPropertySegments": [
+ "value"
+ ],
+ "NextLink": {
+ "$id": "414",
+ "ResponseSegments": [
+ "nextLink"
+ ],
+ "ResponseLocation": "Body"
+ }
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Apis.list",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "415",
+ "kind": "http",
+ "name": "Apis_List",
+ "description": "Apis_List",
+ "filePath": "2024-02-01-preview/Apis_List.json",
+ "parameters": [
+ {
+ "$id": "416",
+ "parameter": {
+ "$ref": "397"
+ },
+ "value": {
+ "$id": "417",
+ "kind": "string",
+ "type": {
+ "$ref": "398"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "418",
+ "parameter": {
+ "$ref": "401"
+ },
+ "value": {
+ "$id": "419",
+ "kind": "string",
+ "type": {
+ "$ref": "402"
+ },
+ "value": "default"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "420",
+ "response": {
+ "$ref": "412"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "421",
+ "kind": "model",
+ "type": {
+ "$ref": "301"
+ },
+ "value": {
+ "$id": "422",
+ "value": {
+ "$id": "423",
+ "kind": "array",
+ "type": {
+ "$ref": "303"
+ },
+ "value": [
+ {
+ "$id": "424",
+ "kind": "model",
+ "type": {
+ "$ref": "201"
+ },
+ "value": {
+ "$id": "425",
+ "name": {
+ "$id": "426",
+ "kind": "string",
+ "type": {
+ "$ref": "203"
+ },
+ "value": "echo-api"
+ },
+ "title": {
+ "$id": "427",
+ "kind": "string",
+ "type": {
+ "$ref": "207"
+ },
+ "value": "Echo API"
+ },
+ "kind": {
+ "$id": "428",
+ "kind": "string",
+ "type": {
+ "$ref": "32"
+ },
+ "value": "rest"
+ },
+ "lastUpdated": {
+ "$id": "429",
+ "kind": "string",
+ "type": {
+ "$ref": "287"
+ },
+ "value": "2023-12-18T18:49:11.878Z"
+ },
+ "description": {
+ "$id": "430",
+ "kind": "string",
+ "type": {
+ "$ref": "215"
+ },
+ "value": "A simple HTTP request/response service."
+ },
+ "lifecycleStage": {
+ "$id": "431",
+ "kind": "string",
+ "type": {
+ "$ref": "2"
+ },
+ "value": "design"
+ },
+ "termsOfService": {
+ "$id": "432",
+ "kind": "model",
+ "type": {
+ "$ref": "225"
+ },
+ "value": {
+ "$id": "433",
+ "url": {
+ "$id": "434",
+ "kind": "string",
+ "type": {
+ "$ref": "227"
+ },
+ "value": "https://contoso.com/terms-of-service"
+ }
+ }
+ },
+ "license": {
+ "$id": "435",
+ "kind": "model",
+ "type": {
+ "$ref": "233"
+ },
+ "value": {
+ "$id": "436",
+ "name": {
+ "$id": "437",
+ "kind": "string",
+ "type": {
+ "$ref": "235"
+ },
+ "value": "default"
+ },
+ "url": {
+ "$id": "438",
+ "kind": "string",
+ "type": {
+ "$ref": "239"
+ },
+ "value": "https://contoso.com/license"
+ }
+ }
+ },
+ "externalDocumentation": {
+ "$id": "439",
+ "kind": "array",
+ "type": {
+ "$ref": "249"
+ },
+ "value": [
+ {
+ "$id": "440",
+ "kind": "model",
+ "type": {
+ "$ref": "250"
+ },
+ "value": {
+ "$id": "441",
+ "title": {
+ "$id": "442",
+ "kind": "string",
+ "type": {
+ "$ref": "252"
+ },
+ "value": "Onboarding docs"
+ },
+ "description": {
+ "$id": "443",
+ "kind": "string",
+ "type": {
+ "$ref": "256"
+ },
+ "value": "Learn how to onboard to the Echo API."
+ },
+ "url": {
+ "$id": "444",
+ "kind": "string",
+ "type": {
+ "$ref": "260"
+ },
+ "value": "https://docs.contoso.com"
+ }
+ }
+ }
+ ]
+ },
+ "contacts": {
+ "$id": "445",
+ "kind": "array",
+ "type": {
+ "$ref": "266"
+ },
+ "value": [
+ {
+ "$id": "446",
+ "kind": "model",
+ "type": {
+ "$ref": "267"
+ },
+ "value": {
+ "$id": "447",
+ "name": {
+ "$id": "448",
+ "kind": "string",
+ "type": {
+ "$ref": "269"
+ },
+ "value": "Contoso support"
+ },
+ "url": {
+ "$id": "449",
+ "kind": "string",
+ "type": {
+ "$ref": "273"
+ },
+ "value": "https://support.contoso.com"
+ },
+ "email": {
+ "$id": "450",
+ "kind": "string",
+ "type": {
+ "$ref": "277"
+ },
+ "value": "support@contoso.com"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "nextLink": {
+ "$id": "451",
+ "kind": "string",
+ "type": {
+ "$ref": "307"
+ },
+ "value": "https://..."
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "452",
+ "Name": "listAll",
+ "ResourceName": "Apis",
+ "Doc": "List a collection of APIs across workspaces.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "453",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "454",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "455",
+ "Type": {
+ "$id": "456",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "457",
+ "Name": "top",
+ "NameInRequest": "top",
+ "Doc": "The number of result items to return.",
+ "Type": {
+ "$id": "458",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "459",
+ "Name": "skip",
+ "NameInRequest": "skip",
+ "Doc": "The number of result items to skip.",
+ "Type": {
+ "$id": "460",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "461",
+ "Name": "maxpagesize",
+ "NameInRequest": "maxpagesize",
+ "Doc": "The maximum number of result items per page.",
+ "Type": {
+ "$id": "462",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "463",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "464",
+ "kind": "constant",
+ "valueType": {
+ "$id": "465",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "466",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "291"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/apis",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Apis.listAll",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "467",
+ "kind": "http",
+ "name": "Apis_ListAll",
+ "description": "Apis_ListAll",
+ "filePath": "2024-02-01-preview/Apis_ListAll.json",
+ "parameters": [
+ {
+ "$id": "468",
+ "parameter": {
+ "$ref": "453"
+ },
+ "value": {
+ "$id": "469",
+ "kind": "string",
+ "type": {
+ "$ref": "454"
+ },
+ "value": "2024-02-01-preview"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "470",
+ "response": {
+ "$ref": "466"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "471",
+ "kind": "model",
+ "type": {
+ "$ref": "291"
+ },
+ "value": {
+ "$id": "472",
+ "value": {
+ "$id": "473",
+ "kind": "array",
+ "type": {
+ "$ref": "293"
+ },
+ "value": [
+ {
+ "$id": "474",
+ "kind": "model",
+ "type": {
+ "$ref": "201"
+ },
+ "value": {
+ "$id": "475",
+ "name": {
+ "$id": "476",
+ "kind": "string",
+ "type": {
+ "$ref": "203"
+ },
+ "value": "echo-api"
+ },
+ "title": {
+ "$id": "477",
+ "kind": "string",
+ "type": {
+ "$ref": "207"
+ },
+ "value": "Echo API"
+ },
+ "kind": {
+ "$id": "478",
+ "kind": "string",
+ "type": {
+ "$ref": "32"
+ },
+ "value": "rest"
+ },
+ "lastUpdated": {
+ "$id": "479",
+ "kind": "string",
+ "type": {
+ "$ref": "287"
+ },
+ "value": "2023-12-18T18:49:11.878Z"
+ },
+ "description": {
+ "$id": "480",
+ "kind": "string",
+ "type": {
+ "$ref": "215"
+ },
+ "value": "A simple HTTP request/response service."
+ },
+ "lifecycleStage": {
+ "$id": "481",
+ "kind": "string",
+ "type": {
+ "$ref": "2"
+ },
+ "value": "design"
+ },
+ "termsOfService": {
+ "$id": "482",
+ "kind": "model",
+ "type": {
+ "$ref": "225"
+ },
+ "value": {
+ "$id": "483",
+ "url": {
+ "$id": "484",
+ "kind": "string",
+ "type": {
+ "$ref": "227"
+ },
+ "value": "https://contoso.com/terms-of-service"
+ }
+ }
+ },
+ "license": {
+ "$id": "485",
+ "kind": "model",
+ "type": {
+ "$ref": "233"
+ },
+ "value": {
+ "$id": "486",
+ "name": {
+ "$id": "487",
+ "kind": "string",
+ "type": {
+ "$ref": "235"
+ },
+ "value": "default"
+ },
+ "url": {
+ "$id": "488",
+ "kind": "string",
+ "type": {
+ "$ref": "239"
+ },
+ "value": "https://contoso.com/license"
+ }
+ }
+ },
+ "externalDocumentation": {
+ "$id": "489",
+ "kind": "array",
+ "type": {
+ "$ref": "249"
+ },
+ "value": [
+ {
+ "$id": "490",
+ "kind": "model",
+ "type": {
+ "$ref": "250"
+ },
+ "value": {
+ "$id": "491",
+ "title": {
+ "$id": "492",
+ "kind": "string",
+ "type": {
+ "$ref": "252"
+ },
+ "value": "Onboarding docs"
+ },
+ "description": {
+ "$id": "493",
+ "kind": "string",
+ "type": {
+ "$ref": "256"
+ },
+ "value": "Learn how to onboard to the Echo API."
+ },
+ "url": {
+ "$id": "494",
+ "kind": "string",
+ "type": {
+ "$ref": "260"
+ },
+ "value": "https://docs.contoso.com"
+ }
+ }
+ }
+ ]
+ },
+ "contacts": {
+ "$id": "495",
+ "kind": "array",
+ "type": {
+ "$ref": "266"
+ },
+ "value": [
+ {
+ "$id": "496",
+ "kind": "model",
+ "type": {
+ "$ref": "267"
+ },
+ "value": {
+ "$id": "497",
+ "name": {
+ "$id": "498",
+ "kind": "string",
+ "type": {
+ "$ref": "269"
+ },
+ "value": "Contoso support"
+ },
+ "url": {
+ "$id": "499",
+ "kind": "string",
+ "type": {
+ "$ref": "273"
+ },
+ "value": "https://support.contoso.com"
+ },
+ "email": {
+ "$id": "500",
+ "kind": "string",
+ "type": {
+ "$ref": "277"
+ },
+ "value": "support@contoso.com"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "nextLink": {
+ "$id": "501",
+ "kind": "string",
+ "type": {
+ "$ref": "297"
+ },
+ "value": "https://microsoft.com/a"
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "502",
+ "Name": "get",
+ "ResourceName": "Api",
+ "Doc": "Get an API.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "503",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "504",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "505",
+ "Type": {
+ "$id": "506",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "507",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "508",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "509",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "510",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "511",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "512",
+ "kind": "constant",
+ "valueType": {
+ "$id": "513",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "514",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "201"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Apis.get",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "515",
+ "kind": "http",
+ "name": "Apis_Get",
+ "description": "Apis_Get",
+ "filePath": "2024-02-01-preview/Apis_Get.json",
+ "parameters": [
+ {
+ "$id": "516",
+ "parameter": {
+ "$ref": "503"
+ },
+ "value": {
+ "$id": "517",
+ "kind": "string",
+ "type": {
+ "$ref": "504"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "518",
+ "parameter": {
+ "$ref": "507"
+ },
+ "value": {
+ "$id": "519",
+ "kind": "string",
+ "type": {
+ "$ref": "508"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "520",
+ "parameter": {
+ "$ref": "509"
+ },
+ "value": {
+ "$id": "521",
+ "kind": "string",
+ "type": {
+ "$ref": "510"
+ },
+ "value": "echo-api"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "522",
+ "response": {
+ "$ref": "514"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "523",
+ "kind": "model",
+ "type": {
+ "$ref": "201"
+ },
+ "value": {
+ "$id": "524",
+ "name": {
+ "$id": "525",
+ "kind": "string",
+ "type": {
+ "$ref": "203"
+ },
+ "value": "echo-api"
+ },
+ "title": {
+ "$id": "526",
+ "kind": "string",
+ "type": {
+ "$ref": "207"
+ },
+ "value": "Echo API"
+ },
+ "kind": {
+ "$id": "527",
+ "kind": "string",
+ "type": {
+ "$ref": "32"
+ },
+ "value": "rest"
+ },
+ "lastUpdated": {
+ "$id": "528",
+ "kind": "string",
+ "type": {
+ "$ref": "287"
+ },
+ "value": "2023-12-18T18:49:11.878Z"
+ },
+ "description": {
+ "$id": "529",
+ "kind": "string",
+ "type": {
+ "$ref": "215"
+ },
+ "value": "A simple HTTP request/response service."
+ },
+ "lifecycleStage": {
+ "$id": "530",
+ "kind": "string",
+ "type": {
+ "$ref": "2"
+ },
+ "value": "design"
+ },
+ "termsOfService": {
+ "$id": "531",
+ "kind": "model",
+ "type": {
+ "$ref": "225"
+ },
+ "value": {
+ "$id": "532",
+ "url": {
+ "$id": "533",
+ "kind": "string",
+ "type": {
+ "$ref": "227"
+ },
+ "value": "https://contoso.com/terms-of-service"
+ }
+ }
+ },
+ "license": {
+ "$id": "534",
+ "kind": "model",
+ "type": {
+ "$ref": "233"
+ },
+ "value": {
+ "$id": "535",
+ "name": {
+ "$id": "536",
+ "kind": "string",
+ "type": {
+ "$ref": "235"
+ },
+ "value": "default"
+ },
+ "url": {
+ "$id": "537",
+ "kind": "string",
+ "type": {
+ "$ref": "239"
+ },
+ "value": "https://contoso.com/license"
+ }
+ }
+ },
+ "externalDocumentation": {
+ "$id": "538",
+ "kind": "array",
+ "type": {
+ "$ref": "249"
+ },
+ "value": [
+ {
+ "$id": "539",
+ "kind": "model",
+ "type": {
+ "$ref": "250"
+ },
+ "value": {
+ "$id": "540",
+ "title": {
+ "$id": "541",
+ "kind": "string",
+ "type": {
+ "$ref": "252"
+ },
+ "value": "Onboarding docs"
+ },
+ "description": {
+ "$id": "542",
+ "kind": "string",
+ "type": {
+ "$ref": "256"
+ },
+ "value": "Learn how to onboard to the Echo API."
+ },
+ "url": {
+ "$id": "543",
+ "kind": "string",
+ "type": {
+ "$ref": "260"
+ },
+ "value": "https://docs.contoso.com"
+ }
+ }
+ }
+ ]
+ },
+ "contacts": {
+ "$id": "544",
+ "kind": "array",
+ "type": {
+ "$ref": "266"
+ },
+ "value": [
+ {
+ "$id": "545",
+ "kind": "model",
+ "type": {
+ "$ref": "267"
+ },
+ "value": {
+ "$id": "546",
+ "name": {
+ "$id": "547",
+ "kind": "string",
+ "type": {
+ "$ref": "269"
+ },
+ "value": "Contoso support"
+ },
+ "url": {
+ "$id": "548",
+ "kind": "string",
+ "type": {
+ "$ref": "273"
+ },
+ "value": "https://support.contoso.com"
+ },
+ "email": {
+ "$id": "549",
+ "kind": "string",
+ "type": {
+ "$ref": "277"
+ },
+ "value": "support@contoso.com"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "Protocol": {
+ "$id": "550"
+ },
+ "Parent": "DataApiClient",
+ "Parameters": [],
+ "Decorators": [],
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Apis"
+ },
+ {
+ "$id": "551",
+ "Name": "ApiDefinitions",
+ "Namespace": "ApiCenter.DataApi",
+ "Operations": [
+ {
+ "$id": "552",
+ "Name": "listDefinitions",
+ "ResourceName": "ApiDefinition",
+ "Doc": "List a collection of API definitions.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "553",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "554",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "555",
+ "Type": {
+ "$id": "556",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "557",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "558",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "559",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "560",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "561",
+ "Name": "versionName",
+ "NameInRequest": "versionName",
+ "Doc": "Version identifier.",
+ "Type": {
+ "$id": "562",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "563",
+ "Name": "top",
+ "NameInRequest": "top",
+ "Doc": "The number of result items to return.",
+ "Type": {
+ "$id": "564",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "565",
+ "Name": "skip",
+ "NameInRequest": "skip",
+ "Doc": "The number of result items to skip.",
+ "Type": {
+ "$id": "566",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "567",
+ "Name": "maxpagesize",
+ "NameInRequest": "maxpagesize",
+ "Doc": "The maximum number of result items per page.",
+ "Type": {
+ "$id": "568",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "569",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "570",
+ "kind": "constant",
+ "valueType": {
+ "$id": "571",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "572",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "311"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "573",
+ "ItemPropertySegments": [
+ "value"
+ ],
+ "NextLink": {
+ "$id": "574",
+ "ResponseSegments": [
+ "nextLink"
+ ],
+ "ResponseLocation": "Body"
+ }
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinitions.listDefinitions",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "575",
+ "kind": "http",
+ "name": "ApiDefinitions_ListDefinitions",
+ "description": "ApiDefinitions_ListDefinitions",
+ "filePath": "2024-02-01-preview/ApiDefinitions_ListDefinitions.json",
+ "parameters": [
+ {
+ "$id": "576",
+ "parameter": {
+ "$ref": "553"
+ },
+ "value": {
+ "$id": "577",
+ "kind": "string",
+ "type": {
+ "$ref": "554"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "578",
+ "parameter": {
+ "$ref": "557"
+ },
+ "value": {
+ "$id": "579",
+ "kind": "string",
+ "type": {
+ "$ref": "558"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "580",
+ "parameter": {
+ "$ref": "559"
+ },
+ "value": {
+ "$id": "581",
+ "kind": "string",
+ "type": {
+ "$ref": "560"
+ },
+ "value": "echo-api"
+ }
+ },
+ {
+ "$id": "582",
+ "parameter": {
+ "$ref": "561"
+ },
+ "value": {
+ "$id": "583",
+ "kind": "string",
+ "type": {
+ "$ref": "562"
+ },
+ "value": "2023-01-01"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "584",
+ "response": {
+ "$ref": "572"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "585",
+ "kind": "model",
+ "type": {
+ "$ref": "311"
+ },
+ "value": {
+ "$id": "586",
+ "value": {
+ "$id": "587",
+ "kind": "array",
+ "type": {
+ "$ref": "313"
+ },
+ "value": [
+ {
+ "$id": "588",
+ "kind": "model",
+ "type": {
+ "$ref": "164"
+ },
+ "value": {
+ "$id": "589",
+ "name": {
+ "$id": "590",
+ "kind": "string",
+ "type": {
+ "$ref": "166"
+ },
+ "value": "default"
+ },
+ "title": {
+ "$id": "591",
+ "kind": "string",
+ "type": {
+ "$ref": "170"
+ },
+ "value": "Default"
+ },
+ "specification": {
+ "$id": "592",
+ "kind": "model",
+ "type": {
+ "$ref": "178"
+ },
+ "value": {
+ "$id": "593",
+ "name": {
+ "$id": "594",
+ "kind": "string",
+ "type": {
+ "$ref": "180"
+ },
+ "value": "openapi"
+ },
+ "version": {
+ "$id": "595",
+ "kind": "string",
+ "type": {
+ "$ref": "184"
+ },
+ "value": "3.0.1"
+ }
+ }
+ },
+ "description": {
+ "$id": "596",
+ "kind": "string",
+ "type": {
+ "$ref": "174"
+ },
+ "value": "Default API definition."
+ }
+ }
+ }
+ ]
+ },
+ "nextLink": {
+ "$id": "597",
+ "kind": "string",
+ "type": {
+ "$ref": "317"
+ },
+ "value": "https://..."
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "598",
+ "Name": "getDefinition",
+ "ResourceName": "ApiDefinition",
+ "Doc": "Get an API definition.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "599",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "600",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "601",
+ "Type": {
+ "$id": "602",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "603",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "604",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "605",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "606",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "607",
+ "Name": "versionName",
+ "NameInRequest": "versionName",
+ "Doc": "Version identifier.",
+ "Type": {
+ "$id": "608",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "609",
+ "Name": "definitionName",
+ "NameInRequest": "definitionName",
+ "Doc": "Definition identifier.",
+ "Type": {
+ "$id": "610",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "611",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "612",
+ "kind": "constant",
+ "valueType": {
+ "$id": "613",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "614",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "164"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinitions.getDefinition",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "615",
+ "kind": "http",
+ "name": "ApiDefinitions_GetDefinition",
+ "description": "ApiDefinitions_GetDefinition",
+ "filePath": "2024-02-01-preview/ApiDefinitions_GetDefinition.json",
+ "parameters": [
+ {
+ "$id": "616",
+ "parameter": {
+ "$ref": "599"
+ },
+ "value": {
+ "$id": "617",
+ "kind": "string",
+ "type": {
+ "$ref": "600"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "618",
+ "parameter": {
+ "$ref": "603"
+ },
+ "value": {
+ "$id": "619",
+ "kind": "string",
+ "type": {
+ "$ref": "604"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "620",
+ "parameter": {
+ "$ref": "605"
+ },
+ "value": {
+ "$id": "621",
+ "kind": "string",
+ "type": {
+ "$ref": "606"
+ },
+ "value": "echo-api"
+ }
+ },
+ {
+ "$id": "622",
+ "parameter": {
+ "$ref": "607"
+ },
+ "value": {
+ "$id": "623",
+ "kind": "string",
+ "type": {
+ "$ref": "608"
+ },
+ "value": "2023-01-01"
+ }
+ },
+ {
+ "$id": "624",
+ "parameter": {
+ "$ref": "609"
+ },
+ "value": {
+ "$id": "625",
+ "kind": "string",
+ "type": {
+ "$ref": "610"
+ },
+ "value": "default"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "626",
+ "response": {
+ "$ref": "614"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "627",
+ "kind": "model",
+ "type": {
+ "$ref": "164"
+ },
+ "value": {
+ "$id": "628",
+ "name": {
+ "$id": "629",
+ "kind": "string",
+ "type": {
+ "$ref": "166"
+ },
+ "value": "default"
+ },
+ "title": {
+ "$id": "630",
+ "kind": "string",
+ "type": {
+ "$ref": "170"
+ },
+ "value": "Default"
+ },
+ "specification": {
+ "$id": "631",
+ "kind": "model",
+ "type": {
+ "$ref": "178"
+ },
+ "value": {
+ "$id": "632",
+ "name": {
+ "$id": "633",
+ "kind": "string",
+ "type": {
+ "$ref": "180"
+ },
+ "value": "openapi"
+ },
+ "version": {
+ "$id": "634",
+ "kind": "string",
+ "type": {
+ "$ref": "184"
+ },
+ "value": "3.0.1"
+ }
+ }
+ },
+ "description": {
+ "$id": "635",
+ "kind": "string",
+ "type": {
+ "$ref": "174"
+ },
+ "value": "Default API definition."
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "636",
+ "Name": "getExportSpecificationOperationStatus",
+ "ResourceName": "ResourceOperationStatus",
+ "Doc": "Gets status of a an API specification export operation.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "637",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "638",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "639",
+ "Type": {
+ "$id": "640",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "641",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "642",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "643",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "644",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "645",
+ "Name": "versionName",
+ "NameInRequest": "versionName",
+ "Doc": "Version identifier.",
+ "Type": {
+ "$id": "646",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "647",
+ "Name": "definitionName",
+ "NameInRequest": "definitionName",
+ "Doc": "API definition identifier.",
+ "Type": {
+ "$id": "648",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "649",
+ "Name": "operationId",
+ "NameInRequest": "operationId",
+ "Doc": "The unique ID of the operation.",
+ "Type": {
+ "$id": "650",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "651",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "652",
+ "kind": "constant",
+ "valueType": {
+ "$id": "653",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "654",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "321"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}/operations/{operationId}",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinitions.getExportSpecificationOperationStatus",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "655",
+ "kind": "http",
+ "name": "ApiDefinitions_GetExportSpecificationOperationStatus",
+ "description": "ApiDefinitions_GetExportSpecificationOperationStatus",
+ "filePath": "2024-02-01-preview/ApiDefinitions_GetExportSpecificationOperationStatus.json",
+ "parameters": [
+ {
+ "$id": "656",
+ "parameter": {
+ "$ref": "637"
+ },
+ "value": {
+ "$id": "657",
+ "kind": "string",
+ "type": {
+ "$ref": "638"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "658",
+ "parameter": {
+ "$ref": "641"
+ },
+ "value": {
+ "$id": "659",
+ "kind": "string",
+ "type": {
+ "$ref": "642"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "660",
+ "parameter": {
+ "$ref": "643"
+ },
+ "value": {
+ "$id": "661",
+ "kind": "string",
+ "type": {
+ "$ref": "644"
+ },
+ "value": "echo-api"
+ }
+ },
+ {
+ "$id": "662",
+ "parameter": {
+ "$ref": "645"
+ },
+ "value": {
+ "$id": "663",
+ "kind": "string",
+ "type": {
+ "$ref": "646"
+ },
+ "value": "2023-01-01"
+ }
+ },
+ {
+ "$id": "664",
+ "parameter": {
+ "$ref": "647"
+ },
+ "value": {
+ "$id": "665",
+ "kind": "string",
+ "type": {
+ "$ref": "648"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "666",
+ "parameter": {
+ "$ref": "649"
+ },
+ "value": {
+ "$id": "667",
+ "kind": "string",
+ "type": {
+ "$ref": "650"
+ },
+ "value": "00000000-0000-0000-0000-000000000001"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "668",
+ "response": {
+ "$ref": "654"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "669",
+ "kind": "model",
+ "type": {
+ "$ref": "321"
+ },
+ "value": {
+ "$id": "670",
+ "status": {
+ "$id": "671",
+ "kind": "string",
+ "type": {
+ "$ref": "50"
+ },
+ "value": "Succeeded"
+ },
+ "result": {
+ "$id": "672",
+ "kind": "model",
+ "type": {
+ "$ref": "189"
+ },
+ "value": {
+ "$id": "673",
+ "value": {
+ "$id": "674",
+ "kind": "string",
+ "type": {
+ "$ref": "195"
+ },
+ "value": "{ ... }"
+ },
+ "format": {
+ "$id": "675",
+ "kind": "string",
+ "type": {
+ "$ref": "28"
+ },
+ "value": "link"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "676",
+ "Name": "exportSpecification",
+ "ResourceName": "ApiDefinitions",
+ "Doc": "Export an API specification asynchronously.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "677",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "678",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "679",
+ "Type": {
+ "$id": "680",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "681",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "682",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "683",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "684",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "685",
+ "Name": "versionName",
+ "NameInRequest": "versionName",
+ "Doc": "Version identifier.",
+ "Type": {
+ "$id": "686",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "687",
+ "Name": "definitionName",
+ "NameInRequest": "definitionName",
+ "Doc": "API definition identifier.",
+ "Type": {
+ "$id": "688",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "689",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "690",
+ "kind": "constant",
+ "valueType": {
+ "$id": "691",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "692",
+ "StatusCodes": [
+ 202
+ ],
+ "BodyType": {
+ "$ref": "321"
+ },
+ "Headers": [
+ {
+ "$id": "693",
+ "Name": "operationLocation",
+ "NameInResponse": "Operation-Location",
+ "Doc": "The location for monitoring the operation state.",
+ "Type": {
+ "$id": "694",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "695",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ }
+ }
+ ],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "POST",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}:exportSpecification",
+ "BufferResponse": true,
+ "LongRunning": {
+ "$id": "696",
+ "FinalStateVia": 3,
+ "FinalResponse": {
+ "$id": "697",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "321"
+ }
+ },
+ "ResultPath": "result"
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinitions.exportSpecification",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "698",
+ "kind": "http",
+ "name": "ApiDefinitions_ExportSpecification",
+ "description": "ApiDefinitions_ExportSpecification",
+ "filePath": "2024-02-01-preview/ApiDefinitions_ExportSpecification.json",
+ "parameters": [
+ {
+ "$id": "699",
+ "parameter": {
+ "$ref": "677"
+ },
+ "value": {
+ "$id": "700",
+ "kind": "string",
+ "type": {
+ "$ref": "678"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "701",
+ "parameter": {
+ "$ref": "681"
+ },
+ "value": {
+ "$id": "702",
+ "kind": "string",
+ "type": {
+ "$ref": "682"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "703",
+ "parameter": {
+ "$ref": "683"
+ },
+ "value": {
+ "$id": "704",
+ "kind": "string",
+ "type": {
+ "$ref": "684"
+ },
+ "value": "echo-api"
+ }
+ },
+ {
+ "$id": "705",
+ "parameter": {
+ "$ref": "685"
+ },
+ "value": {
+ "$id": "706",
+ "kind": "string",
+ "type": {
+ "$ref": "686"
+ },
+ "value": "2023-01-01"
+ }
+ },
+ {
+ "$id": "707",
+ "parameter": {
+ "$ref": "687"
+ },
+ "value": {
+ "$id": "708",
+ "kind": "string",
+ "type": {
+ "$ref": "688"
+ },
+ "value": "default"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "709",
+ "response": {
+ "$ref": "692"
+ },
+ "statusCode": 202,
+ "bodyValue": {
+ "$id": "710",
+ "kind": "model",
+ "type": {
+ "$ref": "321"
+ },
+ "value": {
+ "$id": "711",
+ "status": {
+ "$id": "712",
+ "kind": "string",
+ "type": {
+ "$ref": "50"
+ },
+ "value": "Succeeded"
+ },
+ "result": {
+ "$id": "713",
+ "kind": "model",
+ "type": {
+ "$ref": "189"
+ },
+ "value": {
+ "$id": "714",
+ "value": {
+ "$id": "715",
+ "kind": "string",
+ "type": {
+ "$ref": "195"
+ },
+ "value": "{ ... }"
+ },
+ "format": {
+ "$id": "716",
+ "kind": "string",
+ "type": {
+ "$ref": "28"
+ },
+ "value": "link"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "Protocol": {
+ "$id": "717"
+ },
+ "Parent": "DataApiClient",
+ "Parameters": [],
+ "Decorators": [],
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDefinitions"
+ },
+ {
+ "$id": "718",
+ "Name": "ApiDeployments",
+ "Namespace": "ApiCenter.DataApi",
+ "Operations": [
+ {
+ "$id": "719",
+ "Name": "listDeployments",
+ "ResourceName": "ApiDeployment",
+ "Doc": "List a collection of API deployments.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "720",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "721",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "722",
+ "Type": {
+ "$id": "723",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "724",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "725",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "726",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "727",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "728",
+ "Name": "top",
+ "NameInRequest": "top",
+ "Doc": "The number of result items to return.",
+ "Type": {
+ "$id": "729",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "730",
+ "Name": "skip",
+ "NameInRequest": "skip",
+ "Doc": "The number of result items to skip.",
+ "Type": {
+ "$id": "731",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "732",
+ "Name": "maxpagesize",
+ "NameInRequest": "maxpagesize",
+ "Doc": "The maximum number of result items per page.",
+ "Type": {
+ "$id": "733",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "734",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "735",
+ "kind": "constant",
+ "valueType": {
+ "$id": "736",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "737",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "363"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/deployments",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "738",
+ "ItemPropertySegments": [
+ "value"
+ ],
+ "NextLink": {
+ "$id": "739",
+ "ResponseSegments": [
+ "nextLink"
+ ],
+ "ResponseLocation": "Body"
+ }
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployments.listDeployments",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "740",
+ "kind": "http",
+ "name": "ApiDeployments_ListDeployments",
+ "description": "ApiDeployments_ListDeployments",
+ "filePath": "2024-02-01-preview/ApiDeployments_ListDeployments.json",
+ "parameters": [
+ {
+ "$id": "741",
+ "parameter": {
+ "$ref": "720"
+ },
+ "value": {
+ "$id": "742",
+ "kind": "string",
+ "type": {
+ "$ref": "721"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "743",
+ "parameter": {
+ "$ref": "724"
+ },
+ "value": {
+ "$id": "744",
+ "kind": "string",
+ "type": {
+ "$ref": "725"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "745",
+ "parameter": {
+ "$ref": "726"
+ },
+ "value": {
+ "$id": "746",
+ "kind": "string",
+ "type": {
+ "$ref": "727"
+ },
+ "value": "echo-api"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "747",
+ "response": {
+ "$ref": "737"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "748",
+ "kind": "model",
+ "type": {
+ "$ref": "363"
+ },
+ "value": {
+ "$id": "749",
+ "value": {
+ "$id": "750",
+ "kind": "array",
+ "type": {
+ "$ref": "365"
+ },
+ "value": [
+ {
+ "$id": "751",
+ "kind": "model",
+ "type": {
+ "$ref": "130"
+ },
+ "value": {
+ "$id": "752",
+ "name": {
+ "$id": "753",
+ "kind": "string",
+ "type": {
+ "$ref": "132"
+ },
+ "value": "production"
+ },
+ "title": {
+ "$id": "754",
+ "kind": "string",
+ "type": {
+ "$ref": "136"
+ },
+ "value": "Production"
+ },
+ "description": {
+ "$id": "755",
+ "kind": "string",
+ "type": {
+ "$ref": "140"
+ },
+ "value": "Production deployment (Public Cloud)"
+ },
+ "environment": {
+ "$id": "756",
+ "kind": "string",
+ "type": {
+ "$ref": "144"
+ },
+ "value": "public"
+ },
+ "server": {
+ "$id": "757",
+ "kind": "model",
+ "type": {
+ "$ref": "148"
+ },
+ "value": {
+ "$id": "758",
+ "runtimeUris": {
+ "$id": "759",
+ "kind": "array",
+ "type": {
+ "$ref": "150"
+ },
+ "value": [
+ {
+ "$id": "760",
+ "kind": "string",
+ "type": {
+ "$ref": "151"
+ },
+ "value": "https://contoso.azure-api.net"
+ }
+ ]
+ }
+ }
+ },
+ "recommended": {
+ "$id": "761",
+ "kind": "boolean",
+ "type": {
+ "$ref": "161"
+ },
+ "value": true
+ }
+ }
+ }
+ ]
+ },
+ "nextLink": {
+ "$id": "762",
+ "kind": "string",
+ "type": {
+ "$ref": "369"
+ },
+ "value": "https://microsoft.com/aiofpisa"
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "763",
+ "Name": "getDeployment",
+ "ResourceName": "ApiDeployment",
+ "Doc": "Get an API deployment.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "764",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "765",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "766",
+ "Type": {
+ "$id": "767",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "768",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "769",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "770",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "771",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "772",
+ "Name": "deploymentName",
+ "NameInRequest": "deploymentName",
+ "Doc": "Deployment identifier.",
+ "Type": {
+ "$id": "773",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "774",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "775",
+ "kind": "constant",
+ "valueType": {
+ "$id": "776",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "777",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "130"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/deployments/{deploymentName}",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployments.getDeployment",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "778",
+ "kind": "http",
+ "name": "ApiDeployments_GetDeployment",
+ "description": "ApiDeployments_GetDeployment",
+ "filePath": "2024-02-01-preview/ApiDeployments_GetDeployment.json",
+ "parameters": [
+ {
+ "$id": "779",
+ "parameter": {
+ "$ref": "764"
+ },
+ "value": {
+ "$id": "780",
+ "kind": "string",
+ "type": {
+ "$ref": "765"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "781",
+ "parameter": {
+ "$ref": "768"
+ },
+ "value": {
+ "$id": "782",
+ "kind": "string",
+ "type": {
+ "$ref": "769"
+ },
+ "value": "eeoezynpqqgtykbukjcelrwvomtccvbjwntxfqh"
+ }
+ },
+ {
+ "$id": "783",
+ "parameter": {
+ "$ref": "770"
+ },
+ "value": {
+ "$id": "784",
+ "kind": "string",
+ "type": {
+ "$ref": "771"
+ },
+ "value": "lauuo"
+ }
+ },
+ {
+ "$id": "785",
+ "parameter": {
+ "$ref": "772"
+ },
+ "value": {
+ "$id": "786",
+ "kind": "string",
+ "type": {
+ "$ref": "773"
+ },
+ "value": "ffc"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "787",
+ "response": {
+ "$ref": "777"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "788",
+ "kind": "model",
+ "type": {
+ "$ref": "130"
+ },
+ "value": {
+ "$id": "789",
+ "name": {
+ "$id": "790",
+ "kind": "string",
+ "type": {
+ "$ref": "132"
+ },
+ "value": "production"
+ },
+ "title": {
+ "$id": "791",
+ "kind": "string",
+ "type": {
+ "$ref": "136"
+ },
+ "value": "Production"
+ },
+ "description": {
+ "$id": "792",
+ "kind": "string",
+ "type": {
+ "$ref": "140"
+ },
+ "value": "Production deployment (Public Cloud)"
+ },
+ "environment": {
+ "$id": "793",
+ "kind": "string",
+ "type": {
+ "$ref": "144"
+ },
+ "value": "public"
+ },
+ "server": {
+ "$id": "794",
+ "kind": "model",
+ "type": {
+ "$ref": "148"
+ },
+ "value": {
+ "$id": "795",
+ "runtimeUris": {
+ "$id": "796",
+ "kind": "array",
+ "type": {
+ "$ref": "150"
+ },
+ "value": [
+ {
+ "$id": "797",
+ "kind": "string",
+ "type": {
+ "$ref": "151"
+ },
+ "value": "https://contoso.azure-api.net"
+ }
+ ]
+ }
+ }
+ },
+ "recommended": {
+ "$id": "798",
+ "kind": "boolean",
+ "type": {
+ "$ref": "161"
+ },
+ "value": true
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "Protocol": {
+ "$id": "799"
+ },
+ "Parent": "DataApiClient",
+ "Parameters": [],
+ "Decorators": [],
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiDeployments"
+ },
+ {
+ "$id": "800",
+ "Name": "Environments",
+ "Namespace": "ApiCenter.DataApi",
+ "Operations": [
+ {
+ "$id": "801",
+ "Name": "list",
+ "ResourceName": "Environment",
+ "Doc": "List a collection of environments.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "802",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "803",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "804",
+ "Type": {
+ "$id": "805",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "806",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "807",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "808",
+ "Name": "top",
+ "NameInRequest": "top",
+ "Doc": "The number of result items to return.",
+ "Type": {
+ "$id": "809",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "810",
+ "Name": "skip",
+ "NameInRequest": "skip",
+ "Doc": "The number of result items to skip.",
+ "Type": {
+ "$id": "811",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "812",
+ "Name": "maxpagesize",
+ "NameInRequest": "maxpagesize",
+ "Doc": "The maximum number of result items per page.",
+ "Type": {
+ "$id": "813",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "814",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "815",
+ "kind": "constant",
+ "valueType": {
+ "$id": "816",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "817",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "373"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/environments",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "818",
+ "ItemPropertySegments": [
+ "value"
+ ],
+ "NextLink": {
+ "$id": "819",
+ "ResponseSegments": [
+ "nextLink"
+ ],
+ "ResponseLocation": "Body"
+ }
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Environments.list",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "820",
+ "kind": "http",
+ "name": "Environments_List",
+ "description": "Environments_List",
+ "filePath": "2024-02-01-preview/Environments_List.json",
+ "parameters": [
+ {
+ "$id": "821",
+ "parameter": {
+ "$ref": "802"
+ },
+ "value": {
+ "$id": "822",
+ "kind": "string",
+ "type": {
+ "$ref": "803"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "823",
+ "parameter": {
+ "$ref": "806"
+ },
+ "value": {
+ "$id": "824",
+ "kind": "string",
+ "type": {
+ "$ref": "807"
+ },
+ "value": "default"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "825",
+ "response": {
+ "$ref": "817"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "826",
+ "kind": "model",
+ "type": {
+ "$ref": "373"
+ },
+ "value": {
+ "$id": "827",
+ "value": {
+ "$id": "828",
+ "kind": "array",
+ "type": {
+ "$ref": "375"
+ },
+ "value": [
+ {
+ "$id": "829",
+ "kind": "model",
+ "type": {
+ "$ref": "74"
+ },
+ "value": {
+ "$id": "830",
+ "name": {
+ "$id": "831",
+ "kind": "string",
+ "type": {
+ "$ref": "76"
+ },
+ "value": "public"
+ },
+ "title": {
+ "$id": "832",
+ "kind": "string",
+ "type": {
+ "$ref": "80"
+ },
+ "value": "Public"
+ },
+ "description": {
+ "$id": "833",
+ "kind": "string",
+ "type": {
+ "$ref": "87"
+ },
+ "value": "Public Cloud environment."
+ },
+ "kind": {
+ "$id": "834",
+ "kind": "string",
+ "type": {
+ "$ref": "18"
+ },
+ "value": "production"
+ },
+ "server": {
+ "$id": "835",
+ "kind": "model",
+ "type": {
+ "$ref": "91"
+ },
+ "value": {
+ "$id": "836",
+ "type": {
+ "$id": "837",
+ "kind": "string",
+ "type": {
+ "$ref": "93"
+ },
+ "value": "Azure API Management"
+ },
+ "managementPortalUris": {
+ "$id": "838",
+ "kind": "array",
+ "type": {
+ "$ref": "97"
+ },
+ "value": [
+ {
+ "$id": "839",
+ "kind": "string",
+ "type": {
+ "$ref": "98"
+ },
+ "value": "https://portal.azure.com"
+ }
+ ]
+ }
+ }
+ },
+ "onboarding": {
+ "$id": "840",
+ "kind": "model",
+ "type": {
+ "$ref": "104"
+ },
+ "value": {
+ "$id": "841",
+ "instructions": {
+ "$id": "842",
+ "kind": "string",
+ "type": {
+ "$ref": "106"
+ },
+ "value": "https://aka.ms/apim-devportal"
+ },
+ "developerPortalUris": {
+ "$id": "843",
+ "kind": "array",
+ "type": {
+ "$ref": "110"
+ },
+ "value": [
+ {
+ "$id": "844",
+ "kind": "string",
+ "type": {
+ "$ref": "111"
+ },
+ "value": "https://contoso.developer.azure-api.net"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ]
+ },
+ "nextLink": {
+ "$id": "845",
+ "kind": "string",
+ "type": {
+ "$ref": "379"
+ },
+ "value": "https://..."
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "846",
+ "Name": "listAll",
+ "ResourceName": "Environments",
+ "Doc": "List a collection of environments across workspaces.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "847",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "848",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "849",
+ "Type": {
+ "$id": "850",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "851",
+ "Name": "top",
+ "NameInRequest": "top",
+ "Doc": "The number of result items to return.",
+ "Type": {
+ "$id": "852",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "853",
+ "Name": "skip",
+ "NameInRequest": "skip",
+ "Doc": "The number of result items to skip.",
+ "Type": {
+ "$id": "854",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "855",
+ "Name": "maxpagesize",
+ "NameInRequest": "maxpagesize",
+ "Doc": "The maximum number of result items per page.",
+ "Type": {
+ "$id": "856",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "857",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "858",
+ "kind": "constant",
+ "valueType": {
+ "$id": "859",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "860",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "120"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/environments",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Environments.listAll",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "861",
+ "kind": "http",
+ "name": "Environments_ListAll",
+ "description": "Environments_ListAll",
+ "filePath": "2024-02-01-preview/Environments_ListAll.json",
+ "parameters": [
+ {
+ "$id": "862",
+ "parameter": {
+ "$ref": "847"
+ },
+ "value": {
+ "$id": "863",
+ "kind": "string",
+ "type": {
+ "$ref": "848"
+ },
+ "value": "2024-02-01-preview"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "864",
+ "response": {
+ "$ref": "860"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "865",
+ "kind": "model",
+ "type": {
+ "$ref": "120"
+ },
+ "value": {
+ "$id": "866",
+ "value": {
+ "$id": "867",
+ "kind": "array",
+ "type": {
+ "$ref": "122"
+ },
+ "value": [
+ {
+ "$id": "868",
+ "kind": "model",
+ "type": {
+ "$ref": "74"
+ },
+ "value": {
+ "$id": "869",
+ "name": {
+ "$id": "870",
+ "kind": "string",
+ "type": {
+ "$ref": "76"
+ },
+ "value": "public"
+ },
+ "title": {
+ "$id": "871",
+ "kind": "string",
+ "type": {
+ "$ref": "80"
+ },
+ "value": "Public"
+ },
+ "description": {
+ "$id": "872",
+ "kind": "string",
+ "type": {
+ "$ref": "87"
+ },
+ "value": "Public Cloud environment."
+ },
+ "kind": {
+ "$id": "873",
+ "kind": "string",
+ "type": {
+ "$ref": "18"
+ },
+ "value": "production"
+ },
+ "server": {
+ "$id": "874",
+ "kind": "model",
+ "type": {
+ "$ref": "91"
+ },
+ "value": {
+ "$id": "875",
+ "type": {
+ "$id": "876",
+ "kind": "string",
+ "type": {
+ "$ref": "93"
+ },
+ "value": "Azure API Management"
+ },
+ "managementPortalUris": {
+ "$id": "877",
+ "kind": "array",
+ "type": {
+ "$ref": "97"
+ },
+ "value": [
+ {
+ "$id": "878",
+ "kind": "string",
+ "type": {
+ "$ref": "98"
+ },
+ "value": "https://portal.azure.com"
+ }
+ ]
+ }
+ }
+ },
+ "onboarding": {
+ "$id": "879",
+ "kind": "model",
+ "type": {
+ "$ref": "104"
+ },
+ "value": {
+ "$id": "880",
+ "instructions": {
+ "$id": "881",
+ "kind": "string",
+ "type": {
+ "$ref": "106"
+ },
+ "value": "https://aka.ms/apim-devportal"
+ },
+ "developerPortalUris": {
+ "$id": "882",
+ "kind": "array",
+ "type": {
+ "$ref": "110"
+ },
+ "value": [
+ {
+ "$id": "883",
+ "kind": "string",
+ "type": {
+ "$ref": "111"
+ },
+ "value": "https://contoso.developer.azure-api.net"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ]
+ },
+ "nextLink": {
+ "$id": "884",
+ "kind": "string",
+ "type": {
+ "$ref": "126"
+ },
+ "value": "https://..."
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "885",
+ "Name": "get",
+ "ResourceName": "Environment",
+ "Doc": "Get an environment.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "886",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "887",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "888",
+ "Type": {
+ "$id": "889",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "890",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "891",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "892",
+ "Name": "environmentName",
+ "NameInRequest": "environmentName",
+ "Doc": "Environment identifier.",
+ "Type": {
+ "$id": "893",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "894",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "895",
+ "kind": "constant",
+ "valueType": {
+ "$id": "896",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "897",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "74"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/environments/{environmentName}",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Environments.get",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "898",
+ "kind": "http",
+ "name": "Environments_Get",
+ "description": "Environments_Get",
+ "filePath": "2024-02-01-preview/Environments_Get.json",
+ "parameters": [
+ {
+ "$id": "899",
+ "parameter": {
+ "$ref": "886"
+ },
+ "value": {
+ "$id": "900",
+ "kind": "string",
+ "type": {
+ "$ref": "887"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "901",
+ "parameter": {
+ "$ref": "890"
+ },
+ "value": {
+ "$id": "902",
+ "kind": "string",
+ "type": {
+ "$ref": "891"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "903",
+ "parameter": {
+ "$ref": "892"
+ },
+ "value": {
+ "$id": "904",
+ "kind": "string",
+ "type": {
+ "$ref": "893"
+ },
+ "value": "production"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "905",
+ "response": {
+ "$ref": "897"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "906",
+ "kind": "model",
+ "type": {
+ "$ref": "74"
+ },
+ "value": {
+ "$id": "907",
+ "name": {
+ "$id": "908",
+ "kind": "string",
+ "type": {
+ "$ref": "76"
+ },
+ "value": "public"
+ },
+ "title": {
+ "$id": "909",
+ "kind": "string",
+ "type": {
+ "$ref": "80"
+ },
+ "value": "Public"
+ },
+ "description": {
+ "$id": "910",
+ "kind": "string",
+ "type": {
+ "$ref": "87"
+ },
+ "value": "Public Cloud environment."
+ },
+ "kind": {
+ "$id": "911",
+ "kind": "string",
+ "type": {
+ "$ref": "18"
+ },
+ "value": "production"
+ },
+ "server": {
+ "$id": "912",
+ "kind": "model",
+ "type": {
+ "$ref": "91"
+ },
+ "value": {
+ "$id": "913",
+ "type": {
+ "$id": "914",
+ "kind": "string",
+ "type": {
+ "$ref": "93"
+ },
+ "value": "Azure API Management"
+ },
+ "managementPortalUris": {
+ "$id": "915",
+ "kind": "array",
+ "type": {
+ "$ref": "97"
+ },
+ "value": [
+ {
+ "$id": "916",
+ "kind": "string",
+ "type": {
+ "$ref": "98"
+ },
+ "value": "https://portal.azure.com"
+ }
+ ]
+ }
+ }
+ },
+ "onboarding": {
+ "$id": "917",
+ "kind": "model",
+ "type": {
+ "$ref": "104"
+ },
+ "value": {
+ "$id": "918",
+ "instructions": {
+ "$id": "919",
+ "kind": "string",
+ "type": {
+ "$ref": "106"
+ },
+ "value": "https://aka.ms/apim-devportal"
+ },
+ "developerPortalUris": {
+ "$id": "920",
+ "kind": "array",
+ "type": {
+ "$ref": "110"
+ },
+ "value": [
+ {
+ "$id": "921",
+ "kind": "string",
+ "type": {
+ "$ref": "111"
+ },
+ "value": "https://contoso.developer.azure-api.net"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "Protocol": {
+ "$id": "922"
+ },
+ "Parent": "DataApiClient",
+ "Parameters": [],
+ "Decorators": [],
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.Environments"
+ },
+ {
+ "$id": "923",
+ "Name": "ApiVersions",
+ "Namespace": "ApiCenter.DataApi",
+ "Operations": [
+ {
+ "$id": "924",
+ "Name": "listVersions",
+ "ResourceName": "ApiVersion",
+ "Doc": "List a collection of API versions.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "925",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "926",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "927",
+ "Type": {
+ "$id": "928",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "929",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "930",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "931",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "932",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "933",
+ "Name": "top",
+ "NameInRequest": "top",
+ "Doc": "The number of result items to return.",
+ "Type": {
+ "$id": "934",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "935",
+ "Name": "skip",
+ "NameInRequest": "skip",
+ "Doc": "The number of result items to skip.",
+ "Type": {
+ "$id": "936",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "937",
+ "Name": "maxpagesize",
+ "NameInRequest": "maxpagesize",
+ "Doc": "The maximum number of result items per page.",
+ "Type": {
+ "$id": "938",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "939",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "940",
+ "kind": "constant",
+ "valueType": {
+ "$id": "941",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "942",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "383"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/versions",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "943",
+ "ItemPropertySegments": [
+ "value"
+ ],
+ "NextLink": {
+ "$id": "944",
+ "ResponseSegments": [
+ "nextLink"
+ ],
+ "ResponseLocation": "Body"
+ }
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiVersions.listVersions",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "945",
+ "kind": "http",
+ "name": "ApiVersions_ListVersions",
+ "description": "ApiVersions_ListVersions",
+ "filePath": "2024-02-01-preview/ApiVersions_ListVersions.json",
+ "parameters": [
+ {
+ "$id": "946",
+ "parameter": {
+ "$ref": "925"
+ },
+ "value": {
+ "$id": "947",
+ "kind": "string",
+ "type": {
+ "$ref": "926"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "948",
+ "parameter": {
+ "$ref": "929"
+ },
+ "value": {
+ "$id": "949",
+ "kind": "string",
+ "type": {
+ "$ref": "930"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "950",
+ "parameter": {
+ "$ref": "931"
+ },
+ "value": {
+ "$id": "951",
+ "kind": "string",
+ "type": {
+ "$ref": "932"
+ },
+ "value": "echo-api"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "952",
+ "response": {
+ "$ref": "942"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "953",
+ "kind": "model",
+ "type": {
+ "$ref": "383"
+ },
+ "value": {
+ "$id": "954",
+ "value": {
+ "$id": "955",
+ "kind": "array",
+ "type": {
+ "$ref": "385"
+ },
+ "value": [
+ {
+ "$id": "956",
+ "kind": "model",
+ "type": {
+ "$ref": "62"
+ },
+ "value": {
+ "$id": "957",
+ "name": {
+ "$id": "958",
+ "kind": "string",
+ "type": {
+ "$ref": "64"
+ },
+ "value": "2023-01-01"
+ },
+ "title": {
+ "$id": "959",
+ "kind": "string",
+ "type": {
+ "$ref": "68"
+ },
+ "value": "2023-01-01"
+ },
+ "lifecycleStage": {
+ "$id": "960",
+ "kind": "string",
+ "type": {
+ "$ref": "2"
+ },
+ "value": "design"
+ }
+ }
+ }
+ ]
+ },
+ "nextLink": {
+ "$id": "961",
+ "kind": "string",
+ "type": {
+ "$ref": "389"
+ },
+ "value": "https://..."
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$id": "962",
+ "Name": "getVersion",
+ "ResourceName": "ApiVersion",
+ "Doc": "Get an API version.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "963",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Doc": "The API version to use for this operation.",
+ "Type": {
+ "$id": "964",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "965",
+ "Type": {
+ "$id": "966",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2024-02-01-preview"
+ },
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "967",
+ "Name": "workspaceName",
+ "NameInRequest": "workspaceName",
+ "Doc": "Workspace identifier.",
+ "Type": {
+ "$id": "968",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "969",
+ "Name": "apiName",
+ "NameInRequest": "apiName",
+ "Doc": "Api identifier.",
+ "Type": {
+ "$id": "970",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "971",
+ "Name": "versionName",
+ "NameInRequest": "versionName",
+ "Doc": "Version identifier.",
+ "Type": {
+ "$id": "972",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ },
+ {
+ "$id": "973",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "974",
+ "kind": "constant",
+ "valueType": {
+ "$id": "975",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Constant",
+ "Decorators": [],
+ "SkipUrlEncoding": false
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "976",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "62"
+ },
+ "Headers": [],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "Uri": "https://{serviceName}.data.{region}.azure-apicenter.ms",
+ "Path": "/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}",
+ "BufferResponse": true,
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiVersions.getVersion",
+ "Decorators": [],
+ "Examples": [
+ {
+ "$id": "977",
+ "kind": "http",
+ "name": "ApiVersions_GetVersion",
+ "description": "ApiVersions_GetVersion",
+ "filePath": "2024-02-01-preview/ApiVersions_GetVersion.json",
+ "parameters": [
+ {
+ "$id": "978",
+ "parameter": {
+ "$ref": "963"
+ },
+ "value": {
+ "$id": "979",
+ "kind": "string",
+ "type": {
+ "$ref": "964"
+ },
+ "value": "2024-02-01-preview"
+ }
+ },
+ {
+ "$id": "980",
+ "parameter": {
+ "$ref": "967"
+ },
+ "value": {
+ "$id": "981",
+ "kind": "string",
+ "type": {
+ "$ref": "968"
+ },
+ "value": "default"
+ }
+ },
+ {
+ "$id": "982",
+ "parameter": {
+ "$ref": "969"
+ },
+ "value": {
+ "$id": "983",
+ "kind": "string",
+ "type": {
+ "$ref": "970"
+ },
+ "value": "echo-api"
+ }
+ },
+ {
+ "$id": "984",
+ "parameter": {
+ "$ref": "971"
+ },
+ "value": {
+ "$id": "985",
+ "kind": "string",
+ "type": {
+ "$ref": "972"
+ },
+ "value": "2023-01-01"
+ }
+ }
+ ],
+ "responses": [
+ {
+ "$id": "986",
+ "response": {
+ "$ref": "976"
+ },
+ "statusCode": 200,
+ "bodyValue": {
+ "$id": "987",
+ "kind": "model",
+ "type": {
+ "$ref": "62"
+ },
+ "value": {
+ "$id": "988",
+ "name": {
+ "$id": "989",
+ "kind": "string",
+ "type": {
+ "$ref": "64"
+ },
+ "value": "2023-01-01"
+ },
+ "title": {
+ "$id": "990",
+ "kind": "string",
+ "type": {
+ "$ref": "68"
+ },
+ "value": "2023-01-01"
+ },
+ "lifecycleStage": {
+ "$id": "991",
+ "kind": "string",
+ "type": {
+ "$ref": "2"
+ },
+ "value": "design"
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "Protocol": {
+ "$id": "992"
+ },
+ "Parent": "DataApiClient",
+ "Parameters": [],
+ "Decorators": [],
+ "CrossLanguageDefinitionId": "ApiCenter.DataApi.ApiVersions"
+ }
+ ],
+ "Auth": {
+ "$id": "993",
+ "OAuth2": {
+ "$id": "994",
+ "Scopes": [
+ "https://azure-apicenter.net/user_impersonation"
+ ]
+ }
+ }
+}
diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/autorest.md b/sdk/chaos/Azure.ResourceManager.Chaos/src/autorest.md
deleted file mode 100644
index 433ca7df8c96..000000000000
--- a/sdk/chaos/Azure.ResourceManager.Chaos/src/autorest.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Generated code configuration
-
-Run `dotnet build /t:GenerateCode` to generate code.
-
-```yaml
-azure-arm: true
-csharp: true
-library-name: Chaos
-namespace: Azure.ResourceManager.Chaos
-#tag: package-2024-01
-require: https://github.com/Azure/azure-rest-api-specs/blob/f3cd6922dbe117d78b4f719bbf8b03db46b30808/specification/chaos/resource-manager/readme.md
-output-folder: $(this-folder)/Generated
-clear-output-folder: true
-sample-gen:
- output-folder: $(this-folder)/../samples/Generated
- clear-output-folder: true
-skip-csproj: true
-modelerfour:
- flatten-payloads: false
-use-model-reader-writer: true
-
-#mgmt-debug:
-# show-serialized-names: true
-
-rename-mapping:
- ActionStatus: ChaosExperimentRunActionStatus
- BranchStatus: ChaosExperimentRunBranchStatus
- StepStatus: ChaosExperimentRunStepStatus
- TargetReference.id: -|arm-id
- CapabilityTypePropertiesRuntimeProperties: ChaosCapabilityTypeRuntimeProperties
- ExperimentExecutionDetailsPropertiesRunInformation: ChaosExperimentRunInformation
-
-prepend-rp-prefix:
- - Capability
- - CapabilityType
- - Experiment
- - ExperimentExecution
- - Target
- - TargetType
- - ProvisioningState
- - ContinuousAction
- - DelayAction
- - DiscreteAction
- - KeyValuePair
- - TargetReference
- - TargetReferenceType
-
-format-by-name-rules:
- 'tenantId': 'uuid'
- 'ETag': 'etag'
- 'location': 'azure-location'
- '*Uri': 'Uri'
- '*Uris': 'Uri'
-
-acronym-mapping:
- CPU: Cpu
- CPUs: Cpus
- Os: OS
- Ip: IP
- Ips: IPs|ips
- ID: Id
- IDs: Ids
- VM: Vm
- VMs: Vms
- Vmos: VmOS
- VMScaleSet: VmScaleSet
- DNS: Dns
- VPN: Vpn
- NAT: Nat
- WAN: Wan
- Ipv4: IPv4|ipv4
- Ipv6: IPv6|ipv6
- Ipsec: IPsec|ipsec
- SSO: Sso
- URI: Uri
- Etag: ETag|etag
-
-directive:
- - remove-operation: 'OperationStatuses_Get'
-
-```
diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/tsp-location.yaml b/sdk/chaos/Azure.ResourceManager.Chaos/tsp-location.yaml
new file mode 100644
index 000000000000..05395e537f1f
--- /dev/null
+++ b/sdk/chaos/Azure.ResourceManager.Chaos/tsp-location.yaml
@@ -0,0 +1,4 @@
+directory: specification/chaos/Chaos.Management
+commit: 60cdfa5bab6d13277f65080c556de2eef80561c0
+repo: Azure/azure-rest-api-specs
+additionalDirectories:
diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml
index 55574ae47ab0..4666f5392d3e 100644
--- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml
+++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring/tsp-location.yaml
@@ -1,3 +1,4 @@
directory: specification/cognitiveservices/Language.AnalyzeConversations-authoring
-commit: 0c36d7f78a052d536d6e4653bd1e471d4b7a4822
+commit: 60cdfa5bab6d13277f65080c556de2eef80561c0
repo: Azure/azure-rest-api-specs
+additionalDirectories:
diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml
index ba4ecdbd9cf7..a401e9a7f5eb 100644
--- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml
+++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml
@@ -1,3 +1,4 @@
directory: specification/cognitiveservices/Language.AnalyzeText-authoring
-commit: e0c1c7b9c5be9f404c7c78edaa4fe4a6bc71eb32
+commit: 60cdfa5bab6d13277f65080c556de2eef80561c0
repo: Azure/azure-rest-api-specs
+additionalDirectories:
diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml
index 34d76f338750..193fbb326fc9 100644
--- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml
+++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml
@@ -1,3 +1,4 @@
directory: specification/ai/DocumentIntelligence
-commit: 28a0baf2c401a0b9bf839688c4d235398868835e
+commit: 60cdfa5bab6d13277f65080c556de2eef80561c0
repo: Azure/azure-rest-api-specs
+additionalDirectories:
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ActionParameters.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ActionParameters.Serialization.cs
new file mode 100644
index 000000000000..d7f704f11148
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ActionParameters.Serialization.cs
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class ActionParameters : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActionParameters)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(Value))
+ {
+ writer.WritePropertyName("value"u8);
+ writer.WriteStringValue(Value);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ActionParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActionParameters)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeActionParameters(document.RootElement, options);
+ }
+
+ internal static ActionParameters DeserializeActionParameters(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string value = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("value"u8))
+ {
+ value = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ActionParameters(value, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(ActionParameters)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ActionParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeActionParameters(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ActionParameters)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static ActionParameters FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeActionParameters(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ActionParameters.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ActionParameters.cs
new file mode 100644
index 000000000000..54e07325de47
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ActionParameters.cs
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// This is an object that exists to provide a common schema definition for the action parameters.
+ public partial class ActionParameters
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public ActionParameters()
+ {
+ }
+
+ /// Initializes a new instance of .
+ ///
+ /// The value parameter that is used by the policy action. This is action specific,
+ /// for further information please refer to documentation here:
+ /// https://learn.microsoft.com/en-us/azure/external-attack-surface-management/policy-engine
+ ///
+ /// Keeps track of any properties unknown to the library.
+ internal ActionParameters(string value, IDictionary serializedAdditionalRawData)
+ {
+ Value = value;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ ///
+ /// The value parameter that is used by the policy action. This is action specific,
+ /// for further information please refer to documentation here:
+ /// https://learn.microsoft.com/en-us/azure/external-attack-surface-management/policy-engine
+ ///
+ public string Value { get; set; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs
index 6333520b7dc2..81af844b25c1 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs
@@ -54,7 +54,7 @@ public static AssetResource AssetResource(string kind = null, string id = null,
}
/// Initializes a new instance of .
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The kind of asset.
@@ -1979,15 +1979,152 @@ public static TaskResource TaskResource(string id = null, DateTimeOffset? starte
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The total number of elements.
+ /// The summary of observation counts by priority.
+ /// The list of observation results.
+ /// A new instance for mocking.
+ public static ObservationPageResult ObservationPageResult(long totalElements = default, IReadOnlyDictionary prioritySummary = null, IEnumerable value = null)
+ {
+ prioritySummary ??= new Dictionary();
+ value ??= new List();
+
+ return new ObservationPageResult(totalElements, prioritySummary, value?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The name of the observation.
+ /// The list of applicable types.
+ /// The priority of the observation.
+ /// The CVSS v2 score.
+ /// The CVSS v3 score.
+ /// The remediation state of the observation.
+ /// The source of the remediation state of the observation.
+ /// A new instance for mocking.
+ public static ObservationResult ObservationResult(string name = null, IEnumerable types = null, ObservationPriority priority = default, double cvssScoreV2 = default, double cvssScoreV3 = default, ObservationRemediationState remediationState = default, ObservationRemediationSource remediationSource = default)
+ {
+ types ??= new List();
+
+ return new ObservationResult(
+ name,
+ types?.ToList(),
+ priority,
+ cvssScoreV2,
+ cvssScoreV3,
+ remediationState,
+ remediationSource,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The type of delta detail to retrieve.
+ /// The number of days prior to retrieve deltas for.
+ /// The type of asset.
+ /// expected format to be: yyyy-MM-dd.
+ /// A new instance for mocking.
+ public static DeltaDetailsRequest DeltaDetailsRequest(DeltaDetailType deltaDetailType = default, int? priorDays = null, GlobalAssetType kind = default, string date = null)
+ {
+ return new DeltaDetailsRequest(deltaDetailType, priorDays, kind, date, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Shows the asset kind.
+ /// Shows the asset name.
+ /// Shows the date when the asset was originally created.
+ /// Shows the date when the asset was last updated, usually the date the we trying to pull up the results for.
+ /// Shows the inventory state.
+ /// A new instance for mocking.
+ public static DeltaResult DeltaResult(GlobalAssetType kind = default, string name = null, DateTimeOffset createdAt = default, DateTimeOffset updatedAt = default, GlobalInventoryState state = default)
+ {
+ return new DeltaResult(
+ kind,
+ name,
+ createdAt,
+ updatedAt,
+ state,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Contains added, removed, and difference values for the whole range either 7 or 30 days.
+ /// Contains added, removed, count, and difference values for each day.
+ /// A new instance for mocking.
+ public static DeltaSummaryResult DeltaSummaryResult(DeltaRangeResult summary = null, IEnumerable daily = null)
+ {
+ daily ??= new List();
+
+ return new DeltaSummaryResult(summary, daily?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The range of dates requested.
+ /// The total amount of assets removed over a date range.
+ /// The total amount of assets added over a date range.
+ /// The total amount of assets changed removed over a date range.
+ /// A list of summary changes per asset kind.
+ /// A new instance for mocking.
+ public static DeltaRangeResult DeltaRangeResult(long range = default, long removed = default, long added = default, long difference = default, IEnumerable kindSummaries = null)
+ {
+ kindSummaries ??= new List();
+
+ return new DeltaRangeResult(
+ range,
+ removed,
+ added,
+ difference,
+ kindSummaries?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The kind of asset.
+ /// The amount of assets removed for one asset kind.
+ /// The amount of assets added for one asset kind.
+ /// The amount of assets changed for one asset kind.
+ /// A new instance for mocking.
+ public static DeltaTypeResponse DeltaTypeResponse(GlobalAssetType kind = default, long removed = default, long added = default, long difference = default)
+ {
+ return new DeltaTypeResponse(kind, removed, added, difference, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The date that is being requested.
+ /// A list of summary counts per day.
+ /// A new instance for mocking.
+ public static DeltaDateResult DeltaDateResult(DateTimeOffset date = default, IEnumerable deltas = null)
+ {
+ deltas ??= new List();
+
+ return new DeltaDateResult(date, deltas?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The kind of asset.
+ /// The amount of assets removed for one asset kind.
+ /// The amount of assets added for one asset kind.
+ /// The amount of assets changed for one asset kind.
+ /// The current number of assets for one asset kind.
+ /// A new instance for mocking.
+ public static DailyDeltaTypeResponse DailyDeltaTypeResponse(GlobalAssetType kind = default, long removed = default, long added = default, long difference = default, long count = default)
+ {
+ return new DailyDeltaTypeResponse(
+ kind,
+ removed,
+ added,
+ difference,
+ serializedAdditionalRawData: null,
+ count);
+ }
+
/// Initializes a new instance of .
/// Discriminator property for DataConnection.
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The type of data the data connection will transfer.
/// The date the data connection was created.
/// The rate at which the data connection will receive updates.
- /// The day to update the data connection on.
+ /// The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
/// The date the data connection was last updated.
/// The date the data connection was last updated by user.
/// An indicator of whether the data connection is active.
@@ -2012,13 +2149,13 @@ public static DataConnection DataConnection(string kind = null, string id = null
}
/// Initializes a new instance of .
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The type of data the data connection will transfer.
/// The date the data connection was created.
/// The rate at which the data connection will receive updates.
- /// The day to update the data connection on.
+ /// The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
/// The date the data connection was last updated.
/// The date the data connection was last updated by user.
/// An indicator of whether the data connection is active.
@@ -2045,13 +2182,13 @@ public static LogAnalyticsDataConnection LogAnalyticsDataConnection(string id =
}
/// Initializes a new instance of .
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The type of data the data connection will transfer.
/// The date the data connection was created.
/// The rate at which the data connection will receive updates.
- /// The day to update the data connection on.
+ /// The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
/// The date the data connection was last updated.
/// The date the data connection was last updated by user.
/// An indicator of whether the data connection is active.
@@ -2153,7 +2290,7 @@ public static InnerError InnerError(string code = null, BinaryData value = null)
}
/// Initializes a new instance of .
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The description for a disco group.
@@ -2218,6 +2355,47 @@ public static DiscoveryRunResult DiscoveryRunResult(DateTimeOffset? submittedDat
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// A list of asset chain summaries per asset kind.
+ /// A list of disco group summaries.
+ /// The list of exceptions.
+ /// A new instance for mocking.
+ public static AssetChainSummaryResult AssetChainSummaryResult(IEnumerable affectedAssetsSummary = null, IEnumerable affectedGroupsSummary = null, IEnumerable errors = null)
+ {
+ affectedAssetsSummary ??= new List();
+ affectedGroupsSummary ??= new List();
+ errors ??= new List();
+
+ return new AssetChainSummaryResult(affectedAssetsSummary?.ToList(), affectedGroupsSummary?.ToList(), errors?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The kind of asset.
+ /// The amount of assets affected for a given asset kind.
+ /// A new instance for mocking.
+ public static AssetChainKindSummaryResult AssetChainKindSummaryResult(AssetKind kind = default, long affectedCount = default)
+ {
+ return new AssetChainKindSummaryResult(kind, affectedCount, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The system generated unique id for the resource.
+ /// The caller provided unique name for the resource.
+ /// The name that can be used for display purposes.
+ /// A new instance for mocking.
+ public static DiscoGroupSummaryResult DiscoGroupSummaryResult(string id = null, string name = null, string displayName = null)
+ {
+ return new DiscoGroupSummaryResult(id, name, displayName, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The error object.
+ /// A new instance for mocking.
+ public static ErrorResponse ErrorResponse(ResponseError error = null)
+ {
+ return new ErrorResponse(error, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The system generated unique id for the resource.
/// The caller provided unique name for the resource.
@@ -2358,7 +2536,7 @@ public static AssetSummaryResult AssetSummaryResult(string displayName = null, s
}
/// Initializes a new instance of .
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
///
@@ -2374,5 +2552,65 @@ public static SavedFilter SavedFilter(string id = null, string name = null, stri
description,
serializedAdditionalRawData: null);
}
+
+ /// Initializes a new instance of .
+ /// The CVE ID of the vulnerability in the format CVE-YYYY-NNNN, note that the number portion can have more than 4 digits.
+ /// The vendor or project name for the vulnerability.
+ /// The vulnerability product.
+ /// The name of the vulnerability.
+ /// A short description of the vulnerability.
+ /// The required action to address the vulnerability.
+ /// Any additional notes about the vulnerability.
+ /// The date the vulnerability was added to the catalog in the format YYYY-MM-DD.
+ /// The date the required action is due in the format YYYY-MM-DD.
+ /// The date the vulnerability was updated.
+ /// The number of assets affected by the vulnerability.
+ /// A new instance for mocking.
+ public static CisaCveResult CisaCveResult(string cveId = null, string vendorProject = null, string product = null, string vulnerabilityName = null, string shortDescription = null, string requiredAction = null, string notes = null, DateTimeOffset dateAdded = default, DateTimeOffset dueDate = default, DateTimeOffset updatedAt = default, long count = default)
+ {
+ return new CisaCveResult(
+ cveId,
+ vendorProject,
+ product,
+ vulnerabilityName,
+ shortDescription,
+ requiredAction,
+ notes,
+ dateAdded,
+ dueDate,
+ updatedAt,
+ count,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// This is typically the same as the name but might be different for different models.
+ /// The caller provided unique name for the resource.
+ /// The name that can be used for display purposes.
+ /// A human readable description of what the policy should do.
+ /// Name of the saved filter query to be used to select assets that are to be updated by a given policy.
+ /// Action specifying what the policy should do.
+ /// Number of assets in inventory that have been updated by this policy.
+ /// The unique name of the user that created the policy user@gmail.com.
+ /// The date this policy was created, in RFC3339 format.
+ /// The date this policy was last updated, in RFC3339 format.
+ /// Additional parameters needed to perform the policy action.
+ /// A new instance for mocking.
+ public static Policy Policy(string id = null, string name = null, string displayName = null, string description = null, string filterName = null, PolicyAction action = default, long? updatedAssetsCount = null, string user = null, DateTimeOffset? createdDate = null, DateTimeOffset? updatedDate = null, ActionParameters actionParameters = null)
+ {
+ return new Policy(
+ id,
+ name,
+ displayName,
+ description,
+ filterName,
+ action,
+ updatedAssetsCount,
+ user,
+ createdDate,
+ updatedDate,
+ actionParameters,
+ serializedAdditionalRawData: null);
+ }
}
}
diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionResult.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainKindSummaryResult.Serialization.cs
similarity index 65%
rename from sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionResult.Serialization.cs
rename to sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainKindSummaryResult.Serialization.cs
index 15b072f6e4b7..e38a0dd24b9c 100644
--- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionResult.Serialization.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainKindSummaryResult.Serialization.cs
@@ -11,13 +11,13 @@
using System.Text.Json;
using Azure.Core;
-namespace Azure.AI.Vision.Face
+namespace Azure.Analytics.Defender.Easm
{
- public partial class CreateLivenessSessionResult : IUtf8JsonSerializable, IJsonModel
+ public partial class AssetChainKindSummaryResult : IUtf8JsonSerializable, IJsonModel
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -28,16 +28,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelR
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(CreateLivenessSessionResult)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(AssetChainKindSummaryResult)} does not support writing '{format}' format.");
}
- writer.WritePropertyName("sessionId"u8);
- writer.WriteStringValue(SessionId);
- writer.WritePropertyName("authToken"u8);
- writer.WriteStringValue(AuthToken);
+ writer.WritePropertyName("kind"u8);
+ writer.WriteStringValue(Kind.ToString());
+ writer.WritePropertyName("affectedCount"u8);
+ writer.WriteNumberValue(AffectedCount);
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -55,19 +55,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
}
- CreateLivenessSessionResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ AssetChainKindSummaryResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(CreateLivenessSessionResult)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(AssetChainKindSummaryResult)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeCreateLivenessSessionResult(document.RootElement, options);
+ return DeserializeAssetChainKindSummaryResult(document.RootElement, options);
}
- internal static CreateLivenessSessionResult DeserializeCreateLivenessSessionResult(JsonElement element, ModelReaderWriterOptions options = null)
+ internal static AssetChainKindSummaryResult DeserializeAssetChainKindSummaryResult(JsonElement element, ModelReaderWriterOptions options = null)
{
options ??= ModelSerializationExtensions.WireOptions;
@@ -75,20 +75,20 @@ internal static CreateLivenessSessionResult DeserializeCreateLivenessSessionResu
{
return null;
}
- string sessionId = default;
- string authToken = default;
+ AssetKind kind = default;
+ long affectedCount = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("sessionId"u8))
+ if (property.NameEquals("kind"u8))
{
- sessionId = property.Value.GetString();
+ kind = new AssetKind(property.Value.GetString());
continue;
}
- if (property.NameEquals("authToken"u8))
+ if (property.NameEquals("affectedCount"u8))
{
- authToken = property.Value.GetString();
+ affectedCount = property.Value.GetInt64();
continue;
}
if (options.Format != "W")
@@ -97,46 +97,46 @@ internal static CreateLivenessSessionResult DeserializeCreateLivenessSessionResu
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new CreateLivenessSessionResult(sessionId, authToken, serializedAdditionalRawData);
+ return new AssetChainKindSummaryResult(kind, affectedCount, serializedAdditionalRawData);
}
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options);
default:
- throw new FormatException($"The model {nameof(CreateLivenessSessionResult)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(AssetChainKindSummaryResult)} does not support writing '{options.Format}' format.");
}
}
- CreateLivenessSessionResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ AssetChainKindSummaryResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
{
using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
- return DeserializeCreateLivenessSessionResult(document.RootElement, options);
+ return DeserializeAssetChainKindSummaryResult(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(CreateLivenessSessionResult)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(AssetChainKindSummaryResult)} does not support reading '{options.Format}' format.");
}
}
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
/// Deserializes the model from a raw response.
/// The response to deserialize the model from.
- internal static CreateLivenessSessionResult FromResponse(Response response)
+ internal static AssetChainKindSummaryResult FromResponse(Response response)
{
using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
- return DeserializeCreateLivenessSessionResult(document.RootElement);
+ return DeserializeAssetChainKindSummaryResult(document.RootElement);
}
/// Convert into a .
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainKindSummaryResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainKindSummaryResult.cs
new file mode 100644
index 000000000000..255ca689194f
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainKindSummaryResult.cs
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// A list of asset chain summaries per asset kind.
+ public partial class AssetChainKindSummaryResult
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The kind of asset.
+ /// The amount of assets affected for a given asset kind.
+ internal AssetChainKindSummaryResult(AssetKind kind, long affectedCount)
+ {
+ Kind = kind;
+ AffectedCount = affectedCount;
+ }
+
+ /// Initializes a new instance of .
+ /// The kind of asset.
+ /// The amount of assets affected for a given asset kind.
+ /// Keeps track of any properties unknown to the library.
+ internal AssetChainKindSummaryResult(AssetKind kind, long affectedCount, IDictionary serializedAdditionalRawData)
+ {
+ Kind = kind;
+ AffectedCount = affectedCount;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal AssetChainKindSummaryResult()
+ {
+ }
+
+ /// The kind of asset.
+ public AssetKind Kind { get; }
+ /// The amount of assets affected for a given asset kind.
+ public long AffectedCount { get; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainRequest.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainRequest.Serialization.cs
new file mode 100644
index 000000000000..b391f514fba1
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainRequest.Serialization.cs
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class AssetChainRequest : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AssetChainRequest)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("assetChainSource"u8);
+ writer.WriteStringValue(AssetChainSource.ToString());
+ writer.WritePropertyName("sourceIds"u8);
+ writer.WriteStartArray();
+ foreach (var item in SourceIds)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ AssetChainRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AssetChainRequest)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAssetChainRequest(document.RootElement, options);
+ }
+
+ internal static AssetChainRequest DeserializeAssetChainRequest(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ AssetChainSource assetChainSource = default;
+ IList sourceIds = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("assetChainSource"u8))
+ {
+ assetChainSource = new AssetChainSource(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("sourceIds"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ sourceIds = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AssetChainRequest(assetChainSource, sourceIds, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AssetChainRequest)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AssetChainRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAssetChainRequest(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AssetChainRequest)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static AssetChainRequest FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAssetChainRequest(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainRequest.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainRequest.cs
new file mode 100644
index 000000000000..31ae0976c45c
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainRequest.cs
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// AssetChainRequest containing information needed for the retrieval of the asset chain summary.
+ public partial class AssetChainRequest
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// Asset chain source.
+ /// A collection of asset chain source ids.
+ /// is null.
+ public AssetChainRequest(AssetChainSource assetChainSource, IEnumerable sourceIds)
+ {
+ Argument.AssertNotNull(sourceIds, nameof(sourceIds));
+
+ AssetChainSource = assetChainSource;
+ SourceIds = sourceIds.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// Asset chain source.
+ /// A collection of asset chain source ids.
+ /// Keeps track of any properties unknown to the library.
+ internal AssetChainRequest(AssetChainSource assetChainSource, IList sourceIds, IDictionary serializedAdditionalRawData)
+ {
+ AssetChainSource = assetChainSource;
+ SourceIds = sourceIds;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal AssetChainRequest()
+ {
+ }
+
+ /// Asset chain source.
+ public AssetChainSource AssetChainSource { get; }
+ /// A collection of asset chain source ids.
+ public IList SourceIds { get; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSource.cs
new file mode 100644
index 000000000000..0ef98b3e3b64
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSource.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// A list of asset chain sources.
+ public readonly partial struct AssetChainSource : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public AssetChainSource(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string DISCOGROUPValue = "DISCO_GROUP";
+ private const string ASSETValue = "ASSET";
+
+ /// discovery group.
+ public static AssetChainSource DISCOGROUP { get; } = new AssetChainSource(DISCOGROUPValue);
+ /// asset.
+ public static AssetChainSource ASSET { get; } = new AssetChainSource(ASSETValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(AssetChainSource left, AssetChainSource right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(AssetChainSource left, AssetChainSource right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator AssetChainSource(string value) => new AssetChainSource(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is AssetChainSource other && Equals(other);
+ ///
+ public bool Equals(AssetChainSource other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSummaryResult.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSummaryResult.Serialization.cs
new file mode 100644
index 000000000000..404346d78b1b
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSummaryResult.Serialization.cs
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class AssetChainSummaryResult : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AssetChainSummaryResult)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("affectedAssetsSummary"u8);
+ writer.WriteStartArray();
+ foreach (var item in AffectedAssetsSummary)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ writer.WritePropertyName("affectedGroupsSummary"u8);
+ writer.WriteStartArray();
+ foreach (var item in AffectedGroupsSummary)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ if (Optional.IsCollectionDefined(Errors))
+ {
+ writer.WritePropertyName("errors"u8);
+ writer.WriteStartArray();
+ foreach (var item in Errors)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ AssetChainSummaryResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AssetChainSummaryResult)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAssetChainSummaryResult(document.RootElement, options);
+ }
+
+ internal static AssetChainSummaryResult DeserializeAssetChainSummaryResult(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IReadOnlyList affectedAssetsSummary = default;
+ IReadOnlyList affectedGroupsSummary = default;
+ IReadOnlyList errors = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("affectedAssetsSummary"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(AssetChainKindSummaryResult.DeserializeAssetChainKindSummaryResult(item, options));
+ }
+ affectedAssetsSummary = array;
+ continue;
+ }
+ if (property.NameEquals("affectedGroupsSummary"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DiscoGroupSummaryResult.DeserializeDiscoGroupSummaryResult(item, options));
+ }
+ affectedGroupsSummary = array;
+ continue;
+ }
+ if (property.NameEquals("errors"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(ErrorResponse.DeserializeErrorResponse(item, options));
+ }
+ errors = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AssetChainSummaryResult(affectedAssetsSummary, affectedGroupsSummary, errors ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AssetChainSummaryResult)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AssetChainSummaryResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAssetChainSummaryResult(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AssetChainSummaryResult)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static AssetChainSummaryResult FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAssetChainSummaryResult(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSummaryResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSummaryResult.cs
new file mode 100644
index 000000000000..b97b8cdb4826
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetChainSummaryResult.cs
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// Response for the asset chain summary.
+ public partial class AssetChainSummaryResult
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// A list of asset chain summaries per asset kind.
+ /// A list of disco group summaries.
+ /// or is null.
+ internal AssetChainSummaryResult(IEnumerable affectedAssetsSummary, IEnumerable affectedGroupsSummary)
+ {
+ Argument.AssertNotNull(affectedAssetsSummary, nameof(affectedAssetsSummary));
+ Argument.AssertNotNull(affectedGroupsSummary, nameof(affectedGroupsSummary));
+
+ AffectedAssetsSummary = affectedAssetsSummary.ToList();
+ AffectedGroupsSummary = affectedGroupsSummary.ToList();
+ Errors = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ /// A list of asset chain summaries per asset kind.
+ /// A list of disco group summaries.
+ /// The list of exceptions.
+ /// Keeps track of any properties unknown to the library.
+ internal AssetChainSummaryResult(IReadOnlyList affectedAssetsSummary, IReadOnlyList affectedGroupsSummary, IReadOnlyList errors, IDictionary serializedAdditionalRawData)
+ {
+ AffectedAssetsSummary = affectedAssetsSummary;
+ AffectedGroupsSummary = affectedGroupsSummary;
+ Errors = errors;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal AssetChainSummaryResult()
+ {
+ }
+
+ /// A list of asset chain summaries per asset kind.
+ public IReadOnlyList AffectedAssetsSummary { get; }
+ /// A list of disco group summaries.
+ public IReadOnlyList AffectedGroupsSummary { get; }
+ /// The list of exceptions.
+ public IReadOnlyList Errors { get; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetKind.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetKind.cs
new file mode 100644
index 000000000000..92da5b5a4e53
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetKind.cs
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// The kind of asset.
+ public readonly partial struct AssetKind : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public AssetKind(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string AsValue = "as";
+ private const string ContactValue = "contact";
+ private const string DomainValue = "domain";
+ private const string HostValue = "host";
+ private const string IpAddressValue = "ipAddress";
+ private const string IpBlockValue = "ipBlock";
+ private const string PageValue = "page";
+ private const string SslCertValue = "sslCert";
+
+ /// as.
+ public static AssetKind As { get; } = new AssetKind(AsValue);
+ /// contact.
+ public static AssetKind Contact { get; } = new AssetKind(ContactValue);
+ /// domain.
+ public static AssetKind Domain { get; } = new AssetKind(DomainValue);
+ /// host.
+ public static AssetKind Host { get; } = new AssetKind(HostValue);
+ /// ipAddress.
+ public static AssetKind IpAddress { get; } = new AssetKind(IpAddressValue);
+ /// ipBlock.
+ public static AssetKind IpBlock { get; } = new AssetKind(IpBlockValue);
+ /// page.
+ public static AssetKind Page { get; } = new AssetKind(PageValue);
+ /// sslCert.
+ public static AssetKind SslCert { get; } = new AssetKind(SslCertValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(AssetKind left, AssetKind right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(AssetKind left, AssetKind right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator AssetKind(string value) => new AssetKind(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is AssetKind other && Equals(other);
+ ///
+ public bool Equals(AssetKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResponseType.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResponseType.cs
new file mode 100644
index 000000000000..ff23400e2008
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResponseType.cs
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// A list of asset response type.
+ public readonly partial struct AssetResponseType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public AssetResponseType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string IdValue = "id";
+ private const string StandardValue = "standard";
+ private const string FullValue = "full";
+ private const string ReducedValue = "reduced";
+
+ /// Return only the asset id.
+ public static AssetResponseType Id { get; } = new AssetResponseType(IdValue);
+ /// Return the standard set of asset fields.
+ public static AssetResponseType Standard { get; } = new AssetResponseType(StandardValue);
+ /// Return the full set of asset fields.
+ public static AssetResponseType Full { get; } = new AssetResponseType(FullValue);
+ /// Return a reduced set of fields.
+ public static AssetResponseType Reduced { get; } = new AssetResponseType(ReducedValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(AssetResponseType left, AssetResponseType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(AssetResponseType left, AssetResponseType right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator AssetResponseType(string value) => new AssetResponseType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is AssetResponseType other && Equals(other);
+ ///
+ public bool Equals(AssetResponseType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.Serialization.cs
index 4643f109bb1d..4e718a8af96d 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.Serialization.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.Serialization.cs
@@ -60,6 +60,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("transfers"u8);
writer.WriteStringValue(Transfers.Value.ToString());
}
+ if (Optional.IsCollectionDefined(Remediations))
+ {
+ writer.WritePropertyName("remediations"u8);
+ writer.WriteStartArray();
+ foreach (var item in Remediations)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -101,6 +111,7 @@ internal static AssetUpdatePayload DeserializeAssetUpdatePayload(JsonElement ele
string externalId = default;
IDictionary labels = default;
AssetUpdateTransfers? transfers = default;
+ IList remediations = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -142,13 +153,33 @@ internal static AssetUpdatePayload DeserializeAssetUpdatePayload(JsonElement ele
transfers = new AssetUpdateTransfers(property.Value.GetString());
continue;
}
+ if (property.NameEquals("remediations"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(ObservationRemediationItem.DeserializeObservationRemediationItem(item, options));
+ }
+ remediations = array;
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new AssetUpdatePayload(state, externalId, labels ?? new ChangeTrackingDictionary(), transfers, serializedAdditionalRawData);
+ return new AssetUpdatePayload(
+ state,
+ externalId,
+ labels ?? new ChangeTrackingDictionary(),
+ transfers,
+ remediations ?? new ChangeTrackingList(),
+ serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.cs
index fd1c4c850a68..8139a5faf306 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetUpdatePayload.cs
@@ -49,6 +49,7 @@ public partial class AssetUpdatePayload
public AssetUpdatePayload()
{
Labels = new ChangeTrackingDictionary();
+ Remediations = new ChangeTrackingList();
}
/// Initializes a new instance of .
@@ -56,13 +57,15 @@ public AssetUpdatePayload()
/// A string which can be used to identify the asset in external systems.
/// Any Labels to update the asset with.
/// A list of asset types to cascade the updates to.
+ /// A list of observation remediations to apply to the asset.
/// Keeps track of any properties unknown to the library.
- internal AssetUpdatePayload(AssetUpdateState? state, string externalId, IDictionary labels, AssetUpdateTransfers? transfers, IDictionary serializedAdditionalRawData)
+ internal AssetUpdatePayload(AssetUpdateState? state, string externalId, IDictionary labels, AssetUpdateTransfers? transfers, IList remediations, IDictionary serializedAdditionalRawData)
{
State = state;
ExternalId = externalId;
Labels = labels;
Transfers = transfers;
+ Remediations = remediations;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -74,5 +77,7 @@ internal AssetUpdatePayload(AssetUpdateState? state, string externalId, IDiction
public IDictionary Labels { get; }
/// A list of asset types to cascade the updates to.
public AssetUpdateTransfers? Transfers { get; set; }
+ /// A list of observation remediations to apply to the asset.
+ public IList Remediations { get; }
}
}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetsExportRequest.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetsExportRequest.Serialization.cs
new file mode 100644
index 000000000000..04f83f745eb1
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetsExportRequest.Serialization.cs
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class AssetsExportRequest : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AssetsExportRequest)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("fileName"u8);
+ writer.WriteStringValue(FileName);
+ writer.WritePropertyName("columns"u8);
+ writer.WriteStartArray();
+ foreach (var item in Columns)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ AssetsExportRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AssetsExportRequest)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAssetsExportRequest(document.RootElement, options);
+ }
+
+ internal static AssetsExportRequest DeserializeAssetsExportRequest(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string fileName = default;
+ IList columns = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("fileName"u8))
+ {
+ fileName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("columns"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ columns = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AssetsExportRequest(fileName, columns, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AssetsExportRequest)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AssetsExportRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAssetsExportRequest(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AssetsExportRequest)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static AssetsExportRequest FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAssetsExportRequest(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetsExportRequest.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetsExportRequest.cs
new file mode 100644
index 000000000000..a32f3acef2e9
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetsExportRequest.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// A request body used to export an asset.
+ public partial class AssetsExportRequest
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The name of the file to export.
+ /// The columns to export.
+ /// or is null.
+ public AssetsExportRequest(string fileName, IEnumerable columns)
+ {
+ Argument.AssertNotNull(fileName, nameof(fileName));
+ Argument.AssertNotNull(columns, nameof(columns));
+
+ FileName = fileName;
+ Columns = columns.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// The name of the file to export.
+ /// The columns to export.
+ /// Keeps track of any properties unknown to the library.
+ internal AssetsExportRequest(string fileName, IList columns, IDictionary serializedAdditionalRawData)
+ {
+ FileName = fileName;
+ Columns = columns;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal AssetsExportRequest()
+ {
+ }
+
+ /// The name of the file to export.
+ public string FileName { get; }
+ /// The columns to export.
+ public IList Columns { get; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AuditTrailItem.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AuditTrailItem.cs
index b4269bc0fb74..556300c2ad74 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AuditTrailItem.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AuditTrailItem.cs
@@ -51,7 +51,7 @@ internal AuditTrailItem()
}
/// Initializes a new instance of .
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The kind of asset.
@@ -67,7 +67,7 @@ internal AuditTrailItem(string id, string name, string displayName, AuditTrailIt
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
public string Id { get; }
/// The caller provided unique name for the resource.
public string Name { get; }
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs
index 690b1b97f475..2204e266508c 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs
@@ -26,13 +26,13 @@ internal AzureDataExplorerDataConnection(AzureDataExplorerDataConnectionProperti
/// Initializes a new instance of .
/// Discriminator property for DataConnection.
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The type of data the data connection will transfer.
/// The date the data connection was created.
/// The rate at which the data connection will receive updates.
- /// The day to update the data connection on.
+ /// The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
/// The date the data connection was last updated.
/// The date the data connection was last updated by user.
/// An indicator of whether the data connection is active.
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs
index b98a0f227ee5..10d82d783d74 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs
@@ -25,7 +25,7 @@ public AzureDataExplorerDataConnectionPayload(AzureDataExplorerDataConnectionPro
}
/// Initializes a new instance of .
- /// Discriminator property for DataConnectionPayload.
+ /// Discriminator property for DataConnectionData.
/// The name of data connection.
/// The type of data the data connection will transfer.
/// The rate at which the data connection will receive updates.
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/CisaCveResult.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/CisaCveResult.Serialization.cs
new file mode 100644
index 000000000000..4c674dcf3404
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/CisaCveResult.Serialization.cs
@@ -0,0 +1,237 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class CisaCveResult : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CisaCveResult)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W")
+ {
+ writer.WritePropertyName("cveId"u8);
+ writer.WriteStringValue(CveId);
+ }
+ writer.WritePropertyName("vendorProject"u8);
+ writer.WriteStringValue(VendorProject);
+ writer.WritePropertyName("product"u8);
+ writer.WriteStringValue(Product);
+ writer.WritePropertyName("vulnerabilityName"u8);
+ writer.WriteStringValue(VulnerabilityName);
+ writer.WritePropertyName("shortDescription"u8);
+ writer.WriteStringValue(ShortDescription);
+ writer.WritePropertyName("requiredAction"u8);
+ writer.WriteStringValue(RequiredAction);
+ writer.WritePropertyName("notes"u8);
+ writer.WriteStringValue(Notes);
+ writer.WritePropertyName("dateAdded"u8);
+ writer.WriteStringValue(DateAdded, "O");
+ writer.WritePropertyName("dueDate"u8);
+ writer.WriteStringValue(DueDate, "O");
+ writer.WritePropertyName("updatedAt"u8);
+ writer.WriteStringValue(UpdatedAt, "O");
+ writer.WritePropertyName("count"u8);
+ writer.WriteNumberValue(Count);
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ CisaCveResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CisaCveResult)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeCisaCveResult(document.RootElement, options);
+ }
+
+ internal static CisaCveResult DeserializeCisaCveResult(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string cveId = default;
+ string vendorProject = default;
+ string product = default;
+ string vulnerabilityName = default;
+ string shortDescription = default;
+ string requiredAction = default;
+ string notes = default;
+ DateTimeOffset dateAdded = default;
+ DateTimeOffset dueDate = default;
+ DateTimeOffset updatedAt = default;
+ long count = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("cveId"u8))
+ {
+ cveId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("vendorProject"u8))
+ {
+ vendorProject = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("product"u8))
+ {
+ product = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("vulnerabilityName"u8))
+ {
+ vulnerabilityName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("shortDescription"u8))
+ {
+ shortDescription = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("requiredAction"u8))
+ {
+ requiredAction = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("notes"u8))
+ {
+ notes = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("dateAdded"u8))
+ {
+ dateAdded = property.Value.GetDateTimeOffset("O");
+ continue;
+ }
+ if (property.NameEquals("dueDate"u8))
+ {
+ dueDate = property.Value.GetDateTimeOffset("O");
+ continue;
+ }
+ if (property.NameEquals("updatedAt"u8))
+ {
+ updatedAt = property.Value.GetDateTimeOffset("O");
+ continue;
+ }
+ if (property.NameEquals("count"u8))
+ {
+ count = property.Value.GetInt64();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new CisaCveResult(
+ cveId,
+ vendorProject,
+ product,
+ vulnerabilityName,
+ shortDescription,
+ requiredAction,
+ notes,
+ dateAdded,
+ dueDate,
+ updatedAt,
+ count,
+ serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(CisaCveResult)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ CisaCveResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeCisaCveResult(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(CisaCveResult)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static CisaCveResult FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeCisaCveResult(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/CisaCveResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/CisaCveResult.cs
new file mode 100644
index 000000000000..b232b946b07f
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/CisaCveResult.cs
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// cisa cve in a given workspace.
+ public partial class CisaCveResult
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The vendor or project name for the vulnerability.
+ /// The vulnerability product.
+ /// The name of the vulnerability.
+ /// A short description of the vulnerability.
+ /// The required action to address the vulnerability.
+ /// Any additional notes about the vulnerability.
+ /// The date the vulnerability was added to the catalog in the format YYYY-MM-DD.
+ /// The date the required action is due in the format YYYY-MM-DD.
+ /// The date the vulnerability was updated.
+ /// The number of assets affected by the vulnerability.
+ /// , , , , or is null.
+ internal CisaCveResult(string vendorProject, string product, string vulnerabilityName, string shortDescription, string requiredAction, string notes, DateTimeOffset dateAdded, DateTimeOffset dueDate, DateTimeOffset updatedAt, long count)
+ {
+ Argument.AssertNotNull(vendorProject, nameof(vendorProject));
+ Argument.AssertNotNull(product, nameof(product));
+ Argument.AssertNotNull(vulnerabilityName, nameof(vulnerabilityName));
+ Argument.AssertNotNull(shortDescription, nameof(shortDescription));
+ Argument.AssertNotNull(requiredAction, nameof(requiredAction));
+ Argument.AssertNotNull(notes, nameof(notes));
+
+ VendorProject = vendorProject;
+ Product = product;
+ VulnerabilityName = vulnerabilityName;
+ ShortDescription = shortDescription;
+ RequiredAction = requiredAction;
+ Notes = notes;
+ DateAdded = dateAdded;
+ DueDate = dueDate;
+ UpdatedAt = updatedAt;
+ Count = count;
+ }
+
+ /// Initializes a new instance of .
+ /// The CVE ID of the vulnerability in the format CVE-YYYY-NNNN, note that the number portion can have more than 4 digits.
+ /// The vendor or project name for the vulnerability.
+ /// The vulnerability product.
+ /// The name of the vulnerability.
+ /// A short description of the vulnerability.
+ /// The required action to address the vulnerability.
+ /// Any additional notes about the vulnerability.
+ /// The date the vulnerability was added to the catalog in the format YYYY-MM-DD.
+ /// The date the required action is due in the format YYYY-MM-DD.
+ /// The date the vulnerability was updated.
+ /// The number of assets affected by the vulnerability.
+ /// Keeps track of any properties unknown to the library.
+ internal CisaCveResult(string cveId, string vendorProject, string product, string vulnerabilityName, string shortDescription, string requiredAction, string notes, DateTimeOffset dateAdded, DateTimeOffset dueDate, DateTimeOffset updatedAt, long count, IDictionary serializedAdditionalRawData)
+ {
+ CveId = cveId;
+ VendorProject = vendorProject;
+ Product = product;
+ VulnerabilityName = vulnerabilityName;
+ ShortDescription = shortDescription;
+ RequiredAction = requiredAction;
+ Notes = notes;
+ DateAdded = dateAdded;
+ DueDate = dueDate;
+ UpdatedAt = updatedAt;
+ Count = count;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal CisaCveResult()
+ {
+ }
+
+ /// The CVE ID of the vulnerability in the format CVE-YYYY-NNNN, note that the number portion can have more than 4 digits.
+ public string CveId { get; }
+ /// The vendor or project name for the vulnerability.
+ public string VendorProject { get; }
+ /// The vulnerability product.
+ public string Product { get; }
+ /// The name of the vulnerability.
+ public string VulnerabilityName { get; }
+ /// A short description of the vulnerability.
+ public string ShortDescription { get; }
+ /// The required action to address the vulnerability.
+ public string RequiredAction { get; }
+ /// Any additional notes about the vulnerability.
+ public string Notes { get; }
+ /// The date the vulnerability was added to the catalog in the format YYYY-MM-DD.
+ public DateTimeOffset DateAdded { get; }
+ /// The date the required action is due in the format YYYY-MM-DD.
+ public DateTimeOffset DueDate { get; }
+ /// The date the vulnerability was updated.
+ public DateTimeOffset UpdatedAt { get; }
+ /// The number of assets affected by the vulnerability.
+ public long Count { get; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DailyDeltaTypeResponse.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DailyDeltaTypeResponse.Serialization.cs
new file mode 100644
index 000000000000..951840724529
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DailyDeltaTypeResponse.Serialization.cs
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class DailyDeltaTypeResponse : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DailyDeltaTypeResponse)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ writer.WritePropertyName("count"u8);
+ writer.WriteNumberValue(Count);
+ }
+
+ DailyDeltaTypeResponse IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DailyDeltaTypeResponse)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDailyDeltaTypeResponse(document.RootElement, options);
+ }
+
+ internal static DailyDeltaTypeResponse DeserializeDailyDeltaTypeResponse(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ long count = default;
+ GlobalAssetType kind = default;
+ long removed = default;
+ long added = default;
+ long difference = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("count"u8))
+ {
+ count = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("kind"u8))
+ {
+ kind = new GlobalAssetType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("removed"u8))
+ {
+ removed = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("added"u8))
+ {
+ added = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("difference"u8))
+ {
+ difference = property.Value.GetInt64();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DailyDeltaTypeResponse(
+ kind,
+ removed,
+ added,
+ difference,
+ serializedAdditionalRawData,
+ count);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DailyDeltaTypeResponse)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DailyDeltaTypeResponse IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDailyDeltaTypeResponse(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DailyDeltaTypeResponse)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new DailyDeltaTypeResponse FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDailyDeltaTypeResponse(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal override RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DailyDeltaTypeResponse.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DailyDeltaTypeResponse.cs
new file mode 100644
index 000000000000..bf7813c7e4e5
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DailyDeltaTypeResponse.cs
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// Delta response for each day.
+ public partial class DailyDeltaTypeResponse : DeltaTypeResponse
+ {
+ /// Initializes a new instance of .
+ /// The kind of asset.
+ /// The amount of assets removed for one asset kind.
+ /// The amount of assets added for one asset kind.
+ /// The amount of assets changed for one asset kind.
+ /// The current number of assets for one asset kind.
+ internal DailyDeltaTypeResponse(GlobalAssetType kind, long removed, long added, long difference, long count) : base(kind, removed, added, difference)
+ {
+ Count = count;
+ }
+
+ /// Initializes a new instance of .
+ /// The kind of asset.
+ /// The amount of assets removed for one asset kind.
+ /// The amount of assets added for one asset kind.
+ /// The amount of assets changed for one asset kind.
+ /// Keeps track of any properties unknown to the library.
+ /// The current number of assets for one asset kind.
+ internal DailyDeltaTypeResponse(GlobalAssetType kind, long removed, long added, long difference, IDictionary serializedAdditionalRawData, long count) : base(kind, removed, added, difference, serializedAdditionalRawData)
+ {
+ Count = count;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal DailyDeltaTypeResponse()
+ {
+ }
+
+ /// The current number of assets for one asset kind.
+ public long Count { get; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs
index f5cd01907046..eea63fcd0e7c 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs
@@ -56,13 +56,13 @@ protected DataConnection()
/// Initializes a new instance of .
/// Discriminator property for DataConnection.
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
/// The caller provided unique name for the resource.
/// The name that can be used for display purposes.
/// The type of data the data connection will transfer.
/// The date the data connection was created.
/// The rate at which the data connection will receive updates.
- /// The day to update the data connection on.
+ /// The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
/// The date the data connection was last updated.
/// The date the data connection was last updated by user.
/// An indicator of whether the data connection is active.
@@ -87,7 +87,7 @@ internal DataConnection(string kind, string id, string name, string displayName,
/// Discriminator property for DataConnection.
internal string Kind { get; set; }
- /// The system generated unique id for the resource.
+ /// This is typically the same as the name but might be different for different models.
public string Id { get; }
/// The caller provided unique name for the resource.
public string Name { get; }
@@ -99,7 +99,7 @@ internal DataConnection(string kind, string id, string name, string displayName,
public DateTimeOffset? CreatedDate { get; }
/// The rate at which the data connection will receive updates.
public DataConnectionFrequency? Frequency { get; }
- /// The day to update the data connection on.
+ /// The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
public int? FrequencyOffset { get; }
/// The date the data connection was last updated.
public DateTimeOffset? UpdatedDate { get; }
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs
index a10e83a8ee34..d059fceb8aa5 100644
--- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs
@@ -55,7 +55,7 @@ protected DataConnectionPayload()
}
/// Initializes a new instance of .
- /// Discriminator property for DataConnectionPayload.
+ /// Discriminator property for DataConnectionData.
/// The name of data connection.
/// The type of data the data connection will transfer.
/// The rate at which the data connection will receive updates.
@@ -71,7 +71,7 @@ internal DataConnectionPayload(string kind, string name, DataConnectionContent?
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// Discriminator property for DataConnectionPayload.
+ /// Discriminator property for DataConnectionData.
internal string Kind { get; set; }
/// The name of data connection.
public string Name { get; set; }
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDateResult.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDateResult.Serialization.cs
new file mode 100644
index 000000000000..7a373307e991
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDateResult.Serialization.cs
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class DeltaDateResult : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DeltaDateResult)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("date"u8);
+ writer.WriteStringValue(Date, "O");
+ writer.WritePropertyName("deltas"u8);
+ writer.WriteStartArray();
+ foreach (var item in Deltas)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ DeltaDateResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DeltaDateResult)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDeltaDateResult(document.RootElement, options);
+ }
+
+ internal static DeltaDateResult DeserializeDeltaDateResult(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ DateTimeOffset date = default;
+ IReadOnlyList deltas = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("date"u8))
+ {
+ date = property.Value.GetDateTimeOffset("O");
+ continue;
+ }
+ if (property.NameEquals("deltas"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DailyDeltaTypeResponse.DeserializeDailyDeltaTypeResponse(item, options));
+ }
+ deltas = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DeltaDateResult(date, deltas, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DeltaDateResult)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DeltaDateResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDeltaDateResult(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DeltaDateResult)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static DeltaDateResult FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDeltaDateResult(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDateResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDateResult.cs
new file mode 100644
index 000000000000..ee5af7f2ec93
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDateResult.cs
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// Date information for the delta response.
+ public partial class DeltaDateResult
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The date that is being requested.
+ /// A list of summary counts per day.
+ /// is null.
+ internal DeltaDateResult(DateTimeOffset date, IEnumerable deltas)
+ {
+ Argument.AssertNotNull(deltas, nameof(deltas));
+
+ Date = date;
+ Deltas = deltas.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// The date that is being requested.
+ /// A list of summary counts per day.
+ /// Keeps track of any properties unknown to the library.
+ internal DeltaDateResult(DateTimeOffset date, IReadOnlyList deltas, IDictionary serializedAdditionalRawData)
+ {
+ Date = date;
+ Deltas = deltas;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal DeltaDateResult()
+ {
+ }
+
+ /// The date that is being requested.
+ public DateTimeOffset Date { get; }
+ /// A list of summary counts per day.
+ public IReadOnlyList Deltas { get; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailType.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailType.cs
new file mode 100644
index 000000000000..d2d8937f1c8c
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailType.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// A list of delta detail type.
+ public readonly partial struct DeltaDetailType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public DeltaDetailType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string AddedValue = "added";
+ private const string RemovedValue = "removed";
+
+ /// added.
+ public static DeltaDetailType Added { get; } = new DeltaDetailType(AddedValue);
+ /// removed.
+ public static DeltaDetailType Removed { get; } = new DeltaDetailType(RemovedValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(DeltaDetailType left, DeltaDetailType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(DeltaDetailType left, DeltaDetailType right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator DeltaDetailType(string value) => new DeltaDetailType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is DeltaDetailType other && Equals(other);
+ ///
+ public bool Equals(DeltaDetailType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailsRequest.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailsRequest.Serialization.cs
new file mode 100644
index 000000000000..95291a3cc248
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailsRequest.Serialization.cs
@@ -0,0 +1,176 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class DeltaDetailsRequest : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DeltaDetailsRequest)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("deltaDetailType"u8);
+ writer.WriteStringValue(DeltaDetailType.ToString());
+ if (Optional.IsDefined(PriorDays))
+ {
+ writer.WritePropertyName("priorDays"u8);
+ writer.WriteNumberValue(PriorDays.Value);
+ }
+ writer.WritePropertyName("kind"u8);
+ writer.WriteStringValue(Kind.ToString());
+ if (Optional.IsDefined(Date))
+ {
+ writer.WritePropertyName("date"u8);
+ writer.WriteStringValue(Date);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ DeltaDetailsRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DeltaDetailsRequest)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDeltaDetailsRequest(document.RootElement, options);
+ }
+
+ internal static DeltaDetailsRequest DeserializeDeltaDetailsRequest(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ DeltaDetailType deltaDetailType = default;
+ int? priorDays = default;
+ GlobalAssetType kind = default;
+ string date = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("deltaDetailType"u8))
+ {
+ deltaDetailType = new DeltaDetailType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("priorDays"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ priorDays = property.Value.GetInt32();
+ continue;
+ }
+ if (property.NameEquals("kind"u8))
+ {
+ kind = new GlobalAssetType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("date"u8))
+ {
+ date = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DeltaDetailsRequest(deltaDetailType, priorDays, kind, date, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DeltaDetailsRequest)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DeltaDetailsRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDeltaDetailsRequest(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DeltaDetailsRequest)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static DeltaDetailsRequest FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDeltaDetailsRequest(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailsRequest.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailsRequest.cs
new file mode 100644
index 000000000000..42095a187362
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaDetailsRequest.cs
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// A request body used to retrieve a list of deltas.
+ public partial class DeltaDetailsRequest
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The type of delta detail to retrieve.
+ /// The type of asset.
+ public DeltaDetailsRequest(DeltaDetailType deltaDetailType, GlobalAssetType kind)
+ {
+ DeltaDetailType = deltaDetailType;
+ Kind = kind;
+ }
+
+ /// Initializes a new instance of .
+ /// The type of delta detail to retrieve.
+ /// The number of days prior to retrieve deltas for.
+ /// The type of asset.
+ /// expected format to be: yyyy-MM-dd.
+ /// Keeps track of any properties unknown to the library.
+ internal DeltaDetailsRequest(DeltaDetailType deltaDetailType, int? priorDays, GlobalAssetType kind, string date, IDictionary serializedAdditionalRawData)
+ {
+ DeltaDetailType = deltaDetailType;
+ PriorDays = priorDays;
+ Kind = kind;
+ Date = date;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal DeltaDetailsRequest()
+ {
+ }
+
+ /// The type of delta detail to retrieve.
+ public DeltaDetailType DeltaDetailType { get; }
+ /// The number of days prior to retrieve deltas for.
+ public int? PriorDays { get; set; }
+ /// The type of asset.
+ public GlobalAssetType Kind { get; }
+ /// expected format to be: yyyy-MM-dd.
+ public string Date { get; set; }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaRangeResult.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaRangeResult.Serialization.cs
new file mode 100644
index 000000000000..06cedf906e53
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaRangeResult.Serialization.cs
@@ -0,0 +1,190 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ public partial class DeltaRangeResult : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DeltaRangeResult)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("range"u8);
+ writer.WriteNumberValue(Range);
+ writer.WritePropertyName("removed"u8);
+ writer.WriteNumberValue(Removed);
+ writer.WritePropertyName("added"u8);
+ writer.WriteNumberValue(Added);
+ writer.WritePropertyName("difference"u8);
+ writer.WriteNumberValue(Difference);
+ writer.WritePropertyName("kindSummaries"u8);
+ writer.WriteStartArray();
+ foreach (var item in KindSummaries)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ DeltaRangeResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DeltaRangeResult)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDeltaRangeResult(document.RootElement, options);
+ }
+
+ internal static DeltaRangeResult DeserializeDeltaRangeResult(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ long range = default;
+ long removed = default;
+ long added = default;
+ long difference = default;
+ IReadOnlyList kindSummaries = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("range"u8))
+ {
+ range = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("removed"u8))
+ {
+ removed = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("added"u8))
+ {
+ added = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("difference"u8))
+ {
+ difference = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("kindSummaries"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DeltaTypeResponse.DeserializeDeltaTypeResponse(item, options));
+ }
+ kindSummaries = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DeltaRangeResult(
+ range,
+ removed,
+ added,
+ difference,
+ kindSummaries,
+ serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DeltaRangeResult)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DeltaRangeResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDeltaRangeResult(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DeltaRangeResult)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static DeltaRangeResult FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeDeltaRangeResult(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaRangeResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaRangeResult.cs
new file mode 100644
index 000000000000..2a64af73cbc1
--- /dev/null
+++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DeltaRangeResult.cs
@@ -0,0 +1,100 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.Analytics.Defender.Easm
+{
+ /// Contains added, removed, and difference values for the whole range either 7 or 30 days.
+ public partial class DeltaRangeResult
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ ///