diff --git a/src/optimizer.ts b/src/optimizer.ts index 937bdec4..c8e1148f 100644 --- a/src/optimizer.ts +++ b/src/optimizer.ts @@ -12,6 +12,10 @@ export function optimize(ast: AST, options: Options, processed = new Set()) processed.add(ast) switch (ast.type) { + case 'ARRAY': + return Object.assign(ast, { + params: optimize(ast.params, options, processed), + }) case 'INTERFACE': return Object.assign(ast, { params: ast.params.map(_ => Object.assign(_, {ast: optimize(_.ast, options, processed)})), diff --git a/test/__snapshots__/test/test.ts.md b/test/__snapshots__/test/test.ts.md index 49aa6fac..53378d6b 100644 --- a/test/__snapshots__/test/test.ts.md +++ b/test/__snapshots__/test/test.ts.md @@ -3275,7 +3275,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Value assigned for function output␊ */␊ - export type ParameterValueTypes1 = (string | boolean | number | number | {␊ + export type ParameterValueTypes1 = (string | boolean | number | {␊ [k: string]: unknown␊ } | unknown[] | null)␊ /**␊ @@ -3344,28 +3344,14 @@ Generated by [AVA](https://avajs.dev). apiVersion: "2015-04-08"␊ type: "settings"␊ [k: string]: unknown␊ - } & ({␊ - name: "throughput"␊ - /**␊ - * Properties to update Azure Cosmos DB resource throughput.␊ - */␊ - properties: (ThroughputUpdateProperties | string)␊ - [k: string]: unknown␊ - } | {␊ - name: "throughput"␊ - /**␊ - * Properties to update Azure Cosmos DB resource throughput.␊ - */␊ - properties: (ThroughputUpdateProperties | string)␊ - [k: string]: unknown␊ - } | {␊ + } & {␊ name: "throughput"␊ /**␊ * Properties to update Azure Cosmos DB resource throughput.␊ */␊ properties: (ThroughputUpdateProperties | string)␊ [k: string]: unknown␊ - }))␊ + })␊ /**␊ * Fabric provider specific settings.␊ */␊ @@ -14766,7 +14752,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * An Azure AD object ID (User or Apps) that is allowed access to the FHIR service.␊ */␊ - objectId: (string | string)␊ + objectId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -14942,7 +14928,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * An object ID that is allowed access to the FHIR service.␊ */␊ - objectId: (string | string)␊ + objectId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -16375,7 +16361,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The Experiment identifier associated with the Experiment␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Defines the properties of an experiment␊ */␊ @@ -16908,7 +16894,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Name of the Rules Engine which is unique within the Front Door.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The JSON object that contains the properties required to create a Rules Engine Configuration.␊ */␊ @@ -18824,7 +18810,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Application ID of the client making request on behalf of a principal␊ */␊ - applicationId?: (string | string)␊ + applicationId?: string␊ /**␊ * The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.␊ */␊ @@ -18836,7 +18822,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -18951,7 +18937,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Application ID of the client making request on behalf of a principal␊ */␊ - applicationId?: (string | string)␊ + applicationId?: string␊ /**␊ * The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.␊ */␊ @@ -18963,7 +18949,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -19036,7 +19022,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Name of the secret␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of the secret␊ */␊ @@ -19208,7 +19194,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Application ID of the client making request on behalf of a principal␊ */␊ - applicationId?: (string | string)␊ + applicationId?: string␊ /**␊ * The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.␊ */␊ @@ -19220,7 +19206,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -19393,7 +19379,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Name of the secret␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of the secret␊ */␊ @@ -19581,7 +19567,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Application ID of the client making request on behalf of a principal␊ */␊ - applicationId?: (string | string)␊ + applicationId?: string␊ /**␊ * The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.␊ */␊ @@ -19593,7 +19579,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -19708,7 +19694,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Name of the secret␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of the secret␊ */␊ @@ -19892,7 +19878,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Application ID of the client making request on behalf of a principal␊ */␊ - applicationId?: (string | string)␊ + applicationId?: string␊ /**␊ * The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.␊ */␊ @@ -19904,7 +19890,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -20085,7 +20071,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the key to be created.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of the key.␊ */␊ @@ -20148,7 +20134,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Name of the secret␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of the secret␊ */␊ @@ -20448,7 +20434,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Application ID of the client making request on behalf of a principal␊ */␊ - applicationId?: (string | string)␊ + applicationId?: string␊ /**␊ * The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.␊ */␊ @@ -20460,7 +20446,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -20553,7 +20539,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the key to be created.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of the key.␊ */␊ @@ -20704,7 +20690,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Name of the secret␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of the secret␊ */␊ @@ -24401,7 +24387,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Name of Endpoint Resource.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties related to Digital Twins Endpoint␊ */␊ @@ -33936,7 +33922,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.␊ */␊ - name: (string | string)␊ + name: string␊ properties: (QueueProperties | string)␊ type: "queues"␊ [k: string]: unknown␊ @@ -33988,7 +33974,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * A table name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric character.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tables"␊ [k: string]: unknown␊ }␊ @@ -34334,10 +34320,10 @@ Generated by [AVA](https://avajs.dev). * Gateway addresses assigned to nic␊ */␊ gateway?: (string[] | string)␊ - ipAddress?: (string | string)␊ - mask?: (string | string)␊ - primaryWinsServer?: (string | string)␊ - secondaryWinsServer?: (string | string)␊ + ipAddress?: string␊ + mask?: string␊ + primaryWinsServer?: string␊ + secondaryWinsServer?: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -35667,7 +35653,7 @@ Generated by [AVA](https://avajs.dev). export interface ExtensionsChild {␊ type: "extensions"␊ apiVersion: ("2015-05-01-preview" | "2015-06-15" | "2016-03-30")␊ - properties: (GenericExtension | IaaSDiagnostics | IaaSAntimalware | CustomScriptExtension | CustomScriptForLinux | LinuxDiagnostic | VmAccessForLinux | BgInfo | VmAccessAgent | DscExtension | AcronisBackupLinux | AcronisBackup | LinuxChefClient | ChefClient | DatadogLinuxAgent | DatadogWindowsAgent | DockerExtension | DynatraceLinux | DynatraceWindows | Eset | HpeSecurityApplicationDefender | PuppetAgent | Site24X7LinuxServerExtn | Site24X7WindowsServerExtn | Site24X7ApmInsightExtn | TrendMicroDSALinux | TrendMicroDSA | BmcCtmAgentLinux | BmcCtmAgentWindows | OSPatchingForLinux | VMSnapshot | VMSnapshotLinux | AcronisBackupLinux | AcronisBackup | LinuxChefClient | ChefClient | DatadogLinuxAgent | DatadogWindowsAgent | DockerExtension | CustomScript | NetworkWatcherAgentWindows | NetworkWatcherAgentLinux)␊ + properties: (GenericExtension | IaaSDiagnostics | IaaSAntimalware | CustomScriptExtension | CustomScriptForLinux | LinuxDiagnostic | VmAccessForLinux | BgInfo | VmAccessAgent | DscExtension | AcronisBackupLinux | AcronisBackup | LinuxChefClient | ChefClient | DatadogLinuxAgent | DatadogWindowsAgent | DockerExtension | DynatraceLinux | DynatraceWindows | Eset | HpeSecurityApplicationDefender | PuppetAgent | Site24X7LinuxServerExtn | Site24X7WindowsServerExtn | Site24X7ApmInsightExtn | TrendMicroDSALinux | TrendMicroDSA | BmcCtmAgentLinux | BmcCtmAgentWindows | OSPatchingForLinux | VMSnapshot | VMSnapshotLinux | CustomScript | NetworkWatcherAgentWindows | NetworkWatcherAgentLinux)␊ [k: string]: unknown␊ }␊ /**␊ @@ -36178,7 +36164,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The AAD object identifier for the entity to create a policy for.␊ */␊ - objectId: (string | string)␊ + objectId: string␊ /**␊ * The type of AAD object the object identifier refers to.␊ */␊ @@ -39181,7 +39167,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Certificate properties for create operations␊ */␊ @@ -39223,7 +39209,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The pool name. This must be unique within the account.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Pool properties.␊ */␊ @@ -42108,7 +42094,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the machine learning team account workspace.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of a machine learning team account workspace.␊ */␊ @@ -42175,7 +42161,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the machine learning project under a team account workspace.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of a machine learning project.␊ */␊ @@ -42768,7 +42754,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The DSC configuration Id.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The parameters supplied to the create compilation job operation.␊ */␊ @@ -42956,7 +42942,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The job id.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The parameters supplied to the create job operation.␊ */␊ @@ -43002,7 +42988,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The job schedule name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The parameters supplied to the create job schedule operation.␊ */␊ @@ -44160,7 +44146,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The source control sync job id.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Definition of create source control sync job properties.␊ */␊ @@ -44889,7 +44875,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The content key ID.␊ */␊ - keyId: (string | string)␊ + keyId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -44972,7 +44958,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The key that must be used as FairPlay Application Secret key.␊ */␊ - ask: (string | string)␊ + ask: string␊ /**␊ * The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).␊ */␊ @@ -45048,7 +45034,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The key value of the key␊ */␊ - keyValue: (string | string)␊ + keyValue: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -45059,11 +45045,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * The RSA Parameter exponent␊ */␊ - exponent: (string | string)␊ + exponent: string␊ /**␊ * The RSA Parameter modulus␊ */␊ - modulus: (string | string)␊ + modulus: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -45074,7 +45060,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)␊ */␊ - rawBody: (string | string)␊ + rawBody: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -45830,7 +45816,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * ID of Content Key␊ */␊ - id: (string | string)␊ + id: string␊ /**␊ * Label of Content Key as specified in the Streaming Policy␊ */␊ @@ -46598,7 +46584,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the event hub endpoint.␊ */␊ @@ -46620,7 +46606,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the service bus queue endpoint.␊ */␊ @@ -46642,7 +46628,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the service bus topic endpoint.␊ */␊ @@ -46684,7 +46670,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the storage account.␊ */␊ @@ -46736,7 +46722,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The source that the routing rule is to be applied to, such as DeviceMessages.␊ */␊ @@ -46773,7 +46759,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the certificate␊ */␊ - name: (string | string)␊ + name: string␊ type: "certificates"␊ [k: string]: unknown␊ }␊ @@ -47066,7 +47052,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the event hub endpoint.␊ */␊ @@ -47088,7 +47074,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the service bus queue endpoint.␊ */␊ @@ -47110,7 +47096,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the service bus topic endpoint.␊ */␊ @@ -47152,7 +47138,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the storage account.␊ */␊ @@ -47208,7 +47194,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The source that the routing rule is to be applied to, such as DeviceMessages.␊ */␊ @@ -47245,7 +47231,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the certificate␊ */␊ - name: (string | string)␊ + name: string␊ type: "certificates"␊ [k: string]: unknown␊ }␊ @@ -47538,7 +47524,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the event hub endpoint.␊ */␊ @@ -47560,7 +47546,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the service bus queue endpoint.␊ */␊ @@ -47582,7 +47568,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the service bus topic endpoint.␊ */␊ @@ -47624,7 +47610,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The name of the resource group of the storage account.␊ */␊ @@ -47680,7 +47666,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The source that the routing rule is to be applied to, such as DeviceMessages.␊ */␊ @@ -47717,7 +47703,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the certificate␊ */␊ - name: (string | string)␊ + name: string␊ type: "certificates"␊ [k: string]: unknown␊ }␊ @@ -52166,7 +52152,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.␊ */␊ @@ -52272,7 +52258,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Product identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is NotPublished.␊ */␊ @@ -52308,7 +52294,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "groups"␊ [k: string]: unknown␊ }␊ @@ -52352,7 +52338,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Optional note about a user set by the administrator.␊ */␊ @@ -52416,7 +52402,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the authorization server.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.␊ */␊ @@ -52544,7 +52530,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Flag indicating whether SSL certificate chain validation should be skipped when using self-signed certificates for this backend host.␊ */␊ @@ -52643,7 +52629,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Operation identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Operation request details.␊ */␊ @@ -52824,7 +52810,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "apis"␊ [k: string]: unknown␊ }␊ @@ -52836,7 +52822,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "groups"␊ [k: string]: unknown␊ }␊ @@ -52869,7 +52855,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "users"␊ [k: string]: unknown␊ }␊ @@ -53412,7 +53398,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Api Create or Update Properties.␊ */␊ @@ -53582,7 +53568,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the authorization server.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * External OAuth authorization server settings Properties.␊ */␊ @@ -53682,7 +53668,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the Backend entity. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create Backend operation.␊ */␊ @@ -53862,7 +53848,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the certificate entity. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the CreateOrUpdate certificate operation.␊ */␊ @@ -53892,7 +53878,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -53959,11 +53945,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * Template parameter description.␊ */␊ - description?: (string | string)␊ + description?: string␊ /**␊ * Template parameter name.␊ */␊ - name?: (string | string)␊ + name?: string␊ /**␊ * Template parameter title.␊ */␊ @@ -53978,7 +53964,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create Group operation.␊ */␊ @@ -54070,7 +54056,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs.␊ */␊ @@ -54183,7 +54169,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the OpenID Connect Provider.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * OpenID Connect Providers Contract.␊ */␊ @@ -54309,7 +54295,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Product identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Product profile.␊ */␊ @@ -54359,7 +54345,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the property.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Property Contract properties.␊ */␊ @@ -54397,7 +54383,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Subscription entity Identifier. The entity represents the association between a user and a product in API Management.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create subscription operation.␊ */␊ @@ -54443,7 +54429,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Tag contract Properties.␊ */␊ @@ -54469,7 +54455,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create User operation.␊ */␊ @@ -54519,7 +54505,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Api Version Set identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of an API Version Set.␊ */␊ @@ -54552,7 +54538,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Release identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * API Release details␊ */␊ @@ -54582,7 +54568,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Operation identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Operation Contract Properties␊ */␊ @@ -54752,7 +54738,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Schema identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Schema contract Properties.␊ */␊ @@ -54792,7 +54778,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -54808,7 +54794,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Issue identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue contract Properties.␊ */␊ @@ -54854,7 +54840,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -54866,7 +54852,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create TagDescription operation.␊ */␊ @@ -54933,7 +54919,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -55114,7 +55100,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "loggers"␊ [k: string]: unknown␊ }␊ @@ -55155,7 +55141,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "users"␊ [k: string]: unknown␊ }␊ @@ -55224,7 +55210,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "recipientUsers"␊ [k: string]: unknown␊ }␊ @@ -55321,7 +55307,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "apis"␊ [k: string]: unknown␊ }␊ @@ -55333,7 +55319,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "groups"␊ [k: string]: unknown␊ }␊ @@ -55361,7 +55347,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -55522,7 +55508,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "loggers"␊ [k: string]: unknown␊ }␊ @@ -55551,7 +55537,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Comment identifier within an Issue. Must be unique in the current Issue.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue Comment contract Properties.␊ */␊ @@ -55585,7 +55571,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Attachment identifier within an Issue. Must be unique in the current Issue.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue Attachment contract Properties.␊ */␊ @@ -55918,7 +55904,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Api Create or Update Properties.␊ */␊ @@ -56114,7 +56100,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the authorization server.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * External OAuth authorization server settings Properties.␊ */␊ @@ -56214,7 +56200,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the Backend entity. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create Backend operation.␊ */␊ @@ -56394,7 +56380,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the certificate entity. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the CreateOrUpdate certificate operation.␊ */␊ @@ -56424,7 +56410,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -56491,11 +56477,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * Template parameter description.␊ */␊ - description?: (string | string)␊ + description?: string␊ /**␊ * Template parameter name.␊ */␊ - name?: (string | string)␊ + name?: string␊ /**␊ * Template parameter title.␊ */␊ @@ -56510,7 +56496,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create Group operation.␊ */␊ @@ -56602,7 +56588,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs.␊ */␊ @@ -56655,7 +56641,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the OpenID Connect Provider.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * OpenID Connect Providers Contract.␊ */␊ @@ -56781,7 +56767,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Product identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Product profile.␊ */␊ @@ -56831,7 +56817,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the property.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Property Contract properties.␊ */␊ @@ -56869,7 +56855,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Subscription entity Identifier. The entity represents the association between a user and a product in API Management.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create subscription operation.␊ */␊ @@ -56915,7 +56901,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Tag contract Properties.␊ */␊ @@ -56941,7 +56927,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create User operation.␊ */␊ @@ -57009,7 +56995,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Api Version Set identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of an API Version Set.␊ */␊ @@ -57068,7 +57054,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Release identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * API Release details␊ */␊ @@ -57098,7 +57084,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Operation identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Operation Contract Properties␊ */␊ @@ -57268,7 +57254,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Schema identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Schema contract Properties.␊ */␊ @@ -57308,7 +57294,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -57324,7 +57310,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Issue identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue contract Properties.␊ */␊ @@ -57370,7 +57356,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -57382,7 +57368,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create TagDescription operation.␊ */␊ @@ -57449,7 +57435,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -57630,7 +57616,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "loggers"␊ [k: string]: unknown␊ }␊ @@ -57671,7 +57657,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "users"␊ [k: string]: unknown␊ }␊ @@ -57740,7 +57726,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "recipientUsers"␊ [k: string]: unknown␊ }␊ @@ -57837,7 +57823,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.␊ */␊ - name: (string | string)␊ + name: string␊ type: "apis"␊ [k: string]: unknown␊ }␊ @@ -57849,7 +57835,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "groups"␊ [k: string]: unknown␊ }␊ @@ -57877,7 +57863,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -58038,7 +58024,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "loggers"␊ [k: string]: unknown␊ }␊ @@ -58067,7 +58053,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Comment identifier within an Issue. Must be unique in the current Issue.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue Comment contract Properties.␊ */␊ @@ -58101,7 +58087,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Attachment identifier within an Issue. Must be unique in the current Issue.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue Attachment contract Properties.␊ */␊ @@ -58404,7 +58390,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Api Create or Update Properties.␊ */␊ @@ -58604,7 +58590,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Tag contract Properties.␊ */␊ @@ -58630,7 +58616,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the authorization server.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * External OAuth authorization server settings Properties.␊ */␊ @@ -58730,7 +58716,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the Backend entity. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create Backend operation.␊ */␊ @@ -58910,7 +58896,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier).␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of the Cache contract.␊ */␊ @@ -58944,7 +58930,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the certificate entity. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the CreateOrUpdate certificate operation.␊ */␊ @@ -58974,7 +58960,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -59113,11 +59099,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * Template parameter description.␊ */␊ - description?: (string | string)␊ + description?: string␊ /**␊ * Template parameter name.␊ */␊ - name?: (string | string)␊ + name?: string␊ /**␊ * Template parameter title.␊ */␊ @@ -59132,7 +59118,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create Group operation.␊ */␊ @@ -59228,7 +59214,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs.␊ */␊ @@ -59285,7 +59271,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the OpenID Connect Provider.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * OpenID Connect Providers Contract.␊ */␊ @@ -59441,7 +59427,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Product identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Product profile.␊ */␊ @@ -59491,7 +59477,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the property.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Property Contract properties.␊ */␊ @@ -59529,7 +59515,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Subscription entity Identifier. The entity represents the association between a user and a product in API Management.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create subscription operation.␊ */␊ @@ -59579,7 +59565,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create User operation.␊ */␊ @@ -59647,7 +59633,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Api Version Set identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of an API Version Set.␊ */␊ @@ -59706,7 +59692,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Release identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * API Release details␊ */␊ @@ -59736,7 +59722,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Operation identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Operation Contract Properties␊ */␊ @@ -59890,7 +59876,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -59918,7 +59904,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Schema identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Schema contract Properties.␊ */␊ @@ -59958,7 +59944,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -59974,7 +59960,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Issue identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue contract Properties.␊ */␊ @@ -60020,7 +60006,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create TagDescription operation.␊ */␊ @@ -60103,7 +60089,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -60316,7 +60302,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "users"␊ [k: string]: unknown␊ }␊ @@ -60385,7 +60371,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * User identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "recipientUsers"␊ [k: string]: unknown␊ }␊ @@ -60482,7 +60468,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -60494,7 +60480,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.␊ */␊ - name: (string | string)␊ + name: string␊ type: "apis"␊ [k: string]: unknown␊ }␊ @@ -60506,7 +60492,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Group identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "groups"␊ [k: string]: unknown␊ }␊ @@ -61087,7 +61073,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Tag contract Properties.␊ */␊ @@ -61113,7 +61099,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Api Version Set identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of an API Version Set.␊ */␊ @@ -61155,7 +61141,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the authorization server.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * External OAuth authorization server settings Properties.␊ */␊ @@ -61435,7 +61421,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier).␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of the Cache contract.␊ */␊ @@ -61469,7 +61455,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the certificate entity. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the CreateOrUpdate certificate operation.␊ */␊ @@ -61499,7 +61485,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -61646,11 +61632,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * Template parameter description.␊ */␊ - description?: (string | string)␊ + description?: string␊ /**␊ * Template parameter name.␊ */␊ - name?: (string | string)␊ + name?: string␊ /**␊ * Template parameter title.␊ */␊ @@ -61765,7 +61751,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Logger identifier. Must be unique in the API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs.␊ */␊ @@ -61822,7 +61808,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the OpenID Connect Provider.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * OpenID Connect Providers Contract.␊ */␊ @@ -62028,7 +62014,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Identifier of the property.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Property Contract properties.␊ */␊ @@ -62066,7 +62052,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Subscription entity Identifier. The entity represents the association between a user and a product in API Management.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create subscription operation.␊ */␊ @@ -62205,7 +62191,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Release identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * API Release details␊ */␊ @@ -62389,7 +62375,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -62417,7 +62403,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Schema identifier within an API. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * API Schema create or update contract Properties.␊ */␊ @@ -62457,7 +62443,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Diagnostic identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Diagnostic Entity Properties␊ */␊ @@ -62473,7 +62459,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Issue identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue contract Properties.␊ */␊ @@ -62519,7 +62505,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Parameters supplied to the Create TagDescription operation.␊ */␊ @@ -62602,7 +62588,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -62735,7 +62721,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Comment identifier within an Issue. Must be unique in the current Issue.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue Comment contract Properties.␊ */␊ @@ -62769,7 +62755,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Attachment identifier within an Issue. Must be unique in the current Issue.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Issue Attachment contract Properties.␊ */␊ @@ -63082,7 +63068,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Tag identifier. Must be unique in the current API Management service instance.␊ */␊ - name: (string | string)␊ + name: string␊ type: "tags"␊ [k: string]: unknown␊ }␊ @@ -66456,7 +66442,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the replication.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of a replication.␊ */␊ @@ -66488,7 +66474,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the webhook.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The parameters for creating the properties of a webhook.␊ */␊ @@ -66709,7 +66695,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the replication.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of a replication.␊ */␊ @@ -66741,7 +66727,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the webhook.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The parameters for creating the properties of a webhook.␊ */␊ @@ -66968,7 +66954,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of a build step for a container registry build task.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Base properties for any build step.␊ */␊ @@ -77922,7 +77908,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The job execution id to create the job execution under.␊ */␊ - name: (string | string)␊ + name: string␊ type: "executions"␊ [k: string]: unknown␊ }␊ @@ -97788,11 +97774,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * The server administrator Sid (Secure ID).␊ */␊ - sid: (string | string)␊ + sid: string␊ /**␊ * The server Active Directory Administrator tenant id.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -98172,11 +98158,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * The server administrator Sid (Secure ID).␊ */␊ - sid: (string | string)␊ + sid: string␊ /**␊ * The server Active Directory Administrator tenant id.␊ */␊ - tenantId: (string | string)␊ + tenantId: string␊ [k: string]: unknown␊ }␊ /**␊ @@ -218431,7 +218417,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.␊ */␊ - name: (string | string)␊ + name: string␊ type: "experiments"␊ [k: string]: unknown␊ }␊ @@ -218443,7 +218429,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the file server within the specified resource group. File server names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of a file server.␊ */␊ @@ -218545,7 +218531,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of a Cluster.␊ */␊ @@ -218948,7 +218934,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The name of the job within the specified resource group. Job names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The properties of a Batch AI Job.␊ */␊ @@ -219773,7 +219759,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Unique name of the agent pool profile in the context of the subscription and resource group.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.␊ */␊ @@ -222368,7 +222354,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * UUID v4 used to identify the MountTarget␊ */␊ - fileSystemId: (string | string)␊ + fileSystemId: string␊ /**␊ * The gateway of the IPv4 address range to use when creating a new mount target␊ */␊ @@ -226971,7 +226957,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Unique name of the agent pool profile in the context of the subscription and resource group.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.␊ */␊ @@ -231951,7 +231937,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The integration runtime name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Azure Data Factory nested object which serves as a compute resource for activities.␊ */␊ @@ -232212,7 +232198,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The linked service name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The Azure Data Factory nested object which contains the information and credential which can be used to connect with related store or compute resource.␊ */␊ @@ -236022,7 +236008,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The dataset name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The Azure Data Factory nested object which identifies data within different data stores, such as tables, files, folders, and documents.␊ */␊ @@ -236940,7 +236926,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The pipeline name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * A data factory pipeline.␊ */␊ @@ -238416,7 +238402,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The trigger name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Azure data factory nested object which contains information about creating pipeline run␊ */␊ @@ -238724,7 +238710,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The integration runtime name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Azure Data Factory nested object which serves as a compute resource for activities.␊ */␊ @@ -239264,7 +239250,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The linked service name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The nested object which contains the information and credential which can be used to connect with related store or compute resource.␊ */␊ @@ -245660,7 +245646,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The dataset name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * The Azure Data Factory nested object which identifies data within different data stores, such as tables, files, folders, and documents.␊ */␊ @@ -248527,7 +248513,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The pipeline name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * A data factory pipeline.␊ */␊ @@ -255598,7 +255584,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The trigger name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Azure data factory nested object which contains information about creating pipeline run␊ */␊ @@ -255916,11 +255902,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * Timespan applied to the start time of a tumbling window when evaluating dependency.␊ */␊ - offset?: (string | string)␊ + offset?: string␊ /**␊ * The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used.␊ */␊ - size?: (string | string)␊ + size?: string␊ type: "TumblingWindowTriggerDependencyReference"␊ [k: string]: unknown␊ }␊ @@ -255931,11 +255917,11 @@ Generated by [AVA](https://avajs.dev). /**␊ * Timespan applied to the start time of a tumbling window when evaluating dependency.␊ */␊ - offset: (string | string)␊ + offset: string␊ /**␊ * The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used.␊ */␊ - size?: (string | string)␊ + size?: string␊ type: "SelfDependencyTumblingWindowTriggerReference"␊ [k: string]: unknown␊ }␊ @@ -256027,7 +256013,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The data flow name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Azure Data Factory nested object which contains a flow with data movements and transformations.␊ */␊ @@ -256280,7 +256266,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Managed virtual network name␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * A managed Virtual Network associated with the Azure Data Factory␊ */␊ @@ -256368,7 +256354,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * The global parameter name.␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Global parameters associated with the Azure Data Factory␊ */␊ @@ -256499,7 +256485,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Managed private endpoint name␊ */␊ - name: (string | string)␊ + name: string␊ /**␊ * Properties of a managed private endpoint␊ */␊ @@ -263761,7 +263747,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Specifies the blob storage subscription Id.␊ */␊ - storageAccountSubscriptionId?: (string | string)␊ + storageAccountSubscriptionId?: string␊ /**␊ * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.␊ */␊ @@ -263896,7 +263882,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Specifies the blob storage subscription Id.␊ */␊ - storageAccountSubscriptionId?: (string | string)␊ + storageAccountSubscriptionId?: string␊ /**␊ * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.␊ */␊ @@ -264592,7 +264578,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Specifies the blob storage subscription Id.␊ */␊ - storageAccountSubscriptionId?: (string | string)␊ + storageAccountSubscriptionId?: string␊ /**␊ * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.␊ */␊ @@ -265256,7 +265242,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Microsoft.Insights/autoscalesettings: The granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. ISO 8601 duration format.␊ */␊ - timeGrain?: (string | string)␊ + timeGrain?: string␊ /**␊ * Microsoft.Insights/autoscalesettings: How the metrics from multiple instances are combined.␊ */␊ @@ -265264,7 +265250,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Microsoft.Insights/autoscalesettings: The range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. ISO 8601 duration format.␊ */␊ - timeWindow?: (string | string)␊ + timeWindow?: string␊ /**␊ * Microsoft.Insights/autoscalesettings: How the data that is collected should be combined over time. The default value is Average.␊ */␊ @@ -265297,7 +265283,7 @@ Generated by [AVA](https://avajs.dev). /**␊ * Microsoft.Insights/autoscalesettings: The amount of time to wait since the last scaling action before this action occurs. Must be between 1 week and 1 minute. ISO 8601 duration format.␊ */␊ - cooldown?: (string | string)␊ + cooldown?: string␊ [k: string]: unknown␊ }␊ [k: string]: unknown␊ diff --git a/test/__snapshots__/test/test.ts.snap b/test/__snapshots__/test/test.ts.snap index f05a3bd4..b4205e7d 100644 Binary files a/test/__snapshots__/test/test.ts.snap and b/test/__snapshots__/test/test.ts.snap differ