diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 15eeb0d29829..98645eebeee1 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1583,7 +1583,6 @@ packages: /@opentelemetry/node/0.22.0_@opentelemetry+api@1.0.3: resolution: {integrity: sha512-+HhGbDruQ7cwejVOIYyxRa28uosnG8W95NiQZ6qE8PXXPsDSyGeftAPbtYpGit0H2f5hrVcMlwmWHeAo9xkSLA==} engines: {node: '>=8.0.0'} - deprecated: Package renamed to @opentelemetry/sdk-trace-node peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: @@ -8607,7 +8606,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-omQocPXL4sX90Auam4HZhWZxdMAXN2lLUqmkfqrJTBR45GiDSX3ozqPioi9OOCKPVyeIRI5UCImM6MVYdWqR6A==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-Ek2wAr+FBkISa7fXj4rW+E9UiplbpS7iXxXyrsUikpgJgHWb5YSnG+5RAFPKCKaeoDUyxXtr1qD1rG7GZsZauA==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -8619,6 +8618,7 @@ packages: cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 + rimraf: 3.0.2 rollup: 1.32.1 rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index d0edd09d1aee..9e8f8be2956b 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,14 +1,11 @@ # Release History -## 8.0.0-beta.2 (Unreleased) +## 8.0.0-beta.2 (2021-11-17) + +**Features** -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes + - Added Interface PerformConnectivityCheckAsyncOptionalParams + - Added Type Alias PerformConnectivityCheckAsyncResponse ## 8.0.0-beta.1 (2021-10-09) diff --git a/sdk/apimanagement/arm-apimanagement/README.md b/sdk/apimanagement/arm-apimanagement/README.md index 140d09366851..670ee54a5439 100644 --- a/sdk/apimanagement/arm-apimanagement/README.md +++ b/sdk/apimanagement/arm-apimanagement/README.md @@ -6,7 +6,7 @@ ApiManagement Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-apimanagement) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started @@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new ApiManagementClient(new DefaultAzureCredential(), subscriptionId); ``` + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + ## Key concepts ### ApiManagementClient diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index 9de6db50074d..548a9accf237 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,7 +1,7 @@ { - "commit": "e5b604e04e917bc2b0c9673449491b89edb09211", + "commit": "c4d6f92d3fd35a69ebce68f4c73c35c4238c2ac5", "readme": "specification/apimanagement/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.15.20211116.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-beta.13" + "use": "@autorest/typescript@6.0.0-alpha.15.20211116.1" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index 422828f5bc81..4a7a745fb84b 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -4,25 +4,17 @@ "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", "version": "8.0.0-beta.2", - "engines": { - "node": ">=12.0.0" - }, + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", - "@azure/core-paging": "^1.1.1", + "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -38,6 +30,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^1.0.0", "mocha": "^7.1.1", @@ -48,9 +41,7 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -70,14 +61,14 @@ "types/*" ], "scripts": { - "build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -86,14 +77,13 @@ "execute:samples": "echo skipped", "format": "echo skipped", "test": "npm run integration-test", - "prebuild": "echo skipped", "test:node": "echo skipped", "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts", + "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", "integration-test:browser": "echo skipped", "docs": "echo skipped" }, diff --git a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md index fe21e8d7a58d..910367ecc109 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -674,8 +674,8 @@ export class ApiManagementClient extends ApiManagementClientContext { authorizationServer: AuthorizationServer; // (undocumented) backend: Backend; - beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams): Promise, ApiManagementClientPerformConnectivityCheckAsyncResponse>>; - beginPerformConnectivityCheckAsyncAndWait(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams): Promise; + beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise, PerformConnectivityCheckAsyncResponse>>; + beginPerformConnectivityCheckAsyncAndWait(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise; // (undocumented) cache: Cache_2; // (undocumented) @@ -802,15 +802,6 @@ export interface ApiManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } -// @public -export interface ApiManagementClientPerformConnectivityCheckAsyncOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ApiManagementClientPerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; - // @public export interface ApiManagementOperations { list(options?: ApiManagementOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -5458,6 +5449,15 @@ export interface ParameterExampleContract { value?: any; } +// @public +export interface PerformConnectivityCheckAsyncOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; + // @public export interface PipelineDiagnosticSettings { request?: HttpMessageDiagnostic; diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 79e0ca1d55f0..8faaf06ffc79 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -168,8 +168,8 @@ import { ApiManagementClientContext } from "./apiManagementClientContext"; import { ApiManagementClientOptionalParams, ConnectivityCheckRequest, - ApiManagementClientPerformConnectivityCheckAsyncOptionalParams, - ApiManagementClientPerformConnectivityCheckAsyncResponse + PerformConnectivityCheckAsyncOptionalParams, + PerformConnectivityCheckAsyncResponse } from "./models"; export class ApiManagementClient extends ApiManagementClientContext { @@ -282,19 +282,17 @@ export class ApiManagementClient extends ApiManagementClientContext { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams + options?: PerformConnectivityCheckAsyncOptionalParams ): Promise< PollerLike< - PollOperationState< - ApiManagementClientPerformConnectivityCheckAsyncResponse - >, - ApiManagementClientPerformConnectivityCheckAsyncResponse + PollOperationState, + PerformConnectivityCheckAsyncResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -359,8 +357,8 @@ export class ApiManagementClient extends ApiManagementClientContext { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams - ): Promise { + options?: PerformConnectivityCheckAsyncOptionalParams + ): Promise { const poller = await this.beginPerformConnectivityCheckAsync( resourceGroupName, serviceName, diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts index d4e5a21660c3..1521ed1a4038 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts @@ -43,7 +43,7 @@ export class ApiManagementClientContext extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-apimanagement/8.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-apimanagement/8.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -66,6 +66,6 @@ export class ApiManagementClientContext extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-04-01-preview"; + this.apiVersion = options.apiVersion || "2021-08-01"; } } diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 2fdfd7f4cc91..457a6f082925 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -24,23 +24,20 @@ export interface ApiCollection { readonly nextLink?: string; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; +/** An API Version Set contains the common configuration for a set of API Versions relating */ +export interface ApiVersionSetContractDetails { + /** Identifier for existing API Version Set. Omit this value to create a new Version Set. */ + id?: string; + /** The display Name of the API Version Set. */ + name?: string; + /** Description of API Version Set. */ + description?: string; + /** An value that determines where the API Version identifier will be located in a HTTP request. */ + versioningScheme?: ApiVersionSetContractDetailsVersioningScheme; + /** Name of query parameter that indicates the API Version if versioningScheme is set to `query`. */ + versionQueryName?: string; + /** Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. */ + versionHeaderName?: string; } /** API base contract details. */ @@ -130,20 +127,23 @@ export interface ApiLicenseInformation { url?: string; } -/** An API Version Set contains the common configuration for a set of API Versions relating */ -export interface ApiVersionSetContractDetails { - /** Identifier for existing API Version Set. Omit this value to create a new Version Set. */ - id?: string; - /** The display Name of the API Version Set. */ - name?: string; - /** Description of API Version Set. */ - description?: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme?: ApiVersionSetContractDetailsVersioningScheme; - /** Name of query parameter that indicates the API Version if versioningScheme is set to `query`. */ - versionQueryName?: string; - /** Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. */ - versionHeaderName?: string; +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; } /** Error Response. */ @@ -1037,14 +1037,6 @@ export interface CertificateCollection { nextLink?: string; } -/** Create keyVault contract details. */ -export interface KeyVaultContractCreateProperties { - /** Key vault secret identifier for fetching secret. Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi */ - secretIdentifier?: string; - /** SystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret. */ - identityClientId?: string; -} - /** Issue contract Update Properties. */ export interface KeyVaultLastAccessStatusContractProperties { /** Last status code for sync and refresh of secret from key vault. */ @@ -1058,6 +1050,14 @@ export interface KeyVaultLastAccessStatusContractProperties { timeStampUtc?: Date; } +/** Create keyVault contract details. */ +export interface KeyVaultContractCreateProperties { + /** Key vault secret identifier for fetching secret. Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi */ + secretIdentifier?: string; + /** SystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret. */ + identityClientId?: string; +} + /** Certificate create or update details. */ export interface CertificateCreateOrUpdateParameters { /** Base 64 encoded certificate using the application/x-pkcs12 representation. */ @@ -1068,6 +1068,157 @@ export interface CertificateCreateOrUpdateParameters { keyVault?: KeyVaultContractCreateProperties; } +/** A request to perform the connectivity check operation on a API Management service. */ +export interface ConnectivityCheckRequest { + /** Definitions about the connectivity check origin. */ + source: ConnectivityCheckRequestSource; + /** The connectivity check operation destination. */ + destination: ConnectivityCheckRequestDestination; + /** The IP version to be used. Only IPv4 is supported for now. */ + preferredIPVersion?: PreferredIPVersion; + /** The request's protocol. Specific protocol configuration can be available based on this selection. The specified destination address must be coherent with this value. */ + protocol?: ConnectivityCheckProtocol; + /** Protocol-specific configuration. */ + protocolConfiguration?: ConnectivityCheckRequestProtocolConfiguration; +} + +/** Definitions about the connectivity check origin. */ +export interface ConnectivityCheckRequestSource { + /** The API Management service region from where to start the connectivity check operation. */ + region: string; + /** The particular VMSS instance from which to fire the request. */ + instance?: number; +} + +/** The connectivity check operation destination. */ +export interface ConnectivityCheckRequestDestination { + /** Destination address. Can either be an IP address or a FQDN. */ + address: string; + /** Destination port. */ + port: number; +} + +/** Protocol-specific configuration. */ +export interface ConnectivityCheckRequestProtocolConfiguration { + /** Configuration for HTTP or HTTPS requests. */ + httpConfiguration?: ConnectivityCheckRequestProtocolConfigurationHttpConfiguration; +} + +/** Configuration for HTTP or HTTPS requests. */ +export interface ConnectivityCheckRequestProtocolConfigurationHttpConfiguration { + /** The HTTP method to be used. */ + method?: Method; + /** List of HTTP status codes considered valid for the request response. */ + validStatusCodes?: number[]; + /** List of headers to be included in the request. */ + headers?: HttpHeader[]; +} + +/** HTTP header and it's value. */ +export interface HttpHeader { + /** Header name. */ + name: string; + /** Header value. */ + value: string; +} + +/** Information on the connectivity status. */ +export interface ConnectivityCheckResponse { + /** + * List of hops between the source and the destination. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hops?: ConnectivityHop[]; + /** + * The connection status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectionStatus?: ConnectionStatus; + /** + * Average latency in milliseconds. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly avgLatencyInMs?: number; + /** + * Minimum latency in milliseconds. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly minLatencyInMs?: number; + /** + * Maximum latency in milliseconds. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maxLatencyInMs?: number; + /** + * Total number of probes sent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly probesSent?: number; + /** + * Number of failed probes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly probesFailed?: number; +} + +/** Information about a hop between the source and the destination. */ +export interface ConnectivityHop { + /** + * The type of the hop. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The ID of the hop. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The IP address of the hop. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly address?: string; + /** + * The ID of the resource corresponding to this hop. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceId?: string; + /** + * List of next hop identifiers. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextHopIds?: string[]; + /** + * List of issues. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly issues?: ConnectivityIssue[]; +} + +/** Information about an issue encountered in the process of checking for connectivity. */ +export interface ConnectivityIssue { + /** + * The origin of the issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * The severity of the issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly severity?: Severity; + /** + * The type of issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: IssueType; + /** + * Provides additional context on the issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly context?: { [propertyName: string]: string }[]; +} + /** Paged list of content types. */ export interface ContentTypeCollection { /** @@ -1215,27 +1366,6 @@ export interface ApiManagementServiceBackupRestoreParameters { clientId?: string; } -/** The Resource definition. */ -export interface ApimResource { - /** - * Resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type for API Management resource is set to Microsoft.ApiManagement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; -} - /** Base Properties of an API Management service resource description. */ export interface ApiManagementServiceBaseProperties { /** Email address from which the notification will be sent. */ @@ -1528,12 +1658,33 @@ export interface SystemData { lastModifiedAt?: Date; } -/** The response of the List API Management services operation. */ -export interface ApiManagementServiceListResult { - /** Result of the List API Management services operation. */ - value: ApiManagementServiceResource[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of API Management services. */ - nextLink?: string; +/** The Resource definition. */ +export interface ApimResource { + /** + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type for API Management resource is set to Microsoft.ApiManagement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** The response of the List API Management services operation. */ +export interface ApiManagementServiceListResult { + /** Result of the List API Management services operation. */ + value: ApiManagementServiceResource[]; + /** Link to the next set of results. Not empty if Value contains incomplete list of API Management services. */ + nextLink?: string; } /** The response of the GetSsoToken operation. */ @@ -2776,157 +2927,6 @@ export interface UserTokenResult { value?: string; } -/** A request to perform the connectivity check operation on a API Management service. */ -export interface ConnectivityCheckRequest { - /** Definitions about the connectivity check origin. */ - source: ConnectivityCheckRequestSource; - /** The connectivity check operation destination. */ - destination: ConnectivityCheckRequestDestination; - /** The IP version to be used. Only IPv4 is supported for now. */ - preferredIPVersion?: PreferredIPVersion; - /** The request's protocol. Specific protocol configuration can be available based on this selection. The specified destination address must be coherent with this value. */ - protocol?: ConnectivityCheckProtocol; - /** Protocol-specific configuration. */ - protocolConfiguration?: ConnectivityCheckRequestProtocolConfiguration; -} - -/** Definitions about the connectivity check origin. */ -export interface ConnectivityCheckRequestSource { - /** The API Management service region from where to start the connectivity check operation. */ - region: string; - /** The particular VMSS instance from which to fire the request. */ - instance?: number; -} - -/** The connectivity check operation destination. */ -export interface ConnectivityCheckRequestDestination { - /** Destination address. Can either be an IP address or a FQDN. */ - address: string; - /** Destination port. */ - port: number; -} - -/** Protocol-specific configuration. */ -export interface ConnectivityCheckRequestProtocolConfiguration { - /** Configuration for HTTP or HTTPS requests. */ - httpConfiguration?: ConnectivityCheckRequestProtocolConfigurationHttpConfiguration; -} - -/** Configuration for HTTP or HTTPS requests. */ -export interface ConnectivityCheckRequestProtocolConfigurationHttpConfiguration { - /** The HTTP method to be used. */ - method?: Method; - /** List of HTTP status codes considered valid for the request response. */ - validStatusCodes?: number[]; - /** List of headers to be included in the request. */ - headers?: HttpHeader[]; -} - -/** HTTP header and it's value. */ -export interface HttpHeader { - /** Header name. */ - name: string; - /** Header value. */ - value: string; -} - -/** Information on the connectivity status. */ -export interface ConnectivityCheckResponse { - /** - * List of hops between the source and the destination. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hops?: ConnectivityHop[]; - /** - * The connection status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectionStatus?: ConnectionStatus; - /** - * Average latency in milliseconds. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly avgLatencyInMs?: number; - /** - * Minimum latency in milliseconds. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minLatencyInMs?: number; - /** - * Maximum latency in milliseconds. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxLatencyInMs?: number; - /** - * Total number of probes sent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly probesSent?: number; - /** - * Number of failed probes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly probesFailed?: number; -} - -/** Information about a hop between the source and the destination. */ -export interface ConnectivityHop { - /** - * The type of the hop. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The ID of the hop. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The IP address of the hop. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly address?: string; - /** - * The ID of the resource corresponding to this hop. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: string; - /** - * List of next hop identifiers. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextHopIds?: string[]; - /** - * List of issues. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly issues?: ConnectivityIssue[]; -} - -/** Information about an issue encountered in the process of checking for connectivity. */ -export interface ConnectivityIssue { - /** - * The origin of the issue. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: Origin; - /** - * The severity of the issue. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly severity?: Severity; - /** - * The type of issue. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: IssueType; - /** - * Provides additional context on the issue. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly context?: { [propertyName: string]: string }[]; -} - /** Object used to create an API Revision or Version based on an existing API Revision */ export interface ApiRevisionInfoContract { /** Resource identifier of API to be used to create the revision from. */ @@ -2947,6 +2947,48 @@ export interface QuotaCounterValueContract { kbTransferred?: number; } +/** API Entity Properties */ +export type ApiContractProperties = ApiEntityBaseContract & { + /** API identifier of the source API. */ + sourceApiId?: string; + /** API name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ + serviceUrl?: 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. */ + path: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; + /** Version set details */ + apiVersionSet?: ApiVersionSetContractDetails; +}; + +/** API update contract properties. */ +export type ApiContractUpdateProperties = ApiEntityBaseContract & { + /** API name. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: 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. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; +}; + +/** API contract properties for the Tag Resources. */ +export type ApiTagResourceContractProperties = ApiEntityBaseContract & { + /** API identifier in the form /apis/{apiId}. */ + id?: string; + /** API name. */ + name?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: 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. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; +}; + /** API details. */ export type ApiContract = Resource & { /** Description of the API. May include HTML formatting tags. */ @@ -3755,72 +3797,30 @@ export type OperationResultContract = Resource & { readonly actionLog?: OperationResultLogItemContract[]; }; -/** Result of Tenant Configuration Sync State. */ -export type TenantConfigurationSyncStateContract = Resource & { - /** The name of Git branch. */ - branch?: string; - /** The latest commit Id. */ - commitId?: string; - /** value indicating if last sync was save (true) or deploy (false) operation. */ - isExport?: boolean; - /** value indicating if last synchronization was later than the configuration change. */ - isSynced?: boolean; - /** value indicating whether Git configuration access is enabled. */ - isGitEnabled?: boolean; - /** - * The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - syncDate?: Date; - /** - * The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - configurationChangeDate?: Date; - /** Most recent tenant configuration operation identifier */ - lastOperationId?: string; -}; - -/** API Entity Properties */ -export type ApiContractProperties = ApiEntityBaseContract & { - /** API identifier of the source API. */ - sourceApiId?: string; - /** API name. Must be 1 to 300 characters long. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ - serviceUrl?: 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. */ - path: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; - /** Version set details */ - apiVersionSet?: ApiVersionSetContractDetails; -}; - -/** API update contract properties. */ -export type ApiContractUpdateProperties = ApiEntityBaseContract & { - /** API name. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: 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. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; -}; - -/** API contract properties for the Tag Resources. */ -export type ApiTagResourceContractProperties = ApiEntityBaseContract & { - /** API identifier in the form /apis/{apiId}. */ - id?: string; - /** API name. */ - name?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: 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. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; +/** Result of Tenant Configuration Sync State. */ +export type TenantConfigurationSyncStateContract = Resource & { + /** The name of Git branch. */ + branch?: string; + /** The latest commit Id. */ + commitId?: string; + /** value indicating if last sync was save (true) or deploy (false) operation. */ + isExport?: boolean; + /** value indicating if last synchronization was later than the configuration change. */ + isSynced?: boolean; + /** value indicating whether Git configuration access is enabled. */ + isGitEnabled?: boolean; + /** + * The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + syncDate?: Date; + /** + * The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + configurationChangeDate?: Date; + /** Most recent tenant configuration operation identifier */ + lastOperationId?: string; }; /** Operation Contract Properties */ @@ -3961,6 +3961,22 @@ export type KeyVaultContractProperties = KeyVaultContractCreateProperties & { lastStatus?: KeyVaultLastAccessStatusContractProperties; }; +/** Properties of an API Management service resource description. */ +export type ApiManagementServiceProperties = ApiManagementServiceBaseProperties & { + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: string; +}; + +/** Properties of an API Management service resource description. */ +export type ApiManagementServiceUpdateProperties = ApiManagementServiceBaseProperties & { + /** Publisher email. */ + publisherEmail?: string; + /** Publisher name. */ + publisherName?: string; +}; + /** A single API Management service resource in List or Get response. */ export type ApiManagementServiceResource = ApimResource & { /** SKU properties of the API Management service. */ @@ -4182,22 +4198,6 @@ export type ApiManagementServiceUpdateParameters = ApimResource & { publisherName?: string; }; -/** Properties of an API Management service resource description. */ -export type ApiManagementServiceProperties = ApiManagementServiceBaseProperties & { - /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: string; -}; - -/** Properties of an API Management service resource description. */ -export type ApiManagementServiceUpdateProperties = ApiManagementServiceBaseProperties & { - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; -}; - /** User profile. */ export type UserContractProperties = UserEntityBaseParameters & { /** First name. */ @@ -5248,44 +5248,6 @@ export interface UserSubscriptionGetHeaders { eTag?: string; } -/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ -export enum KnownBearerTokenSendingMethods { - /** Access token will be transmitted in the Authorization header using Bearer schema */ - AuthorizationHeader = "authorizationHeader", - /** Access token will be transmitted as query parameters. */ - Query = "query" -} - -/** - * Defines values for BearerTokenSendingMethods. \ - * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ - * **query**: Access token will be transmitted as query parameters. - */ -export type BearerTokenSendingMethods = string; - -/** Known values of {@link ApiType} that the service accepts. */ -export enum KnownApiType { - Http = "http", - Soap = "soap", - Websocket = "websocket", - Graphql = "graphql" -} - -/** - * Defines values for ApiType. \ - * {@link KnownApiType} can be used interchangeably with ApiType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http** \ - * **soap** \ - * **websocket** \ - * **graphql** - */ -export type ApiType = string; - /** Known values of {@link Protocol} that the service accepts. */ export enum KnownProtocol { Http = "http", @@ -5324,6 +5286,44 @@ export enum KnownApiVersionSetContractDetailsVersioningScheme { */ export type ApiVersionSetContractDetailsVersioningScheme = string; +/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ +export enum KnownBearerTokenSendingMethods { + /** Access token will be transmitted in the Authorization header using Bearer schema */ + AuthorizationHeader = "authorizationHeader", + /** Access token will be transmitted as query parameters. */ + Query = "query" +} + +/** + * Defines values for BearerTokenSendingMethods. \ + * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ + * **query**: Access token will be transmitted as query parameters. + */ +export type BearerTokenSendingMethods = string; + +/** Known values of {@link ApiType} that the service accepts. */ +export enum KnownApiType { + Http = "http", + Soap = "soap", + Websocket = "websocket", + Graphql = "graphql" +} + +/** + * Defines values for ApiType. \ + * {@link KnownApiType} can be used interchangeably with ApiType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **http** \ + * **soap** \ + * **websocket** \ + * **graphql** + */ +export type ApiType = string; + /** Known values of {@link ContentFormat} that the service accepts. */ export enum KnownContentFormat { /** The contents are inline and Content type is a WADL document. */ @@ -5670,81 +5670,213 @@ export enum KnownVersioningScheme { */ export type VersioningScheme = string; -/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ -export enum KnownClientAuthenticationMethod { - /** Basic Client Authentication method. */ - Basic = "Basic", - /** Body based Authentication method. */ - Body = "Body" +/** Known values of {@link GrantType} that the service accepts. */ +export enum KnownGrantType { + /** Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1. */ + AuthorizationCode = "authorizationCode", + /** Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2. */ + Implicit = "implicit", + /** Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3. */ + ResourceOwnerPassword = "resourceOwnerPassword", + /** Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4. */ + ClientCredentials = "clientCredentials" +} + +/** + * Defines values for GrantType. \ + * {@link KnownGrantType} can be used interchangeably with GrantType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ + * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ + * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ + * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. + */ +export type GrantType = string; + +/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ +export enum KnownClientAuthenticationMethod { + /** Basic Client Authentication method. */ + Basic = "Basic", + /** Body based Authentication method. */ + Body = "Body" +} + +/** + * Defines values for ClientAuthenticationMethod. \ + * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic**: Basic Client Authentication method. \ + * **Body**: Body based Authentication method. + */ +export type ClientAuthenticationMethod = string; + +/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ +export enum KnownBearerTokenSendingMethod { + AuthorizationHeader = "authorizationHeader", + Query = "query" +} + +/** + * Defines values for BearerTokenSendingMethod. \ + * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **authorizationHeader** \ + * **query** + */ +export type BearerTokenSendingMethod = string; + +/** Known values of {@link BackendProtocol} that the service accepts. */ +export enum KnownBackendProtocol { + /** The Backend is a RESTful service. */ + Http = "http", + /** The Backend is a SOAP service. */ + Soap = "soap" +} + +/** + * Defines values for BackendProtocol. \ + * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **http**: The Backend is a RESTful service. \ + * **soap**: The Backend is a SOAP service. + */ +export type BackendProtocol = string; + +/** Known values of {@link PreferredIPVersion} that the service accepts. */ +export enum KnownPreferredIPVersion { + IPv4 = "IPv4" +} + +/** + * Defines values for PreferredIPVersion. \ + * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IPv4** + */ +export type PreferredIPVersion = string; + +/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ +export enum KnownConnectivityCheckProtocol { + TCP = "TCP", + Http = "HTTP", + Https = "HTTPS" +} + +/** + * Defines values for ConnectivityCheckProtocol. \ + * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TCP** \ + * **HTTP** \ + * **HTTPS** + */ +export type ConnectivityCheckProtocol = string; + +/** Known values of {@link Method} that the service accepts. */ +export enum KnownMethod { + GET = "GET", + Post = "POST" +} + +/** + * Defines values for Method. \ + * {@link KnownMethod} can be used interchangeably with Method, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **GET** \ + * **POST** + */ +export type Method = string; + +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + Local = "Local", + Inbound = "Inbound", + Outbound = "Outbound" } /** - * Defines values for ClientAuthenticationMethod. \ - * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic**: Basic Client Authentication method. \ - * **Body**: Body based Authentication method. + * **Local** \ + * **Inbound** \ + * **Outbound** */ -export type ClientAuthenticationMethod = string; +export type Origin = string; -/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ -export enum KnownBearerTokenSendingMethod { - AuthorizationHeader = "authorizationHeader", - Query = "query" +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + Error = "Error", + Warning = "Warning" } /** - * Defines values for BearerTokenSendingMethod. \ - * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, + * Defines values for Severity. \ + * {@link KnownSeverity} can be used interchangeably with Severity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationHeader** \ - * **query** + * **Error** \ + * **Warning** */ -export type BearerTokenSendingMethod = string; +export type Severity = string; -/** Known values of {@link GrantType} that the service accepts. */ -export enum KnownGrantType { - /** Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1. */ - AuthorizationCode = "authorizationCode", - /** Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2. */ - Implicit = "implicit", - /** Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3. */ - ResourceOwnerPassword = "resourceOwnerPassword", - /** Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4. */ - ClientCredentials = "clientCredentials" +/** Known values of {@link IssueType} that the service accepts. */ +export enum KnownIssueType { + Unknown = "Unknown", + AgentStopped = "AgentStopped", + GuestFirewall = "GuestFirewall", + DnsResolution = "DnsResolution", + SocketBind = "SocketBind", + NetworkSecurityRule = "NetworkSecurityRule", + UserDefinedRoute = "UserDefinedRoute", + PortThrottled = "PortThrottled", + Platform = "Platform" } /** - * Defines values for GrantType. \ - * {@link KnownGrantType} can be used interchangeably with GrantType, + * Defines values for IssueType. \ + * {@link KnownIssueType} can be used interchangeably with IssueType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ - * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ - * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ - * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. + * **Unknown** \ + * **AgentStopped** \ + * **GuestFirewall** \ + * **DnsResolution** \ + * **SocketBind** \ + * **NetworkSecurityRule** \ + * **UserDefinedRoute** \ + * **PortThrottled** \ + * **Platform** */ -export type GrantType = string; +export type IssueType = string; -/** Known values of {@link BackendProtocol} that the service accepts. */ -export enum KnownBackendProtocol { - /** The Backend is a RESTful service. */ - Http = "http", - /** The Backend is a SOAP service. */ - Soap = "soap" +/** Known values of {@link ConnectionStatus} that the service accepts. */ +export enum KnownConnectionStatus { + Unknown = "Unknown", + Connected = "Connected", + Disconnected = "Disconnected", + Degraded = "Degraded" } /** - * Defines values for BackendProtocol. \ - * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, + * Defines values for ConnectionStatus. \ + * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **http**: The Backend is a RESTful service. \ - * **soap**: The Backend is a SOAP service. + * **Unknown** \ + * **Connected** \ + * **Disconnected** \ + * **Degraded** */ -export type BackendProtocol = string; +export type ConnectionStatus = string; /** Known values of {@link SkuType} that the service accepts. */ export enum KnownSkuType { @@ -6302,138 +6434,6 @@ export enum KnownConfirmation { * **invite**: Send an e-mail inviting the user to sign-up and complete registration. */ export type Confirmation = string; - -/** Known values of {@link PreferredIPVersion} that the service accepts. */ -export enum KnownPreferredIPVersion { - IPv4 = "IPv4" -} - -/** - * Defines values for PreferredIPVersion. \ - * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **IPv4** - */ -export type PreferredIPVersion = string; - -/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ -export enum KnownConnectivityCheckProtocol { - TCP = "TCP", - Http = "HTTP", - Https = "HTTPS" -} - -/** - * Defines values for ConnectivityCheckProtocol. \ - * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TCP** \ - * **HTTP** \ - * **HTTPS** - */ -export type ConnectivityCheckProtocol = string; - -/** Known values of {@link Method} that the service accepts. */ -export enum KnownMethod { - GET = "GET", - Post = "POST" -} - -/** - * Defines values for Method. \ - * {@link KnownMethod} can be used interchangeably with Method, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **GET** \ - * **POST** - */ -export type Method = string; - -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - Local = "Local", - Inbound = "Inbound", - Outbound = "Outbound" -} - -/** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Local** \ - * **Inbound** \ - * **Outbound** - */ -export type Origin = string; - -/** Known values of {@link Severity} that the service accepts. */ -export enum KnownSeverity { - Error = "Error", - Warning = "Warning" -} - -/** - * Defines values for Severity. \ - * {@link KnownSeverity} can be used interchangeably with Severity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Error** \ - * **Warning** - */ -export type Severity = string; - -/** Known values of {@link IssueType} that the service accepts. */ -export enum KnownIssueType { - Unknown = "Unknown", - AgentStopped = "AgentStopped", - GuestFirewall = "GuestFirewall", - DnsResolution = "DnsResolution", - SocketBind = "SocketBind", - NetworkSecurityRule = "NetworkSecurityRule", - UserDefinedRoute = "UserDefinedRoute", - PortThrottled = "PortThrottled", - Platform = "Platform" -} - -/** - * Defines values for IssueType. \ - * {@link KnownIssueType} can be used interchangeably with IssueType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **AgentStopped** \ - * **GuestFirewall** \ - * **DnsResolution** \ - * **SocketBind** \ - * **NetworkSecurityRule** \ - * **UserDefinedRoute** \ - * **PortThrottled** \ - * **Platform** - */ -export type IssueType = string; - -/** Known values of {@link ConnectionStatus} that the service accepts. */ -export enum KnownConnectionStatus { - Unknown = "Unknown", - Connected = "Connected", - Disconnected = "Disconnected", - Degraded = "Degraded" -} - -/** - * Defines values for ConnectionStatus. \ - * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **Connected** \ - * **Disconnected** \ - * **Degraded** - */ -export type ConnectionStatus = string; /** Defines values for ProductState. */ export type ProductState = "notPublished" | "published"; /** Defines values for AuthorizationMethod. */ @@ -7834,6 +7834,18 @@ export interface CertificateListByServiceNextOptionalParams /** Contains response data for the listByServiceNext operation. */ export type CertificateListByServiceNextResponse = CertificateCollection; +/** Optional parameters. */ +export interface PerformConnectivityCheckAsyncOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the performConnectivityCheckAsync operation. */ +export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; + /** Optional parameters. */ export interface ContentTypeListByServiceOptionalParams extends coreClient.OperationOptions {} @@ -10292,18 +10304,6 @@ export interface UserConfirmationPasswordSendOptionalParams appType?: AppType; } -/** Optional parameters. */ -export interface ApiManagementClientPerformConnectivityCheckAsyncOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the performConnectivityCheckAsync operation. */ -export type ApiManagementClientPerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; - /** Optional parameters. */ export interface ApiManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index 9f294fc01727..e8d4930b3d6c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -48,15 +48,14 @@ export const ApiCollection: coreClient.CompositeMapper = { } }; -export const Resource: coreClient.CompositeMapper = { - serializedName: "Resource", +export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractDetails", type: { name: "Composite", - className: "Resource", + className: "ApiVersionSetContractDetails", modelProperties: { id: { serializedName: "id", - readOnly: true, xmlName: "id", type: { name: "String" @@ -64,16 +63,35 @@ export const Resource: coreClient.CompositeMapper = { }, name: { serializedName: "name", - readOnly: true, xmlName: "name", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String" + } + }, + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", + type: { + name: "String" + } + }, + versionQueryName: { + serializedName: "versionQueryName", + xmlName: "versionQueryName", + type: { + name: "String" + } + }, + versionHeaderName: { + serializedName: "versionHeaderName", + xmlName: "versionHeaderName", type: { name: "String" } @@ -374,14 +392,15 @@ export const ApiLicenseInformation: coreClient.CompositeMapper = { } }; -export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractDetails", +export const Resource: coreClient.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "ApiVersionSetContractDetails", + className: "Resource", modelProperties: { id: { serializedName: "id", + readOnly: true, xmlName: "id", type: { name: "String" @@ -389,35 +408,16 @@ export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { }, name: { serializedName: "name", + readOnly: true, xmlName: "name", type: { name: "String" } }, - description: { - serializedName: "description", - xmlName: "description", - type: { - name: "String" - } - }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", - type: { - name: "String" - } - }, - versionQueryName: { - serializedName: "versionQueryName", - xmlName: "versionQueryName", - type: { - name: "String" - } - }, - versionHeaderName: { - serializedName: "versionHeaderName", - xmlName: "versionHeaderName", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { name: "String" } @@ -3522,30 +3522,6 @@ export const CertificateCollection: coreClient.CompositeMapper = { } }; -export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractCreateProperties", - type: { - name: "Composite", - className: "KeyVaultContractCreateProperties", - modelProperties: { - secretIdentifier: { - serializedName: "secretIdentifier", - xmlName: "secretIdentifier", - type: { - name: "String" - } - }, - identityClientId: { - serializedName: "identityClientId", - xmlName: "identityClientId", - type: { - name: "String" - } - } - } - } -}; - export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMapper = { serializedName: "KeyVaultLastAccessStatusContractProperties", type: { @@ -3577,6 +3553,30 @@ export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMap } }; +export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractCreateProperties", + type: { + name: "Composite", + className: "KeyVaultContractCreateProperties", + modelProperties: { + secretIdentifier: { + serializedName: "secretIdentifier", + xmlName: "secretIdentifier", + type: { + name: "String" + } + }, + identityClientId: { + serializedName: "identityClientId", + xmlName: "identityClientId", + type: { + name: "String" + } + } + } + } +}; + export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { serializedName: "CertificateCreateOrUpdateParameters", type: { @@ -3609,121 +3609,503 @@ export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { } }; -export const ContentTypeCollection: coreClient.CompositeMapper = { - serializedName: "ContentTypeCollection", +export const ConnectivityCheckRequest: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckRequest", type: { name: "Composite", - className: "ContentTypeCollection", + className: "ConnectivityCheckRequest", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "ContentTypeContract", + source: { + serializedName: "source", + xmlName: "source", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContentTypeContract" - } - } + name: "Composite", + className: "ConnectivityCheckRequestSource" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + destination: { + serializedName: "destination", + xmlName: "destination", + type: { + name: "Composite", + className: "ConnectivityCheckRequestDestination" + } + }, + preferredIPVersion: { + serializedName: "preferredIPVersion", + xmlName: "preferredIPVersion", + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { name: "String" } + }, + protocolConfiguration: { + serializedName: "protocolConfiguration", + xmlName: "protocolConfiguration", + type: { + name: "Composite", + className: "ConnectivityCheckRequestProtocolConfiguration" + } } } } }; -export const ContentItemCollection: coreClient.CompositeMapper = { - serializedName: "ContentItemCollection", +export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckRequestSource", type: { name: "Composite", - className: "ContentItemCollection", + className: "ConnectivityCheckRequestSource", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "ContentItemContract", + region: { + serializedName: "region", + required: true, + xmlName: "region", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContentItemContract" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + instance: { + serializedName: "instance", + xmlName: "instance", type: { - name: "String" + name: "Number" } } } } }; -export const DeletedServicesCollection: coreClient.CompositeMapper = { - serializedName: "DeletedServicesCollection", +export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckRequestDestination", type: { name: "Composite", - className: "DeletedServicesCollection", + className: "ConnectivityCheckRequestDestination", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "DeletedServiceContract", + address: { + serializedName: "address", + required: true, + xmlName: "address", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeletedServiceContract" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + port: { + serializedName: "port", + required: true, + xmlName: "port", type: { - name: "String" + name: "Number" } } } } }; -export const OperationListResult: coreClient.CompositeMapper = { - serializedName: "OperationListResult", +export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckRequestProtocolConfiguration", type: { name: "Composite", - className: "OperationListResult", + className: "ConnectivityCheckRequestProtocolConfiguration", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "Operation", + httpConfiguration: { + serializedName: "HTTPConfiguration", + xmlName: "HTTPConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" + name: "Composite", + className: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration" + } + } + } + } +}; + +export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = { + serializedName: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + type: { + name: "Composite", + className: "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + modelProperties: { + method: { + serializedName: "method", + xmlName: "method", + type: { + name: "String" + } + }, + validStatusCodes: { + serializedName: "validStatusCodes", + xmlName: "validStatusCodes", + xmlElementName: "ArrayItemschema", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + headers: { + serializedName: "headers", + xmlName: "headers", + xmlElementName: "HttpHeader", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpHeader" + } + } + } + } + } + } +}; + +export const HttpHeader: coreClient.CompositeMapper = { + serializedName: "HttpHeader", + type: { + name: "Composite", + className: "HttpHeader", + modelProperties: { + name: { + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + required: true, + xmlName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectivityCheckResponse: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckResponse", + type: { + name: "Composite", + className: "ConnectivityCheckResponse", + modelProperties: { + hops: { + serializedName: "hops", + readOnly: true, + xmlName: "hops", + xmlElementName: "ConnectivityHop", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityHop" + } + } + } + }, + connectionStatus: { + serializedName: "connectionStatus", + readOnly: true, + xmlName: "connectionStatus", + type: { + name: "String" + } + }, + avgLatencyInMs: { + serializedName: "avgLatencyInMs", + readOnly: true, + xmlName: "avgLatencyInMs", + type: { + name: "Number" + } + }, + minLatencyInMs: { + serializedName: "minLatencyInMs", + readOnly: true, + xmlName: "minLatencyInMs", + type: { + name: "Number" + } + }, + maxLatencyInMs: { + serializedName: "maxLatencyInMs", + readOnly: true, + xmlName: "maxLatencyInMs", + type: { + name: "Number" + } + }, + probesSent: { + serializedName: "probesSent", + readOnly: true, + xmlName: "probesSent", + type: { + name: "Number" + } + }, + probesFailed: { + serializedName: "probesFailed", + readOnly: true, + xmlName: "probesFailed", + type: { + name: "Number" + } + } + } + } +}; + +export const ConnectivityHop: coreClient.CompositeMapper = { + serializedName: "ConnectivityHop", + type: { + name: "Composite", + className: "ConnectivityHop", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", + type: { + name: "String" + } + }, + address: { + serializedName: "address", + readOnly: true, + xmlName: "address", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + readOnly: true, + xmlName: "resourceId", + type: { + name: "String" + } + }, + nextHopIds: { + serializedName: "nextHopIds", + readOnly: true, + xmlName: "nextHopIds", + xmlElementName: "ConnectivityHopNextHopIdsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + issues: { + serializedName: "issues", + readOnly: true, + xmlName: "issues", + xmlElementName: "ConnectivityIssue", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityIssue" + } + } + } + } + } + } +}; + +export const ConnectivityIssue: coreClient.CompositeMapper = { + serializedName: "ConnectivityIssue", + type: { + name: "Composite", + className: "ConnectivityIssue", + modelProperties: { + origin: { + serializedName: "origin", + readOnly: true, + xmlName: "origin", + type: { + name: "String" + } + }, + severity: { + serializedName: "severity", + readOnly: true, + xmlName: "severity", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", + type: { + name: "String" + } + }, + context: { + serializedName: "context", + readOnly: true, + xmlName: "context", + xmlElementName: "IssueContext", + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } + } + } +}; + +export const ContentTypeCollection: coreClient.CompositeMapper = { + serializedName: "ContentTypeCollection", + type: { + name: "Composite", + className: "ContentTypeCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ContentTypeContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContentTypeContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ContentItemCollection: coreClient.CompositeMapper = { + serializedName: "ContentItemCollection", + type: { + name: "Composite", + className: "ContentItemCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ContentItemContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContentItemContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DeletedServicesCollection: coreClient.CompositeMapper = { + serializedName: "DeletedServicesCollection", + type: { + name: "Composite", + className: "DeletedServicesCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "DeletedServiceContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeletedServiceContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "Operation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" } } } @@ -3964,76 +4346,34 @@ export const ApiManagementServiceBackupRestoreParameters: coreClient.CompositeMa name: "String" } }, - backupName: { - serializedName: "backupName", - required: true, - xmlName: "backupName", - type: { - name: "String" - } - }, - accessType: { - defaultValue: "AccessKey", - serializedName: "accessType", - xmlName: "accessType", - type: { - name: "String" - } - }, - accessKey: { - serializedName: "accessKey", - xmlName: "accessKey", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", - type: { - name: "String" - } - } - } - } -}; - -export const ApimResource: coreClient.CompositeMapper = { - serializedName: "ApimResource", - type: { - name: "Composite", - className: "ApimResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", + backupName: { + serializedName: "backupName", + required: true, + xmlName: "backupName", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", + accessType: { + defaultValue: "AccessKey", + serializedName: "accessType", + xmlName: "accessType", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", + accessKey: { + serializedName: "accessKey", + xmlName: "accessKey", type: { name: "String" } }, - tags: { - serializedName: "tags", - xmlName: "tags", + clientId: { + serializedName: "clientId", + xmlName: "clientId", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } @@ -4888,6 +5228,48 @@ export const SystemData: coreClient.CompositeMapper = { } }; +export const ApimResource: coreClient.CompositeMapper = { + serializedName: "ApimResource", + type: { + name: "Composite", + className: "ApimResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + xmlName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + export const ApiManagementServiceListResult: coreClient.CompositeMapper = { serializedName: "ApiManagementServiceListResult", type: { @@ -8839,215 +9221,26 @@ export const UserTokenParameters: coreClient.CompositeMapper = { name: "Enum", allowedValues: ["primary", "secondary"] } - }, - expiry: { - serializedName: "properties.expiry", - xmlName: "properties.expiry", - type: { - name: "DateTime" - } - } - } - } -}; - -export const UserTokenResult: coreClient.CompositeMapper = { - serializedName: "UserTokenResult", - type: { - name: "Composite", - className: "UserTokenResult", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const ConnectivityCheckRequest: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequest", - type: { - name: "Composite", - className: "ConnectivityCheckRequest", - modelProperties: { - source: { - serializedName: "source", - xmlName: "source", - type: { - name: "Composite", - className: "ConnectivityCheckRequestSource" - } - }, - destination: { - serializedName: "destination", - xmlName: "destination", - type: { - name: "Composite", - className: "ConnectivityCheckRequestDestination" - } - }, - preferredIPVersion: { - serializedName: "preferredIPVersion", - xmlName: "preferredIPVersion", - type: { - name: "String" - } - }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", - type: { - name: "String" - } - }, - protocolConfiguration: { - serializedName: "protocolConfiguration", - xmlName: "protocolConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration" - } - } - } - } -}; - -export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestSource", - type: { - name: "Composite", - className: "ConnectivityCheckRequestSource", - modelProperties: { - region: { - serializedName: "region", - required: true, - xmlName: "region", - type: { - name: "String" - } - }, - instance: { - serializedName: "instance", - xmlName: "instance", - type: { - name: "Number" - } - } - } - } -}; - -export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestDestination", - type: { - name: "Composite", - className: "ConnectivityCheckRequestDestination", - modelProperties: { - address: { - serializedName: "address", - required: true, - xmlName: "address", - type: { - name: "String" - } - }, - port: { - serializedName: "port", - required: true, - xmlName: "port", - type: { - name: "Number" - } - } - } - } -}; - -export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestProtocolConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration", - modelProperties: { - httpConfiguration: { - serializedName: "HTTPConfiguration", - xmlName: "HTTPConfiguration", - type: { - name: "Composite", - className: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration" - } - } - } - } -}; - -export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = { - serializedName: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", - modelProperties: { - method: { - serializedName: "method", - xmlName: "method", - type: { - name: "String" - } - }, - validStatusCodes: { - serializedName: "validStatusCodes", - xmlName: "validStatusCodes", - xmlElementName: "ArrayItemschema", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - headers: { - serializedName: "headers", - xmlName: "headers", - xmlElementName: "HttpHeader", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HttpHeader" - } - } + }, + expiry: { + serializedName: "properties.expiry", + xmlName: "properties.expiry", + type: { + name: "DateTime" } } } } }; -export const HttpHeader: coreClient.CompositeMapper = { - serializedName: "HttpHeader", +export const UserTokenResult: coreClient.CompositeMapper = { + serializedName: "UserTokenResult", type: { name: "Composite", - className: "HttpHeader", + className: "UserTokenResult", modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - }, value: { serializedName: "value", - required: true, xmlName: "value", type: { name: "String" @@ -9057,71 +9250,67 @@ export const HttpHeader: coreClient.CompositeMapper = { } }; -export const ConnectivityCheckResponse: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckResponse", +export const ApiRevisionInfoContract: coreClient.CompositeMapper = { + serializedName: "ApiRevisionInfoContract", type: { name: "Composite", - className: "ConnectivityCheckResponse", + className: "ApiRevisionInfoContract", modelProperties: { - hops: { - serializedName: "hops", - readOnly: true, - xmlName: "hops", - xmlElementName: "ConnectivityHop", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityHop" - } - } - } - }, - connectionStatus: { - serializedName: "connectionStatus", - readOnly: true, - xmlName: "connectionStatus", + sourceApiId: { + serializedName: "sourceApiId", + xmlName: "sourceApiId", type: { name: "String" } }, - avgLatencyInMs: { - serializedName: "avgLatencyInMs", - readOnly: true, - xmlName: "avgLatencyInMs", + apiVersionName: { + constraints: { + MaxLength: 100 + }, + serializedName: "apiVersionName", + xmlName: "apiVersionName", type: { - name: "Number" + name: "String" } }, - minLatencyInMs: { - serializedName: "minLatencyInMs", - readOnly: true, - xmlName: "minLatencyInMs", + apiRevisionDescription: { + constraints: { + MaxLength: 256 + }, + serializedName: "apiRevisionDescription", + xmlName: "apiRevisionDescription", type: { - name: "Number" + name: "String" } }, - maxLatencyInMs: { - serializedName: "maxLatencyInMs", - readOnly: true, - xmlName: "maxLatencyInMs", + apiVersionSet: { + serializedName: "apiVersionSet", + xmlName: "apiVersionSet", type: { - name: "Number" + name: "Composite", + className: "ApiVersionSetContractDetails" } - }, - probesSent: { - serializedName: "probesSent", - readOnly: true, - xmlName: "probesSent", + } + } + } +}; + +export const QuotaCounterValueContract: coreClient.CompositeMapper = { + serializedName: "QuotaCounterValueContract", + type: { + name: "Composite", + className: "QuotaCounterValueContract", + modelProperties: { + callsCount: { + serializedName: "value.callsCount", + xmlName: "value.callsCount", type: { name: "Number" } }, - probesFailed: { - serializedName: "probesFailed", - readOnly: true, - xmlName: "probesFailed", + kbTransferred: { + serializedName: "value.kbTransferred", + xmlName: "value.kbTransferred", type: { name: "Number" } @@ -9130,49 +9319,56 @@ export const ConnectivityCheckResponse: coreClient.CompositeMapper = { } }; -export const ConnectivityHop: coreClient.CompositeMapper = { - serializedName: "ConnectivityHop", +export const ApiContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractProperties", type: { name: "Composite", - className: "ConnectivityHop", + className: "ApiContractProperties", modelProperties: { - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", + ...ApiEntityBaseContract.type.modelProperties, + sourceApiId: { + serializedName: "sourceApiId", + xmlName: "sourceApiId", type: { name: "String" } }, - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - address: { - serializedName: "address", - readOnly: true, - xmlName: "address", + serviceUrl: { + constraints: { + MaxLength: 2000 + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", - readOnly: true, - xmlName: "resourceId", + path: { + constraints: { + MaxLength: 400 + }, + serializedName: "path", + required: true, + xmlName: "path", type: { name: "String" } }, - nextHopIds: { - serializedName: "nextHopIds", - readOnly: true, - xmlName: "nextHopIds", - xmlElementName: "ConnectivityHopNextHopIdsItem", + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", type: { name: "Sequence", element: { @@ -9182,66 +9378,66 @@ export const ConnectivityHop: coreClient.CompositeMapper = { } } }, - issues: { - serializedName: "issues", - readOnly: true, - xmlName: "issues", - xmlElementName: "ConnectivityIssue", + apiVersionSet: { + serializedName: "apiVersionSet", + xmlName: "apiVersionSet", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityIssue" - } - } + name: "Composite", + className: "ApiVersionSetContractDetails" } } } } }; -export const ConnectivityIssue: coreClient.CompositeMapper = { - serializedName: "ConnectivityIssue", +export const ApiContractUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractUpdateProperties", type: { name: "Composite", - className: "ConnectivityIssue", + className: "ApiContractUpdateProperties", modelProperties: { - origin: { - serializedName: "origin", - readOnly: true, - xmlName: "origin", + ...ApiEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - severity: { - serializedName: "severity", - readOnly: true, - xmlName: "severity", + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", + path: { + constraints: { + MaxLength: 400 + }, + serializedName: "path", + xmlName: "path", type: { name: "String" } }, - context: { - serializedName: "context", - readOnly: true, - xmlName: "context", - xmlElementName: "IssueContext", + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", type: { name: "Sequence", element: { type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } @@ -9250,69 +9446,63 @@ export const ConnectivityIssue: coreClient.CompositeMapper = { } }; -export const ApiRevisionInfoContract: coreClient.CompositeMapper = { - serializedName: "ApiRevisionInfoContract", +export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiTagResourceContractProperties", type: { name: "Composite", - className: "ApiRevisionInfoContract", + className: "ApiTagResourceContractProperties", modelProperties: { - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", + ...ApiEntityBaseContract.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String" + } + }, + name: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "name", + xmlName: "name", type: { name: "String" } }, - apiVersionName: { + serviceUrl: { constraints: { - MaxLength: 100 + MaxLength: 2000, + MinLength: 1 }, - serializedName: "apiVersionName", - xmlName: "apiVersionName", + serializedName: "serviceUrl", + xmlName: "serviceUrl", type: { name: "String" } }, - apiRevisionDescription: { + path: { constraints: { - MaxLength: 256 + MaxLength: 400 }, - serializedName: "apiRevisionDescription", - xmlName: "apiRevisionDescription", + serializedName: "path", + xmlName: "path", type: { name: "String" } }, - apiVersionSet: { - serializedName: "apiVersionSet", - xmlName: "apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } -}; - -export const QuotaCounterValueContract: coreClient.CompositeMapper = { - serializedName: "QuotaCounterValueContract", - type: { - name: "Composite", - className: "QuotaCounterValueContract", - modelProperties: { - callsCount: { - serializedName: "value.callsCount", - xmlName: "value.callsCount", - type: { - name: "Number" - } - }, - kbTransferred: { - serializedName: "value.kbTransferred", - xmlName: "value.kbTransferred", + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -12103,240 +12293,46 @@ export const OperationResultContract: coreClient.CompositeMapper = { allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] } }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", - type: { - name: "DateTime" - } - }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", - type: { - name: "DateTime" - } - }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", - type: { - name: "String" - } - }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } - }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "OperationResultLogItemContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationResultLogItemContract" - } - } - } - } - } - } -}; - -export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", - type: { - name: "Composite", - className: "TenantConfigurationSyncStateContract", - modelProperties: { - ...Resource.type.modelProperties, - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", - type: { - name: "String" - } - }, - commitId: { - serializedName: "properties.commitId", - xmlName: "properties.commitId", - type: { - name: "String" - } - }, - isExport: { - serializedName: "properties.isExport", - xmlName: "properties.isExport", - type: { - name: "Boolean" - } - }, - isSynced: { - serializedName: "properties.isSynced", - xmlName: "properties.isSynced", - type: { - name: "Boolean" - } - }, - isGitEnabled: { - serializedName: "properties.isGitEnabled", - xmlName: "properties.isGitEnabled", - type: { - name: "Boolean" - } - }, - syncDate: { - serializedName: "properties.syncDate", - xmlName: "properties.syncDate", - type: { - name: "DateTime" - } - }, - configurationChangeDate: { - serializedName: "properties.configurationChangeDate", - xmlName: "properties.configurationChangeDate", - type: { - name: "DateTime" - } - }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", - type: { - name: "String" - } - } - } - } -}; - -export const ApiContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractProperties", - type: { - name: "Composite", - className: "ApiContractProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", - type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - required: true, - xmlName: "path", - type: { - name: "String" - } - }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersionSet: { - serializedName: "apiVersionSet", - xmlName: "apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } -}; - -export const ApiContractUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractUpdateProperties", - type: { - name: "Composite", - className: "ApiContractUpdateProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "String" + name: "DateTime" } }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", type: { - name: "String" + name: "DateTime" } }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - xmlName: "path", + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { name: "String" } }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponseBody" + } + }, + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "OperationResultLogItemContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "OperationResultLogItemContract" } } } @@ -12345,63 +12341,67 @@ export const ApiContractUpdateProperties: coreClient.CompositeMapper = { } }; -export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiTagResourceContractProperties", +export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { + serializedName: "TenantConfigurationSyncStateContract", type: { name: "Composite", - className: "ApiTagResourceContractProperties", + className: "TenantConfigurationSyncStateContract", modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", + ...Resource.type.modelProperties, + branch: { + serializedName: "properties.branch", + xmlName: "properties.branch", type: { name: "String" } }, - name: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "name", - xmlName: "name", + commitId: { + serializedName: "properties.commitId", + xmlName: "properties.commitId", type: { name: "String" } }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", + isExport: { + serializedName: "properties.isExport", + xmlName: "properties.isExport", type: { - name: "String" + name: "Boolean" } }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - xmlName: "path", + isSynced: { + serializedName: "properties.isSynced", + xmlName: "properties.isSynced", type: { - name: "String" + name: "Boolean" } }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", + isGitEnabled: { + serializedName: "properties.isGitEnabled", + xmlName: "properties.isGitEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" + } + }, + syncDate: { + serializedName: "properties.syncDate", + xmlName: "properties.syncDate", + type: { + name: "DateTime" + } + }, + configurationChangeDate: { + serializedName: "properties.configurationChangeDate", + xmlName: "properties.configurationChangeDate", + type: { + name: "DateTime" + } + }, + lastOperationId: { + serializedName: "properties.lastOperationId", + xmlName: "properties.lastOperationId", + type: { + name: "String" } } } @@ -12932,6 +12932,70 @@ export const KeyVaultContractProperties: coreClient.CompositeMapper = { } }; +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", + type: { + name: "Composite", + className: "ApiManagementServiceProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherEmail", + required: true, + xmlName: "publisherEmail", + type: { + name: "String" + } + }, + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherName", + required: true, + xmlName: "publisherName", + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateProperties", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherEmail", + xmlName: "publisherEmail", + type: { + name: "String" + } + }, + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherName", + xmlName: "publisherName", + type: { + name: "String" + } + } + } + } +}; + export const ApiManagementServiceResource: coreClient.CompositeMapper = { serializedName: "ApiManagementServiceResource", type: { @@ -13578,70 +13642,6 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } }; -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", - type: { - name: "Composite", - className: "ApiManagementServiceProperties", - modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - required: true, - xmlName: "publisherEmail", - type: { - name: "String" - } - }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", - type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", - type: { - name: "Composite", - className: "ApiManagementServiceUpdateProperties", - modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", - type: { - name: "String" - } - }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - xmlName: "publisherName", - type: { - name: "String" - } - } - } - } -}; - export const UserContractProperties: coreClient.CompositeMapper = { serializedName: "UserContractProperties", type: { diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 666021f7f3f3..154cf17b3420 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -36,6 +36,7 @@ import { CacheContract as CacheContractMapper, CacheUpdateParameters as CacheUpdateParametersMapper, CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper, + ConnectivityCheckRequest as ConnectivityCheckRequestMapper, ApiManagementServiceBackupRestoreParameters as ApiManagementServiceBackupRestoreParametersMapper, ApiManagementServiceResource as ApiManagementServiceResourceMapper, ApiManagementServiceUpdateParameters as ApiManagementServiceUpdateParametersMapper, @@ -74,8 +75,7 @@ import { SaveConfigurationParameter as SaveConfigurationParameterMapper, UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, - UserTokenParameters as UserTokenParametersMapper, - ConnectivityCheckRequest as ConnectivityCheckRequestMapper + UserTokenParameters as UserTokenParametersMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -196,7 +196,7 @@ export const expandApiVersionSet: OperationQueryParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-04-01-preview", + defaultValue: "2021-08-01", isConstant: true, serializedName: "api-version", type: { @@ -808,6 +808,11 @@ export const parameters23: OperationParameter = { mapper: CertificateCreateOrUpdateParametersMapper }; +export const connectivityCheckRequestParams: OperationParameter = { + parameterPath: "connectivityCheckRequestParams", + mapper: ConnectivityCheckRequestMapper +}; + export const contentTypeId: OperationURLParameter = { parameterPath: "contentTypeId", mapper: { @@ -1439,8 +1444,3 @@ export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: UserTokenParametersMapper }; - -export const connectivityCheckRequestParams: OperationParameter = { - parameterPath: "connectivityCheckRequestParams", - mapper: ConnectivityCheckRequestMapper -}; diff --git a/sdk/apimanagement/arm-apimanagement/test/apimanagement_examples.ts b/sdk/apimanagement/arm-apimanagement/test/apimanagement_examples.ts index 13bf191916a3..b3bd0812e7bd 100644 --- a/sdk/apimanagement/arm-apimanagement/test/apimanagement_examples.ts +++ b/sdk/apimanagement/arm-apimanagement/test/apimanagement_examples.ts @@ -10,7 +10,9 @@ import { env, record, RecorderEnvironmentSetup, - Recorder + Recorder, + delay, + isPlaybackMode } from "@azure-tools/test-recorder"; import * as assert from "assert"; import { ClientSecretCredential } from "@azure/identity"; @@ -33,6 +35,10 @@ const recorderEnvSetup: RecorderEnvironmentSetup = { queryParametersToSkip: [] }; +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + describe("Apimanagement test", () => { let recorder: Recorder; let subscriptionId: string; @@ -73,9 +79,8 @@ describe("Apimanagement test", () => { capacity: 1 }, publisherEmail: "foo@contoso.com", - publisherName: "foo", - - }); + publisherName: "foo" + },testPollingOptions); assert.equal(res.name,serviceName); }).timeout(3600000); @@ -103,12 +108,12 @@ describe("Apimanagement test", () => { customProperties: { "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "false" } - }); + },testPollingOptions); assert.equal(res.type,"Microsoft.ApiManagement/service"); break; }else { // The resource is activating - await sleep(300000); + await delay(300000) } } }).timeout(3600000); @@ -119,8 +124,8 @@ describe("Apimanagement test", () => { count++; const res = await client.apiManagementService.get(resourceGroupName,serviceName); if(res.provisioningState == "Succeeded"){ - const res = await client.apiManagementService.beginDeleteAndWait(resourceGroupName,serviceName); - const purge_resource = await client.deletedServices.beginPurgeAndWait(serviceName,location); + const res = await client.apiManagementService.beginDeleteAndWait(resourceGroupName,serviceName,testPollingOptions); + const purge_resource = await client.deletedServices.beginPurgeAndWait(serviceName,location,testPollingOptions); const resArray = new Array(); for await (let item of client.apiManagementService.listByResourceGroup(resourceGroupName)){ resArray.push(item); @@ -129,7 +134,7 @@ describe("Apimanagement test", () => { break; }else { // The resource is activating - await sleep(300000); + await delay(300000); } } }).timeout(3600000);