diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 01ec82f75f19..410be857b1e0 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -124,6 +124,7 @@ specifiers:
'@rush-temp/arm-serialconsole': file:./projects/arm-serialconsole.tgz
'@rush-temp/arm-servicebus': file:./projects/arm-servicebus.tgz
'@rush-temp/arm-servicefabric': file:./projects/arm-servicefabric.tgz
+ '@rush-temp/arm-servicefabricmesh': file:./projects/arm-servicefabricmesh.tgz
'@rush-temp/arm-servicemap': file:./projects/arm-servicemap.tgz
'@rush-temp/arm-signalr': file:./projects/arm-signalr.tgz
'@rush-temp/arm-sql': file:./projects/arm-sql.tgz
@@ -373,6 +374,7 @@ dependencies:
'@rush-temp/arm-serialconsole': file:projects/arm-serialconsole.tgz
'@rush-temp/arm-servicebus': file:projects/arm-servicebus.tgz
'@rush-temp/arm-servicefabric': file:projects/arm-servicefabric.tgz
+ '@rush-temp/arm-servicefabricmesh': file:projects/arm-servicefabricmesh.tgz
'@rush-temp/arm-servicemap': file:projects/arm-servicemap.tgz
'@rush-temp/arm-signalr': file:projects/arm-signalr.tgz
'@rush-temp/arm-sql': file:projects/arm-sql.tgz
@@ -11574,6 +11576,31 @@ packages:
- supports-color
dev: false
+ file:projects/arm-servicefabricmesh.tgz:
+ resolution: {integrity: sha512-fX1BWofLbvDC8GMb9kHI7/KaqPBRKmT6k2WFfpd9uNkQm+zRCFHcqAoi9v4A0xRczvE69o509UVe1oc9bj4WWQ==, tarball: file:projects/arm-servicefabricmesh.tgz}
+ name: '@rush-temp/arm-servicefabricmesh'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ 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
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
file:projects/arm-servicemap.tgz:
resolution: {integrity: sha512-Y8Q9PXQu+1Piyy9trUSdIgpFJWoPNbyg4HI2WT5Y0Dy2bOIMOGu78n1hSGenwXtBJ4KqX5U6fkZkR0k/X8mZoA==, tarball: file:projects/arm-servicemap.tgz}
name: '@rush-temp/arm-servicemap'
diff --git a/rush.json b/rush.json
index d6659d8a126d..db4d61fc1fbf 100644
--- a/rush.json
+++ b/rush.json
@@ -1554,6 +1554,11 @@
"packageName": "@azure/arm-vmwarecloudsimple",
"projectFolder": "sdk/vmwarecloudsimple/arm-vmwarecloudsimple",
"versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-servicefabricmesh",
+ "projectFolder": "sdk/servicefabricmesh/arm-servicefabricmesh",
+ "versionPolicyName": "management"
}
]
}
\ No newline at end of file
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md b/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md
new file mode 100644
index 000000000000..f01670242edf
--- /dev/null
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 3.0.0-beta.1 (2022-01-24)
+
+The package of @azure/arm-servicefabricmesh is using our next generation design principles since version 3.0.0-beta.1, which contains breaking changes.
+
+To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
+
+To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
+
+To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/LICENSE b/sdk/servicefabricmesh/arm-servicefabricmesh/LICENSE
new file mode 100644
index 000000000000..5d1d36e0af80
--- /dev/null
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2022 Microsoft
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/README.md b/sdk/servicefabricmesh/arm-servicefabricmesh/README.md
index 45623aaaacc3..5fc1c686afe0 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/README.md
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/README.md
@@ -1,99 +1,98 @@
-## Azure ServiceFabricMeshManagementClient SDK for JavaScript
+# Azure ServiceFabricMeshManagement client library for JavaScript
-This package contains an isomorphic SDK for ServiceFabricMeshManagementClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ServiceFabricMeshManagement client.
+
+Service Fabric Mesh Management Client
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmesh/arm-servicefabricmesh) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-servicefabricmesh) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-servicefabricmesh?view=azure-node-preview) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### Currently supported environments
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
-- Latest versions of Safari, Chrome, Edge, and Firefox.
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
-```
+- An [Azure subscription][azure_sub].
+
+### Install the `@azure/arm-servicefabricmesh` package
+
+Install the Azure ServiceFabricMeshManagement client library for JavaScript with `npm`:
+
+```bash
npm install @azure/arm-servicefabricmesh
```
-### How to use
+### Create and authenticate a `ServiceFabricMeshManagementClient`
-#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
+To create a client object to access the Azure ServiceFabricMeshManagement API, you will need the `endpoint` of your Azure ServiceFabricMeshManagement resource and a `credential`. The Azure ServiceFabricMeshManagement client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure ServiceFabricMeshManagement resource in the [Azure Portal][azure_portal].
-##### Install @azure/ms-rest-nodeauth
+You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
-```
-npm install @azure/ms-rest-nodeauth
-```
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-##### Sample code
-
-```ts
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
-import { ServiceFabricMeshManagementClient, ServiceFabricMeshManagementModels, ServiceFabricMeshManagementMappers } from "@azure/arm-servicefabricmesh";
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new ServiceFabricMeshManagementClient(creds, subscriptionId);
- client.operations.list().then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
+```bash
+npm install @azure/identity
```
-#### browser - Authentication, client creation and list operations as an example written in JavaScript.
+You will also need to **register a new AAD application and grant access to Azure ServiceFabricMeshManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
+Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
-##### Install @azure/ms-rest-browserauth
+For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
+```javascript
+const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh");
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new ServiceFabricMeshManagementClient(new DefaultAzureCredential(), subscriptionId);
```
-npm install @azure/ms-rest-browserauth
-```
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-servicefabricmesh sample
-
-
-
-
-
-
-
-
+
+### 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
+
+### ServiceFabricMeshManagementClient
+
+`ServiceFabricMeshManagementClient` is the primary interface for developers using the Azure ServiceFabricMeshManagement client library. Explore the methods on this client object to understand the different features of the Azure ServiceFabricMeshManagement service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
-## Related projects
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+## Next steps
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
+## Related projects
+
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)

+
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json b/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json
new file mode 100644
index 000000000000..8f0b7b7b591d
--- /dev/null
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "2a2aa10bc5e772934d22628faf45a53055ee96c6",
+ "readme": "specification/servicefabricmesh/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
+}
\ No newline at end of file
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/api-extractor.json b/sdk/servicefabricmesh/arm-servicefabricmesh/api-extractor.json
new file mode 100644
index 000000000000..b191ca2d759a
--- /dev/null
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/api-extractor.json
@@ -0,0 +1,31 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": {
+ "enabled": true
+ },
+ "apiReport": {
+ "enabled": true,
+ "reportFolder": "./review"
+ },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-servicefabricmesh.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": {
+ "default": {
+ "logLevel": "none"
+ }
+ },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": {
+ "logLevel": "none"
+ },
+ "ae-unresolved-link": {
+ "logLevel": "none"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json
index fdd1e11017b6..edf0c759f9da 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json
@@ -1,12 +1,18 @@
{
"name": "@azure/arm-servicefabricmesh",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "ServiceFabricMeshManagementClient Library with typescript type definitions for node.js and browser.",
- "version": "2.1.0",
+ "description": "A generated SDK for ServiceFabricMeshManagementClient.",
+ "version": "3.0.0-beta.1",
+ "engines": {
+ "node": ">=12.0.0"
+ },
"dependencies": {
- "@azure/ms-rest-azure-js": "^1.1.0",
- "@azure/ms-rest-js": "^1.1.0",
- "tslib": "^1.9.3"
+ "@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",
@@ -16,41 +22,79 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/arm-servicefabricmesh.js",
- "module": "./esm/serviceFabricMeshManagementClient.js",
- "types": "./esm/serviceFabricMeshManagementClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-servicefabricmesh.d.ts",
"devDependencies": {
- "typescript": "^3.1.1",
- "rollup": "^0.66.2",
- "rollup-plugin-node-resolve": "^3.4.0",
- "uglify-js": "^3.4.9"
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
+ "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",
+ "cross-env": "^7.0.2"
},
- "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/servicefabricmesh/arm-servicefabricmesh",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmesh/arm-servicefabricmesh",
"repository": {
"type": "git",
- "url": "https://github.com/azure/azure-sdk-for-js.git"
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
- "url": "https://github.com/azure/azure-sdk-for-js/issues"
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
+ "README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-servicefabricmesh.js.map'\" -o ./dist/arm-servicefabricmesh.min.js ./dist/arm-servicefabricmesh.js",
- "prepack": "npm install && npm run build"
+ "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": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "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 --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
-}
+}
\ No newline at end of file
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md b/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md
new file mode 100644
index 000000000000..67766db0ec1a
--- /dev/null
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md
@@ -0,0 +1,1210 @@
+## API Report File for "@azure/arm-servicefabricmesh"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+
+// @public
+export type AddRemoveReplicaScalingMechanism = AutoScalingMechanism & {
+ kind: "AddRemoveReplica";
+ minCount: number;
+ maxCount: number;
+ scaleIncrement: number;
+};
+
+// @public
+export interface Application {
+ create(resourceGroupName: string, applicationResourceName: string, applicationResourceDescription: ApplicationResourceDescription, options?: ApplicationCreateOptionalParams): Promise;
+ delete(resourceGroupName: string, applicationResourceName: string, options?: ApplicationDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, applicationResourceName: string, options?: ApplicationGetOptionalParams): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: ApplicationListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listBySubscription(options?: ApplicationListBySubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface ApplicationCreateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationCreateResponse = ApplicationResourceDescription;
+
+// @public
+export interface ApplicationDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface ApplicationGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationGetResponse = ApplicationResourceDescription;
+
+// @public
+export interface ApplicationListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationListByResourceGroupNextResponse = ApplicationResourceDescriptionList;
+
+// @public
+export interface ApplicationListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationListByResourceGroupResponse = ApplicationResourceDescriptionList;
+
+// @public
+export interface ApplicationListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationListBySubscriptionNextResponse = ApplicationResourceDescriptionList;
+
+// @public
+export interface ApplicationListBySubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationListBySubscriptionResponse = ApplicationResourceDescriptionList;
+
+// @public
+export interface ApplicationProperties {
+ debugParams?: string;
+ description?: string;
+ diagnostics?: DiagnosticsDescription;
+ readonly healthState?: HealthState;
+ readonly serviceNames?: string[];
+ services?: ServiceResourceDescription[];
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ readonly unhealthyEvaluation?: string;
+}
+
+// @public
+export type ApplicationResourceDescription = TrackedResource & {
+ readonly provisioningState?: string;
+ description?: string;
+ services?: ServiceResourceDescription[];
+ diagnostics?: DiagnosticsDescription;
+ debugParams?: string;
+ readonly serviceNames?: string[];
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ readonly healthState?: HealthState;
+ readonly unhealthyEvaluation?: string;
+};
+
+// @public
+export interface ApplicationResourceDescriptionList {
+ nextLink?: string;
+ value?: ApplicationResourceDescription[];
+}
+
+// @public
+export type ApplicationResourceProperties = ProvisionedResourceProperties & ApplicationProperties & {};
+
+// @public
+export type ApplicationScopedVolume = VolumeReference & {
+ creationParameters: ApplicationScopedVolumeCreationParametersUnion;
+};
+
+// @public
+export interface ApplicationScopedVolumeCreationParameters {
+ description?: string;
+ kind: "ServiceFabricVolumeDisk";
+}
+
+// @public
+export type ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk = ApplicationScopedVolumeCreationParameters & {
+ kind: "ServiceFabricVolumeDisk";
+ sizeDisk: SizeTypes;
+};
+
+// @public (undocumented)
+export type ApplicationScopedVolumeCreationParametersUnion = ApplicationScopedVolumeCreationParameters | ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk;
+
+// @public
+export type ApplicationScopedVolumeKind = string;
+
+// @public
+export interface AutoScalingMechanism {
+ kind: "AddRemoveReplica";
+}
+
+// @public
+export type AutoScalingMechanismKind = string;
+
+// @public (undocumented)
+export type AutoScalingMechanismUnion = AutoScalingMechanism | AddRemoveReplicaScalingMechanism;
+
+// @public
+export interface AutoScalingMetric {
+ kind: "Resource";
+}
+
+// @public
+export type AutoScalingMetricKind = string;
+
+// @public (undocumented)
+export type AutoScalingMetricUnion = AutoScalingMetric | AutoScalingResourceMetric;
+
+// @public
+export interface AutoScalingPolicy {
+ mechanism: AutoScalingMechanismUnion;
+ name: string;
+ trigger: AutoScalingTriggerUnion;
+}
+
+// @public
+export type AutoScalingResourceMetric = AutoScalingMetric & {
+ kind: "Resource";
+ name: AutoScalingResourceMetricName;
+};
+
+// @public
+export type AutoScalingResourceMetricName = string;
+
+// @public
+export interface AutoScalingTrigger {
+ kind: "AverageLoad";
+}
+
+// @public
+export type AutoScalingTriggerKind = string;
+
+// @public (undocumented)
+export type AutoScalingTriggerUnion = AutoScalingTrigger | AverageLoadScalingTrigger;
+
+// @public
+export interface AvailableOperationDisplay {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export type AverageLoadScalingTrigger = AutoScalingTrigger & {
+ kind: "AverageLoad";
+ metric: AutoScalingMetricUnion;
+ lowerLoadThreshold: number;
+ upperLoadThreshold: number;
+ scaleIntervalInSeconds: number;
+};
+
+// @public
+export type AzureInternalMonitoringPipelineSinkDescription = DiagnosticsSinkProperties & {
+ kind: "AzureInternalMonitoringPipeline";
+ accountName?: string;
+ namespace?: string;
+ maConfigUrl?: string;
+ fluentdConfigUrl?: any;
+ autoKeyConfigUrl?: string;
+};
+
+// @public
+export interface CodePackage {
+ getContainerLogs(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, options?: CodePackageGetContainerLogsOptionalParams): Promise;
+}
+
+// @public
+export interface CodePackageGetContainerLogsOptionalParams extends coreClient.OperationOptions {
+ tail?: number;
+}
+
+// @public
+export type CodePackageGetContainerLogsResponse = ContainerLogs;
+
+// @public
+export interface ContainerCodePackageProperties {
+ commands?: string[];
+ diagnostics?: DiagnosticsRef;
+ endpoints?: EndpointProperties[];
+ entrypoint?: string;
+ environmentVariables?: EnvironmentVariable[];
+ image: string;
+ imageRegistryCredential?: ImageRegistryCredential;
+ readonly instanceView?: ContainerInstanceView;
+ labels?: ContainerLabel[];
+ name: string;
+ reliableCollectionsRefs?: ReliableCollectionsRef[];
+ resources: ResourceRequirements;
+ settings?: Setting[];
+ volumeRefs?: VolumeReference[];
+ volumes?: ApplicationScopedVolume[];
+}
+
+// @public
+export interface ContainerEvent {
+ count?: number;
+ firstTimestamp?: string;
+ lastTimestamp?: string;
+ message?: string;
+ name?: string;
+ type?: string;
+}
+
+// @public
+export interface ContainerInstanceView {
+ currentState?: ContainerState;
+ events?: ContainerEvent[];
+ previousState?: ContainerState;
+ restartCount?: number;
+}
+
+// @public
+export interface ContainerLabel {
+ name: string;
+ value: string;
+}
+
+// @public
+export interface ContainerLogs {
+ content?: string;
+}
+
+// @public
+export interface ContainerState {
+ detailStatus?: string;
+ exitCode?: string;
+ finishTime?: Date;
+ startTime?: Date;
+ state?: string;
+}
+
+// @public
+export interface DiagnosticsDescription {
+ defaultSinkRefs?: string[];
+ enabled?: boolean;
+ sinks?: DiagnosticsSinkPropertiesUnion[];
+}
+
+// @public
+export interface DiagnosticsRef {
+ enabled?: boolean;
+ sinkRefs?: string[];
+}
+
+// @public
+export type DiagnosticsSinkKind = string;
+
+// @public
+export interface DiagnosticsSinkProperties {
+ description?: string;
+ kind: "AzureInternalMonitoringPipeline";
+ name?: string;
+}
+
+// @public (undocumented)
+export type DiagnosticsSinkPropertiesUnion = DiagnosticsSinkProperties | AzureInternalMonitoringPipelineSinkDescription;
+
+// @public
+export interface EndpointProperties {
+ name: string;
+ port?: number;
+}
+
+// @public
+export interface EndpointRef {
+ name?: string;
+}
+
+// @public
+export interface EnvironmentVariable {
+ name?: string;
+ value?: string;
+}
+
+// @public
+export interface ErrorDetailsModel {
+ // (undocumented)
+ code: string;
+ message: string;
+}
+
+// @public
+export interface ErrorErrorModel {
+ // (undocumented)
+ code: string;
+ details?: ErrorDetailsModel[];
+ // (undocumented)
+ innerError?: string;
+ message?: string;
+}
+
+// @public
+export interface ErrorModel {
+ error: ErrorErrorModel;
+}
+
+// @public
+export interface Gateway {
+ create(resourceGroupName: string, gatewayResourceName: string, gatewayResourceDescription: GatewayResourceDescription, options?: GatewayCreateOptionalParams): Promise;
+ delete(resourceGroupName: string, gatewayResourceName: string, options?: GatewayDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, gatewayResourceName: string, options?: GatewayGetOptionalParams): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: GatewayListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listBySubscription(options?: GatewayListBySubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface GatewayCreateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type GatewayCreateResponse = GatewayResourceDescription;
+
+// @public
+export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface GatewayDestination {
+ applicationName: string;
+ endpointName: string;
+ serviceName: string;
+}
+
+// @public
+export interface GatewayGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type GatewayGetResponse = GatewayResourceDescription;
+
+// @public
+export interface GatewayListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type GatewayListByResourceGroupNextResponse = GatewayResourceDescriptionList;
+
+// @public
+export interface GatewayListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type GatewayListByResourceGroupResponse = GatewayResourceDescriptionList;
+
+// @public
+export interface GatewayListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type GatewayListBySubscriptionNextResponse = GatewayResourceDescriptionList;
+
+// @public
+export interface GatewayListBySubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type GatewayListBySubscriptionResponse = GatewayResourceDescriptionList;
+
+// @public
+export interface GatewayProperties {
+ description?: string;
+ destinationNetwork: NetworkRef;
+ http?: HttpConfig[];
+ readonly ipAddress?: string;
+ sourceNetwork: NetworkRef;
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ tcp?: TcpConfig[];
+}
+
+// @public
+export type GatewayResourceDescription = TrackedResource & {
+ readonly provisioningState?: string;
+ description?: string;
+ sourceNetwork: NetworkRef;
+ destinationNetwork: NetworkRef;
+ tcp?: TcpConfig[];
+ http?: HttpConfig[];
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ readonly ipAddress?: string;
+};
+
+// @public
+export interface GatewayResourceDescriptionList {
+ nextLink?: string;
+ value?: GatewayResourceDescription[];
+}
+
+// @public
+export type GatewayResourceProperties = ProvisionedResourceProperties & GatewayProperties & {};
+
+// @public
+export type HeaderMatchType = string;
+
+// @public
+export type HealthState = string;
+
+// @public
+export interface HttpConfig {
+ hosts: HttpHostConfig[];
+ name: string;
+ port: number;
+}
+
+// @public
+export interface HttpHostConfig {
+ name: string;
+ routes: HttpRouteConfig[];
+}
+
+// @public
+export interface HttpRouteConfig {
+ destination: GatewayDestination;
+ match: HttpRouteMatchRule;
+ name: string;
+}
+
+// @public
+export interface HttpRouteMatchHeader {
+ name: string;
+ type?: HeaderMatchType;
+ value?: string;
+}
+
+// @public
+export interface HttpRouteMatchPath {
+ rewrite?: string;
+ type: PathMatchType;
+ value: string;
+}
+
+// @public
+export interface HttpRouteMatchRule {
+ headers?: HttpRouteMatchHeader[];
+ path: HttpRouteMatchPath;
+}
+
+// @public
+export interface ImageRegistryCredential {
+ password?: string;
+ server: string;
+ username: string;
+}
+
+// @public
+export type InlinedValueSecretResourceProperties = SecretResourceProperties & {};
+
+// @public
+export enum KnownApplicationScopedVolumeKind {
+ ServiceFabricVolumeDisk = "ServiceFabricVolumeDisk"
+}
+
+// @public
+export enum KnownAutoScalingMechanismKind {
+ AddRemoveReplica = "AddRemoveReplica"
+}
+
+// @public
+export enum KnownAutoScalingMetricKind {
+ Resource = "Resource"
+}
+
+// @public
+export enum KnownAutoScalingResourceMetricName {
+ Cpu = "cpu",
+ MemoryInGB = "memoryInGB"
+}
+
+// @public
+export enum KnownAutoScalingTriggerKind {
+ AverageLoad = "AverageLoad"
+}
+
+// @public
+export enum KnownDiagnosticsSinkKind {
+ AzureInternalMonitoringPipeline = "AzureInternalMonitoringPipeline",
+ Invalid = "Invalid"
+}
+
+// @public
+export enum KnownHeaderMatchType {
+ // (undocumented)
+ Exact = "exact"
+}
+
+// @public
+export enum KnownHealthState {
+ Error = "Error",
+ Invalid = "Invalid",
+ Ok = "Ok",
+ Unknown = "Unknown",
+ Warning = "Warning"
+}
+
+// @public
+export enum KnownNetworkKind {
+ Local = "Local"
+}
+
+// @public
+export enum KnownOperatingSystemType {
+ Linux = "Linux",
+ Windows = "Windows"
+}
+
+// @public
+export enum KnownPathMatchType {
+ // (undocumented)
+ Prefix = "prefix"
+}
+
+// @public
+export enum KnownResourceStatus {
+ Creating = "Creating",
+ Deleting = "Deleting",
+ Failed = "Failed",
+ Ready = "Ready",
+ Unknown = "Unknown",
+ Upgrading = "Upgrading"
+}
+
+// @public
+export enum KnownSecretKind {
+ InlinedValue = "inlinedValue"
+}
+
+// @public
+export enum KnownSizeTypes {
+ // (undocumented)
+ Large = "Large",
+ // (undocumented)
+ Medium = "Medium",
+ // (undocumented)
+ Small = "Small"
+}
+
+// @public
+export enum KnownVolumeProvider {
+ SFAzureFile = "SFAzureFile"
+}
+
+// @public
+export type LocalNetworkResourceProperties = NetworkResourceProperties & {
+ networkAddressPrefix?: string;
+};
+
+// @public
+export interface ManagedProxyResource {
+ readonly id?: string;
+ name?: string;
+ readonly type?: string;
+}
+
+// @public
+export interface Network {
+ create(resourceGroupName: string, networkResourceName: string, networkResourceDescription: NetworkResourceDescription, options?: NetworkCreateOptionalParams): Promise;
+ delete(resourceGroupName: string, networkResourceName: string, options?: NetworkDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, networkResourceName: string, options?: NetworkGetOptionalParams): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: NetworkListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listBySubscription(options?: NetworkListBySubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface NetworkCreateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type NetworkCreateResponse = NetworkResourceDescription;
+
+// @public
+export interface NetworkDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface NetworkGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type NetworkGetResponse = NetworkResourceDescription;
+
+// @public
+export type NetworkKind = string;
+
+// @public
+export interface NetworkListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type NetworkListByResourceGroupNextResponse = NetworkResourceDescriptionList;
+
+// @public
+export interface NetworkListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type NetworkListByResourceGroupResponse = NetworkResourceDescriptionList;
+
+// @public
+export interface NetworkListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type NetworkListBySubscriptionNextResponse = NetworkResourceDescriptionList;
+
+// @public
+export interface NetworkListBySubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type NetworkListBySubscriptionResponse = NetworkResourceDescriptionList;
+
+// @public
+export interface NetworkRef {
+ endpointRefs?: EndpointRef[];
+ name?: string;
+}
+
+// @public
+export type NetworkResourceDescription = TrackedResource & {
+ properties: NetworkResourcePropertiesUnion;
+};
+
+// @public
+export interface NetworkResourceDescriptionList {
+ nextLink?: string;
+ value?: NetworkResourceDescription[];
+}
+
+// @public
+export type NetworkResourceProperties = NetworkResourcePropertiesBase & {
+ description?: string;
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+};
+
+// @public
+export type NetworkResourcePropertiesBase = ProvisionedResourceProperties & {
+ kind: NetworkKind;
+};
+
+// @public (undocumented)
+export type NetworkResourcePropertiesBaseUnion = NetworkResourcePropertiesBase | NetworkResourcePropertiesUnion;
+
+// @public (undocumented)
+export type NetworkResourcePropertiesUnion = NetworkResourceProperties | LocalNetworkResourceProperties;
+
+// @public
+export type OperatingSystemType = string;
+
+// @public
+export interface OperationListResult {
+ readonly nextLink?: string;
+ value?: OperationResult[];
+}
+
+// @public
+export interface OperationResult {
+ display?: AvailableOperationDisplay;
+ name?: string;
+ nextLink?: string;
+ origin?: string;
+}
+
+// @public
+export interface Operations {
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListNextResponse = OperationListResult;
+
+// @public
+export interface OperationsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListResponse = OperationListResult;
+
+// @public
+export type PathMatchType = string;
+
+// @public
+export interface ProvisionedResourceProperties {
+ readonly provisioningState?: string;
+}
+
+// @public
+export type ProxyResource = Resource & {};
+
+// @public
+export interface ReliableCollectionsRef {
+ doNotPersistState?: boolean;
+ name: string;
+}
+
+// @public
+export interface Resource {
+ readonly id?: string;
+ readonly name?: string;
+ readonly type?: string;
+}
+
+// @public
+export interface ResourceLimits {
+ cpu?: number;
+ memoryInGB?: number;
+}
+
+// @public
+export interface ResourceRequests {
+ cpu: number;
+ memoryInGB: number;
+}
+
+// @public
+export interface ResourceRequirements {
+ limits?: ResourceLimits;
+ requests: ResourceRequests;
+}
+
+// @public
+export type ResourceStatus = string;
+
+// @public
+export interface Secret {
+ create(resourceGroupName: string, secretResourceName: string, secretResourceDescription: SecretResourceDescription, options?: SecretCreateOptionalParams): Promise;
+ delete(resourceGroupName: string, secretResourceName: string, options?: SecretDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, secretResourceName: string, options?: SecretGetOptionalParams): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: SecretListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listBySubscription(options?: SecretListBySubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface SecretCreateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretCreateResponse = SecretResourceDescription;
+
+// @public
+export interface SecretDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface SecretGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretGetResponse = SecretResourceDescription;
+
+// @public
+export type SecretKind = string;
+
+// @public
+export interface SecretListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretListByResourceGroupNextResponse = SecretResourceDescriptionList;
+
+// @public
+export interface SecretListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretListByResourceGroupResponse = SecretResourceDescriptionList;
+
+// @public
+export interface SecretListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretListBySubscriptionNextResponse = SecretResourceDescriptionList;
+
+// @public
+export interface SecretListBySubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretListBySubscriptionResponse = SecretResourceDescriptionList;
+
+// @public
+export type SecretResourceDescription = TrackedResource & {
+ properties: SecretResourcePropertiesUnion;
+};
+
+// @public
+export interface SecretResourceDescriptionList {
+ nextLink?: string;
+ value?: SecretResourceDescription[];
+}
+
+// @public
+export type SecretResourceProperties = SecretResourcePropertiesBase & {
+ description?: string;
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ contentType?: string;
+};
+
+// @public
+export type SecretResourcePropertiesBase = ProvisionedResourceProperties & {
+ kind: SecretKind;
+};
+
+// @public (undocumented)
+export type SecretResourcePropertiesBaseUnion = SecretResourcePropertiesBase | SecretResourcePropertiesUnion;
+
+// @public (undocumented)
+export type SecretResourcePropertiesUnion = SecretResourceProperties | InlinedValueSecretResourceProperties;
+
+// @public
+export interface SecretValue {
+ value?: string;
+}
+
+// @public
+export interface SecretValueCreateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretValueCreateResponse = SecretValueResourceDescription;
+
+// @public
+export interface SecretValueDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface SecretValueGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretValueGetResponse = SecretValueResourceDescription;
+
+// @public
+export interface SecretValueListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretValueListNextResponse = SecretValueResourceDescriptionList;
+
+// @public
+export interface SecretValueListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretValueListResponse = SecretValueResourceDescriptionList;
+
+// @public
+export interface SecretValueListValueOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SecretValueListValueResponse = SecretValue;
+
+// @public
+export interface SecretValueOperations {
+ create(resourceGroupName: string, secretResourceName: string, secretValueResourceName: string, secretValueResourceDescription: SecretValueResourceDescription, options?: SecretValueCreateOptionalParams): Promise;
+ delete(resourceGroupName: string, secretResourceName: string, secretValueResourceName: string, options?: SecretValueDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, secretResourceName: string, secretValueResourceName: string, options?: SecretValueGetOptionalParams): Promise;
+ list(resourceGroupName: string, secretResourceName: string, options?: SecretValueListOptionalParams): PagedAsyncIterableIterator;
+ listValue(resourceGroupName: string, secretResourceName: string, secretValueResourceName: string, options?: SecretValueListValueOptionalParams): Promise;
+}
+
+// @public
+export interface SecretValueProperties {
+ value?: string;
+}
+
+// @public
+export type SecretValueResourceDescription = TrackedResource & {
+ readonly provisioningState?: string;
+ value?: string;
+};
+
+// @public
+export interface SecretValueResourceDescriptionList {
+ nextLink?: string;
+ value?: SecretValueResourceDescription[];
+}
+
+// @public
+export type SecretValueResourceProperties = ProvisionedResourceProperties & SecretValueProperties & {};
+
+// @public
+export interface Service {
+ get(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, options?: ServiceGetOptionalParams): Promise;
+ list(resourceGroupName: string, applicationResourceName: string, options?: ServiceListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public (undocumented)
+export class ServiceFabricMeshManagementClient extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ServiceFabricMeshManagementClientOptionalParams);
+ // (undocumented)
+ apiVersion: string;
+ // (undocumented)
+ application: Application;
+ // (undocumented)
+ codePackage: CodePackage;
+ // (undocumented)
+ gateway: Gateway;
+ // (undocumented)
+ network: Network;
+ // (undocumented)
+ operations: Operations;
+ // (undocumented)
+ secret: Secret;
+ // (undocumented)
+ secretValueOperations: SecretValueOperations;
+ // (undocumented)
+ service: Service;
+ // (undocumented)
+ serviceReplica: ServiceReplica;
+ // (undocumented)
+ subscriptionId: string;
+ // (undocumented)
+ volume: Volume;
+}
+
+// @public
+export interface ServiceFabricMeshManagementClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ apiVersion?: string;
+ endpoint?: string;
+}
+
+// @public
+export interface ServiceGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ServiceGetResponse = ServiceResourceDescription;
+
+// @public
+export interface ServiceListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ServiceListNextResponse = ServiceResourceDescriptionList;
+
+// @public
+export interface ServiceListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ServiceListResponse = ServiceResourceDescriptionList;
+
+// @public
+export interface ServiceProperties {
+ autoScalingPolicies?: AutoScalingPolicy[];
+ description?: string;
+ readonly healthState?: HealthState;
+ replicaCount?: number;
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ readonly unhealthyEvaluation?: string;
+}
+
+// @public
+export interface ServiceReplica {
+ get(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, replicaName: string, options?: ServiceReplicaGetOptionalParams): Promise;
+ list(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, options?: ServiceReplicaListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export type ServiceReplicaDescription = ServiceReplicaProperties & {
+ replicaName: string;
+};
+
+// @public
+export interface ServiceReplicaDescriptionList {
+ nextLink?: string;
+ value?: ServiceReplicaDescription[];
+}
+
+// @public
+export interface ServiceReplicaGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ServiceReplicaGetResponse = ServiceReplicaDescription;
+
+// @public
+export interface ServiceReplicaListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ServiceReplicaListNextResponse = ServiceReplicaDescriptionList;
+
+// @public
+export interface ServiceReplicaListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ServiceReplicaListResponse = ServiceReplicaDescriptionList;
+
+// @public
+export interface ServiceReplicaProperties {
+ codePackages: ContainerCodePackageProperties[];
+ diagnostics?: DiagnosticsRef;
+ networkRefs?: NetworkRef[];
+ osType: OperatingSystemType;
+}
+
+// @public
+export type ServiceResourceDescription = ManagedProxyResource & {
+ readonly provisioningState?: string;
+ osType: OperatingSystemType;
+ codePackages: ContainerCodePackageProperties[];
+ networkRefs?: NetworkRef[];
+ diagnostics?: DiagnosticsRef;
+ description?: string;
+ replicaCount?: number;
+ autoScalingPolicies?: AutoScalingPolicy[];
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ readonly healthState?: HealthState;
+ readonly unhealthyEvaluation?: string;
+};
+
+// @public
+export interface ServiceResourceDescriptionList {
+ nextLink?: string;
+ value?: ServiceResourceDescription[];
+}
+
+// @public
+export type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & ServiceProperties & {};
+
+// @public
+export interface Setting {
+ name?: string;
+ value?: string;
+}
+
+// @public
+export type SizeTypes = string;
+
+// @public
+export interface TcpConfig {
+ destination: GatewayDestination;
+ name: string;
+ port: number;
+}
+
+// @public
+export type TrackedResource = Resource & {
+ tags?: {
+ [propertyName: string]: string;
+ };
+ location: string;
+};
+
+// @public
+export interface Volume {
+ create(resourceGroupName: string, volumeResourceName: string, volumeResourceDescription: VolumeResourceDescription, options?: VolumeCreateOptionalParams): Promise;
+ delete(resourceGroupName: string, volumeResourceName: string, options?: VolumeDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, volumeResourceName: string, options?: VolumeGetOptionalParams): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: VolumeListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listBySubscription(options?: VolumeListBySubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface VolumeCreateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VolumeCreateResponse = VolumeResourceDescription;
+
+// @public
+export interface VolumeDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface VolumeGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VolumeGetResponse = VolumeResourceDescription;
+
+// @public
+export interface VolumeListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VolumeListByResourceGroupNextResponse = VolumeResourceDescriptionList;
+
+// @public
+export interface VolumeListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VolumeListByResourceGroupResponse = VolumeResourceDescriptionList;
+
+// @public
+export interface VolumeListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VolumeListBySubscriptionNextResponse = VolumeResourceDescriptionList;
+
+// @public
+export interface VolumeListBySubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VolumeListBySubscriptionResponse = VolumeResourceDescriptionList;
+
+// @public
+export interface VolumeProperties {
+ azureFileParameters?: VolumeProviderParametersAzureFile;
+ description?: string;
+ provider: VolumeProvider;
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+}
+
+// @public
+export type VolumeProvider = string;
+
+// @public
+export interface VolumeProviderParametersAzureFile {
+ accountKey?: string;
+ accountName: string;
+ shareName: string;
+}
+
+// @public
+export interface VolumeReference {
+ destinationPath: string;
+ name: string;
+ readOnly?: boolean;
+}
+
+// @public
+export type VolumeResourceDescription = TrackedResource & {
+ readonly provisioningState?: string;
+ description?: string;
+ readonly status?: ResourceStatus;
+ readonly statusDetails?: string;
+ provider: VolumeProvider;
+ azureFileParameters?: VolumeProviderParametersAzureFile;
+};
+
+// @public
+export interface VolumeResourceDescriptionList {
+ nextLink?: string;
+ value?: VolumeResourceDescription[];
+}
+
+// @public
+export type VolumeResourceProperties = ProvisionedResourceProperties & VolumeProperties & {};
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/rollup.config.js b/sdk/servicefabricmesh/arm-servicefabricmesh/rollup.config.js
index 1cf206c99b54..9be1955eb7f1 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/rollup.config.js
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/rollup.config.js
@@ -1,31 +1,188 @@
-import nodeResolve from "rollup-plugin-node-resolve";
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
/**
- * @type {import('rollup').RollupFileOptions}
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
*/
-const config = {
- input: './esm/serviceFabricMeshManagementClient.js',
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
- output: {
- file: "./dist/arm-servicefabricmesh.js",
- format: "umd",
- name: "Azure.ArmServicefabricmesh",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
},
- banner: `/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */`
- },
- plugins: [
- nodeResolve({ module: true })
- ]
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/index.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/index.ts
new file mode 100644
index 000000000000..f1fa17540658
--- /dev/null
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/index.ts
@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+///
+export * from "./models";
+export { ServiceFabricMeshManagementClient } from "./serviceFabricMeshManagementClient";
+export * from "./operationsInterfaces";
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/applicationMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/applicationMappers.ts
deleted file mode 100644
index 70d45dfe0b98..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/applicationMappers.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- ApplicationResourceDescription,
- TrackedResource,
- Resource,
- BaseResource,
- ServiceResourceDescription,
- ManagedProxyResource,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- NetworkRef,
- EndpointRef,
- AutoScalingPolicy,
- AutoScalingTrigger,
- AutoScalingMechanism,
- DiagnosticsDescription,
- DiagnosticsSinkProperties,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- ApplicationResourceDescriptionList,
- ProxyResource,
- SecretResourceDescription,
- SecretResourceProperties,
- SecretResourcePropertiesBase,
- ProvisionedResourceProperties,
- SecretValueResourceDescription,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- VolumeResourceDescription,
- VolumeProviderParametersAzureFile,
- NetworkResourcePropertiesBase,
- NetworkResourceDescription,
- NetworkResourceProperties,
- GatewayResourceDescription,
- TcpConfig,
- GatewayDestination,
- HttpConfig,
- HttpHostConfig,
- HttpRouteConfig,
- HttpRouteMatchRule,
- HttpRouteMatchPath,
- HttpRouteMatchHeader,
- AzureInternalMonitoringPipelineSinkDescription,
- AddRemoveReplicaScalingMechanism,
- AverageLoadScalingTrigger,
- AutoScalingMetric,
- InlinedValueSecretResourceProperties,
- LocalNetworkResourceProperties,
- AutoScalingResourceMetric
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/codePackageMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/codePackageMappers.ts
deleted file mode 100644
index ca05214d1b8f..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/codePackageMappers.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- ContainerLogs,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/gatewayMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/gatewayMappers.ts
deleted file mode 100644
index b6bd6aa1e1a5..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/gatewayMappers.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- GatewayResourceDescription,
- TrackedResource,
- Resource,
- BaseResource,
- NetworkRef,
- EndpointRef,
- TcpConfig,
- GatewayDestination,
- HttpConfig,
- HttpHostConfig,
- HttpRouteConfig,
- HttpRouteMatchRule,
- HttpRouteMatchPath,
- HttpRouteMatchHeader,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- GatewayResourceDescriptionList,
- ProxyResource,
- ManagedProxyResource,
- SecretResourceDescription,
- SecretResourceProperties,
- SecretResourcePropertiesBase,
- ProvisionedResourceProperties,
- SecretValueResourceDescription,
- VolumeResourceDescription,
- VolumeProviderParametersAzureFile,
- NetworkResourcePropertiesBase,
- NetworkResourceDescription,
- NetworkResourceProperties,
- ServiceResourceDescription,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- AutoScalingPolicy,
- AutoScalingTrigger,
- AutoScalingMechanism,
- ApplicationResourceDescription,
- DiagnosticsDescription,
- DiagnosticsSinkProperties,
- AddRemoveReplicaScalingMechanism,
- AverageLoadScalingTrigger,
- AutoScalingMetric,
- InlinedValueSecretResourceProperties,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- LocalNetworkResourceProperties,
- AzureInternalMonitoringPipelineSinkDescription,
- AutoScalingResourceMetric
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts
index c77c1f8e4038..586a772f3006 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts
@@ -1,3097 +1,1603 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
-
-export { BaseResource, CloudError };
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import * as coreClient from "@azure/core-client";
+
+export type ApplicationScopedVolumeCreationParametersUnion =
+ | ApplicationScopedVolumeCreationParameters
+ | ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk;
+export type AutoScalingTriggerUnion =
+ | AutoScalingTrigger
+ | AverageLoadScalingTrigger;
+export type AutoScalingMechanismUnion =
+ | AutoScalingMechanism
+ | AddRemoveReplicaScalingMechanism;
+export type DiagnosticsSinkPropertiesUnion =
+ | DiagnosticsSinkProperties
+ | AzureInternalMonitoringPipelineSinkDescription;
+export type AutoScalingMetricUnion =
+ | AutoScalingMetric
+ | AutoScalingResourceMetric;
+export type SecretResourcePropertiesBaseUnion =
+ | SecretResourcePropertiesBase
+ | SecretResourcePropertiesUnion;
+export type NetworkResourcePropertiesBaseUnion =
+ | NetworkResourcePropertiesBase
+ | NetworkResourcePropertiesUnion;
+export type SecretResourcePropertiesUnion =
+ | SecretResourceProperties
+ | InlinedValueSecretResourceProperties;
+export type NetworkResourcePropertiesUnion =
+ | NetworkResourceProperties
+ | LocalNetworkResourceProperties;
+
+/** Describes the result of the request to list Service Fabric operations. */
+export interface OperationListResult {
+ /** List of Service Fabric operations supported by the Microsoft.ServiceFabric resource provider. */
+ value?: OperationResult[];
+ /**
+ * URL to get the next set of operation list results if there are any.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly nextLink?: string;
+}
+/** List of operations available at the listed Azure resource provider. */
+export interface OperationResult {
+ /** The name of the operation. */
+ name?: string;
+ /** The object that represents the operation. */
+ display?: AvailableOperationDisplay;
+ /** Origin result */
+ origin?: string;
+ /** The URL to use for getting the next set of results. */
+ nextLink?: string;
+}
-/**
- * @interface
- * An interface representing AvailableOperationDisplay.
- * An operation available at the listed Azure resource provider.
- *
- */
+/** An operation available at the listed Azure resource provider. */
export interface AvailableOperationDisplay {
- /**
- * @member {string} [provider] Name of the operation provider.
- */
+ /** Name of the operation provider. */
provider?: string;
- /**
- * @member {string} [resource] Name of the resource on which the operation is
- * available.
- */
+ /** Name of the resource on which the operation is available. */
resource?: string;
- /**
- * @member {string} [operation] Name of the available operation.
- */
+ /** Name of the available operation. */
operation?: string;
- /**
- * @member {string} [description] Description of the available operation.
- */
+ /** Description of the available operation. */
description?: string;
}
-/**
- * @interface
- * An interface representing ErrorDetailsModel.
- * Error model details information
- *
- */
-export interface ErrorDetailsModel {
- /**
- * @member {string} code
- */
- code: string;
- /**
- * @member {string} message Error message.
- */
- message: string;
+/** The error details. */
+export interface ErrorModel {
+ /** Error model information */
+ error: ErrorErrorModel;
}
-/**
- * @interface
- * An interface representing ErrorErrorModel.
- * Error model information
- *
- */
+/** Error model information */
export interface ErrorErrorModel {
- /**
- * @member {string} code
- */
code: string;
- /**
- * @member {string} [message] Error message.
- */
+ /** Error message. */
message?: string;
- /**
- * @member {string} [innerError]
- */
innerError?: string;
- /**
- * @member {ErrorDetailsModel[]} [details] List of error message details.
- */
+ /** List of error message details. */
details?: ErrorDetailsModel[];
}
-/**
- * @interface
- * An interface representing ErrorModel.
- * The error details.
- *
- */
-export interface ErrorModel {
- /**
- * @member {ErrorErrorModel} error Error model information
- */
- error: ErrorErrorModel;
-}
-
-/**
- * @interface
- * An interface representing OperationResult.
- * List of operations available at the listed Azure resource provider.
- *
- */
-export interface OperationResult {
- /**
- * @member {string} [name] The name of the operation.
- */
- name?: string;
- /**
- * @member {AvailableOperationDisplay} [display] The object that represents
- * the operation.
- */
- display?: AvailableOperationDisplay;
- /**
- * @member {string} [origin] Origin result
- */
- origin?: string;
- /**
- * @member {string} [nextLink] The URL to use for getting the next set of
- * results.
- */
- nextLink?: string;
+/** Error model details information */
+export interface ErrorDetailsModel {
+ code: string;
+ /** Error message. */
+ message: string;
}
-/**
- * @interface
- * An interface representing ProvisionedResourceProperties.
- * Describes common properties of a provisioned resource.
- *
- */
+/** Describes common properties of a provisioned resource. */
export interface ProvisionedResourceProperties {
/**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * State of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: string;
}
-/**
- * @interface
- * An interface representing Resource.
- * The resource model definition for Azure Resource Manager resource.
- *
- * @extends BaseResource
- */
-export interface Resource extends BaseResource {
+/** The resource model definition for Azure Resource Manager resource. */
+export interface Resource {
/**
- * @member {string} [id] Fully qualified identifier 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.**
+ * Fully qualified identifier 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;
/**
- * @member {string} [name] The name of the resource
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The name of the resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
- * @member {string} [type] The type of the resource. Ex-
- * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The type of the resource. Ex- 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;
}
-/**
- * @interface
- * An interface representing ProxyResource.
- * The resource model definition for Azure Resource Manager proxy resource. It
- * will have everything other than required location and tags.
- *
- * @extends Resource
- */
-export interface ProxyResource extends Resource {
+/** A pageable list of secret resources. */
+export interface SecretResourceDescriptionList {
+ /** One page of the list. */
+ value?: SecretResourceDescription[];
+ /** URI to fetch the next page of the list. */
+ nextLink?: string;
}
-/**
- * @interface
- * An interface representing ManagedProxyResource.
- * The resource model definition for Azure Resource Manager proxy resource. It
- * will have everything other than required location and tags. This proxy
- * resource is explicitly created or updated by including it in the parent
- * resource.
- *
- * @extends BaseResource
- */
-export interface ManagedProxyResource extends BaseResource {
- /**
- * @member {string} [id] Fully qualified identifier 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;
- /**
- * @member {string} [name] The name of the resource
- */
- name?: string;
- /**
- * @member {string} [type] The type of the resource. Ex-
- * 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;
+/** This type describes properties of secret value resource. */
+export interface SecretValueProperties {
+ /** The actual value of the secret. */
+ value?: string;
}
-/**
- * @interface
- * An interface representing TrackedResource.
- * The resource model definition for Azure Resource Manager tracked top-level
- * resource.
- *
- * @extends Resource
- */
-export interface TrackedResource extends Resource {
- /**
- * @member {{ [propertyName: string]: string }} [tags] Resource tags.
- */
- tags?: { [propertyName: string]: string };
- /**
- * @member {string} location The geo-location where the resource lives
- */
- location: string;
+/** A pageable list of values of a secret resource. The information does not include only the name of the value and not the actual unencrypted value. */
+export interface SecretValueResourceDescriptionList {
+ /** One page of the list. */
+ value?: SecretValueResourceDescription[];
+ /** URI to fetch the next page of the list. */
+ nextLink?: string;
}
-/**
- * Contains the possible cases for SecretResourcePropertiesBase.
- */
-export type SecretResourcePropertiesBaseUnion = SecretResourcePropertiesBase | SecretResourcePropertiesUnion;
-
-/**
- * @interface
- * An interface representing SecretResourcePropertiesBase.
- * This type describes the properties of a secret resource, including its kind.
- *
- */
-export interface SecretResourcePropertiesBase {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "SecretResourcePropertiesBase";
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
+/** This type represents the unencrypted value of the secret. */
+export interface SecretValue {
+ /** The actual value of the secret. */
+ value?: string;
}
-/**
- * Contains the possible cases for SecretResourceProperties.
- */
-export type SecretResourcePropertiesUnion = SecretResourceProperties | InlinedValueSecretResourceProperties;
-
-/**
- * @interface
- * An interface representing SecretResourceProperties.
- * Describes the properties of a secret resource.
- *
- */
-export interface SecretResourceProperties {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "SecretResourceProperties";
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {string} [description] User readable description of the secret.
- */
+/** Describes properties of a volume resource. */
+export interface VolumeProperties {
+ /** User readable description of the volume. */
description?: string;
/**
- * @member {ResourceStatus} [status] Status of the resource. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Status of the volume.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly status?: ResourceStatus;
/**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the secret.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Gives additional information about the current status of the volume.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly statusDetails?: string;
- /**
- * @member {string} [contentType] The type of the content stored in the
- * secret value. The value of this property is opaque to Service Fabric. Once
- * set, the value of this property cannot be changed.
- */
- contentType?: string;
+ /** Provider of the volume. */
+ provider: VolumeProvider;
+ /** This type describes a volume provided by an Azure Files file share. */
+ azureFileParameters?: VolumeProviderParametersAzureFile;
}
-/**
- * @interface
- * An interface representing InlinedValueSecretResourceProperties.
- * Describes the properties of a secret resource whose value is provided
- * explicitly as plaintext. The secret resource may have multiple values, each
- * being uniquely versioned. The secret value of each version is stored
- * encrypted, and delivered as plaintext into the context of applications
- * referencing it.
- *
- */
-export interface InlinedValueSecretResourceProperties {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "inlinedValue";
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {string} [description] User readable description of the secret.
- */
+/** This type describes a volume provided by an Azure Files file share. */
+export interface VolumeProviderParametersAzureFile {
+ /** Name of the Azure storage account for the File Share. */
+ accountName: string;
+ /** Access key of the Azure storage account for the File Share. */
+ accountKey?: string;
+ /** Name of the Azure Files file share that provides storage for the volume. */
+ shareName: string;
+}
+
+/** A pageable list of volume resources. */
+export interface VolumeResourceDescriptionList {
+ /** One page of the list. */
+ value?: VolumeResourceDescription[];
+ /** URI to fetch the next page of the list. */
+ nextLink?: string;
+}
+
+/** A pageable list of network resources. */
+export interface NetworkResourceDescriptionList {
+ /** One page of the list. */
+ value?: NetworkResourceDescription[];
+ /** URI to fetch the next page of the list. */
+ nextLink?: string;
+}
+
+/** Describes properties of a gateway resource. */
+export interface GatewayProperties {
+ /** User readable description of the gateway. */
description?: string;
+ /** Network the gateway should listen on for requests. */
+ sourceNetwork: NetworkRef;
+ /** Network that the Application is using. */
+ destinationNetwork: NetworkRef;
+ /** Configuration for tcp connectivity for this gateway. */
+ tcp?: TcpConfig[];
+ /** Configuration for http connectivity for this gateway. */
+ http?: HttpConfig[];
/**
- * @member {ResourceStatus} [status] Status of the resource. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Status of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly status?: ResourceStatus;
/**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the secret.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Gives additional information about the current status of the gateway.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly statusDetails?: string;
/**
- * @member {string} [contentType] The type of the content stored in the
- * secret value. The value of this property is opaque to Service Fabric. Once
- * set, the value of this property cannot be changed.
+ * IP address of the gateway. This is populated in the response and is ignored for incoming requests.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- contentType?: string;
+ readonly ipAddress?: string;
}
-/**
- * @interface
- * An interface representing SecretResourceDescription.
- * This type describes a secret resource.
- *
- * @extends TrackedResource
- */
-export interface SecretResourceDescription extends TrackedResource {
- /**
- * @member {SecretResourcePropertiesUnion} properties Describes the
- * properties of a secret resource.
- */
- properties: SecretResourcePropertiesUnion;
+/** Describes a network reference in a service. */
+export interface NetworkRef {
+ /** Name of the network */
+ name?: string;
+ /** A list of endpoints that are exposed on this network. */
+ endpointRefs?: EndpointRef[];
}
-/**
- * @interface
- * An interface representing SecretValue.
- * This type represents the unencrypted value of the secret.
- *
- */
-export interface SecretValue {
- /**
- * @member {string} [value] The actual value of the secret.
- */
- value?: string;
+/** Describes a reference to a service endpoint. */
+export interface EndpointRef {
+ /** Name of the endpoint. */
+ name?: string;
}
-/**
- * @interface
- * An interface representing SecretValueProperties.
- * This type describes properties of secret value resource.
- *
- */
-export interface SecretValueProperties {
- /**
- * @member {string} [value] The actual value of the secret.
- */
- value?: string;
+/** Describes the tcp configuration for external connectivity for this network. */
+export interface TcpConfig {
+ /** tcp gateway config name. */
+ name: string;
+ /** Specifies the port at which the service endpoint below needs to be exposed. */
+ port: number;
+ /** Describes destination endpoint for routing traffic. */
+ destination: GatewayDestination;
}
-/**
- * @interface
- * An interface representing SecretValueResourceDescription.
- * This type describes a value of a secret resource. The name of this resource
- * is the version identifier corresponding to this secret value.
- *
- * @extends TrackedResource
- */
-export interface SecretValueResourceDescription extends TrackedResource {
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {string} [value] The actual value of the secret.
- */
- value?: string;
+/** Describes destination endpoint for routing traffic. */
+export interface GatewayDestination {
+ /** Name of the service fabric Mesh application. */
+ applicationName: string;
+ /** service that contains the endpoint. */
+ serviceName: string;
+ /** name of the endpoint in the service. */
+ endpointName: string;
}
-/**
- * @interface
- * An interface representing VolumeProviderParametersAzureFile.
- * This type describes a volume provided by an Azure Files file share.
- *
- */
-export interface VolumeProviderParametersAzureFile {
- /**
- * @member {string} accountName Name of the Azure storage account for the
- * File Share.
- */
- accountName: string;
- /**
- * @member {string} [accountKey] Access key of the Azure storage account for
- * the File Share.
- */
- accountKey?: string;
- /**
- * @member {string} shareName Name of the Azure Files file share that
- * provides storage for the volume.
- */
- shareName: string;
+/** Describes the http configuration for external connectivity for this network. */
+export interface HttpConfig {
+ /** http gateway config name. */
+ name: string;
+ /** Specifies the port at which the service endpoint below needs to be exposed. */
+ port: number;
+ /** description for routing. */
+ hosts: HttpHostConfig[];
}
-/**
- * @interface
- * An interface representing VolumeProperties.
- * Describes properties of a volume resource.
- *
- */
-export interface VolumeProperties {
- /**
- * @member {string} [description] User readable description of the volume.
- */
- description?: string;
- /**
- * @member {ResourceStatus} [status] Status of the volume. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the volume.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
- /**
- * @member {VolumeProviderParametersAzureFile} [azureFileParameters] This
- * type describes a volume provided by an Azure Files file share.
- */
- azureFileParameters?: VolumeProviderParametersAzureFile;
+/** Describes the hostname properties for http routing. */
+export interface HttpHostConfig {
+ /** http hostname config name. */
+ name: string;
+ /** Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more specific before routes that can handle general cases. */
+ routes: HttpRouteConfig[];
}
-/**
- * @interface
- * An interface representing VolumeReference.
- * Describes a reference to a volume resource.
- *
- */
-export interface VolumeReference {
- /**
- * @member {string} name Name of the volume being referenced.
- */
+/** Describes the hostname properties for http routing. */
+export interface HttpRouteConfig {
+ /** http route name. */
name: string;
- /**
- * @member {boolean} [readOnly] The flag indicating whether the volume is
- * read only. Default is 'false'.
- */
- readOnly?: boolean;
- /**
- * @member {string} destinationPath The path within the container at which
- * the volume should be mounted. Only valid path characters are allowed.
- */
- destinationPath: string;
+ /** Describes a rule for http route matching. */
+ match: HttpRouteMatchRule;
+ /** Describes destination endpoint for routing traffic. */
+ destination: GatewayDestination;
}
-/**
- * Contains the possible cases for ApplicationScopedVolumeCreationParameters.
- */
-export type ApplicationScopedVolumeCreationParametersUnion = ApplicationScopedVolumeCreationParameters | ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk;
+/** Describes a rule for http route matching. */
+export interface HttpRouteMatchRule {
+ /** Path to match for routing. */
+ path: HttpRouteMatchPath;
+ /** headers and their values to match in request. */
+ headers?: HttpRouteMatchHeader[];
+}
-/**
- * @interface
- * An interface representing ApplicationScopedVolumeCreationParameters.
- * Describes parameters for creating application-scoped volumes.
- *
- */
-export interface ApplicationScopedVolumeCreationParameters {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "ApplicationScopedVolumeCreationParameters";
- /**
- * @member {string} [description] User readable description of the volume.
- */
- description?: string;
+/** Path to match for routing. */
+export interface HttpRouteMatchPath {
+ /** Uri path to match for request. */
+ value: string;
+ /** replacement string for matched part of the Uri. */
+ rewrite?: string;
+ /** how to match value in the Uri */
+ type: PathMatchType;
}
-/**
- * @interface
- * An interface representing ApplicationScopedVolume.
- * Describes a volume whose lifetime is scoped to the application's lifetime.
- *
- * @extends VolumeReference
- */
-export interface ApplicationScopedVolume extends VolumeReference {
- /**
- * @member {ApplicationScopedVolumeCreationParametersUnion}
- * creationParameters Describes parameters for creating application-scoped
- * volumes.
- */
- creationParameters: ApplicationScopedVolumeCreationParametersUnion;
+/** Describes header information for http route matching. */
+export interface HttpRouteMatchHeader {
+ /** Name of header to match in request. */
+ name: string;
+ /** Value of header to match in request. */
+ value?: string;
+ /** how to match header value */
+ type?: HeaderMatchType;
}
-/**
- * @interface
- * An interface representing ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk.
- * Describes parameters for creating application-scoped volumes provided by
- * Service Fabric Volume Disks
- *
- */
-export interface ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "ServiceFabricVolumeDisk";
- /**
- * @member {string} [description] User readable description of the volume.
- */
- description?: string;
- /**
- * @member {SizeTypes} sizeDisk Volume size. Possible values include:
- * 'Small', 'Medium', 'Large'
- */
- sizeDisk: SizeTypes;
+/** A pageable list of gateway resources. */
+export interface GatewayResourceDescriptionList {
+ /** One page of the list. */
+ value?: GatewayResourceDescription[];
+ /** URI to fetch the next page of the list. */
+ nextLink?: string;
}
-/**
- * @interface
- * An interface representing VolumeResourceDescription.
- * This type describes a volume resource.
- *
- * @extends TrackedResource
- */
-export interface VolumeResourceDescription extends TrackedResource {
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
+/** Describes properties of a application resource. */
+export interface ApplicationProperties {
+ /** User readable description of the application. */
+ description?: string;
+ /** Describes the services in the application. This property is used to create or modify services of the application. On get only the name of the service is returned. The service description can be obtained by querying for the service resource. */
+ services?: ServiceResourceDescription[];
+ /** Describes the diagnostics definition and usage for an application resource. */
+ diagnostics?: DiagnosticsDescription;
+ /** Internal - used by Visual Studio to setup the debugging session on the local development environment. */
+ debugParams?: string;
/**
- * @member {string} [description] User readable description of the volume.
+ * Names of the services in the application.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- description?: string;
+ readonly serviceNames?: string[];
/**
- * @member {ResourceStatus} [status] Status of the volume. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Status of the application.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly status?: ResourceStatus;
/**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the volume.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Gives additional information about the current status of the application.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly statusDetails?: string;
/**
- * @member {VolumeProviderParametersAzureFile} [azureFileParameters] This
- * type describes a volume provided by an Azure Files file share.
- */
- azureFileParameters?: VolumeProviderParametersAzureFile;
-}
-
-/**
- * Contains the possible cases for NetworkResourcePropertiesBase.
- */
-export type NetworkResourcePropertiesBaseUnion = NetworkResourcePropertiesBase | NetworkResourcePropertiesUnion;
-
-/**
- * @interface
- * An interface representing NetworkResourcePropertiesBase.
- * This type describes the properties of a network resource, including its
- * kind.
- *
- */
-export interface NetworkResourcePropertiesBase {
- /**
- * @member {string} kind Polymorphic Discriminator
+ * Describes the health state of an application resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- kind: "NetworkResourcePropertiesBase";
+ readonly healthState?: HealthState;
/**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * When the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly provisioningState?: string;
+ readonly unhealthyEvaluation?: string;
}
-/**
- * Contains the possible cases for NetworkResourceProperties.
- */
-export type NetworkResourcePropertiesUnion = NetworkResourceProperties | LocalNetworkResourceProperties;
-
-/**
- * @interface
- * An interface representing NetworkResourceProperties.
- * Describes properties of a network resource.
- *
- */
-export interface NetworkResourceProperties {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "NetworkResourceProperties";
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {string} [description] User readable description of the network.
- */
- description?: string;
- /**
- * @member {ResourceStatus} [status] Status of the network. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the network.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
+/** Describes the properties of a service replica. */
+export interface ServiceReplicaProperties {
+ /** The operation system required by the code in service. */
+ osType: OperatingSystemType;
+ /** Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.). */
+ codePackages: ContainerCodePackageProperties[];
+ /** The names of the private networks that this service needs to be part of. */
+ networkRefs?: NetworkRef[];
+ /** Reference to sinks in DiagnosticsDescription. */
+ diagnostics?: DiagnosticsRef;
}
-/**
- * @interface
- * An interface representing LocalNetworkResourceProperties.
- * Information about a Service Fabric container network local to a single
- * Service Fabric cluster.
- *
- */
-export interface LocalNetworkResourceProperties {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "Local";
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {string} [description] User readable description of the network.
- */
- description?: string;
- /**
- * @member {ResourceStatus} [status] Status of the network. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the network.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
+/** Describes a container and its runtime properties. */
+export interface ContainerCodePackageProperties {
+ /** The name of the code package. */
+ name: string;
+ /** The Container image to use. */
+ image: string;
+ /** Image registry credential. */
+ imageRegistryCredential?: ImageRegistryCredential;
+ /** Override for the default entry point in the container. */
+ entrypoint?: string;
+ /** Command array to execute within the container in exec form. */
+ commands?: string[];
+ /** The environment variables to set in this container */
+ environmentVariables?: EnvironmentVariable[];
+ /** The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets". */
+ settings?: Setting[];
+ /** The labels to set in this container. */
+ labels?: ContainerLabel[];
+ /** The endpoints exposed by this container. */
+ endpoints?: EndpointProperties[];
+ /** The resources required by this container. */
+ resources: ResourceRequirements;
+ /** Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime. */
+ volumeRefs?: VolumeReference[];
+ /** Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime. */
+ volumes?: ApplicationScopedVolume[];
+ /** Reference to sinks in DiagnosticsDescription. */
+ diagnostics?: DiagnosticsRef;
+ /** A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details. */
+ reliableCollectionsRefs?: ReliableCollectionsRef[];
/**
- * @member {string} [networkAddressPrefix] Address space for the local
- * container network.
+ * Runtime information of a container instance.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- networkAddressPrefix?: string;
+ readonly instanceView?: ContainerInstanceView;
}
-/**
- * @interface
- * An interface representing EndpointRef.
- * Describes a reference to a service endpoint.
- *
- */
-export interface EndpointRef {
- /**
- * @member {string} [name] Name of the endpoint.
- */
- name?: string;
+/** Image registry credential. */
+export interface ImageRegistryCredential {
+ /** Docker image registry server, without protocol such as `http` and `https`. */
+ server: string;
+ /** The username for the private registry. */
+ username: string;
+ /** The password for the private registry. The password is required for create or update operations, however it is not returned in the get or list operations. */
+ password?: string;
}
-/**
- * @interface
- * An interface representing NetworkRef.
- * Describes a network reference in a service.
- *
- */
-export interface NetworkRef {
- /**
- * @member {string} [name] Name of the network
- */
+/** Describes an environment variable for the container. */
+export interface EnvironmentVariable {
+ /** The name of the environment variable. */
name?: string;
- /**
- * @member {EndpointRef[]} [endpointRefs] A list of endpoints that are
- * exposed on this network.
- */
- endpointRefs?: EndpointRef[];
+ /** The value of the environment variable. */
+ value?: string;
}
-/**
- * @interface
- * An interface representing NetworkResourceDescription.
- * This type describes a network resource.
- *
- * @extends TrackedResource
- */
-export interface NetworkResourceDescription extends TrackedResource {
- /**
- * @member {NetworkResourcePropertiesUnion} properties Describes properties
- * of a network resource.
- */
- properties: NetworkResourcePropertiesUnion;
+/** Describes a setting for the container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets". */
+export interface Setting {
+ /** The name of the setting. */
+ name?: string;
+ /** The value of the setting. */
+ value?: string;
}
-/**
- * @interface
- * An interface representing GatewayDestination.
- * Describes destination endpoint for routing traffic.
- *
- */
-export interface GatewayDestination {
- /**
- * @member {string} applicationName Name of the service fabric Mesh
- * application.
- */
- applicationName: string;
- /**
- * @member {string} serviceName service that contains the endpoint.
- */
- serviceName: string;
- /**
- * @member {string} endpointName name of the endpoint in the service.
- */
- endpointName: string;
+/** Describes a container label. */
+export interface ContainerLabel {
+ /** The name of the container label. */
+ name: string;
+ /** The value of the container label. */
+ value: string;
}
-/**
- * @interface
- * An interface representing TcpConfig.
- * Describes the tcp configuration for external connectivity for this network.
- *
- */
-export interface TcpConfig {
- /**
- * @member {string} name tcp gateway config name.
- */
+/** Describes a container endpoint. */
+export interface EndpointProperties {
+ /** The name of the endpoint. */
name: string;
- /**
- * @member {number} port Specifies the port at which the service endpoint
- * below needs to be exposed.
- */
- port: number;
- /**
- * @member {GatewayDestination} destination Describes destination endpoint
- * for routing traffic.
- */
- destination: GatewayDestination;
+ /** Port used by the container. */
+ port?: number;
}
-/**
- * @interface
- * An interface representing HttpRouteMatchPath.
- * Path to match for routing.
- *
- */
-export interface HttpRouteMatchPath {
- /**
- * @member {string} value Uri path to match for request.
- */
- value: string;
- /**
- * @member {string} [rewrite] replacement string for matched part of the Uri.
- */
- rewrite?: string;
+/** This type describes the resource requirements for a container or a service. */
+export interface ResourceRequirements {
+ /** Describes the requested resources for a given container. */
+ requests: ResourceRequests;
+ /** Describes the maximum limits on the resources for a given container. */
+ limits?: ResourceLimits;
}
-/**
- * @interface
- * An interface representing HttpRouteMatchHeader.
- * Describes header information for http route matching.
- *
- */
-export interface HttpRouteMatchHeader {
- /**
- * @member {string} name Name of header to match in request.
- */
- name: string;
- /**
- * @member {string} [value] Value of header to match in request.
- */
- value?: string;
- /**
- * @member {HeaderMatchType} [type] how to match header value. Possible
- * values include: 'exact'
- */
- type?: HeaderMatchType;
+/** This type describes the requested resources for a given container. It describes the least amount of resources required for the container. A container can consume more than requested resources up to the specified limits before being restarted. Currently, the requested resources are treated as limits. */
+export interface ResourceRequests {
+ /** The memory request in GB for this container. */
+ memoryInGB: number;
+ /** Requested number of CPU cores. At present, only full cores are supported. */
+ cpu: number;
}
-/**
- * @interface
- * An interface representing HttpRouteMatchRule.
- * Describes a rule for http route matching.
- *
- */
-export interface HttpRouteMatchRule {
- /**
- * @member {HttpRouteMatchPath} path Path to match for routing.
- */
- path: HttpRouteMatchPath;
- /**
- * @member {HttpRouteMatchHeader[]} [headers] headers and their values to
- * match in request.
- */
- headers?: HttpRouteMatchHeader[];
+/** This type describes the resource limits for a given container. It describes the most amount of resources a container is allowed to use before being restarted. */
+export interface ResourceLimits {
+ /** The memory limit in GB. */
+ memoryInGB?: number;
+ /** CPU limits in cores. At present, only full cores are supported. */
+ cpu?: number;
}
-/**
- * @interface
- * An interface representing HttpRouteConfig.
- * Describes the hostname properties for http routing.
- *
- */
-export interface HttpRouteConfig {
- /**
- * @member {string} name http route name.
- */
+/** Describes a reference to a volume resource. */
+export interface VolumeReference {
+ /** Name of the volume being referenced. */
name: string;
- /**
- * @member {HttpRouteMatchRule} match Describes a rule for http route
- * matching.
- */
- match: HttpRouteMatchRule;
- /**
- * @member {GatewayDestination} destination Describes destination endpoint
- * for routing traffic.
- */
- destination: GatewayDestination;
+ /** The flag indicating whether the volume is read only. Default is 'false'. */
+ readOnly?: boolean;
+ /** The path within the container at which the volume should be mounted. Only valid path characters are allowed. */
+ destinationPath: string;
}
-/**
- * @interface
- * An interface representing HttpHostConfig.
- * Describes the hostname properties for http routing.
- *
- */
-export interface HttpHostConfig {
- /**
- * @member {string} name http hostname config name.
- */
- name: string;
- /**
- * @member {HttpRouteConfig[]} routes Route information to use for routing.
- * Routes are processed in the order they are specified. Specify routes that
- * are more specific before routes that can hamdle general cases.
- */
- routes: HttpRouteConfig[];
-}
-
-/**
- * @interface
- * An interface representing HttpConfig.
- * Describes the http configuration for external connectivity for this network.
- *
- */
-export interface HttpConfig {
- /**
- * @member {string} name http gateway config name.
- */
- name: string;
- /**
- * @member {number} port Specifies the port at which the service endpoint
- * below needs to be exposed.
- */
- port: number;
- /**
- * @member {HttpHostConfig[]} hosts description for routing.
- */
- hosts: HttpHostConfig[];
-}
-
-/**
- * @interface
- * An interface representing GatewayProperties.
- * Describes properties of a gateway resource.
- *
- */
-export interface GatewayProperties {
- /**
- * @member {string} [description] User readable description of the gateway.
- */
- description?: string;
- /**
- * @member {NetworkRef} sourceNetwork Network the gateway should listen on
- * for requests.
- */
- sourceNetwork: NetworkRef;
- /**
- * @member {NetworkRef} destinationNetwork Network that the Application is
- * using.
- */
- destinationNetwork: NetworkRef;
- /**
- * @member {TcpConfig[]} [tcp] Configuration for tcp connectivity for this
- * gateway.
- */
- tcp?: TcpConfig[];
- /**
- * @member {HttpConfig[]} [http] Configuration for http connectivity for this
- * gateway.
- */
- http?: HttpConfig[];
- /**
- * @member {ResourceStatus} [status] Status of the resource. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the gateway.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
- /**
- * @member {string} [ipAddress] IP address of the gateway. This is populated
- * in the response and is ignored for incoming requests.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly ipAddress?: string;
-}
-
-/**
- * @interface
- * An interface representing GatewayResourceDescription.
- * This type describes a gateway resource.
- *
- * @extends TrackedResource
- */
-export interface GatewayResourceDescription extends TrackedResource {
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {string} [description] User readable description of the gateway.
- */
+/** Describes parameters for creating application-scoped volumes. */
+export interface ApplicationScopedVolumeCreationParameters {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "ServiceFabricVolumeDisk";
+ /** User readable description of the volume. */
description?: string;
- /**
- * @member {NetworkRef} sourceNetwork Network the gateway should listen on
- * for requests.
- */
- sourceNetwork: NetworkRef;
- /**
- * @member {NetworkRef} destinationNetwork Network that the Application is
- * using.
- */
- destinationNetwork: NetworkRef;
- /**
- * @member {TcpConfig[]} [tcp] Configuration for tcp connectivity for this
- * gateway.
- */
- tcp?: TcpConfig[];
- /**
- * @member {HttpConfig[]} [http] Configuration for http connectivity for this
- * gateway.
- */
- http?: HttpConfig[];
- /**
- * @member {ResourceStatus} [status] Status of the resource. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the gateway.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
- /**
- * @member {string} [ipAddress] IP address of the gateway. This is populated
- * in the response and is ignored for incoming requests.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly ipAddress?: string;
-}
-
-/**
- * @interface
- * An interface representing ImageRegistryCredential.
- * Image registry credential.
- *
- */
-export interface ImageRegistryCredential {
- /**
- * @member {string} server Docker image registry server, without protocol
- * such as `http` and `https`.
- */
- server: string;
- /**
- * @member {string} username The username for the private registry.
- */
- username: string;
- /**
- * @member {string} [password] The password for the private registry. The
- * password is required for create or update operations, however it is not
- * returned in the get or list operations.
- */
- password?: string;
-}
-
-/**
- * @interface
- * An interface representing EnvironmentVariable.
- * Describes an environment variable for the container.
- *
- */
-export interface EnvironmentVariable {
- /**
- * @member {string} [name] The name of the environment variable.
- */
- name?: string;
- /**
- * @member {string} [value] The value of the environment variable.
- */
- value?: string;
-}
-
-/**
- * @interface
- * An interface representing Setting.
- * Describes a setting for the container. The setting file path can be fetched
- * from environment variable "Fabric_SettingPath". The path for Windows
- * container is "C:\\secrets". The path for Linux container is "/var/secrets".
- *
- */
-export interface Setting {
- /**
- * @member {string} [name] The name of the setting.
- */
- name?: string;
- /**
- * @member {string} [value] The value of the setting.
- */
- value?: string;
-}
-
-/**
- * @interface
- * An interface representing ContainerLabel.
- * Describes a container label.
- *
- */
-export interface ContainerLabel {
- /**
- * @member {string} name The name of the container label.
- */
- name: string;
- /**
- * @member {string} value The value of the container label.
- */
- value: string;
-}
-
-/**
- * @interface
- * An interface representing EndpointProperties.
- * Describes a container endpoint.
- *
- */
-export interface EndpointProperties {
- /**
- * @member {string} name The name of the endpoint.
- */
- name: string;
- /**
- * @member {number} [port] Port used by the container.
- */
- port?: number;
-}
-
-/**
- * @interface
- * An interface representing ResourceRequests.
- * This type describes the requested resources for a given container. It
- * describes the least amount of resources required for the container. A
- * container can consume more than requested resources up to the specified
- * limits before being restarted. Currently, the requested resources are
- * treated as limits.
- *
- */
-export interface ResourceRequests {
- /**
- * @member {number} memoryInGB The memory request in GB for this container.
- */
- memoryInGB: number;
- /**
- * @member {number} cpu Requested number of CPU cores. At present, only full
- * cores are supported.
- */
- cpu: number;
-}
-
-/**
- * @interface
- * An interface representing ResourceLimits.
- * This type describes the resource limits for a given container. It describes
- * the most amount of resources a container is allowed to use before being
- * restarted.
- *
- */
-export interface ResourceLimits {
- /**
- * @member {number} [memoryInGB] The memory limit in GB.
- */
- memoryInGB?: number;
- /**
- * @member {number} [cpu] CPU limits in cores. At present, only full cores
- * are supported.
- */
- cpu?: number;
-}
-
-/**
- * @interface
- * An interface representing ResourceRequirements.
- * This type describes the resource requirements for a container or a service.
- *
- */
-export interface ResourceRequirements {
- /**
- * @member {ResourceRequests} requests Describes the requested resources for
- * a given container.
- */
- requests: ResourceRequests;
- /**
- * @member {ResourceLimits} [limits] Describes the maximum limits on the
- * resources for a given container.
- */
- limits?: ResourceLimits;
}
-/**
- * @interface
- * An interface representing DiagnosticsRef.
- * Reference to sinks in DiagnosticsDescription.
- *
- */
+/** Reference to sinks in DiagnosticsDescription. */
export interface DiagnosticsRef {
- /**
- * @member {boolean} [enabled] Status of whether or not sinks are enabled.
- */
+ /** Status of whether or not sinks are enabled. */
enabled?: boolean;
- /**
- * @member {string[]} [sinkRefs] List of sinks to be used if enabled.
- * References the list of sinks in DiagnosticsDescription.
- */
+ /** List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription. */
sinkRefs?: string[];
}
-/**
- * @interface
- * An interface representing ReliableCollectionsRef.
- * Specifying this parameter adds support for reliable collections
- *
- */
+/** Specifying this parameter adds support for reliable collections */
export interface ReliableCollectionsRef {
- /**
- * @member {string} name Name of ReliableCollection resource. Right now it's
- * not used and you can use any string.
- */
+ /** Name of ReliableCollection resource. Right now it's not used and you can use any string. */
name: string;
- /**
- * @member {boolean} [doNotPersistState] False (the default) if
- * ReliableCollections state is persisted to disk as usual. True if you do
- * not want to persist state, in which case replication is still enabled and
- * you can use ReliableCollections as distributed cache.
- */
+ /** False (the default) if ReliableCollections state is persisted to disk as usual. True if you do not want to persist state, in which case replication is still enabled and you can use ReliableCollections as distributed cache. */
doNotPersistState?: boolean;
}
-/**
- * @interface
- * An interface representing ContainerState.
- * The container state.
- *
- */
-export interface ContainerState {
- /**
- * @member {string} [state] The state of this container
- */
- state?: string;
- /**
- * @member {Date} [startTime] Date/time when the container state started.
- */
- startTime?: Date;
- /**
- * @member {string} [exitCode] The container exit code.
- */
- exitCode?: string;
- /**
- * @member {Date} [finishTime] Date/time when the container state finished.
- */
- finishTime?: Date;
- /**
- * @member {string} [detailStatus] Human-readable status of this state.
- */
- detailStatus?: string;
-}
-
-/**
- * @interface
- * An interface representing ContainerEvent.
- * A container event.
- *
- */
-export interface ContainerEvent {
- /**
- * @member {string} [name] The name of the container event.
- */
- name?: string;
- /**
- * @member {number} [count] The count of the event.
- */
- count?: number;
- /**
- * @member {string} [firstTimestamp] Date/time of the first event.
- */
- firstTimestamp?: string;
- /**
- * @member {string} [lastTimestamp] Date/time of the last event.
- */
- lastTimestamp?: string;
- /**
- * @member {string} [message] The event message
- */
- message?: string;
- /**
- * @member {string} [type] The event type.
- */
- type?: string;
-}
-
-/**
- * @interface
- * An interface representing ContainerInstanceView.
- * Runtime information of a container instance.
- *
- */
+/** Runtime information of a container instance. */
export interface ContainerInstanceView {
- /**
- * @member {number} [restartCount] The number of times the container has been
- * restarted.
- */
+ /** The number of times the container has been restarted. */
restartCount?: number;
- /**
- * @member {ContainerState} [currentState] Current container instance state.
- */
+ /** Current container instance state. */
currentState?: ContainerState;
- /**
- * @member {ContainerState} [previousState] Previous container instance
- * state.
- */
+ /** Previous container instance state. */
previousState?: ContainerState;
- /**
- * @member {ContainerEvent[]} [events] The events of this container instance.
- */
+ /** The events of this container instance. */
events?: ContainerEvent[];
}
-/**
- * @interface
- * An interface representing ContainerCodePackageProperties.
- * Describes a container and its runtime properties.
- *
- */
-export interface ContainerCodePackageProperties {
- /**
- * @member {string} name The name of the code package.
- */
- name: string;
- /**
- * @member {string} image The Container image to use.
- */
- image: string;
- /**
- * @member {ImageRegistryCredential} [imageRegistryCredential] Image registry
- * credential.
- */
- imageRegistryCredential?: ImageRegistryCredential;
- /**
- * @member {string} [entrypoint] Override for the default entry point in the
- * container.
- */
- entrypoint?: string;
- /**
- * @member {string[]} [commands] Command array to execute within the
- * container in exec form.
- */
- commands?: string[];
- /**
- * @member {EnvironmentVariable[]} [environmentVariables] The environment
- * variables to set in this container
- */
- environmentVariables?: EnvironmentVariable[];
- /**
- * @member {Setting[]} [settings] The settings to set in this container. The
- * setting file path can be fetched from environment variable
- * "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The
- * path for Linux container is "/var/secrets".
- */
- settings?: Setting[];
- /**
- * @member {ContainerLabel[]} [labels] The labels to set in this container.
- */
- labels?: ContainerLabel[];
- /**
- * @member {EndpointProperties[]} [endpoints] The endpoints exposed by this
- * container.
- */
- endpoints?: EndpointProperties[];
- /**
- * @member {ResourceRequirements} resources The resources required by this
- * container.
- */
- resources: ResourceRequirements;
- /**
- * @member {VolumeReference[]} [volumeRefs] Volumes to be attached to the
- * container. The lifetime of these volumes is independent of the
- * application's lifetime.
- */
- volumeRefs?: VolumeReference[];
- /**
- * @member {ApplicationScopedVolume[]} [volumes] Volumes to be attached to
- * the container. The lifetime of these volumes is scoped to the
- * application's lifetime.
- */
- volumes?: ApplicationScopedVolume[];
- /**
- * @member {DiagnosticsRef} [diagnostics] Reference to sinks in
- * DiagnosticsDescription.
- */
- diagnostics?: DiagnosticsRef;
- /**
- * @member {ReliableCollectionsRef[]} [reliableCollectionsRefs] A list of
- * ReliableCollection resources used by this particular code package. Please
- * refer to ReliablecollectionsRef for more details.
- */
- reliableCollectionsRefs?: ReliableCollectionsRef[];
- /**
- * @member {ContainerInstanceView} [instanceView] Runtime information of a
- * container instance.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly instanceView?: ContainerInstanceView;
-}
-
-/**
- * Contains the possible cases for AutoScalingTrigger.
- */
-export type AutoScalingTriggerUnion = AutoScalingTrigger | AverageLoadScalingTrigger;
-
-/**
- * @interface
- * An interface representing AutoScalingTrigger.
- * Describes the trigger for performing auto scaling operation.
- *
- */
-export interface AutoScalingTrigger {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "AutoScalingTrigger";
-}
-
-/**
- * Contains the possible cases for AutoScalingMechanism.
- */
-export type AutoScalingMechanismUnion = AutoScalingMechanism | AddRemoveReplicaScalingMechanism;
-
-/**
- * @interface
- * An interface representing AutoScalingMechanism.
- * Describes the mechanism for performing auto scaling operation. Derived
- * classes will describe the actual mechanism.
- *
- */
-export interface AutoScalingMechanism {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "AutoScalingMechanism";
-}
-
-/**
- * @interface
- * An interface representing AutoScalingPolicy.
- * Describes the auto scaling policy
- *
- */
-export interface AutoScalingPolicy {
- /**
- * @member {string} name The name of the auto scaling policy.
- */
- name: string;
- /**
- * @member {AutoScalingTriggerUnion} trigger Determines when auto scaling
- * operation will be invoked.
- */
- trigger: AutoScalingTriggerUnion;
- /**
- * @member {AutoScalingMechanismUnion} mechanism The mechanism that is used
- * to scale when auto scaling operation is invoked.
- */
- mechanism: AutoScalingMechanismUnion;
-}
-
-/**
- * @interface
- * An interface representing ServiceResourceDescription.
- * This type describes a service resource.
- *
- * @extends ManagedProxyResource
- */
-export interface ServiceResourceDescription extends ManagedProxyResource {
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {OperatingSystemType} osType The operation system required by the
- * code in service. Possible values include: 'Linux', 'Windows'
- */
- osType: OperatingSystemType;
- /**
- * @member {ContainerCodePackageProperties[]} codePackages Describes the set
- * of code packages that forms the service. A code package describes the
- * container and the properties for running it. All the code packages are
- * started together on the same host and share the same context (network,
- * process etc.).
- */
- codePackages: ContainerCodePackageProperties[];
- /**
- * @member {NetworkRef[]} [networkRefs] The names of the private networks
- * that this service needs to be part of.
- */
- networkRefs?: NetworkRef[];
- /**
- * @member {DiagnosticsRef} [diagnostics] Reference to sinks in
- * DiagnosticsDescription.
- */
- diagnostics?: DiagnosticsRef;
- /**
- * @member {string} [description] User readable description of the service.
- */
- description?: string;
- /**
- * @member {number} [replicaCount] The number of replicas of the service to
- * create. Defaults to 1 if not specified.
- */
- replicaCount?: number;
- /**
- * @member {AutoScalingPolicy[]} [autoScalingPolicies] Auto scaling policies
- */
- autoScalingPolicies?: AutoScalingPolicy[];
- /**
- * @member {ResourceStatus} [status] Status of the service. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the service.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
- /**
- * @member {HealthState} [healthState] Describes the health state of an
- * application resource. Possible values include: 'Invalid', 'Ok', 'Warning',
- * 'Error', 'Unknown'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly healthState?: HealthState;
- /**
- * @member {string} [unhealthyEvaluation] When the service's health state is
- * not 'Ok', this additional details from service fabric Health Manager for
- * the user to know why the service is marked unhealthy.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly unhealthyEvaluation?: string;
-}
-
-/**
- * Contains the possible cases for DiagnosticsSinkProperties.
- */
-export type DiagnosticsSinkPropertiesUnion = DiagnosticsSinkProperties | AzureInternalMonitoringPipelineSinkDescription;
-
-/**
- * @interface
- * An interface representing DiagnosticsSinkProperties.
- * Properties of a DiagnosticsSink.
- *
- */
-export interface DiagnosticsSinkProperties {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "DiagnosticsSinkProperties";
- /**
- * @member {string} [name] Name of the sink. This value is referenced by
- * DiagnosticsReferenceDescription
- */
- name?: string;
- /**
- * @member {string} [description] A description of the sink.
- */
- description?: string;
-}
-
-/**
- * @interface
- * An interface representing DiagnosticsDescription.
- * Describes the diagnostics options available
- *
- */
-export interface DiagnosticsDescription {
- /**
- * @member {DiagnosticsSinkPropertiesUnion[]} [sinks] List of supported sinks
- * that can be referenced.
- */
- sinks?: DiagnosticsSinkPropertiesUnion[];
- /**
- * @member {boolean} [enabled] Status of whether or not sinks are enabled.
- */
- enabled?: boolean;
- /**
- * @member {string[]} [defaultSinkRefs] The sinks to be used if diagnostics
- * is enabled. Sink choices can be overridden at the service and code package
- * level.
- */
- defaultSinkRefs?: string[];
-}
-
-/**
- * @interface
- * An interface representing ApplicationProperties.
- * Describes properties of a application resource.
- *
- */
-export interface ApplicationProperties {
- /**
- * @member {string} [description] User readable description of the
- * application.
- */
- description?: string;
- /**
- * @member {ServiceResourceDescription[]} [services] Describes the services
- * in the application. This property is used to create or modify services of
- * the application. On get only the name of the service is returned. The
- * service description can be obtained by querying for the service resource.
- */
- services?: ServiceResourceDescription[];
- /**
- * @member {DiagnosticsDescription} [diagnostics] Describes the diagnostics
- * definition and usage for an application resource.
- */
- diagnostics?: DiagnosticsDescription;
- /**
- * @member {string} [debugParams] Internal - used by Visual Studio to setup
- * the debugging session on the local development environment.
- */
- debugParams?: string;
- /**
- * @member {string[]} [serviceNames] Names of the services in the
- * application.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly serviceNames?: string[];
- /**
- * @member {ResourceStatus} [status] Status of the application. Possible
- * values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting',
- * 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the application.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
- /**
- * @member {HealthState} [healthState] Describes the health state of an
- * application resource. Possible values include: 'Invalid', 'Ok', 'Warning',
- * 'Error', 'Unknown'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly healthState?: HealthState;
- /**
- * @member {string} [unhealthyEvaluation] When the application's health state
- * is not 'Ok', this additional details from service fabric Health Manager
- * for the user to know why the application is marked unhealthy.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly unhealthyEvaluation?: string;
-}
-
-/**
- * @interface
- * An interface representing AzureInternalMonitoringPipelineSinkDescription.
- * Diagnostics settings for Geneva.
- *
- */
-export interface AzureInternalMonitoringPipelineSinkDescription {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "AzureInternalMonitoringPipeline";
- /**
- * @member {string} [name] Name of the sink. This value is referenced by
- * DiagnosticsReferenceDescription
- */
- name?: string;
- /**
- * @member {string} [description] A description of the sink.
- */
- description?: string;
- /**
- * @member {string} [accountName] Azure Internal monitoring pipeline account.
- */
- accountName?: string;
- /**
- * @member {string} [namespace] Azure Internal monitoring pipeline account
- * namespace.
- */
- namespace?: string;
- /**
- * @member {string} [maConfigUrl] Azure Internal monitoring agent
- * configuration.
- */
- maConfigUrl?: string;
- /**
- * @member {any} [fluentdConfigUrl] Azure Internal monitoring agent fluentd
- * configuration.
- */
- fluentdConfigUrl?: any;
- /**
- * @member {string} [autoKeyConfigUrl] Azure Internal monitoring pipeline
- * autokey associated with the certificate.
- */
- autoKeyConfigUrl?: string;
-}
-
-/**
- * @interface
- * An interface representing ApplicationResourceDescription.
- * This type describes an application resource.
- *
- * @extends TrackedResource
- */
-export interface ApplicationResourceDescription extends TrackedResource {
- /**
- * @member {string} [provisioningState] State of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: string;
- /**
- * @member {string} [description] User readable description of the
- * application.
- */
- description?: string;
- /**
- * @member {ServiceResourceDescription[]} [services] Describes the services
- * in the application. This property is used to create or modify services of
- * the application. On get only the name of the service is returned. The
- * service description can be obtained by querying for the service resource.
- */
- services?: ServiceResourceDescription[];
- /**
- * @member {DiagnosticsDescription} [diagnostics] Describes the diagnostics
- * definition and usage for an application resource.
- */
- diagnostics?: DiagnosticsDescription;
- /**
- * @member {string} [debugParams] Internal - used by Visual Studio to setup
- * the debugging session on the local development environment.
- */
- debugParams?: string;
- /**
- * @member {string[]} [serviceNames] Names of the services in the
- * application.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly serviceNames?: string[];
- /**
- * @member {ResourceStatus} [status] Status of the application. Possible
- * values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting',
- * 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the application.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
- /**
- * @member {HealthState} [healthState] Describes the health state of an
- * application resource. Possible values include: 'Invalid', 'Ok', 'Warning',
- * 'Error', 'Unknown'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly healthState?: HealthState;
- /**
- * @member {string} [unhealthyEvaluation] When the application's health state
- * is not 'Ok', this additional details from service fabric Health Manager
- * for the user to know why the application is marked unhealthy.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly unhealthyEvaluation?: string;
-}
-
-/**
- * @interface
- * An interface representing AddRemoveReplicaScalingMechanism.
- * Describes the horizontal auto scaling mechanism that adds or removes
- * replicas (containers or container groups).
- *
- */
-export interface AddRemoveReplicaScalingMechanism {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "AddRemoveReplica";
- /**
- * @member {number} minCount Minimum number of containers (scale down won't
- * be performed below this number).
- */
- minCount: number;
- /**
- * @member {number} maxCount Maximum number of containers (scale up won't be
- * performed above this number).
- */
- maxCount: number;
- /**
- * @member {number} scaleIncrement Each time auto scaling is performed, this
- * number of containers will be added or removed.
- */
- scaleIncrement: number;
-}
-
-/**
- * Contains the possible cases for AutoScalingMetric.
- */
-export type AutoScalingMetricUnion = AutoScalingMetric | AutoScalingResourceMetric;
-
-/**
- * @interface
- * An interface representing AutoScalingMetric.
- * Describes the metric that is used for triggering auto scaling operation.
- * Derived classes will describe resources or metrics.
- *
- */
-export interface AutoScalingMetric {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "AutoScalingMetric";
-}
-
-/**
- * @interface
- * An interface representing AutoScalingResourceMetric.
- * Describes the resource that is used for triggering auto scaling.
- *
- */
-export interface AutoScalingResourceMetric {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "Resource";
- /**
- * @member {AutoScalingResourceMetricName} name Name of the resource.
- * Possible values include: 'cpu', 'memoryInGB'
- */
- name: AutoScalingResourceMetricName;
-}
-
-/**
- * @interface
- * An interface representing ServiceProperties.
- * Describes properties of a service resource.
- *
- */
-export interface ServiceProperties {
- /**
- * @member {string} [description] User readable description of the service.
- */
- description?: string;
- /**
- * @member {number} [replicaCount] The number of replicas of the service to
- * create. Defaults to 1 if not specified.
- */
- replicaCount?: number;
- /**
- * @member {AutoScalingPolicy[]} [autoScalingPolicies] Auto scaling policies
- */
- autoScalingPolicies?: AutoScalingPolicy[];
- /**
- * @member {ResourceStatus} [status] Status of the service. Possible values
- * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly status?: ResourceStatus;
- /**
- * @member {string} [statusDetails] Gives additional information about the
- * current status of the service.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly statusDetails?: string;
- /**
- * @member {HealthState} [healthState] Describes the health state of an
- * application resource. Possible values include: 'Invalid', 'Ok', 'Warning',
- * 'Error', 'Unknown'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly healthState?: HealthState;
- /**
- * @member {string} [unhealthyEvaluation] When the service's health state is
- * not 'Ok', this additional details from service fabric Health Manager for
- * the user to know why the service is marked unhealthy.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly unhealthyEvaluation?: string;
-}
-
-/**
- * @interface
- * An interface representing ServiceReplicaProperties.
- * Describes the properties of a service replica.
- *
- */
-export interface ServiceReplicaProperties {
- /**
- * @member {OperatingSystemType} osType The operation system required by the
- * code in service. Possible values include: 'Linux', 'Windows'
- */
- osType: OperatingSystemType;
- /**
- * @member {ContainerCodePackageProperties[]} codePackages Describes the set
- * of code packages that forms the service. A code package describes the
- * container and the properties for running it. All the code packages are
- * started together on the same host and share the same context (network,
- * process etc.).
- */
- codePackages: ContainerCodePackageProperties[];
- /**
- * @member {NetworkRef[]} [networkRefs] The names of the private networks
- * that this service needs to be part of.
- */
- networkRefs?: NetworkRef[];
- /**
- * @member {DiagnosticsRef} [diagnostics] Reference to sinks in
- * DiagnosticsDescription.
- */
- diagnostics?: DiagnosticsRef;
+/** The container state. */
+export interface ContainerState {
+ /** The state of this container */
+ state?: string;
+ /** Date/time when the container state started. */
+ startTime?: Date;
+ /** The container exit code. */
+ exitCode?: string;
+ /** Date/time when the container state finished. */
+ finishTime?: Date;
+ /** Human-readable status of this state. */
+ detailStatus?: string;
}
-/**
- * @interface
- * An interface representing ServiceReplicaDescription.
- * Describes a replica of a service resource.
- *
- * @extends ServiceReplicaProperties
- */
-export interface ServiceReplicaDescription extends ServiceReplicaProperties {
- /**
- * @member {string} replicaName Name of the replica.
- */
- replicaName: string;
+/** A container event. */
+export interface ContainerEvent {
+ /** The name of the container event. */
+ name?: string;
+ /** The count of the event. */
+ count?: number;
+ /** Date/time of the first event. */
+ firstTimestamp?: string;
+ /** Date/time of the last event. */
+ lastTimestamp?: string;
+ /** The event message */
+ message?: string;
+ /** The event type. */
+ type?: string;
}
-/**
- * @interface
- * An interface representing AverageLoadScalingTrigger.
- * Describes the average load trigger used for auto scaling.
- *
- */
-export interface AverageLoadScalingTrigger {
- /**
- * @member {string} kind Polymorphic Discriminator
- */
- kind: "AverageLoad";
+/** Describes properties of a service resource. */
+export interface ServiceProperties {
+ /** User readable description of the service. */
+ description?: string;
+ /** The number of replicas of the service to create. Defaults to 1 if not specified. */
+ replicaCount?: number;
+ /** Auto scaling policies */
+ autoScalingPolicies?: AutoScalingPolicy[];
/**
- * @member {AutoScalingMetricUnion} metric Description of the metric that is
- * used for scaling.
+ * Status of the service.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- metric: AutoScalingMetricUnion;
+ readonly status?: ResourceStatus;
/**
- * @member {number} lowerLoadThreshold Lower load threshold (if average load
- * is below this threshold, service will scale down).
+ * Gives additional information about the current status of the service.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- lowerLoadThreshold: number;
+ readonly statusDetails?: string;
/**
- * @member {number} upperLoadThreshold Upper load threshold (if average load
- * is above this threshold, service will scale up).
+ * Describes the health state of an application resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- upperLoadThreshold: number;
+ readonly healthState?: HealthState;
/**
- * @member {number} scaleIntervalInSeconds Scale interval that indicates how
- * often will this trigger be checked.
+ * When the service's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- scaleIntervalInSeconds: number;
+ readonly unhealthyEvaluation?: string;
}
-/**
- * @interface
- * An interface representing ContainerLogs.
- * Container logs.
- *
- */
-export interface ContainerLogs {
- /**
- * @member {string} [content] Container logs.
- */
- content?: string;
+/** Describes the auto scaling policy */
+export interface AutoScalingPolicy {
+ /** The name of the auto scaling policy. */
+ name: string;
+ /** Determines when auto scaling operation will be invoked. */
+ trigger: AutoScalingTriggerUnion;
+ /** The mechanism that is used to scale when auto scaling operation is invoked. */
+ mechanism: AutoScalingMechanismUnion;
}
-/**
- * @interface
- * An interface representing CodePackageGetContainerLogsOptionalParams.
- * Optional Parameters.
- *
- * @extends RequestOptionsBase
- */
-export interface CodePackageGetContainerLogsOptionalParams extends msRest.RequestOptionsBase {
- /**
- * @member {number} [tail] Number of lines to show from the end of the logs.
- * Default is 100.
- */
- tail?: number;
+/** Describes the trigger for performing auto scaling operation. */
+export interface AutoScalingTrigger {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "AverageLoad";
}
-/**
- * @interface
- * An interface representing ServiceFabricMeshManagementClientOptions.
- * @extends AzureServiceClientOptions
- */
-export interface ServiceFabricMeshManagementClientOptions extends AzureServiceClientOptions {
- /**
- * @member {string} [baseUri]
- */
- baseUri?: string;
+/** Describes the mechanism for performing auto scaling operation. Derived classes will describe the actual mechanism. */
+export interface AutoScalingMechanism {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "AddRemoveReplica";
}
-
-/**
- * @interface
- * An interface representing the OperationListResult.
- * Describes the result of the request to list Service Fabric operations.
- *
- * @extends Array
- */
-export interface OperationListResult extends Array {
+/** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. This proxy resource is explicitly created or updated by including it in the parent resource. */
+export interface ManagedProxyResource {
/**
- * @member {string} [nextLink] URL to get the next set of operation list
- * results if there are any.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Fully qualified identifier 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 nextLink?: string;
-}
-
-/**
- * @interface
- * An interface representing the SecretResourceDescriptionList.
- * A pageable list of secret resources.
- *
- * @extends Array
- */
-export interface SecretResourceDescriptionList extends Array {
+ readonly id?: string;
+ /** The name of the resource */
+ name?: string;
/**
- * @member {string} [nextLink] URI to fetch the next page of the list.
+ * The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- nextLink?: string;
+ readonly type?: string;
}
-/**
- * @interface
- * An interface representing the SecretValueResourceDescriptionList.
- * A pageable list of values of a secret resource. The information does not
- * include only the name of the value and not the actual unecrypted value.
- *
- * @extends Array
- */
-export interface SecretValueResourceDescriptionList extends Array {
- /**
- * @member {string} [nextLink] URI to fetch the next page of the list.
- */
- nextLink?: string;
+/** Describes the diagnostics options available */
+export interface DiagnosticsDescription {
+ /** List of supported sinks that can be referenced. */
+ sinks?: DiagnosticsSinkPropertiesUnion[];
+ /** Status of whether or not sinks are enabled. */
+ enabled?: boolean;
+ /** The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level. */
+ defaultSinkRefs?: string[];
}
-/**
- * @interface
- * An interface representing the VolumeResourceDescriptionList.
- * A pageable list of volume resources.
- *
- * @extends Array
- */
-export interface VolumeResourceDescriptionList extends Array {
- /**
- * @member {string} [nextLink] URI to fetch the next page of the list.
- */
- nextLink?: string;
+/** Properties of a DiagnosticsSink. */
+export interface DiagnosticsSinkProperties {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "AzureInternalMonitoringPipeline";
+ /** Name of the sink. This value is referenced by DiagnosticsReferenceDescription */
+ name?: string;
+ /** A description of the sink. */
+ description?: string;
}
-/**
- * @interface
- * An interface representing the NetworkResourceDescriptionList.
- * A pageable list of network resources.
- *
- * @extends Array
- */
-export interface NetworkResourceDescriptionList extends Array {
- /**
- * @member {string} [nextLink] URI to fetch the next page of the list.
- */
+/** A pageable list of application resources. */
+export interface ApplicationResourceDescriptionList {
+ /** One page of the list. */
+ value?: ApplicationResourceDescription[];
+ /** URI to fetch the next page of the list. */
nextLink?: string;
}
-/**
- * @interface
- * An interface representing the GatewayResourceDescriptionList.
- * A pageable list of gateway resources.
- *
- * @extends Array
- */
-export interface GatewayResourceDescriptionList extends Array {
- /**
- * @member {string} [nextLink] URI to fetch the next page of the list.
- */
+/** A pageable list of service resources. */
+export interface ServiceResourceDescriptionList {
+ /** One page of the list. */
+ value?: ServiceResourceDescription[];
+ /** URI to fetch the next page of the list. */
nextLink?: string;
}
-/**
- * @interface
- * An interface representing the ApplicationResourceDescriptionList.
- * A pageable list of application resources.
- *
- * @extends Array
- */
-export interface ApplicationResourceDescriptionList extends Array {
- /**
- * @member {string} [nextLink] URI to fetch the next page of the list.
- */
+/** A pageable list of service replicas. */
+export interface ServiceReplicaDescriptionList {
+ /** One page of the list. */
+ value?: ServiceReplicaDescription[];
+ /** URI to fetch the next page of the list. */
nextLink?: string;
}
-/**
- * @interface
- * An interface representing the ServiceResourceDescriptionList.
- * A pageable list of service resources.
- *
- * @extends Array
- */
-export interface ServiceResourceDescriptionList extends Array {
- /**
- * @member {string} [nextLink] URI to fetch the next page of the list.
- */
- nextLink?: string;
+/** Container logs. */
+export interface ContainerLogs {
+ /** Container logs. */
+ content?: string;
}
-/**
- * @interface
- * An interface representing the ServiceReplicaDescriptionList.
- * A pageable list of service replicas.
- *
- * @extends Array
- */
-export interface ServiceReplicaDescriptionList extends Array {
- /**
- * @member {string} [nextLink] URI to fetch the next page of the list.
- */
- nextLink?: string;
+/** Describes the metric that is used for triggering auto scaling operation. Derived classes will describe resources or metrics. */
+export interface AutoScalingMetric {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "Resource";
}
-/**
- * Defines values for ResourceStatus.
- * Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- * @readonly
- * @enum {string}
- */
-export type ResourceStatus = 'Unknown' | 'Ready' | 'Upgrading' | 'Creating' | 'Deleting' | 'Failed';
-
-/**
- * Defines values for HealthState.
- * Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
- * @readonly
- * @enum {string}
- */
-export type HealthState = 'Invalid' | 'Ok' | 'Warning' | 'Error' | 'Unknown';
-
-/**
- * Defines values for SecretKind.
- * Possible values include: 'inlinedValue'
- * @readonly
- * @enum {string}
- */
-export type SecretKind = 'inlinedValue';
+/** This type describes the properties of a secret resource, including its kind. */
+export type SecretResourcePropertiesBase = ProvisionedResourceProperties & {
+ /** Describes the kind of secret. */
+ kind: SecretKind;
+};
-/**
- * Defines values for VolumeProvider.
- * Possible values include: 'SFAzureFile'
- * @readonly
- * @enum {string}
- */
-export type VolumeProvider = 'SFAzureFile';
+/** This type describes properties of a secret value resource. */
+export type SecretValueResourceProperties = ProvisionedResourceProperties &
+ SecretValueProperties & {};
-/**
- * Defines values for SizeTypes.
- * Possible values include: 'Small', 'Medium', 'Large'
- * @readonly
- * @enum {string}
- */
-export type SizeTypes = 'Small' | 'Medium' | 'Large';
+/** This type describes properties of a volume resource. */
+export type VolumeResourceProperties = ProvisionedResourceProperties &
+ VolumeProperties & {};
-/**
- * Defines values for ApplicationScopedVolumeKind.
- * Possible values include: 'ServiceFabricVolumeDisk'
- * @readonly
- * @enum {string}
- */
-export type ApplicationScopedVolumeKind = 'ServiceFabricVolumeDisk';
+/** This type describes the properties of a network resource, including its kind. */
+export type NetworkResourcePropertiesBase = ProvisionedResourceProperties & {
+ /** The type of a Service Fabric container network. */
+ kind: NetworkKind;
+};
-/**
- * Defines values for NetworkKind.
- * Possible values include: 'Local'
- * @readonly
- * @enum {string}
- */
-export type NetworkKind = 'Local';
+/** This type describes properties of a gateway resource. */
+export type GatewayResourceProperties = ProvisionedResourceProperties &
+ GatewayProperties & {};
-/**
- * Defines values for HeaderMatchType.
- * Possible values include: 'exact'
- * @readonly
- * @enum {string}
- */
-export type HeaderMatchType = 'exact';
+/** This type describes properties of a service resource. */
+export type ServiceResourceProperties = ProvisionedResourceProperties &
+ ServiceReplicaProperties &
+ ServiceProperties & {};
-/**
- * Defines values for OperatingSystemType.
- * Possible values include: 'Linux', 'Windows'
- * @readonly
- * @enum {string}
- */
-export type OperatingSystemType = 'Linux' | 'Windows';
+/** This type describes properties of an application resource. */
+export type ApplicationResourceProperties = ProvisionedResourceProperties &
+ ApplicationProperties & {};
-/**
- * Defines values for DiagnosticsSinkKind.
- * Possible values include: 'Invalid', 'AzureInternalMonitoringPipeline'
- * @readonly
- * @enum {string}
- */
-export type DiagnosticsSinkKind = 'Invalid' | 'AzureInternalMonitoringPipeline';
+/** The resource model definition for Azure Resource Manager tracked top-level resource. */
+export type TrackedResource = Resource & {
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** The geo-location where the resource lives */
+ location: string;
+};
-/**
- * Defines values for AutoScalingMechanismKind.
- * Possible values include: 'AddRemoveReplica'
- * @readonly
- * @enum {string}
- */
-export type AutoScalingMechanismKind = 'AddRemoveReplica';
+/** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. */
+export type ProxyResource = Resource & {};
-/**
- * Defines values for AutoScalingMetricKind.
- * Possible values include: 'Resource'
- * @readonly
- * @enum {string}
- */
-export type AutoScalingMetricKind = 'Resource';
+/** Describes a replica of a service resource. */
+export type ServiceReplicaDescription = ServiceReplicaProperties & {
+ /** Name of the replica. */
+ replicaName: string;
+};
-/**
- * Defines values for AutoScalingResourceMetricName.
- * Possible values include: 'cpu', 'memoryInGB'
- * @readonly
- * @enum {string}
- */
-export type AutoScalingResourceMetricName = 'cpu' | 'memoryInGB';
+/** Describes a volume whose lifetime is scoped to the application's lifetime. */
+export type ApplicationScopedVolume = VolumeReference & {
+ /** Describes parameters for creating application-scoped volumes. */
+ creationParameters: ApplicationScopedVolumeCreationParametersUnion;
+};
-/**
- * Defines values for AutoScalingTriggerKind.
- * Possible values include: 'AverageLoad'
- * @readonly
- * @enum {string}
- */
-export type AutoScalingTriggerKind = 'AverageLoad';
+/** Describes parameters for creating application-scoped volumes provided by Service Fabric Volume Disks */
+export type ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk = ApplicationScopedVolumeCreationParameters & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "ServiceFabricVolumeDisk";
+ /** Volume size */
+ sizeDisk: SizeTypes;
+};
-/**
- * Contains response data for the list operation.
- */
-export type OperationsListResponse = OperationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationListResult;
- };
+/** Describes the average load trigger used for auto scaling. */
+export type AverageLoadScalingTrigger = AutoScalingTrigger & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "AverageLoad";
+ /** Description of the metric that is used for scaling. */
+ metric: AutoScalingMetricUnion;
+ /** Lower load threshold (if average load is below this threshold, service will scale down). */
+ lowerLoadThreshold: number;
+ /** Upper load threshold (if average load is above this threshold, service will scale up). */
+ upperLoadThreshold: number;
+ /** Scale interval that indicates how often will this trigger be checked. */
+ scaleIntervalInSeconds: number;
};
-/**
- * Contains response data for the listNext operation.
- */
-export type OperationsListNextResponse = OperationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationListResult;
- };
+/** Describes the horizontal auto scaling mechanism that adds or removes replicas (containers or container groups). */
+export type AddRemoveReplicaScalingMechanism = AutoScalingMechanism & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "AddRemoveReplica";
+ /** Minimum number of containers (scale down won't be performed below this number). */
+ minCount: number;
+ /** Maximum number of containers (scale up won't be performed above this number). */
+ maxCount: number;
+ /** Each time auto scaling is performed, this number of containers will be added or removed. */
+ scaleIncrement: number;
};
-/**
- * Contains response data for the create operation.
- */
-export type SecretCreateResponse = SecretResourceDescription & {
+/** This type describes a service resource. */
+export type ServiceResourceDescription = ManagedProxyResource & {
/**
- * The underlying HTTP response.
+ * State of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretResourceDescription;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type SecretGetResponse = SecretResourceDescription & {
+ readonly provisioningState?: string;
+ /** The operation system required by the code in service. */
+ osType: OperatingSystemType;
+ /** Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.). */
+ codePackages: ContainerCodePackageProperties[];
+ /** The names of the private networks that this service needs to be part of. */
+ networkRefs?: NetworkRef[];
+ /** Reference to sinks in DiagnosticsDescription. */
+ diagnostics?: DiagnosticsRef;
+ /** User readable description of the service. */
+ description?: string;
+ /** The number of replicas of the service to create. Defaults to 1 if not specified. */
+ replicaCount?: number;
+ /** Auto scaling policies */
+ autoScalingPolicies?: AutoScalingPolicy[];
/**
- * The underlying HTTP response.
+ * Status of the service.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretResourceDescription;
- };
-};
-
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type SecretListByResourceGroupResponse = SecretResourceDescriptionList & {
+ readonly status?: ResourceStatus;
/**
- * The underlying HTTP response.
+ * Gives additional information about the current status of the service.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the listBySubscription operation.
- */
-export type SecretListBySubscriptionResponse = SecretResourceDescriptionList & {
+ readonly statusDetails?: string;
/**
- * The underlying HTTP response.
+ * Describes the health state of an application resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type SecretListByResourceGroupNextResponse = SecretResourceDescriptionList & {
+ readonly healthState?: HealthState;
/**
- * The underlying HTTP response.
+ * When the service's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretResourceDescriptionList;
- };
+ readonly unhealthyEvaluation?: string;
};
-/**
- * Contains response data for the listBySubscriptionNext operation.
- */
-export type SecretListBySubscriptionNextResponse = SecretResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretResourceDescriptionList;
- };
+/** Diagnostics settings for Geneva. */
+export type AzureInternalMonitoringPipelineSinkDescription = DiagnosticsSinkProperties & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "AzureInternalMonitoringPipeline";
+ /** Azure Internal monitoring pipeline account. */
+ accountName?: string;
+ /** Azure Internal monitoring pipeline account namespace. */
+ namespace?: string;
+ /** Azure Internal monitoring agent configuration. */
+ maConfigUrl?: string;
+ /** Azure Internal monitoring agent fluentd configuration. */
+ fluentdConfigUrl?: any;
+ /** Azure Internal monitoring pipeline autokey associated with the certificate. */
+ autoKeyConfigUrl?: string;
};
-/**
- * Contains response data for the create operation.
- */
-export type SecretValueCreateResponse = SecretValueResourceDescription & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretValueResourceDescription;
- };
+/** Describes the resource that is used for triggering auto scaling. */
+export type AutoScalingResourceMetric = AutoScalingMetric & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ kind: "Resource";
+ /** Name of the resource. */
+ name: AutoScalingResourceMetricName;
};
-/**
- * Contains response data for the get operation.
- */
-export type SecretValueGetResponse = SecretValueResourceDescription & {
+/** Describes the properties of a secret resource. */
+export type SecretResourceProperties = SecretResourcePropertiesBase & {
+ /** User readable description of the secret. */
+ description?: string;
/**
- * The underlying HTTP response.
+ * Status of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretValueResourceDescription;
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type SecretValueListResponse = SecretValueResourceDescriptionList & {
+ readonly status?: ResourceStatus;
/**
- * The underlying HTTP response.
+ * Gives additional information about the current status of the secret.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretValueResourceDescriptionList;
- };
+ readonly statusDetails?: string;
+ /** The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed. */
+ contentType?: string;
};
-/**
- * Contains response data for the listValue operation.
- */
-export type SecretValueListValueResponse = SecretValue & {
+/** Describes properties of a network resource. */
+export type NetworkResourceProperties = NetworkResourcePropertiesBase & {
+ /** User readable description of the network. */
+ description?: string;
/**
- * The underlying HTTP response.
+ * Status of the network.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretValue;
- };
-};
-
-/**
- * Contains response data for the listNext operation.
- */
-export type SecretValueListNextResponse = SecretValueResourceDescriptionList & {
+ readonly status?: ResourceStatus;
/**
- * The underlying HTTP response.
+ * Gives additional information about the current status of the network.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SecretValueResourceDescriptionList;
- };
+ readonly statusDetails?: string;
};
-/**
- * Contains response data for the create operation.
- */
-export type VolumeCreateResponse = VolumeResourceDescription & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: VolumeResourceDescription;
- };
+/** This type describes a secret resource. */
+export type SecretResourceDescription = TrackedResource & {
+ /** Describes the properties of a secret resource. */
+ properties: SecretResourcePropertiesUnion;
};
-/**
- * Contains response data for the get operation.
- */
-export type VolumeGetResponse = VolumeResourceDescription & {
+/** This type describes a value of a secret resource. The name of this resource is the version identifier corresponding to this secret value. */
+export type SecretValueResourceDescription = TrackedResource & {
/**
- * The underlying HTTP response.
+ * State of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: VolumeResourceDescription;
- };
+ readonly provisioningState?: string;
+ /** The actual value of the secret. */
+ value?: string;
};
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type VolumeListByResourceGroupResponse = VolumeResourceDescriptionList & {
+/** This type describes a volume resource. */
+export type VolumeResourceDescription = TrackedResource & {
/**
- * The underlying HTTP response.
+ * State of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: VolumeResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the listBySubscription operation.
- */
-export type VolumeListBySubscriptionResponse = VolumeResourceDescriptionList & {
+ readonly provisioningState?: string;
+ /** User readable description of the volume. */
+ description?: string;
/**
- * The underlying HTTP response.
+ * Status of the volume.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: VolumeResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type VolumeListByResourceGroupNextResponse = VolumeResourceDescriptionList & {
+ readonly status?: ResourceStatus;
/**
- * The underlying HTTP response.
+ * Gives additional information about the current status of the volume.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: VolumeResourceDescriptionList;
- };
+ readonly statusDetails?: string;
+ /** Provider of the volume. */
+ provider: VolumeProvider;
+ /** This type describes a volume provided by an Azure Files file share. */
+ azureFileParameters?: VolumeProviderParametersAzureFile;
};
-/**
- * Contains response data for the listBySubscriptionNext operation.
- */
-export type VolumeListBySubscriptionNextResponse = VolumeResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: VolumeResourceDescriptionList;
- };
+/** This type describes a network resource. */
+export type NetworkResourceDescription = TrackedResource & {
+ /** Describes properties of a network resource. */
+ properties: NetworkResourcePropertiesUnion;
};
-/**
- * Contains response data for the create operation.
- */
-export type NetworkCreateResponse = NetworkResourceDescription & {
+/** This type describes a gateway resource. */
+export type GatewayResourceDescription = TrackedResource & {
/**
- * The underlying HTTP response.
+ * State of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: NetworkResourceDescription;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type NetworkGetResponse = NetworkResourceDescription & {
+ readonly provisioningState?: string;
+ /** User readable description of the gateway. */
+ description?: string;
+ /** Network the gateway should listen on for requests. */
+ sourceNetwork: NetworkRef;
+ /** Network that the Application is using. */
+ destinationNetwork: NetworkRef;
+ /** Configuration for tcp connectivity for this gateway. */
+ tcp?: TcpConfig[];
+ /** Configuration for http connectivity for this gateway. */
+ http?: HttpConfig[];
/**
- * The underlying HTTP response.
+ * Status of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: NetworkResourceDescription;
- };
-};
-
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type NetworkListByResourceGroupResponse = NetworkResourceDescriptionList & {
+ readonly status?: ResourceStatus;
/**
- * The underlying HTTP response.
+ * Gives additional information about the current status of the gateway.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: NetworkResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the listBySubscription operation.
- */
-export type NetworkListBySubscriptionResponse = NetworkResourceDescriptionList & {
+ readonly statusDetails?: string;
/**
- * The underlying HTTP response.
+ * IP address of the gateway. This is populated in the response and is ignored for incoming requests.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: NetworkResourceDescriptionList;
- };
+ readonly ipAddress?: string;
};
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type NetworkListByResourceGroupNextResponse = NetworkResourceDescriptionList & {
+/** This type describes an application resource. */
+export type ApplicationResourceDescription = TrackedResource & {
/**
- * The underlying HTTP response.
+ * State of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: NetworkResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the listBySubscriptionNext operation.
- */
-export type NetworkListBySubscriptionNextResponse = NetworkResourceDescriptionList & {
+ readonly provisioningState?: string;
+ /** User readable description of the application. */
+ description?: string;
+ /** Describes the services in the application. This property is used to create or modify services of the application. On get only the name of the service is returned. The service description can be obtained by querying for the service resource. */
+ services?: ServiceResourceDescription[];
+ /** Describes the diagnostics definition and usage for an application resource. */
+ diagnostics?: DiagnosticsDescription;
+ /** Internal - used by Visual Studio to setup the debugging session on the local development environment. */
+ debugParams?: string;
/**
- * The underlying HTTP response.
+ * Names of the services in the application.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: NetworkResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the create operation.
- */
-export type GatewayCreateResponse = GatewayResourceDescription & {
+ readonly serviceNames?: string[];
/**
- * The underlying HTTP response.
+ * Status of the application.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: GatewayResourceDescription;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type GatewayGetResponse = GatewayResourceDescription & {
+ readonly status?: ResourceStatus;
/**
- * The underlying HTTP response.
+ * Gives additional information about the current status of the application.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: GatewayResourceDescription;
- };
-};
-
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type GatewayListByResourceGroupResponse = GatewayResourceDescriptionList & {
+ readonly statusDetails?: string;
/**
- * The underlying HTTP response.
+ * Describes the health state of an application resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: GatewayResourceDescriptionList;
- };
-};
-
-/**
- * Contains response data for the listBySubscription operation.
- */
-export type GatewayListBySubscriptionResponse = GatewayResourceDescriptionList & {
+ readonly healthState?: HealthState;
/**
- * The underlying HTTP response.
+ * When the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: GatewayResourceDescriptionList;
- };
+ readonly unhealthyEvaluation?: string;
+};
+
+/** Describes the properties of a secret resource whose value is provided explicitly as plaintext. The secret resource may have multiple values, each being uniquely versioned. The secret value of each version is stored encrypted, and delivered as plaintext into the context of applications referencing it. */
+export type InlinedValueSecretResourceProperties = SecretResourceProperties & {};
+
+/** Information about a Service Fabric container network local to a single Service Fabric cluster. */
+export type LocalNetworkResourceProperties = NetworkResourceProperties & {
+ /** Address space for the local container network. */
+ networkAddressPrefix?: string;
};
+/** Known values of {@link ResourceStatus} that the service accepts. */
+export enum KnownResourceStatus {
+ /** Indicates the resource status is unknown. The value is zero. */
+ Unknown = "Unknown",
+ /** Indicates the resource is ready. The value is 1. */
+ Ready = "Ready",
+ /** Indicates the resource is upgrading. The value is 2. */
+ Upgrading = "Upgrading",
+ /** Indicates the resource is being created. The value is 3. */
+ Creating = "Creating",
+ /** Indicates the resource is being deleted. The value is 4. */
+ Deleting = "Deleting",
+ /** Indicates the resource is not functional due to persistent failures. See statusDetails property for more details. The value is 5. */
+ Failed = "Failed"
+}
+
/**
- * Contains response data for the listByResourceGroupNext operation.
+ * Defines values for ResourceStatus. \
+ * {@link KnownResourceStatus} can be used interchangeably with ResourceStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Unknown**: Indicates the resource status is unknown. The value is zero. \
+ * **Ready**: Indicates the resource is ready. The value is 1. \
+ * **Upgrading**: Indicates the resource is upgrading. The value is 2. \
+ * **Creating**: Indicates the resource is being created. The value is 3. \
+ * **Deleting**: Indicates the resource is being deleted. The value is 4. \
+ * **Failed**: Indicates the resource is not functional due to persistent failures. See statusDetails property for more details. The value is 5.
*/
-export type GatewayListByResourceGroupNextResponse = GatewayResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: GatewayResourceDescriptionList;
- };
-};
+export type ResourceStatus = string;
+
+/** Known values of {@link SecretKind} that the service accepts. */
+export enum KnownSecretKind {
+ /** A simple secret resource whose plaintext value is provided by the user. */
+ InlinedValue = "inlinedValue"
+}
/**
- * Contains response data for the listBySubscriptionNext operation.
+ * Defines values for SecretKind. \
+ * {@link KnownSecretKind} can be used interchangeably with SecretKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **inlinedValue**: A simple secret resource whose plaintext value is provided by the user.
*/
-export type GatewayListBySubscriptionNextResponse = GatewayResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: GatewayResourceDescriptionList;
- };
-};
+export type SecretKind = string;
+
+/** Known values of {@link VolumeProvider} that the service accepts. */
+export enum KnownVolumeProvider {
+ /** Provides volumes that are backed by Azure Files. */
+ SFAzureFile = "SFAzureFile"
+}
/**
- * Contains response data for the create operation.
+ * Defines values for VolumeProvider. \
+ * {@link KnownVolumeProvider} can be used interchangeably with VolumeProvider,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **SFAzureFile**: Provides volumes that are backed by Azure Files.
*/
-export type ApplicationCreateResponse = ApplicationResourceDescription & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationResourceDescription;
- };
-};
+export type VolumeProvider = string;
+
+/** Known values of {@link NetworkKind} that the service accepts. */
+export enum KnownNetworkKind {
+ /** Indicates a container network local to a single Service Fabric cluster. The value is 1. */
+ Local = "Local"
+}
/**
- * Contains response data for the get operation.
+ * Defines values for NetworkKind. \
+ * {@link KnownNetworkKind} can be used interchangeably with NetworkKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Local**: Indicates a container network local to a single Service Fabric cluster. The value is 1.
*/
-export type ApplicationGetResponse = ApplicationResourceDescription & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationResourceDescription;
- };
-};
+export type NetworkKind = string;
+
+/** Known values of {@link PathMatchType} that the service accepts. */
+export enum KnownPathMatchType {
+ Prefix = "prefix"
+}
/**
- * Contains response data for the listByResourceGroup operation.
+ * Defines values for PathMatchType. \
+ * {@link KnownPathMatchType} can be used interchangeably with PathMatchType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **prefix**
*/
-export type ApplicationListByResourceGroupResponse = ApplicationResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationResourceDescriptionList;
- };
-};
+export type PathMatchType = string;
+
+/** Known values of {@link HeaderMatchType} that the service accepts. */
+export enum KnownHeaderMatchType {
+ Exact = "exact"
+}
/**
- * Contains response data for the listBySubscription operation.
+ * Defines values for HeaderMatchType. \
+ * {@link KnownHeaderMatchType} can be used interchangeably with HeaderMatchType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **exact**
*/
-export type ApplicationListBySubscriptionResponse = ApplicationResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationResourceDescriptionList;
- };
-};
+export type HeaderMatchType = string;
+
+/** Known values of {@link OperatingSystemType} that the service accepts. */
+export enum KnownOperatingSystemType {
+ /** The required operating system is Linux. */
+ Linux = "Linux",
+ /** The required operating system is Windows. */
+ Windows = "Windows"
+}
/**
- * Contains response data for the listByResourceGroupNext operation.
+ * Defines values for OperatingSystemType. \
+ * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Linux**: The required operating system is Linux. \
+ * **Windows**: The required operating system is Windows.
*/
-export type ApplicationListByResourceGroupNextResponse = ApplicationResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationResourceDescriptionList;
- };
-};
+export type OperatingSystemType = string;
+
+/** Known values of {@link ApplicationScopedVolumeKind} that the service accepts. */
+export enum KnownApplicationScopedVolumeKind {
+ /** Provides Service Fabric High Availability Volume Disk */
+ ServiceFabricVolumeDisk = "ServiceFabricVolumeDisk"
+}
/**
- * Contains response data for the listBySubscriptionNext operation.
+ * Defines values for ApplicationScopedVolumeKind. \
+ * {@link KnownApplicationScopedVolumeKind} can be used interchangeably with ApplicationScopedVolumeKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **ServiceFabricVolumeDisk**: Provides Service Fabric High Availability Volume Disk
*/
-export type ApplicationListBySubscriptionNextResponse = ApplicationResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationResourceDescriptionList;
- };
-};
+export type ApplicationScopedVolumeKind = string;
+
+/** Known values of {@link AutoScalingTriggerKind} that the service accepts. */
+export enum KnownAutoScalingTriggerKind {
+ /** Indicates that scaling should be performed based on average load of all replicas in the service. */
+ AverageLoad = "AverageLoad"
+}
/**
- * Contains response data for the get operation.
+ * Defines values for AutoScalingTriggerKind. \
+ * {@link KnownAutoScalingTriggerKind} can be used interchangeably with AutoScalingTriggerKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **AverageLoad**: Indicates that scaling should be performed based on average load of all replicas in the service.
*/
-export type ServiceGetResponse = ServiceResourceDescription & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ServiceResourceDescription;
- };
-};
+export type AutoScalingTriggerKind = string;
+
+/** Known values of {@link AutoScalingMechanismKind} that the service accepts. */
+export enum KnownAutoScalingMechanismKind {
+ /** Indicates that scaling should be performed by adding or removing replicas. */
+ AddRemoveReplica = "AddRemoveReplica"
+}
/**
- * Contains response data for the list operation.
+ * Defines values for AutoScalingMechanismKind. \
+ * {@link KnownAutoScalingMechanismKind} can be used interchangeably with AutoScalingMechanismKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **AddRemoveReplica**: Indicates that scaling should be performed by adding or removing replicas.
*/
-export type ServiceListResponse = ServiceResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ServiceResourceDescriptionList;
- };
-};
+export type AutoScalingMechanismKind = string;
+
+/** Known values of {@link HealthState} that the service accepts. */
+export enum KnownHealthState {
+ /** Indicates an invalid health state. All Service Fabric enumerations have the invalid type. The value is zero. */
+ Invalid = "Invalid",
+ /** Indicates the health state is okay. The value is 1. */
+ Ok = "Ok",
+ /** Indicates the health state is at a warning level. The value is 2. */
+ Warning = "Warning",
+ /** Indicates the health state is at an error level. Error health state should be investigated, as they can impact the correct functionality of the cluster. The value is 3. */
+ Error = "Error",
+ /** Indicates an unknown health status. The value is 65535. */
+ Unknown = "Unknown"
+}
/**
- * Contains response data for the listNext operation.
+ * Defines values for HealthState. \
+ * {@link KnownHealthState} can be used interchangeably with HealthState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Invalid**: Indicates an invalid health state. All Service Fabric enumerations have the invalid type. The value is zero. \
+ * **Ok**: Indicates the health state is okay. The value is 1. \
+ * **Warning**: Indicates the health state is at a warning level. The value is 2. \
+ * **Error**: Indicates the health state is at an error level. Error health state should be investigated, as they can impact the correct functionality of the cluster. The value is 3. \
+ * **Unknown**: Indicates an unknown health status. The value is 65535.
*/
-export type ServiceListNextResponse = ServiceResourceDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ServiceResourceDescriptionList;
- };
-};
+export type HealthState = string;
+
+/** Known values of {@link DiagnosticsSinkKind} that the service accepts. */
+export enum KnownDiagnosticsSinkKind {
+ /** Indicates an invalid sink kind. All Service Fabric enumerations have the invalid type. */
+ Invalid = "Invalid",
+ /** Diagnostics settings for Geneva. */
+ AzureInternalMonitoringPipeline = "AzureInternalMonitoringPipeline"
+}
/**
- * Contains response data for the get operation.
+ * Defines values for DiagnosticsSinkKind. \
+ * {@link KnownDiagnosticsSinkKind} can be used interchangeably with DiagnosticsSinkKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Invalid**: Indicates an invalid sink kind. All Service Fabric enumerations have the invalid type. \
+ * **AzureInternalMonitoringPipeline**: Diagnostics settings for Geneva.
*/
-export type ServiceReplicaGetResponse = ServiceReplicaDescription & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ServiceReplicaDescription;
- };
-};
+export type DiagnosticsSinkKind = string;
+
+/** Known values of {@link SizeTypes} that the service accepts. */
+export enum KnownSizeTypes {
+ Small = "Small",
+ Medium = "Medium",
+ Large = "Large"
+}
/**
- * Contains response data for the list operation.
+ * Defines values for SizeTypes. \
+ * {@link KnownSizeTypes} can be used interchangeably with SizeTypes,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Small** \
+ * **Medium** \
+ * **Large**
*/
-export type ServiceReplicaListResponse = ServiceReplicaDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ServiceReplicaDescriptionList;
- };
-};
+export type SizeTypes = string;
+
+/** Known values of {@link AutoScalingMetricKind} that the service accepts. */
+export enum KnownAutoScalingMetricKind {
+ /** Indicates that the metric is one of resources, like cpu or memory. */
+ Resource = "Resource"
+}
/**
- * Contains response data for the listNext operation.
+ * Defines values for AutoScalingMetricKind. \
+ * {@link KnownAutoScalingMetricKind} can be used interchangeably with AutoScalingMetricKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Resource**: Indicates that the metric is one of resources, like cpu or memory.
*/
-export type ServiceReplicaListNextResponse = ServiceReplicaDescriptionList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ServiceReplicaDescriptionList;
- };
-};
+export type AutoScalingMetricKind = string;
+
+/** Known values of {@link AutoScalingResourceMetricName} that the service accepts. */
+export enum KnownAutoScalingResourceMetricName {
+ /** Indicates that the resource is CPU cores. */
+ Cpu = "cpu",
+ /** Indicates that the resource is memory in GB. */
+ MemoryInGB = "memoryInGB"
+}
/**
- * Contains response data for the getContainerLogs operation.
+ * Defines values for AutoScalingResourceMetricName. \
+ * {@link KnownAutoScalingResourceMetricName} can be used interchangeably with AutoScalingResourceMetricName,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **cpu**: Indicates that the resource is CPU cores. \
+ * **memoryInGB**: Indicates that the resource is memory in GB.
*/
-export type CodePackageGetContainerLogsResponse = ContainerLogs & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ContainerLogs;
- };
-};
+export type AutoScalingResourceMetricName = string;
+
+/** Optional parameters. */
+export interface OperationsListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type OperationsListResponse = OperationListResult;
+
+/** Optional parameters. */
+export interface OperationsListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type OperationsListNextResponse = OperationListResult;
+
+/** Optional parameters. */
+export interface SecretCreateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the create operation. */
+export type SecretCreateResponse = SecretResourceDescription;
+
+/** Optional parameters. */
+export interface SecretGetOptionalParams extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type SecretGetResponse = SecretResourceDescription;
+
+/** Optional parameters. */
+export interface SecretDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface SecretListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroup operation. */
+export type SecretListByResourceGroupResponse = SecretResourceDescriptionList;
+
+/** Optional parameters. */
+export interface SecretListBySubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscription operation. */
+export type SecretListBySubscriptionResponse = SecretResourceDescriptionList;
+
+/** Optional parameters. */
+export interface SecretListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroupNext operation. */
+export type SecretListByResourceGroupNextResponse = SecretResourceDescriptionList;
+
+/** Optional parameters. */
+export interface SecretListBySubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscriptionNext operation. */
+export type SecretListBySubscriptionNextResponse = SecretResourceDescriptionList;
+
+/** Optional parameters. */
+export interface SecretValueCreateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the create operation. */
+export type SecretValueCreateResponse = SecretValueResourceDescription;
+
+/** Optional parameters. */
+export interface SecretValueGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type SecretValueGetResponse = SecretValueResourceDescription;
+
+/** Optional parameters. */
+export interface SecretValueDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface SecretValueListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type SecretValueListResponse = SecretValueResourceDescriptionList;
+
+/** Optional parameters. */
+export interface SecretValueListValueOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listValue operation. */
+export type SecretValueListValueResponse = SecretValue;
+
+/** Optional parameters. */
+export interface SecretValueListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type SecretValueListNextResponse = SecretValueResourceDescriptionList;
+
+/** Optional parameters. */
+export interface VolumeCreateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the create operation. */
+export type VolumeCreateResponse = VolumeResourceDescription;
+
+/** Optional parameters. */
+export interface VolumeGetOptionalParams extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type VolumeGetResponse = VolumeResourceDescription;
+
+/** Optional parameters. */
+export interface VolumeDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface VolumeListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroup operation. */
+export type VolumeListByResourceGroupResponse = VolumeResourceDescriptionList;
+
+/** Optional parameters. */
+export interface VolumeListBySubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscription operation. */
+export type VolumeListBySubscriptionResponse = VolumeResourceDescriptionList;
+
+/** Optional parameters. */
+export interface VolumeListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroupNext operation. */
+export type VolumeListByResourceGroupNextResponse = VolumeResourceDescriptionList;
+
+/** Optional parameters. */
+export interface VolumeListBySubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscriptionNext operation. */
+export type VolumeListBySubscriptionNextResponse = VolumeResourceDescriptionList;
+
+/** Optional parameters. */
+export interface NetworkCreateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the create operation. */
+export type NetworkCreateResponse = NetworkResourceDescription;
+
+/** Optional parameters. */
+export interface NetworkGetOptionalParams extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type NetworkGetResponse = NetworkResourceDescription;
+
+/** Optional parameters. */
+export interface NetworkDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface NetworkListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroup operation. */
+export type NetworkListByResourceGroupResponse = NetworkResourceDescriptionList;
+
+/** Optional parameters. */
+export interface NetworkListBySubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscription operation. */
+export type NetworkListBySubscriptionResponse = NetworkResourceDescriptionList;
+
+/** Optional parameters. */
+export interface NetworkListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroupNext operation. */
+export type NetworkListByResourceGroupNextResponse = NetworkResourceDescriptionList;
+
+/** Optional parameters. */
+export interface NetworkListBySubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscriptionNext operation. */
+export type NetworkListBySubscriptionNextResponse = NetworkResourceDescriptionList;
+
+/** Optional parameters. */
+export interface GatewayCreateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the create operation. */
+export type GatewayCreateResponse = GatewayResourceDescription;
+
+/** Optional parameters. */
+export interface GatewayGetOptionalParams extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type GatewayGetResponse = GatewayResourceDescription;
+
+/** Optional parameters. */
+export interface GatewayDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface GatewayListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroup operation. */
+export type GatewayListByResourceGroupResponse = GatewayResourceDescriptionList;
+
+/** Optional parameters. */
+export interface GatewayListBySubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscription operation. */
+export type GatewayListBySubscriptionResponse = GatewayResourceDescriptionList;
+
+/** Optional parameters. */
+export interface GatewayListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroupNext operation. */
+export type GatewayListByResourceGroupNextResponse = GatewayResourceDescriptionList;
+
+/** Optional parameters. */
+export interface GatewayListBySubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscriptionNext operation. */
+export type GatewayListBySubscriptionNextResponse = GatewayResourceDescriptionList;
+
+/** Optional parameters. */
+export interface ApplicationCreateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the create operation. */
+export type ApplicationCreateResponse = ApplicationResourceDescription;
+
+/** Optional parameters. */
+export interface ApplicationGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type ApplicationGetResponse = ApplicationResourceDescription;
+
+/** Optional parameters. */
+export interface ApplicationDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface ApplicationListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroup operation. */
+export type ApplicationListByResourceGroupResponse = ApplicationResourceDescriptionList;
+
+/** Optional parameters. */
+export interface ApplicationListBySubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscription operation. */
+export type ApplicationListBySubscriptionResponse = ApplicationResourceDescriptionList;
+
+/** Optional parameters. */
+export interface ApplicationListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroupNext operation. */
+export type ApplicationListByResourceGroupNextResponse = ApplicationResourceDescriptionList;
+
+/** Optional parameters. */
+export interface ApplicationListBySubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listBySubscriptionNext operation. */
+export type ApplicationListBySubscriptionNextResponse = ApplicationResourceDescriptionList;
+
+/** Optional parameters. */
+export interface ServiceGetOptionalParams extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type ServiceGetResponse = ServiceResourceDescription;
+
+/** Optional parameters. */
+export interface ServiceListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type ServiceListResponse = ServiceResourceDescriptionList;
+
+/** Optional parameters. */
+export interface ServiceListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type ServiceListNextResponse = ServiceResourceDescriptionList;
+
+/** Optional parameters. */
+export interface ServiceReplicaGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type ServiceReplicaGetResponse = ServiceReplicaDescription;
+
+/** Optional parameters. */
+export interface ServiceReplicaListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type ServiceReplicaListResponse = ServiceReplicaDescriptionList;
+
+/** Optional parameters. */
+export interface ServiceReplicaListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type ServiceReplicaListNextResponse = ServiceReplicaDescriptionList;
+
+/** Optional parameters. */
+export interface CodePackageGetContainerLogsOptionalParams
+ extends coreClient.OperationOptions {
+ /** Number of lines to show from the end of the logs. Default is 100. */
+ tail?: number;
+}
+
+/** Contains response data for the getContainerLogs operation. */
+export type CodePackageGetContainerLogsResponse = ContainerLogs;
+
+/** Optional parameters. */
+export interface ServiceFabricMeshManagementClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Api Version */
+ apiVersion?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts
index 1ea43d8270c7..0820bead7a1f 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts
@@ -1,21 +1,76 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
+export const OperationListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationResult"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationResult",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "AvailableOperationDisplay"
+ }
+ },
+ origin: {
+ serializedName: "origin",
+ type: {
+ name: "String"
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
-export const AvailableOperationDisplay: msRest.CompositeMapper = {
- serializedName: "AvailableOperationDisplay",
+export const AvailableOperationDisplay: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AvailableOperationDisplay",
@@ -48,39 +103,30 @@ export const AvailableOperationDisplay: msRest.CompositeMapper = {
}
};
-export const ErrorDetailsModel: msRest.CompositeMapper = {
- serializedName: "ErrorDetailsModel",
+export const ErrorModel: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorDetailsModel",
+ className: "ErrorModel",
modelProperties: {
- code: {
- required: true,
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- required: true,
- serializedName: "message",
+ error: {
+ serializedName: "error",
type: {
- name: "String"
+ name: "Composite",
+ className: "ErrorErrorModel"
}
}
}
}
};
-export const ErrorErrorModel: msRest.CompositeMapper = {
- serializedName: "ErrorErrorModel",
+export const ErrorErrorModel: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ErrorErrorModel",
modelProperties: {
code: {
- required: true,
serializedName: "code",
+ required: true,
type: {
name: "String"
}
@@ -113,51 +159,21 @@ export const ErrorErrorModel: msRest.CompositeMapper = {
}
};
-export const ErrorModel: msRest.CompositeMapper = {
- serializedName: "ErrorModel",
+export const ErrorDetailsModel: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorModel",
+ className: "ErrorDetailsModel",
modelProperties: {
- error: {
+ code: {
+ serializedName: "code",
required: true,
- serializedName: "error",
- type: {
- name: "Composite",
- className: "ErrorErrorModel"
- }
- }
- }
- }
-};
-
-export const OperationResult: msRest.CompositeMapper = {
- serializedName: "OperationResult",
- type: {
- name: "Composite",
- className: "OperationResult",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- display: {
- serializedName: "display",
- type: {
- name: "Composite",
- className: "AvailableOperationDisplay"
- }
- },
- origin: {
- serializedName: "origin",
type: {
name: "String"
}
},
- nextLink: {
- serializedName: "nextLink",
+ message: {
+ serializedName: "message",
+ required: true,
type: {
name: "String"
}
@@ -166,15 +182,14 @@ export const OperationResult: msRest.CompositeMapper = {
}
};
-export const ProvisionedResourceProperties: msRest.CompositeMapper = {
- serializedName: "ProvisionedResourceProperties",
+export const ProvisionedResourceProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ProvisionedResourceProperties",
modelProperties: {
provisioningState: {
- readOnly: true,
serializedName: "provisioningState",
+ readOnly: true,
type: {
name: "String"
}
@@ -183,29 +198,28 @@ export const ProvisionedResourceProperties: msRest.CompositeMapper = {
}
};
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Resource",
modelProperties: {
id: {
- readOnly: true,
serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
name: {
- readOnly: true,
serializedName: "name",
+ readOnly: true,
type: {
name: "String"
}
},
type: {
- readOnly: true,
serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
@@ -214,39 +228,40 @@ export const Resource: msRest.CompositeMapper = {
}
};
-export const ProxyResource: msRest.CompositeMapper = {
- serializedName: "ProxyResource",
+export const SecretResourceDescriptionList: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ProxyResource",
+ className: "SecretResourceDescriptionList",
modelProperties: {
- ...Resource.type.modelProperties
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SecretResourceDescription"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
}
}
};
-export const ManagedProxyResource: msRest.CompositeMapper = {
- serializedName: "ManagedProxyResource",
+export const SecretValueProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ManagedProxyResource",
+ className: "SecretValueProperties",
modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
+ value: {
+ serializedName: "value",
type: {
name: "String"
}
@@ -255,27 +270,25 @@ export const ManagedProxyResource: msRest.CompositeMapper = {
}
};
-export const TrackedResource: msRest.CompositeMapper = {
- serializedName: "TrackedResource",
+export const SecretValueResourceDescriptionList: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "TrackedResource",
+ className: "SecretValueResourceDescriptionList",
modelProperties: {
- ...Resource.type.modelProperties,
- tags: {
- serializedName: "tags",
+ value: {
+ serializedName: "value",
type: {
- name: "Dictionary",
- value: {
+ name: "Sequence",
+ element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "SecretValueResourceDescription"
}
}
}
},
- location: {
- required: true,
- serializedName: "location",
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -284,21 +297,13 @@ export const TrackedResource: msRest.CompositeMapper = {
}
};
-export const SecretResourcePropertiesBase: msRest.CompositeMapper = {
- serializedName: "SecretResourcePropertiesBase",
+export const SecretValue: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "kind",
- clientName: "kind"
- },
- uberParent: "SecretResourcePropertiesBase",
- className: "SecretResourcePropertiesBase",
+ className: "SecretValue",
modelProperties: {
- ...ProvisionedResourceProperties.type.modelProperties,
- kind: {
- required: true,
- serializedName: "kind",
+ value: {
+ serializedName: "value",
type: {
name: "String"
}
@@ -307,13 +312,11 @@ export const SecretResourcePropertiesBase: msRest.CompositeMapper = {
}
};
-export const SecretResourceProperties: msRest.CompositeMapper = {
- serializedName: "SecretResourceProperties",
+export const VolumeProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SecretResourceProperties",
+ className: "VolumeProperties",
modelProperties: {
- ...SecretResourcePropertiesBase.type.modelProperties,
description: {
serializedName: "description",
type: {
@@ -321,83 +324,85 @@ export const SecretResourceProperties: msRest.CompositeMapper = {
}
},
status: {
- readOnly: true,
serializedName: "status",
+ readOnly: true,
type: {
name: "String"
}
},
statusDetails: {
- readOnly: true,
serializedName: "statusDetails",
+ readOnly: true,
type: {
name: "String"
}
},
- contentType: {
- serializedName: "contentType",
+ provider: {
+ serializedName: "provider",
+ required: true,
type: {
name: "String"
}
+ },
+ azureFileParameters: {
+ serializedName: "azureFileParameters",
+ type: {
+ name: "Composite",
+ className: "VolumeProviderParametersAzureFile"
+ }
}
}
}
};
-export const InlinedValueSecretResourceProperties: msRest.CompositeMapper = {
- serializedName: "inlinedValue",
- type: {
- name: "Composite",
- className: "InlinedValueSecretResourceProperties",
- modelProperties: {
- ...SecretResourceProperties.type.modelProperties
- }
- }
-};
-
-export const SecretResourceDescription: msRest.CompositeMapper = {
- serializedName: "SecretResourceDescription",
+export const VolumeProviderParametersAzureFile: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SecretResourceDescription",
+ className: "VolumeProviderParametersAzureFile",
modelProperties: {
- ...TrackedResource.type.modelProperties,
- properties: {
+ accountName: {
+ serializedName: "accountName",
required: true,
- serializedName: "properties",
type: {
- name: "Composite",
- className: "SecretResourceProperties"
+ name: "String"
+ }
+ },
+ accountKey: {
+ serializedName: "accountKey",
+ type: {
+ name: "String"
+ }
+ },
+ shareName: {
+ serializedName: "shareName",
+ required: true,
+ type: {
+ name: "String"
}
}
}
}
};
-export const SecretValue: msRest.CompositeMapper = {
- serializedName: "SecretValue",
+export const VolumeResourceDescriptionList: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SecretValue",
+ className: "VolumeResourceDescriptionList",
modelProperties: {
value: {
serializedName: "value",
type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const SecretValueProperties: msRest.CompositeMapper = {
- serializedName: "SecretValueProperties",
- type: {
- name: "Composite",
- className: "SecretValueProperties",
- modelProperties: {
- value: {
- serializedName: "value",
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "VolumeResourceDescription"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -406,22 +411,25 @@ export const SecretValueProperties: msRest.CompositeMapper = {
}
};
-export const SecretValueResourceDescription: msRest.CompositeMapper = {
- serializedName: "SecretValueResourceDescription",
+export const NetworkResourceDescriptionList: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SecretValueResourceDescription",
+ className: "NetworkResourceDescriptionList",
modelProperties: {
- ...TrackedResource.type.modelProperties,
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "NetworkResourceDescription"
+ }
+ }
}
},
- value: {
- serializedName: "properties.value",
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -430,132 +438,114 @@ export const SecretValueResourceDescription: msRest.CompositeMapper = {
}
};
-export const VolumeProviderParametersAzureFile: msRest.CompositeMapper = {
- serializedName: "VolumeProviderParametersAzureFile",
+export const GatewayProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "VolumeProviderParametersAzureFile",
+ className: "GatewayProperties",
modelProperties: {
- accountName: {
- required: true,
- serializedName: "accountName",
+ description: {
+ serializedName: "description",
type: {
name: "String"
}
},
- accountKey: {
- serializedName: "accountKey",
+ sourceNetwork: {
+ serializedName: "sourceNetwork",
type: {
- name: "String"
+ name: "Composite",
+ className: "NetworkRef"
}
},
- shareName: {
- required: true,
- serializedName: "shareName",
+ destinationNetwork: {
+ serializedName: "destinationNetwork",
type: {
- name: "String"
+ name: "Composite",
+ className: "NetworkRef"
}
- }
- }
- }
-};
-
-export const VolumeProperties: msRest.CompositeMapper = {
- serializedName: "VolumeProperties",
- type: {
- name: "Composite",
- className: "VolumeProperties",
- modelProperties: {
- description: {
- serializedName: "description",
+ },
+ tcp: {
+ serializedName: "tcp",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "TcpConfig"
+ }
+ }
+ }
+ },
+ http: {
+ serializedName: "http",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "HttpConfig"
+ }
+ }
}
},
status: {
- readOnly: true,
serializedName: "status",
+ readOnly: true,
type: {
name: "String"
}
},
statusDetails: {
- readOnly: true,
serializedName: "statusDetails",
+ readOnly: true,
type: {
name: "String"
}
},
- provider: {
- required: true,
- isConstant: true,
- serializedName: "provider",
- defaultValue: 'SFAzureFile',
+ ipAddress: {
+ serializedName: "ipAddress",
+ readOnly: true,
type: {
name: "String"
}
- },
- azureFileParameters: {
- serializedName: "azureFileParameters",
- type: {
- name: "Composite",
- className: "VolumeProviderParametersAzureFile"
- }
}
}
}
};
-export const VolumeReference: msRest.CompositeMapper = {
- serializedName: "VolumeReference",
+export const NetworkRef: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "VolumeReference",
+ className: "NetworkRef",
modelProperties: {
name: {
- required: true,
serializedName: "name",
type: {
name: "String"
}
},
- readOnly: {
- serializedName: "readOnly",
- type: {
- name: "Boolean"
- }
- },
- destinationPath: {
- required: true,
- serializedName: "destinationPath",
+ endpointRefs: {
+ serializedName: "endpointRefs",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "EndpointRef"
+ }
+ }
}
}
}
}
};
-export const ApplicationScopedVolumeCreationParameters: msRest.CompositeMapper = {
- serializedName: "ApplicationScopedVolumeCreationParameters",
+export const EndpointRef: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "kind",
- clientName: "kind"
- },
- uberParent: "ApplicationScopedVolumeCreationParameters",
- className: "ApplicationScopedVolumeCreationParameters",
+ className: "EndpointRef",
modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- kind: {
- required: true,
- serializedName: "kind",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
@@ -564,206 +554,123 @@ export const ApplicationScopedVolumeCreationParameters: msRest.CompositeMapper =
}
};
-export const ApplicationScopedVolume: msRest.CompositeMapper = {
- serializedName: "ApplicationScopedVolume",
+export const TcpConfig: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ApplicationScopedVolume",
+ className: "TcpConfig",
modelProperties: {
- ...VolumeReference.type.modelProperties,
- creationParameters: {
+ name: {
+ serializedName: "name",
required: true,
- serializedName: "creationParameters",
type: {
- name: "Composite",
- className: "ApplicationScopedVolumeCreationParameters"
+ name: "String"
}
- }
- }
- }
-};
-
-export const ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk: msRest.CompositeMapper = {
- serializedName: "ServiceFabricVolumeDisk",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ApplicationScopedVolumeCreationParameters.type.polymorphicDiscriminator,
- uberParent: "ApplicationScopedVolumeCreationParameters",
- className: "ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk",
- modelProperties: {
- ...ApplicationScopedVolumeCreationParameters.type.modelProperties,
- sizeDisk: {
+ },
+ port: {
+ serializedName: "port",
required: true,
- serializedName: "sizeDisk",
type: {
- name: "String"
+ name: "Number"
+ }
+ },
+ destination: {
+ serializedName: "destination",
+ type: {
+ name: "Composite",
+ className: "GatewayDestination"
}
}
}
}
};
-export const VolumeResourceDescription: msRest.CompositeMapper = {
- serializedName: "VolumeResourceDescription",
+export const GatewayDestination: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "VolumeResourceDescription",
+ className: "GatewayDestination",
modelProperties: {
- ...TrackedResource.type.modelProperties,
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
+ applicationName: {
+ serializedName: "applicationName",
+ required: true,
type: {
name: "String"
}
},
- description: {
- serializedName: "properties.description",
+ serviceName: {
+ serializedName: "serviceName",
+ required: true,
type: {
name: "String"
}
},
- status: {
- readOnly: true,
- serializedName: "properties.status",
+ endpointName: {
+ serializedName: "endpointName",
+ required: true,
type: {
name: "String"
}
- },
- statusDetails: {
- readOnly: true,
- serializedName: "properties.statusDetails",
+ }
+ }
+ }
+};
+
+export const HttpConfig: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "HttpConfig",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- provider: {
+ port: {
+ serializedName: "port",
required: true,
- isConstant: true,
- serializedName: "properties.provider",
- defaultValue: 'SFAzureFile',
type: {
- name: "String"
+ name: "Number"
}
},
- azureFileParameters: {
- serializedName: "properties.azureFileParameters",
+ hosts: {
+ serializedName: "hosts",
+ required: true,
type: {
- name: "Composite",
- className: "VolumeProviderParametersAzureFile"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "HttpHostConfig"
+ }
+ }
}
}
}
}
};
-export const NetworkResourcePropertiesBase: msRest.CompositeMapper = {
- serializedName: "NetworkResourcePropertiesBase",
+export const HttpHostConfig: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "kind",
- clientName: "kind"
- },
- uberParent: "NetworkResourcePropertiesBase",
- className: "NetworkResourcePropertiesBase",
+ className: "HttpHostConfig",
modelProperties: {
- ...ProvisionedResourceProperties.type.modelProperties,
- kind: {
+ name: {
+ serializedName: "name",
required: true,
- serializedName: "kind",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const NetworkResourceProperties: msRest.CompositeMapper = {
- serializedName: "NetworkResourceProperties",
- type: {
- name: "Composite",
- className: "NetworkResourceProperties",
- modelProperties: {
- ...NetworkResourcePropertiesBase.type.modelProperties,
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- status: {
- readOnly: true,
- serializedName: "status",
- type: {
- name: "String"
- }
- },
- statusDetails: {
- readOnly: true,
- serializedName: "statusDetails",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const LocalNetworkResourceProperties: msRest.CompositeMapper = {
- serializedName: "Local",
- type: {
- name: "Composite",
- className: "LocalNetworkResourceProperties",
- modelProperties: {
- ...NetworkResourceProperties.type.modelProperties,
- networkAddressPrefix: {
- serializedName: "networkAddressPrefix",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const EndpointRef: msRest.CompositeMapper = {
- serializedName: "EndpointRef",
- type: {
- name: "Composite",
- className: "EndpointRef",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const NetworkRef: msRest.CompositeMapper = {
- serializedName: "NetworkRef",
- type: {
- name: "Composite",
- className: "NetworkRef",
- modelProperties: {
- name: {
- serializedName: "name",
type: {
name: "String"
}
},
- endpointRefs: {
- serializedName: "endpointRefs",
+ routes: {
+ serializedName: "routes",
+ required: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "EndpointRef"
+ className: "HttpRouteConfig"
}
}
}
@@ -772,97 +679,72 @@ export const NetworkRef: msRest.CompositeMapper = {
}
};
-export const NetworkResourceDescription: msRest.CompositeMapper = {
- serializedName: "NetworkResourceDescription",
- type: {
- name: "Composite",
- className: "NetworkResourceDescription",
- modelProperties: {
- ...TrackedResource.type.modelProperties,
- properties: {
- required: true,
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "NetworkResourceProperties"
- }
- }
- }
- }
-};
-
-export const GatewayDestination: msRest.CompositeMapper = {
- serializedName: "GatewayDestination",
+export const HttpRouteConfig: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "GatewayDestination",
+ className: "HttpRouteConfig",
modelProperties: {
- applicationName: {
+ name: {
+ serializedName: "name",
required: true,
- serializedName: "applicationName",
type: {
name: "String"
}
},
- serviceName: {
- required: true,
- serializedName: "serviceName",
+ match: {
+ serializedName: "match",
type: {
- name: "String"
+ name: "Composite",
+ className: "HttpRouteMatchRule"
}
},
- endpointName: {
- required: true,
- serializedName: "endpointName",
+ destination: {
+ serializedName: "destination",
type: {
- name: "String"
+ name: "Composite",
+ className: "GatewayDestination"
}
}
}
}
};
-export const TcpConfig: msRest.CompositeMapper = {
- serializedName: "TcpConfig",
+export const HttpRouteMatchRule: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "TcpConfig",
+ className: "HttpRouteMatchRule",
modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- port: {
- required: true,
- serializedName: "port",
+ path: {
+ serializedName: "path",
type: {
- name: "Number"
+ name: "Composite",
+ className: "HttpRouteMatchPath"
}
},
- destination: {
- required: true,
- serializedName: "destination",
+ headers: {
+ serializedName: "headers",
type: {
- name: "Composite",
- className: "GatewayDestination"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "HttpRouteMatchHeader"
+ }
+ }
}
}
}
}
};
-export const HttpRouteMatchPath: msRest.CompositeMapper = {
- serializedName: "HttpRouteMatchPath",
+export const HttpRouteMatchPath: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "HttpRouteMatchPath",
modelProperties: {
value: {
- required: true,
serializedName: "value",
+ required: true,
type: {
name: "String"
}
@@ -874,10 +756,8 @@ export const HttpRouteMatchPath: msRest.CompositeMapper = {
}
},
type: {
- required: true,
- isConstant: true,
serializedName: "type",
- defaultValue: 'prefix',
+ required: true,
type: {
name: "String"
}
@@ -886,15 +766,14 @@ export const HttpRouteMatchPath: msRest.CompositeMapper = {
}
};
-export const HttpRouteMatchHeader: msRest.CompositeMapper = {
- serializedName: "HttpRouteMatchHeader",
+export const HttpRouteMatchHeader: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "HttpRouteMatchHeader",
modelProperties: {
name: {
- required: true,
serializedName: "name",
+ required: true,
type: {
name: "String"
}
@@ -915,316 +794,328 @@ export const HttpRouteMatchHeader: msRest.CompositeMapper = {
}
};
-export const HttpRouteMatchRule: msRest.CompositeMapper = {
- serializedName: "HttpRouteMatchRule",
+export const GatewayResourceDescriptionList: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "HttpRouteMatchRule",
+ className: "GatewayResourceDescriptionList",
modelProperties: {
- path: {
- required: true,
- serializedName: "path",
- defaultValue: {},
- type: {
- name: "Composite",
- className: "HttpRouteMatchPath"
- }
- },
- headers: {
- serializedName: "headers",
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "HttpRouteMatchHeader"
+ className: "GatewayResourceDescription"
}
}
}
- }
- }
- }
-};
-
-export const HttpRouteConfig: msRest.CompositeMapper = {
- serializedName: "HttpRouteConfig",
- type: {
- name: "Composite",
- className: "HttpRouteConfig",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- match: {
- required: true,
- serializedName: "match",
- defaultValue: {},
- type: {
- name: "Composite",
- className: "HttpRouteMatchRule"
- }
},
- destination: {
- required: true,
- serializedName: "destination",
+ nextLink: {
+ serializedName: "nextLink",
type: {
- name: "Composite",
- className: "GatewayDestination"
+ name: "String"
}
}
}
}
};
-export const HttpHostConfig: msRest.CompositeMapper = {
- serializedName: "HttpHostConfig",
+export const ApplicationProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "HttpHostConfig",
+ className: "ApplicationProperties",
modelProperties: {
- name: {
- required: true,
- serializedName: "name",
+ description: {
+ serializedName: "description",
type: {
name: "String"
}
},
- routes: {
- required: true,
- serializedName: "routes",
+ services: {
+ serializedName: "services",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "HttpRouteConfig"
+ className: "ServiceResourceDescription"
}
}
}
- }
- }
- }
-};
-
-export const HttpConfig: msRest.CompositeMapper = {
- serializedName: "HttpConfig",
- type: {
- name: "Composite",
- className: "HttpConfig",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
+ },
+ diagnostics: {
+ serializedName: "diagnostics",
type: {
- name: "String"
+ name: "Composite",
+ className: "DiagnosticsDescription"
}
},
- port: {
- required: true,
- serializedName: "port",
+ debugParams: {
+ serializedName: "debugParams",
type: {
- name: "Number"
+ name: "String"
}
},
- hosts: {
- required: true,
- serializedName: "hosts",
+ serviceNames: {
+ serializedName: "serviceNames",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "HttpHostConfig"
+ name: "String"
}
}
}
- }
- }
- }
-};
-
-export const GatewayProperties: msRest.CompositeMapper = {
- serializedName: "GatewayProperties",
- type: {
- name: "Composite",
- className: "GatewayProperties",
- modelProperties: {
- description: {
- serializedName: "description",
+ },
+ status: {
+ serializedName: "status",
+ readOnly: true,
type: {
name: "String"
}
},
- sourceNetwork: {
- required: true,
- serializedName: "sourceNetwork",
+ statusDetails: {
+ serializedName: "statusDetails",
+ readOnly: true,
type: {
- name: "Composite",
- className: "NetworkRef"
+ name: "String"
}
},
- destinationNetwork: {
+ healthState: {
+ serializedName: "healthState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ unhealthyEvaluation: {
+ serializedName: "unhealthyEvaluation",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceReplicaProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceReplicaProperties",
+ modelProperties: {
+ osType: {
+ serializedName: "osType",
required: true,
- serializedName: "destinationNetwork",
type: {
- name: "Composite",
- className: "NetworkRef"
+ name: "String"
}
},
- tcp: {
- serializedName: "tcp",
+ codePackages: {
+ serializedName: "codePackages",
+ required: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "TcpConfig"
+ className: "ContainerCodePackageProperties"
}
}
}
},
- http: {
- serializedName: "http",
+ networkRefs: {
+ serializedName: "networkRefs",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "HttpConfig"
+ className: "NetworkRef"
}
}
}
},
- status: {
- readOnly: true,
- serializedName: "status",
- type: {
- name: "String"
- }
- },
- statusDetails: {
- readOnly: true,
- serializedName: "statusDetails",
- type: {
- name: "String"
- }
- },
- ipAddress: {
- readOnly: true,
- serializedName: "ipAddress",
+ diagnostics: {
+ serializedName: "diagnostics",
type: {
- name: "String"
+ name: "Composite",
+ className: "DiagnosticsRef"
}
}
}
}
};
-export const GatewayResourceDescription: msRest.CompositeMapper = {
- serializedName: "GatewayResourceDescription",
+export const ContainerCodePackageProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "GatewayResourceDescription",
+ className: "ContainerCodePackageProperties",
modelProperties: {
- ...TrackedResource.type.modelProperties,
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
+ name: {
+ serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- description: {
- serializedName: "properties.description",
+ image: {
+ serializedName: "image",
+ required: true,
type: {
name: "String"
}
},
- sourceNetwork: {
- required: true,
- serializedName: "properties.sourceNetwork",
+ imageRegistryCredential: {
+ serializedName: "imageRegistryCredential",
type: {
name: "Composite",
- className: "NetworkRef"
+ className: "ImageRegistryCredential"
}
},
- destinationNetwork: {
- required: true,
- serializedName: "properties.destinationNetwork",
+ entrypoint: {
+ serializedName: "entrypoint",
+ type: {
+ name: "String"
+ }
+ },
+ commands: {
+ serializedName: "commands",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ environmentVariables: {
+ serializedName: "environmentVariables",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "EnvironmentVariable"
+ }
+ }
+ }
+ },
+ settings: {
+ serializedName: "settings",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Setting"
+ }
+ }
+ }
+ },
+ labels: {
+ serializedName: "labels",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ContainerLabel"
+ }
+ }
+ }
+ },
+ endpoints: {
+ serializedName: "endpoints",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "EndpointProperties"
+ }
+ }
+ }
+ },
+ resources: {
+ serializedName: "resources",
type: {
name: "Composite",
- className: "NetworkRef"
+ className: "ResourceRequirements"
}
},
- tcp: {
- serializedName: "properties.tcp",
+ volumeRefs: {
+ serializedName: "volumeRefs",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "TcpConfig"
+ className: "VolumeReference"
}
}
}
},
- http: {
- serializedName: "properties.http",
+ volumes: {
+ serializedName: "volumes",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "HttpConfig"
+ className: "ApplicationScopedVolume"
}
}
}
},
- status: {
- readOnly: true,
- serializedName: "properties.status",
+ diagnostics: {
+ serializedName: "diagnostics",
type: {
- name: "String"
+ name: "Composite",
+ className: "DiagnosticsRef"
}
},
- statusDetails: {
- readOnly: true,
- serializedName: "properties.statusDetails",
+ reliableCollectionsRefs: {
+ serializedName: "reliableCollectionsRefs",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReliableCollectionsRef"
+ }
+ }
}
},
- ipAddress: {
- readOnly: true,
- serializedName: "properties.ipAddress",
+ instanceView: {
+ serializedName: "instanceView",
type: {
- name: "String"
+ name: "Composite",
+ className: "ContainerInstanceView"
}
}
}
}
};
-export const ImageRegistryCredential: msRest.CompositeMapper = {
- serializedName: "ImageRegistryCredential",
+export const ImageRegistryCredential: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ImageRegistryCredential",
modelProperties: {
server: {
- required: true,
serializedName: "server",
+ required: true,
type: {
name: "String"
}
},
username: {
- required: true,
serializedName: "username",
+ required: true,
type: {
name: "String"
}
@@ -1239,8 +1130,7 @@ export const ImageRegistryCredential: msRest.CompositeMapper = {
}
};
-export const EnvironmentVariable: msRest.CompositeMapper = {
- serializedName: "EnvironmentVariable",
+export const EnvironmentVariable: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "EnvironmentVariable",
@@ -1261,8 +1151,7 @@ export const EnvironmentVariable: msRest.CompositeMapper = {
}
};
-export const Setting: msRest.CompositeMapper = {
- serializedName: "Setting",
+export const Setting: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Setting",
@@ -1283,22 +1172,21 @@ export const Setting: msRest.CompositeMapper = {
}
};
-export const ContainerLabel: msRest.CompositeMapper = {
- serializedName: "ContainerLabel",
+export const ContainerLabel: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ContainerLabel",
modelProperties: {
name: {
- required: true,
serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
value: {
- required: true,
serializedName: "value",
+ required: true,
type: {
name: "String"
}
@@ -1307,15 +1195,14 @@ export const ContainerLabel: msRest.CompositeMapper = {
}
};
-export const EndpointProperties: msRest.CompositeMapper = {
- serializedName: "EndpointProperties",
+export const EndpointProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "EndpointProperties",
modelProperties: {
name: {
- required: true,
serializedName: "name",
+ required: true,
type: {
name: "String"
}
@@ -1330,22 +1217,44 @@ export const EndpointProperties: msRest.CompositeMapper = {
}
};
-export const ResourceRequests: msRest.CompositeMapper = {
- serializedName: "ResourceRequests",
+export const ResourceRequirements: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ResourceRequirements",
+ modelProperties: {
+ requests: {
+ serializedName: "requests",
+ type: {
+ name: "Composite",
+ className: "ResourceRequests"
+ }
+ },
+ limits: {
+ serializedName: "limits",
+ type: {
+ name: "Composite",
+ className: "ResourceLimits"
+ }
+ }
+ }
+ }
+};
+
+export const ResourceRequests: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ResourceRequests",
modelProperties: {
memoryInGB: {
- required: true,
serializedName: "memoryInGB",
+ required: true,
type: {
name: "Number"
}
},
cpu: {
- required: true,
serializedName: "cpu",
+ required: true,
type: {
name: "Number"
}
@@ -1354,8 +1263,7 @@ export const ResourceRequests: msRest.CompositeMapper = {
}
};
-export const ResourceLimits: msRest.CompositeMapper = {
- serializedName: "ResourceLimits",
+export const ResourceLimits: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ResourceLimits",
@@ -1376,33 +1284,63 @@ export const ResourceLimits: msRest.CompositeMapper = {
}
};
-export const ResourceRequirements: msRest.CompositeMapper = {
- serializedName: "ResourceRequirements",
+export const VolumeReference: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ResourceRequirements",
+ className: "VolumeReference",
modelProperties: {
- requests: {
+ name: {
+ serializedName: "name",
required: true,
- serializedName: "requests",
type: {
- name: "Composite",
- className: "ResourceRequests"
+ name: "String"
}
},
- limits: {
- serializedName: "limits",
+ readOnly: {
+ serializedName: "readOnly",
type: {
- name: "Composite",
- className: "ResourceLimits"
+ name: "Boolean"
+ }
+ },
+ destinationPath: {
+ serializedName: "destinationPath",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ApplicationScopedVolumeCreationParameters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ApplicationScopedVolumeCreationParameters",
+ uberParent: "ApplicationScopedVolumeCreationParameters",
+ polymorphicDiscriminator: {
+ serializedName: "kind",
+ clientName: "kind"
+ },
+ modelProperties: {
+ kind: {
+ serializedName: "kind",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
}
}
}
}
};
-export const DiagnosticsRef: msRest.CompositeMapper = {
- serializedName: "DiagnosticsRef",
+export const DiagnosticsRef: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "DiagnosticsRef",
@@ -1428,15 +1366,14 @@ export const DiagnosticsRef: msRest.CompositeMapper = {
}
};
-export const ReliableCollectionsRef: msRest.CompositeMapper = {
- serializedName: "ReliableCollectionsRef",
+export const ReliableCollectionsRef: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ReliableCollectionsRef",
modelProperties: {
name: {
- required: true,
serializedName: "name",
+ required: true,
type: {
name: "String"
}
@@ -1451,8 +1388,48 @@ export const ReliableCollectionsRef: msRest.CompositeMapper = {
}
};
-export const ContainerState: msRest.CompositeMapper = {
- serializedName: "ContainerState",
+export const ContainerInstanceView: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ContainerInstanceView",
+ modelProperties: {
+ restartCount: {
+ serializedName: "restartCount",
+ type: {
+ name: "Number"
+ }
+ },
+ currentState: {
+ serializedName: "currentState",
+ type: {
+ name: "Composite",
+ className: "ContainerState"
+ }
+ },
+ previousState: {
+ serializedName: "previousState",
+ type: {
+ name: "Composite",
+ className: "ContainerState"
+ }
+ },
+ events: {
+ serializedName: "events",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ContainerEvent"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ContainerState: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ContainerState",
@@ -1491,8 +1468,7 @@ export const ContainerState: msRest.CompositeMapper = {
}
};
-export const ContainerEvent: msRest.CompositeMapper = {
- serializedName: "ContainerEvent",
+export const ContainerEvent: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ContainerEvent",
@@ -1537,217 +1513,348 @@ export const ContainerEvent: msRest.CompositeMapper = {
}
};
-export const ContainerInstanceView: msRest.CompositeMapper = {
- serializedName: "ContainerInstanceView",
+export const ServiceProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ContainerInstanceView",
+ className: "ServiceProperties",
modelProperties: {
- restartCount: {
- serializedName: "restartCount",
- type: {
- name: "Number"
- }
- },
- currentState: {
- serializedName: "currentState",
+ description: {
+ serializedName: "description",
type: {
- name: "Composite",
- className: "ContainerState"
+ name: "String"
}
},
- previousState: {
- serializedName: "previousState",
+ replicaCount: {
+ serializedName: "replicaCount",
type: {
- name: "Composite",
- className: "ContainerState"
+ name: "Number"
}
},
- events: {
- serializedName: "events",
+ autoScalingPolicies: {
+ serializedName: "autoScalingPolicies",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ContainerEvent"
+ className: "AutoScalingPolicy"
}
}
}
+ },
+ status: {
+ serializedName: "status",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ statusDetails: {
+ serializedName: "statusDetails",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ healthState: {
+ serializedName: "healthState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ unhealthyEvaluation: {
+ serializedName: "unhealthyEvaluation",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
}
}
}
};
-export const ContainerCodePackageProperties: msRest.CompositeMapper = {
- serializedName: "ContainerCodePackageProperties",
+export const AutoScalingPolicy: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ContainerCodePackageProperties",
+ className: "AutoScalingPolicy",
modelProperties: {
name: {
- required: true,
serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- image: {
- required: true,
- serializedName: "image",
+ trigger: {
+ serializedName: "trigger",
type: {
- name: "String"
+ name: "Composite",
+ className: "AutoScalingTrigger"
}
},
- imageRegistryCredential: {
- serializedName: "imageRegistryCredential",
+ mechanism: {
+ serializedName: "mechanism",
type: {
name: "Composite",
- className: "ImageRegistryCredential"
+ className: "AutoScalingMechanism"
}
- },
- entrypoint: {
- serializedName: "entrypoint",
+ }
+ }
+ }
+};
+
+export const AutoScalingTrigger: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AutoScalingTrigger",
+ uberParent: "AutoScalingTrigger",
+ polymorphicDiscriminator: {
+ serializedName: "kind",
+ clientName: "kind"
+ },
+ modelProperties: {
+ kind: {
+ serializedName: "kind",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AutoScalingMechanism: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AutoScalingMechanism",
+ uberParent: "AutoScalingMechanism",
+ polymorphicDiscriminator: {
+ serializedName: "kind",
+ clientName: "kind"
+ },
+ modelProperties: {
+ kind: {
+ serializedName: "kind",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ManagedProxyResource: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ManagedProxyResource",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
- commands: {
- serializedName: "commands",
+ name: {
+ serializedName: "name",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- environmentVariables: {
- serializedName: "environmentVariables",
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DiagnosticsDescription: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "DiagnosticsDescription",
+ modelProperties: {
+ sinks: {
+ serializedName: "sinks",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "EnvironmentVariable"
+ className: "DiagnosticsSinkProperties"
}
}
}
},
- settings: {
- serializedName: "settings",
+ enabled: {
+ serializedName: "enabled",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Setting"
- }
- }
+ name: "Boolean"
}
},
- labels: {
- serializedName: "labels",
+ defaultSinkRefs: {
+ serializedName: "defaultSinkRefs",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "ContainerLabel"
+ name: "String"
}
}
}
- },
- endpoints: {
- serializedName: "endpoints",
+ }
+ }
+ }
+};
+
+export const DiagnosticsSinkProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "DiagnosticsSinkProperties",
+ uberParent: "DiagnosticsSinkProperties",
+ polymorphicDiscriminator: {
+ serializedName: "kind",
+ clientName: "kind"
+ },
+ modelProperties: {
+ kind: {
+ serializedName: "kind",
+ required: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "EndpointProperties"
- }
- }
+ name: "String"
}
},
- resources: {
- required: true,
- serializedName: "resources",
+ name: {
+ serializedName: "name",
type: {
- name: "Composite",
- className: "ResourceRequirements"
+ name: "String"
}
},
- volumeRefs: {
- serializedName: "volumeRefs",
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ApplicationResourceDescriptionList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ApplicationResourceDescriptionList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "VolumeReference"
+ className: "ApplicationResourceDescription"
}
}
}
},
- volumes: {
- serializedName: "volumes",
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceResourceDescriptionList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceResourceDescriptionList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ApplicationScopedVolume"
+ className: "ServiceResourceDescription"
}
}
}
},
- diagnostics: {
- serializedName: "diagnostics",
+ nextLink: {
+ serializedName: "nextLink",
type: {
- name: "Composite",
- className: "DiagnosticsRef"
+ name: "String"
}
- },
- reliableCollectionsRefs: {
- serializedName: "reliableCollectionsRefs",
+ }
+ }
+ }
+};
+
+export const ServiceReplicaDescriptionList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceReplicaDescriptionList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ReliableCollectionsRef"
+ className: "ServiceReplicaDescription"
}
}
}
},
- instanceView: {
- readOnly: true,
- serializedName: "instanceView",
+ nextLink: {
+ serializedName: "nextLink",
type: {
- name: "Composite",
- className: "ContainerInstanceView"
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ContainerLogs: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ContainerLogs",
+ modelProperties: {
+ content: {
+ serializedName: "content",
+ type: {
+ name: "String"
}
}
}
}
};
-export const AutoScalingTrigger: msRest.CompositeMapper = {
- serializedName: "AutoScalingTrigger",
+export const AutoScalingMetric: coreClient.CompositeMapper = {
type: {
name: "Composite",
+ className: "AutoScalingMetric",
+ uberParent: "AutoScalingMetric",
polymorphicDiscriminator: {
serializedName: "kind",
clientName: "kind"
},
- uberParent: "AutoScalingTrigger",
- className: "AutoScalingTrigger",
modelProperties: {
kind: {
- required: true,
serializedName: "kind",
+ required: true,
type: {
name: "String"
}
@@ -1756,20 +1863,21 @@ export const AutoScalingTrigger: msRest.CompositeMapper = {
}
};
-export const AutoScalingMechanism: msRest.CompositeMapper = {
- serializedName: "AutoScalingMechanism",
+export const SecretResourcePropertiesBase: coreClient.CompositeMapper = {
+ serializedName: "SecretResourcePropertiesBase",
type: {
name: "Composite",
+ className: "SecretResourcePropertiesBase",
+ uberParent: "ProvisionedResourceProperties",
polymorphicDiscriminator: {
serializedName: "kind",
clientName: "kind"
},
- uberParent: "AutoScalingMechanism",
- className: "AutoScalingMechanism",
modelProperties: {
+ ...ProvisionedResourceProperties.type.modelProperties,
kind: {
- required: true,
serializedName: "kind",
+ required: true,
type: {
name: "String"
}
@@ -1778,140 +1886,128 @@ export const AutoScalingMechanism: msRest.CompositeMapper = {
}
};
-export const AutoScalingPolicy: msRest.CompositeMapper = {
- serializedName: "AutoScalingPolicy",
+export const SecretValueResourceProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AutoScalingPolicy",
+ className: "SecretValueResourceProperties",
modelProperties: {
- name: {
+ ...ProvisionedResourceProperties.type.modelProperties,
+ ...SecretValueProperties.type.modelProperties
+ }
+ }
+};
+
+export const VolumeResourceProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "VolumeResourceProperties",
+ modelProperties: {
+ ...ProvisionedResourceProperties.type.modelProperties,
+ ...VolumeProperties.type.modelProperties
+ }
+ }
+};
+
+export const NetworkResourcePropertiesBase: coreClient.CompositeMapper = {
+ serializedName: "NetworkResourcePropertiesBase",
+ type: {
+ name: "Composite",
+ className: "NetworkResourcePropertiesBase",
+ uberParent: "ProvisionedResourceProperties",
+ polymorphicDiscriminator: {
+ serializedName: "kind",
+ clientName: "kind"
+ },
+ modelProperties: {
+ ...ProvisionedResourceProperties.type.modelProperties,
+ kind: {
+ serializedName: "kind",
required: true,
- serializedName: "name",
type: {
name: "String"
}
- },
- trigger: {
- required: true,
- serializedName: "trigger",
+ }
+ }
+ }
+};
+
+export const GatewayResourceProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "GatewayResourceProperties",
+ modelProperties: {
+ ...ProvisionedResourceProperties.type.modelProperties,
+ ...GatewayProperties.type.modelProperties
+ }
+ }
+};
+
+export const ServiceResourceProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceResourceProperties",
+ modelProperties: {
+ ...ProvisionedResourceProperties.type.modelProperties,
+ ...ServiceReplicaProperties.type.modelProperties,
+ ...ServiceProperties.type.modelProperties
+ }
+ }
+};
+
+export const ApplicationResourceProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ApplicationResourceProperties",
+ modelProperties: {
+ ...ProvisionedResourceProperties.type.modelProperties,
+ ...ApplicationProperties.type.modelProperties
+ }
+ }
+};
+
+export const TrackedResource: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "TrackedResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "Composite",
- className: "AutoScalingTrigger"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- mechanism: {
+ location: {
+ serializedName: "location",
required: true,
- serializedName: "mechanism",
type: {
- name: "Composite",
- className: "AutoScalingMechanism"
+ name: "String"
}
}
}
}
};
-export const ServiceResourceDescription: msRest.CompositeMapper = {
- serializedName: "ServiceResourceDescription",
+export const ProxyResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ServiceResourceDescription",
+ className: "ProxyResource",
modelProperties: {
- ...ManagedProxyResource.type.modelProperties,
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
- type: {
- name: "String"
- }
- },
- osType: {
+ ...Resource.type.modelProperties
+ }
+ }
+};
+
+export const ServiceReplicaDescription: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceReplicaDescription",
+ modelProperties: {
+ ...ServiceReplicaProperties.type.modelProperties,
+ replicaName: {
+ serializedName: "replicaName",
required: true,
- serializedName: "properties.osType",
- type: {
- name: "String"
- }
- },
- codePackages: {
- required: true,
- serializedName: "properties.codePackages",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ContainerCodePackageProperties"
- }
- }
- }
- },
- networkRefs: {
- serializedName: "properties.networkRefs",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "NetworkRef"
- }
- }
- }
- },
- diagnostics: {
- serializedName: "properties.diagnostics",
- type: {
- name: "Composite",
- className: "DiagnosticsRef"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- replicaCount: {
- serializedName: "properties.replicaCount",
- type: {
- name: "Number"
- }
- },
- autoScalingPolicies: {
- serializedName: "properties.autoScalingPolicies",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AutoScalingPolicy"
- }
- }
- }
- },
- status: {
- readOnly: true,
- serializedName: "properties.status",
- type: {
- name: "String"
- }
- },
- statusDetails: {
- readOnly: true,
- serializedName: "properties.statusDetails",
- type: {
- name: "String"
- }
- },
- healthState: {
- readOnly: true,
- serializedName: "properties.healthState",
- type: {
- name: "String"
- }
- },
- unhealthyEvaluation: {
- readOnly: true,
- serializedName: "properties.unhealthyEvaluation",
type: {
name: "String"
}
@@ -1920,231 +2016,165 @@ export const ServiceResourceDescription: msRest.CompositeMapper = {
}
};
-export const DiagnosticsSinkProperties: msRest.CompositeMapper = {
- serializedName: "DiagnosticsSinkProperties",
+export const ApplicationScopedVolume: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "kind",
- clientName: "kind"
- },
- uberParent: "DiagnosticsSinkProperties",
- className: "DiagnosticsSinkProperties",
+ className: "ApplicationScopedVolume",
modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- kind: {
- required: true,
- serializedName: "kind",
+ ...VolumeReference.type.modelProperties,
+ creationParameters: {
+ serializedName: "creationParameters",
type: {
- name: "String"
+ name: "Composite",
+ className: "ApplicationScopedVolumeCreationParameters"
}
}
}
}
};
-export const DiagnosticsDescription: msRest.CompositeMapper = {
- serializedName: "DiagnosticsDescription",
+export const ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk: coreClient.CompositeMapper = {
+ serializedName: "ServiceFabricVolumeDisk",
type: {
name: "Composite",
- className: "DiagnosticsDescription",
+ className:
+ "ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk",
+ uberParent: "ApplicationScopedVolumeCreationParameters",
+ polymorphicDiscriminator:
+ ApplicationScopedVolumeCreationParameters.type.polymorphicDiscriminator,
modelProperties: {
- sinks: {
- serializedName: "sinks",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "DiagnosticsSinkProperties"
- }
- }
- }
- },
- enabled: {
- serializedName: "enabled",
- type: {
- name: "Boolean"
- }
- },
- defaultSinkRefs: {
- serializedName: "defaultSinkRefs",
+ ...ApplicationScopedVolumeCreationParameters.type.modelProperties,
+ sizeDisk: {
+ serializedName: "sizeDisk",
+ required: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
}
}
}
};
-export const ApplicationProperties: msRest.CompositeMapper = {
- serializedName: "ApplicationProperties",
+export const AverageLoadScalingTrigger: coreClient.CompositeMapper = {
+ serializedName: "AverageLoad",
type: {
name: "Composite",
- className: "ApplicationProperties",
+ className: "AverageLoadScalingTrigger",
+ uberParent: "AutoScalingTrigger",
+ polymorphicDiscriminator: AutoScalingTrigger.type.polymorphicDiscriminator,
modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- services: {
- serializedName: "services",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ServiceResourceDescription"
- }
- }
- }
- },
- diagnostics: {
- serializedName: "diagnostics",
+ ...AutoScalingTrigger.type.modelProperties,
+ metric: {
+ serializedName: "metric",
type: {
name: "Composite",
- className: "DiagnosticsDescription"
- }
- },
- debugParams: {
- serializedName: "debugParams",
- type: {
- name: "String"
- }
- },
- serviceNames: {
- readOnly: true,
- serializedName: "serviceNames",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- status: {
- readOnly: true,
- serializedName: "status",
- type: {
- name: "String"
+ className: "AutoScalingMetric"
}
},
- statusDetails: {
- readOnly: true,
- serializedName: "statusDetails",
+ lowerLoadThreshold: {
+ serializedName: "lowerLoadThreshold",
+ required: true,
type: {
- name: "String"
+ name: "Number"
}
},
- healthState: {
- readOnly: true,
- serializedName: "healthState",
+ upperLoadThreshold: {
+ serializedName: "upperLoadThreshold",
+ required: true,
type: {
- name: "String"
+ name: "Number"
}
},
- unhealthyEvaluation: {
- readOnly: true,
- serializedName: "unhealthyEvaluation",
+ scaleIntervalInSeconds: {
+ constraints: {
+ InclusiveMinimum: 60
+ },
+ serializedName: "scaleIntervalInSeconds",
+ required: true,
type: {
- name: "String"
+ name: "Number"
}
}
}
}
};
-export const AzureInternalMonitoringPipelineSinkDescription: msRest.CompositeMapper = {
- serializedName: "AzureInternalMonitoringPipeline",
+export const AddRemoveReplicaScalingMechanism: coreClient.CompositeMapper = {
+ serializedName: "AddRemoveReplica",
type: {
name: "Composite",
- polymorphicDiscriminator: DiagnosticsSinkProperties.type.polymorphicDiscriminator,
- uberParent: "DiagnosticsSinkProperties",
- className: "AzureInternalMonitoringPipelineSinkDescription",
+ className: "AddRemoveReplicaScalingMechanism",
+ uberParent: "AutoScalingMechanism",
+ polymorphicDiscriminator:
+ AutoScalingMechanism.type.polymorphicDiscriminator,
modelProperties: {
- ...DiagnosticsSinkProperties.type.modelProperties,
- accountName: {
- serializedName: "accountName",
- type: {
- name: "String"
- }
- },
- namespace: {
- serializedName: "namespace",
- type: {
- name: "String"
- }
- },
- maConfigUrl: {
- serializedName: "maConfigUrl",
+ ...AutoScalingMechanism.type.modelProperties,
+ minCount: {
+ serializedName: "minCount",
+ required: true,
type: {
- name: "String"
+ name: "Number"
}
},
- fluentdConfigUrl: {
- serializedName: "fluentdConfigUrl",
+ maxCount: {
+ serializedName: "maxCount",
+ required: true,
type: {
- name: "Object"
+ name: "Number"
}
},
- autoKeyConfigUrl: {
- serializedName: "autoKeyConfigUrl",
+ scaleIncrement: {
+ serializedName: "scaleIncrement",
+ required: true,
type: {
- name: "String"
+ name: "Number"
}
}
}
}
};
-export const ApplicationResourceDescription: msRest.CompositeMapper = {
- serializedName: "ApplicationResourceDescription",
+export const ServiceResourceDescription: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ApplicationResourceDescription",
+ className: "ServiceResourceDescription",
modelProperties: {
- ...TrackedResource.type.modelProperties,
+ ...ManagedProxyResource.type.modelProperties,
provisioningState: {
- readOnly: true,
serializedName: "properties.provisioningState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ osType: {
+ serializedName: "properties.osType",
+ required: true,
type: {
name: "String"
}
},
- description: {
- serializedName: "properties.description",
+ codePackages: {
+ serializedName: "properties.codePackages",
+ required: true,
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ContainerCodePackageProperties"
+ }
+ }
}
},
- services: {
- serializedName: "properties.services",
+ networkRefs: {
+ serializedName: "properties.networkRefs",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ServiceResourceDescription"
+ className: "NetworkRef"
}
}
}
@@ -2153,51 +2183,57 @@ export const ApplicationResourceDescription: msRest.CompositeMapper = {
serializedName: "properties.diagnostics",
type: {
name: "Composite",
- className: "DiagnosticsDescription"
+ className: "DiagnosticsRef"
}
},
- debugParams: {
- serializedName: "properties.debugParams",
+ description: {
+ serializedName: "properties.description",
type: {
name: "String"
}
},
- serviceNames: {
- readOnly: true,
- serializedName: "properties.serviceNames",
+ replicaCount: {
+ serializedName: "properties.replicaCount",
+ type: {
+ name: "Number"
+ }
+ },
+ autoScalingPolicies: {
+ serializedName: "properties.autoScalingPolicies",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "AutoScalingPolicy"
}
}
}
},
status: {
- readOnly: true,
serializedName: "properties.status",
+ readOnly: true,
type: {
name: "String"
}
},
statusDetails: {
- readOnly: true,
serializedName: "properties.statusDetails",
+ readOnly: true,
type: {
name: "String"
}
},
healthState: {
- readOnly: true,
serializedName: "properties.healthState",
+ readOnly: true,
type: {
name: "String"
}
},
unhealthyEvaluation: {
- readOnly: true,
serializedName: "properties.unhealthyEvaluation",
+ readOnly: true,
type: {
name: "String"
}
@@ -2206,54 +2242,42 @@ export const ApplicationResourceDescription: msRest.CompositeMapper = {
}
};
-export const AddRemoveReplicaScalingMechanism: msRest.CompositeMapper = {
- serializedName: "AddRemoveReplica",
+export const AzureInternalMonitoringPipelineSinkDescription: coreClient.CompositeMapper = {
+ serializedName: "AzureInternalMonitoringPipeline",
type: {
name: "Composite",
- polymorphicDiscriminator: AutoScalingMechanism.type.polymorphicDiscriminator,
- uberParent: "AutoScalingMechanism",
- className: "AddRemoveReplicaScalingMechanism",
+ className: "AzureInternalMonitoringPipelineSinkDescription",
+ uberParent: "DiagnosticsSinkProperties",
+ polymorphicDiscriminator:
+ DiagnosticsSinkProperties.type.polymorphicDiscriminator,
modelProperties: {
- ...AutoScalingMechanism.type.modelProperties,
- minCount: {
- required: true,
- serializedName: "minCount",
+ ...DiagnosticsSinkProperties.type.modelProperties,
+ accountName: {
+ serializedName: "accountName",
type: {
- name: "Number"
+ name: "String"
}
},
- maxCount: {
- required: true,
- serializedName: "maxCount",
+ namespace: {
+ serializedName: "namespace",
type: {
- name: "Number"
+ name: "String"
}
},
- scaleIncrement: {
- required: true,
- serializedName: "scaleIncrement",
+ maConfigUrl: {
+ serializedName: "maConfigUrl",
type: {
- name: "Number"
+ name: "String"
}
- }
- }
- }
-};
-
-export const AutoScalingMetric: msRest.CompositeMapper = {
- serializedName: "AutoScalingMetric",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "kind",
- clientName: "kind"
- },
- uberParent: "AutoScalingMetric",
- className: "AutoScalingMetric",
- modelProperties: {
- kind: {
- required: true,
- serializedName: "kind",
+ },
+ fluentdConfigUrl: {
+ serializedName: "fluentdConfigUrl",
+ type: {
+ name: "any"
+ }
+ },
+ autoKeyConfigUrl: {
+ serializedName: "autoKeyConfigUrl",
type: {
name: "String"
}
@@ -2262,18 +2286,18 @@ export const AutoScalingMetric: msRest.CompositeMapper = {
}
};
-export const AutoScalingResourceMetric: msRest.CompositeMapper = {
+export const AutoScalingResourceMetric: coreClient.CompositeMapper = {
serializedName: "Resource",
type: {
name: "Composite",
- polymorphicDiscriminator: AutoScalingMetric.type.polymorphicDiscriminator,
- uberParent: "AutoScalingMetric",
className: "AutoScalingResourceMetric",
+ uberParent: "AutoScalingMetric",
+ polymorphicDiscriminator: AutoScalingMetric.type.polymorphicDiscriminator,
modelProperties: {
...AutoScalingMetric.type.modelProperties,
name: {
- required: true,
serializedName: "name",
+ required: true,
type: {
name: "String"
}
@@ -2282,60 +2306,40 @@ export const AutoScalingResourceMetric: msRest.CompositeMapper = {
}
};
-export const ServiceProperties: msRest.CompositeMapper = {
- serializedName: "ServiceProperties",
+export const SecretResourceProperties: coreClient.CompositeMapper = {
+ serializedName: "SecretResourceProperties",
type: {
name: "Composite",
- className: "ServiceProperties",
+ className: "SecretResourceProperties",
+ uberParent: "ProvisionedResourceProperties",
+ polymorphicDiscriminator: {
+ serializedName: "kind",
+ clientName: "kind"
+ },
modelProperties: {
+ ...SecretResourcePropertiesBase.type.modelProperties,
description: {
serializedName: "description",
type: {
name: "String"
}
},
- replicaCount: {
- serializedName: "replicaCount",
- type: {
- name: "Number"
- }
- },
- autoScalingPolicies: {
- serializedName: "autoScalingPolicies",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AutoScalingPolicy"
- }
- }
- }
- },
status: {
- readOnly: true,
serializedName: "status",
+ readOnly: true,
type: {
name: "String"
}
},
statusDetails: {
- readOnly: true,
serializedName: "statusDetails",
- type: {
- name: "String"
- }
- },
- healthState: {
readOnly: true,
- serializedName: "healthState",
type: {
name: "String"
}
},
- unhealthyEvaluation: {
- readOnly: true,
- serializedName: "unhealthyEvaluation",
+ contentType: {
+ serializedName: "contentType",
type: {
name: "String"
}
@@ -2344,65 +2348,74 @@ export const ServiceProperties: msRest.CompositeMapper = {
}
};
-export const ServiceReplicaProperties: msRest.CompositeMapper = {
- serializedName: "ServiceReplicaProperties",
+export const NetworkResourceProperties: coreClient.CompositeMapper = {
+ serializedName: "NetworkResourceProperties",
type: {
name: "Composite",
- className: "ServiceReplicaProperties",
+ className: "NetworkResourceProperties",
+ uberParent: "ProvisionedResourceProperties",
+ polymorphicDiscriminator: {
+ serializedName: "kind",
+ clientName: "kind"
+ },
modelProperties: {
- osType: {
- required: true,
- serializedName: "osType",
+ ...NetworkResourcePropertiesBase.type.modelProperties,
+ description: {
+ serializedName: "description",
type: {
name: "String"
}
},
- codePackages: {
- required: true,
- serializedName: "codePackages",
+ status: {
+ serializedName: "status",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ContainerCodePackageProperties"
- }
- }
+ name: "String"
}
},
- networkRefs: {
- serializedName: "networkRefs",
+ statusDetails: {
+ serializedName: "statusDetails",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "NetworkRef"
- }
- }
+ name: "String"
}
- },
- diagnostics: {
- serializedName: "diagnostics",
+ }
+ }
+ }
+};
+
+export const SecretResourceDescription: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SecretResourceDescription",
+ modelProperties: {
+ ...TrackedResource.type.modelProperties,
+ properties: {
+ serializedName: "properties",
type: {
name: "Composite",
- className: "DiagnosticsRef"
+ className: "SecretResourceProperties"
}
}
}
}
};
-export const ServiceReplicaDescription: msRest.CompositeMapper = {
- serializedName: "ServiceReplicaDescription",
+export const SecretValueResourceDescription: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ServiceReplicaDescription",
+ className: "SecretValueResourceDescription",
modelProperties: {
- ...ServiceReplicaProperties.type.modelProperties,
- replicaName: {
- required: true,
- serializedName: "replicaName",
+ ...TrackedResource.type.modelProperties,
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ serializedName: "properties.value",
type: {
name: "String"
}
@@ -2411,172 +2424,148 @@ export const ServiceReplicaDescription: msRest.CompositeMapper = {
}
};
-export const AverageLoadScalingTrigger: msRest.CompositeMapper = {
- serializedName: "AverageLoad",
+export const VolumeResourceDescription: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: AutoScalingTrigger.type.polymorphicDiscriminator,
- uberParent: "AutoScalingTrigger",
- className: "AverageLoadScalingTrigger",
+ className: "VolumeResourceDescription",
modelProperties: {
- ...AutoScalingTrigger.type.modelProperties,
- metric: {
- required: true,
- serializedName: "metric",
+ ...TrackedResource.type.modelProperties,
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
- name: "Composite",
- className: "AutoScalingMetric"
+ name: "String"
}
},
- lowerLoadThreshold: {
- required: true,
- serializedName: "lowerLoadThreshold",
+ description: {
+ serializedName: "properties.description",
type: {
- name: "Number"
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "properties.status",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ statusDetails: {
+ serializedName: "properties.statusDetails",
+ readOnly: true,
+ type: {
+ name: "String"
}
},
- upperLoadThreshold: {
+ provider: {
+ serializedName: "properties.provider",
required: true,
- serializedName: "upperLoadThreshold",
type: {
- name: "Number"
+ name: "String"
}
},
- scaleIntervalInSeconds: {
- required: true,
- serializedName: "scaleIntervalInSeconds",
- constraints: {
- InclusiveMinimum: 60
- },
+ azureFileParameters: {
+ serializedName: "properties.azureFileParameters",
type: {
- name: "Number"
+ name: "Composite",
+ className: "VolumeProviderParametersAzureFile"
}
}
}
}
};
-export const ContainerLogs: msRest.CompositeMapper = {
- serializedName: "ContainerLogs",
+export const NetworkResourceDescription: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ContainerLogs",
+ className: "NetworkResourceDescription",
modelProperties: {
- content: {
- serializedName: "content",
+ ...TrackedResource.type.modelProperties,
+ properties: {
+ serializedName: "properties",
type: {
- name: "String"
+ name: "Composite",
+ className: "NetworkResourceProperties"
}
}
}
}
};
-export const OperationListResult: msRest.CompositeMapper = {
- serializedName: "OperationListResult",
+export const GatewayResourceDescription: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationListResult",
+ className: "GatewayResourceDescription",
modelProperties: {
- value: {
- serializedName: "",
+ ...TrackedResource.type.modelProperties,
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OperationResult"
- }
- }
+ name: "String"
}
},
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
+ description: {
+ serializedName: "properties.description",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const SecretResourceDescriptionList: msRest.CompositeMapper = {
- serializedName: "SecretResourceDescriptionList",
- type: {
- name: "Composite",
- className: "SecretResourceDescriptionList",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ sourceNetwork: {
+ serializedName: "properties.sourceNetwork",
+ type: {
+ name: "Composite",
+ className: "NetworkRef"
+ }
+ },
+ destinationNetwork: {
+ serializedName: "properties.destinationNetwork",
+ type: {
+ name: "Composite",
+ className: "NetworkRef"
+ }
+ },
+ tcp: {
+ serializedName: "properties.tcp",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "SecretResourceDescription"
+ className: "TcpConfig"
}
}
}
},
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const SecretValueResourceDescriptionList: msRest.CompositeMapper = {
- serializedName: "SecretValueResourceDescriptionList",
- type: {
- name: "Composite",
- className: "SecretValueResourceDescriptionList",
- modelProperties: {
- value: {
- serializedName: "",
+ http: {
+ serializedName: "properties.http",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "SecretValueResourceDescription"
+ className: "HttpConfig"
}
}
}
},
- nextLink: {
- serializedName: "nextLink",
+ status: {
+ serializedName: "properties.status",
+ readOnly: true,
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const VolumeResourceDescriptionList: msRest.CompositeMapper = {
- serializedName: "VolumeResourceDescriptionList",
- type: {
- name: "Composite",
- className: "VolumeResourceDescriptionList",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ statusDetails: {
+ serializedName: "properties.statusDetails",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "VolumeResourceDescription"
- }
- }
+ name: "String"
}
},
- nextLink: {
- serializedName: "nextLink",
+ ipAddress: {
+ serializedName: "properties.ipAddress",
+ readOnly: true,
type: {
name: "String"
}
@@ -2585,82 +2574,86 @@ export const VolumeResourceDescriptionList: msRest.CompositeMapper = {
}
};
-export const NetworkResourceDescriptionList: msRest.CompositeMapper = {
- serializedName: "NetworkResourceDescriptionList",
+export const ApplicationResourceDescription: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "NetworkResourceDescriptionList",
+ className: "ApplicationResourceDescription",
modelProperties: {
- value: {
- serializedName: "",
+ ...TrackedResource.type.modelProperties,
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "NetworkResourceDescription"
- }
- }
+ name: "String"
}
},
- nextLink: {
- serializedName: "nextLink",
+ description: {
+ serializedName: "properties.description",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const GatewayResourceDescriptionList: msRest.CompositeMapper = {
- serializedName: "GatewayResourceDescriptionList",
- type: {
- name: "Composite",
- className: "GatewayResourceDescriptionList",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ services: {
+ serializedName: "properties.services",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "GatewayResourceDescription"
+ className: "ServiceResourceDescription"
}
}
}
},
- nextLink: {
- serializedName: "nextLink",
+ diagnostics: {
+ serializedName: "properties.diagnostics",
+ type: {
+ name: "Composite",
+ className: "DiagnosticsDescription"
+ }
+ },
+ debugParams: {
+ serializedName: "properties.debugParams",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const ApplicationResourceDescriptionList: msRest.CompositeMapper = {
- serializedName: "ApplicationResourceDescriptionList",
- type: {
- name: "Composite",
- className: "ApplicationResourceDescriptionList",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ serviceNames: {
+ serializedName: "properties.serviceNames",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "ApplicationResourceDescription"
+ name: "String"
}
}
}
},
- nextLink: {
- serializedName: "nextLink",
+ status: {
+ serializedName: "properties.status",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ statusDetails: {
+ serializedName: "properties.statusDetails",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ healthState: {
+ serializedName: "properties.healthState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ unhealthyEvaluation: {
+ serializedName: "properties.unhealthyEvaluation",
+ readOnly: true,
type: {
name: "String"
}
@@ -2669,54 +2662,32 @@ export const ApplicationResourceDescriptionList: msRest.CompositeMapper = {
}
};
-export const ServiceResourceDescriptionList: msRest.CompositeMapper = {
- serializedName: "ServiceResourceDescriptionList",
+export const InlinedValueSecretResourceProperties: coreClient.CompositeMapper = {
+ serializedName: "inlinedValue",
type: {
name: "Composite",
- className: "ServiceResourceDescriptionList",
+ className: "InlinedValueSecretResourceProperties",
+ uberParent: "ProvisionedResourceProperties",
+ polymorphicDiscriminator:
+ ProvisionedResourceProperties.type.polymorphicDiscriminator,
modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ServiceResourceDescription"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
+ ...SecretResourceProperties.type.modelProperties
}
}
};
-export const ServiceReplicaDescriptionList: msRest.CompositeMapper = {
- serializedName: "ServiceReplicaDescriptionList",
+export const LocalNetworkResourceProperties: coreClient.CompositeMapper = {
+ serializedName: "Local",
type: {
name: "Composite",
- className: "ServiceReplicaDescriptionList",
+ className: "LocalNetworkResourceProperties",
+ uberParent: "ProvisionedResourceProperties",
+ polymorphicDiscriminator:
+ ProvisionedResourceProperties.type.polymorphicDiscriminator,
modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ServiceReplicaDescription"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
+ ...NetworkResourceProperties.type.modelProperties,
+ networkAddressPrefix: {
+ serializedName: "networkAddressPrefix",
type: {
name: "String"
}
@@ -2725,21 +2696,21 @@ export const ServiceReplicaDescriptionList: msRest.CompositeMapper = {
}
};
-export const discriminators = {
- 'ProvisionedResourceProperties.SecretResourceProperties' : SecretResourceProperties,
- 'ProvisionedResourceProperties.inlinedValue' : InlinedValueSecretResourceProperties,
- 'ProvisionedResourceProperties.SecretResourcePropertiesBase' : SecretResourcePropertiesBase,
- 'ApplicationScopedVolumeCreationParameters' : ApplicationScopedVolumeCreationParameters,
- 'ApplicationScopedVolumeCreationParameters.ServiceFabricVolumeDisk' : ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- 'ProvisionedResourceProperties.NetworkResourceProperties' : NetworkResourceProperties,
- 'ProvisionedResourceProperties.Local' : LocalNetworkResourceProperties,
- 'ProvisionedResourceProperties.NetworkResourcePropertiesBase' : NetworkResourcePropertiesBase,
- 'AutoScalingTrigger' : AutoScalingTrigger,
- 'AutoScalingMechanism' : AutoScalingMechanism,
- 'DiagnosticsSinkProperties' : DiagnosticsSinkProperties,
- 'DiagnosticsSinkProperties.AzureInternalMonitoringPipeline' : AzureInternalMonitoringPipelineSinkDescription,
- 'AutoScalingMechanism.AddRemoveReplica' : AddRemoveReplicaScalingMechanism,
- 'AutoScalingMetric' : AutoScalingMetric,
- 'AutoScalingMetric.Resource' : AutoScalingResourceMetric,
- 'AutoScalingTrigger.AverageLoad' : AverageLoadScalingTrigger
+export let discriminators = {
+ ApplicationScopedVolumeCreationParameters: ApplicationScopedVolumeCreationParameters,
+ AutoScalingTrigger: AutoScalingTrigger,
+ AutoScalingMechanism: AutoScalingMechanism,
+ DiagnosticsSinkProperties: DiagnosticsSinkProperties,
+ AutoScalingMetric: AutoScalingMetric,
+ "ProvisionedResourceProperties.SecretResourcePropertiesBase": SecretResourcePropertiesBase,
+ "ProvisionedResourceProperties.NetworkResourcePropertiesBase": NetworkResourcePropertiesBase,
+ "ApplicationScopedVolumeCreationParameters.ServiceFabricVolumeDisk": ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
+ "AutoScalingTrigger.AverageLoad": AverageLoadScalingTrigger,
+ "AutoScalingMechanism.AddRemoveReplica": AddRemoveReplicaScalingMechanism,
+ "DiagnosticsSinkProperties.AzureInternalMonitoringPipeline": AzureInternalMonitoringPipelineSinkDescription,
+ "AutoScalingMetric.Resource": AutoScalingResourceMetric,
+ "ProvisionedResourceProperties.SecretResourceProperties": SecretResourceProperties,
+ "ProvisionedResourceProperties.NetworkResourceProperties": NetworkResourceProperties,
+ "ProvisionedResourceProperties.inlinedValue": InlinedValueSecretResourceProperties,
+ "ProvisionedResourceProperties.Local": LocalNetworkResourceProperties
};
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/networkMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/networkMappers.ts
deleted file mode 100644
index c5307534f360..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/networkMappers.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- NetworkResourceDescription,
- TrackedResource,
- Resource,
- BaseResource,
- NetworkResourceProperties,
- NetworkResourcePropertiesBase,
- ProvisionedResourceProperties,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- NetworkResourceDescriptionList,
- ProxyResource,
- ManagedProxyResource,
- SecretResourcePropertiesBase,
- SecretResourceDescription,
- SecretResourceProperties,
- SecretValueResourceDescription,
- VolumeResourceDescription,
- VolumeProviderParametersAzureFile,
- LocalNetworkResourceProperties,
- GatewayResourceDescription,
- NetworkRef,
- EndpointRef,
- TcpConfig,
- GatewayDestination,
- HttpConfig,
- HttpHostConfig,
- HttpRouteConfig,
- HttpRouteMatchRule,
- HttpRouteMatchPath,
- HttpRouteMatchHeader,
- ServiceResourceDescription,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- AutoScalingPolicy,
- AutoScalingTrigger,
- AutoScalingMechanism,
- ApplicationResourceDescription,
- DiagnosticsDescription,
- DiagnosticsSinkProperties,
- AddRemoveReplicaScalingMechanism,
- AverageLoadScalingTrigger,
- AutoScalingMetric,
- InlinedValueSecretResourceProperties,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- AzureInternalMonitoringPipelineSinkDescription,
- AutoScalingResourceMetric
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/operationsMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/operationsMappers.ts
deleted file mode 100644
index 80541a59adc7..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/operationsMappers.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- OperationListResult,
- OperationResult,
- AvailableOperationDisplay,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/parameters.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/parameters.ts
index dcfd388fd023..f7aec6c3d90f 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/parameters.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/parameters.ts
@@ -1,175 +1,250 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ SecretResourceDescription as SecretResourceDescriptionMapper,
+ SecretValueResourceDescription as SecretValueResourceDescriptionMapper,
+ VolumeResourceDescription as VolumeResourceDescriptionMapper,
+ NetworkResourceDescription as NetworkResourceDescriptionMapper,
+ GatewayResourceDescription as GatewayResourceDescriptionMapper,
+ ApplicationResourceDescription as ApplicationResourceDescriptionMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
type: {
name: "String"
}
}
};
-export const apiVersion: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
+ serializedName: "$host",
required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const apiVersion: OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ defaultValue: "2018-09-01-preview",
isConstant: true,
serializedName: "api-version",
- defaultValue: '2018-09-01-preview',
type: {
name: "String"
}
}
};
-export const applicationResourceName: msRest.OperationURLParameter = {
- parameterPath: "applicationResourceName",
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
+ serializedName: "nextLink",
required: true,
- serializedName: "applicationResourceName",
type: {
name: "String"
}
},
skipEncoding: true
};
-export const codePackageName: msRest.OperationURLParameter = {
- parameterPath: "codePackageName",
+
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const secretResourceDescription: OperationParameter = {
+ parameterPath: "secretResourceDescription",
+ mapper: SecretResourceDescriptionMapper
+};
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ serializedName: "subscriptionId",
required: true,
- serializedName: "codePackageName",
type: {
name: "String"
}
}
};
-export const gatewayResourceName: msRest.OperationURLParameter = {
- parameterPath: "gatewayResourceName",
+
+export const resourceGroupName: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
+ serializedName: "resourceGroupName",
required: true,
- serializedName: "gatewayResourceName",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
};
-export const networkResourceName: msRest.OperationURLParameter = {
- parameterPath: "networkResourceName",
+
+export const secretResourceName: OperationURLParameter = {
+ parameterPath: "secretResourceName",
mapper: {
+ serializedName: "secretResourceName",
required: true,
- serializedName: "networkResourceName",
type: {
name: "String"
}
},
skipEncoding: true
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const secretValueResourceDescription: OperationParameter = {
+ parameterPath: "secretValueResourceDescription",
+ mapper: SecretValueResourceDescriptionMapper
+};
+
+export const secretValueResourceName: OperationURLParameter = {
+ parameterPath: "secretValueResourceName",
mapper: {
+ serializedName: "secretValueResourceName",
required: true,
- serializedName: "nextLink",
type: {
name: "String"
}
},
skipEncoding: true
};
-export const replicaName: msRest.OperationURLParameter = {
- parameterPath: "replicaName",
+
+export const volumeResourceDescription: OperationParameter = {
+ parameterPath: "volumeResourceDescription",
+ mapper: VolumeResourceDescriptionMapper
+};
+
+export const volumeResourceName: OperationURLParameter = {
+ parameterPath: "volumeResourceName",
mapper: {
+ serializedName: "volumeResourceName",
required: true,
- serializedName: "replicaName",
type: {
name: "String"
}
},
skipEncoding: true
};
-export const resourceGroupName: msRest.OperationURLParameter = {
- parameterPath: "resourceGroupName",
+
+export const networkResourceDescription: OperationParameter = {
+ parameterPath: "networkResourceDescription",
+ mapper: NetworkResourceDescriptionMapper
+};
+
+export const networkResourceName: OperationURLParameter = {
+ parameterPath: "networkResourceName",
mapper: {
+ serializedName: "networkResourceName",
required: true,
- serializedName: "resourceGroupName",
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const secretResourceName: msRest.OperationURLParameter = {
- parameterPath: "secretResourceName",
+
+export const gatewayResourceDescription: OperationParameter = {
+ parameterPath: "gatewayResourceDescription",
+ mapper: GatewayResourceDescriptionMapper
+};
+
+export const gatewayResourceName: OperationURLParameter = {
+ parameterPath: "gatewayResourceName",
mapper: {
+ serializedName: "gatewayResourceName",
required: true,
- serializedName: "secretResourceName",
type: {
name: "String"
}
},
skipEncoding: true
};
-export const secretValueResourceName: msRest.OperationURLParameter = {
- parameterPath: "secretValueResourceName",
+
+export const applicationResourceDescription: OperationParameter = {
+ parameterPath: "applicationResourceDescription",
+ mapper: ApplicationResourceDescriptionMapper
+};
+
+export const applicationResourceName: OperationURLParameter = {
+ parameterPath: "applicationResourceName",
mapper: {
+ serializedName: "applicationResourceName",
required: true,
- serializedName: "secretValueResourceName",
type: {
name: "String"
}
},
skipEncoding: true
};
-export const serviceResourceName: msRest.OperationURLParameter = {
+
+export const serviceResourceName: OperationURLParameter = {
parameterPath: "serviceResourceName",
mapper: {
- required: true,
serializedName: "serviceResourceName",
+ required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const replicaName: OperationURLParameter = {
+ parameterPath: "replicaName",
mapper: {
+ serializedName: "replicaName",
required: true,
- serializedName: "subscriptionId",
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const tail: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "tail"
- ],
+
+export const codePackageName: OperationURLParameter = {
+ parameterPath: "codePackageName",
mapper: {
- serializedName: "tail",
+ serializedName: "codePackageName",
+ required: true,
type: {
- name: "Number"
+ name: "String"
}
}
};
-export const volumeResourceName: msRest.OperationURLParameter = {
- parameterPath: "volumeResourceName",
+
+export const tail: OperationQueryParameter = {
+ parameterPath: ["options", "tail"],
mapper: {
- required: true,
- serializedName: "volumeResourceName",
+ serializedName: "tail",
type: {
- name: "String"
+ name: "Number"
}
- },
- skipEncoding: true
+ }
};
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/secretMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/secretMappers.ts
deleted file mode 100644
index 11a005c7dec5..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/secretMappers.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- SecretResourceDescription,
- TrackedResource,
- Resource,
- BaseResource,
- SecretResourceProperties,
- SecretResourcePropertiesBase,
- ProvisionedResourceProperties,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- SecretResourceDescriptionList,
- ProxyResource,
- ManagedProxyResource,
- InlinedValueSecretResourceProperties,
- SecretValueResourceDescription,
- VolumeResourceDescription,
- VolumeProviderParametersAzureFile,
- NetworkResourcePropertiesBase,
- NetworkResourceDescription,
- NetworkResourceProperties,
- GatewayResourceDescription,
- NetworkRef,
- EndpointRef,
- TcpConfig,
- GatewayDestination,
- HttpConfig,
- HttpHostConfig,
- HttpRouteConfig,
- HttpRouteMatchRule,
- HttpRouteMatchPath,
- HttpRouteMatchHeader,
- ServiceResourceDescription,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- AutoScalingPolicy,
- AutoScalingTrigger,
- AutoScalingMechanism,
- ApplicationResourceDescription,
- DiagnosticsDescription,
- DiagnosticsSinkProperties,
- AddRemoveReplicaScalingMechanism,
- AverageLoadScalingTrigger,
- AutoScalingMetric,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- LocalNetworkResourceProperties,
- AzureInternalMonitoringPipelineSinkDescription,
- AutoScalingResourceMetric
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/secretValueOperationsMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/secretValueOperationsMappers.ts
deleted file mode 100644
index b3b67405aa6b..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/secretValueOperationsMappers.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- SecretValueResourceDescription,
- TrackedResource,
- Resource,
- BaseResource,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- SecretValueResourceDescriptionList,
- SecretValue,
- ProxyResource,
- ManagedProxyResource,
- SecretResourceDescription,
- SecretResourceProperties,
- SecretResourcePropertiesBase,
- ProvisionedResourceProperties,
- VolumeResourceDescription,
- VolumeProviderParametersAzureFile,
- NetworkResourcePropertiesBase,
- NetworkResourceDescription,
- NetworkResourceProperties,
- GatewayResourceDescription,
- NetworkRef,
- EndpointRef,
- TcpConfig,
- GatewayDestination,
- HttpConfig,
- HttpHostConfig,
- HttpRouteConfig,
- HttpRouteMatchRule,
- HttpRouteMatchPath,
- HttpRouteMatchHeader,
- ServiceResourceDescription,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- AutoScalingPolicy,
- AutoScalingTrigger,
- AutoScalingMechanism,
- ApplicationResourceDescription,
- DiagnosticsDescription,
- DiagnosticsSinkProperties,
- AddRemoveReplicaScalingMechanism,
- AverageLoadScalingTrigger,
- AutoScalingMetric,
- InlinedValueSecretResourceProperties,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- LocalNetworkResourceProperties,
- AzureInternalMonitoringPipelineSinkDescription,
- AutoScalingResourceMetric
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/serviceMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/serviceMappers.ts
deleted file mode 100644
index 230b4d39bb9e..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/serviceMappers.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- ServiceResourceDescription,
- ManagedProxyResource,
- BaseResource,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- NetworkRef,
- EndpointRef,
- AutoScalingPolicy,
- AutoScalingTrigger,
- AutoScalingMechanism,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- ServiceResourceDescriptionList,
- Resource,
- TrackedResource,
- SecretResourceDescription,
- SecretResourceProperties,
- SecretResourcePropertiesBase,
- ProvisionedResourceProperties,
- SecretValueResourceDescription,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- VolumeResourceDescription,
- VolumeProviderParametersAzureFile,
- NetworkResourcePropertiesBase,
- NetworkResourceDescription,
- NetworkResourceProperties,
- GatewayResourceDescription,
- TcpConfig,
- GatewayDestination,
- HttpConfig,
- HttpHostConfig,
- HttpRouteConfig,
- HttpRouteMatchRule,
- HttpRouteMatchPath,
- HttpRouteMatchHeader,
- ApplicationResourceDescription,
- DiagnosticsDescription,
- DiagnosticsSinkProperties,
- AddRemoveReplicaScalingMechanism,
- AverageLoadScalingTrigger,
- AutoScalingMetric,
- ProxyResource,
- InlinedValueSecretResourceProperties,
- LocalNetworkResourceProperties,
- AzureInternalMonitoringPipelineSinkDescription,
- AutoScalingResourceMetric
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/serviceReplicaMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/serviceReplicaMappers.ts
deleted file mode 100644
index 8a983b09e048..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/serviceReplicaMappers.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- ServiceReplicaDescription,
- ServiceReplicaProperties,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- NetworkRef,
- EndpointRef,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- ServiceReplicaDescriptionList,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/volumeMappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/volumeMappers.ts
deleted file mode 100644
index c3ba86d7eb11..000000000000
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/volumeMappers.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- discriminators,
- VolumeResourceDescription,
- TrackedResource,
- Resource,
- BaseResource,
- VolumeProviderParametersAzureFile,
- ErrorModel,
- ErrorErrorModel,
- ErrorDetailsModel,
- VolumeResourceDescriptionList,
- ProxyResource,
- ManagedProxyResource,
- SecretResourceDescription,
- SecretResourceProperties,
- SecretResourcePropertiesBase,
- ProvisionedResourceProperties,
- SecretValueResourceDescription,
- NetworkResourcePropertiesBase,
- NetworkResourceDescription,
- NetworkResourceProperties,
- GatewayResourceDescription,
- NetworkRef,
- EndpointRef,
- TcpConfig,
- GatewayDestination,
- HttpConfig,
- HttpHostConfig,
- HttpRouteConfig,
- HttpRouteMatchRule,
- HttpRouteMatchPath,
- HttpRouteMatchHeader,
- ServiceResourceDescription,
- ContainerCodePackageProperties,
- ImageRegistryCredential,
- EnvironmentVariable,
- Setting,
- ContainerLabel,
- EndpointProperties,
- ResourceRequirements,
- ResourceRequests,
- ResourceLimits,
- VolumeReference,
- ApplicationScopedVolume,
- ApplicationScopedVolumeCreationParameters,
- DiagnosticsRef,
- ReliableCollectionsRef,
- ContainerInstanceView,
- ContainerState,
- ContainerEvent,
- AutoScalingPolicy,
- AutoScalingTrigger,
- AutoScalingMechanism,
- ApplicationResourceDescription,
- DiagnosticsDescription,
- DiagnosticsSinkProperties,
- AddRemoveReplicaScalingMechanism,
- AverageLoadScalingTrigger,
- AutoScalingMetric,
- InlinedValueSecretResourceProperties,
- ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
- LocalNetworkResourceProperties,
- AzureInternalMonitoringPipelineSinkDescription,
- AutoScalingResourceMetric
-} from "../models/mappers";
-
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/application.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/application.ts
index c02b0082e687..9114b8b572aa 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/application.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/application.ts
@@ -1,59 +1,159 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/applicationMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Application } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ServiceFabricMeshManagementClientContext } from "../serviceFabricMeshManagementClientContext";
+import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
+import {
+ ApplicationResourceDescription,
+ ApplicationListByResourceGroupNextOptionalParams,
+ ApplicationListByResourceGroupOptionalParams,
+ ApplicationListBySubscriptionNextOptionalParams,
+ ApplicationListBySubscriptionOptionalParams,
+ ApplicationCreateOptionalParams,
+ ApplicationCreateResponse,
+ ApplicationGetOptionalParams,
+ ApplicationGetResponse,
+ ApplicationDeleteOptionalParams,
+ ApplicationListByResourceGroupResponse,
+ ApplicationListBySubscriptionResponse,
+ ApplicationListByResourceGroupNextResponse,
+ ApplicationListBySubscriptionNextResponse
+} from "../models";
-/** Class representing a Application. */
-export class Application {
- private readonly client: ServiceFabricMeshManagementClientContext;
+///
+/** Class containing Application operations. */
+export class ApplicationImpl implements Application {
+ private readonly client: ServiceFabricMeshManagementClient;
/**
- * Create a Application.
- * @param {ServiceFabricMeshManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Application class.
+ * @param client Reference to the service client
*/
- constructor(client: ServiceFabricMeshManagementClientContext) {
+ constructor(client: ServiceFabricMeshManagementClient) {
this.client = client;
}
/**
- * Creates an application resource with the specified name, description and properties. If an
- * application resource with the same name exists, then it is updated with the specified
- * description and properties.
- * @summary Creates or updates an application resource.
+ * Gets the information about all application resources in a given resource group. The information
+ * include the description and other properties of the Application.
* @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param applicationResourceDescription Description for creating a Application resource.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options?: msRest.RequestOptionsBase): Promise;
+ public listByResourceGroup(
+ resourceGroupName: string,
+ options?: ApplicationListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: ApplicationListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
+ resourceGroupName,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: ApplicationListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
- * @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param applicationResourceDescription Description for creating a Application resource.
- * @param callback The callback
+ * Gets the information about all application resources in a given resource group. The information
+ * include the description and other properties of the application.
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, callback: msRest.ServiceCallback): void;
+ public listBySubscription(
+ options?: ApplicationListBySubscriptionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listBySubscriptionPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listBySubscriptionPagingPage(options);
+ }
+ };
+ }
+
+ private async *listBySubscriptionPagingPage(
+ options?: ApplicationListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listBySubscription(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listBySubscriptionNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listBySubscriptionPagingAll(
+ options?: ApplicationListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
+ * Creates an application resource with the specified name, description and properties. If an
+ * application resource with the same name exists, then it is updated with the specified description
+ * and properties.
* @param resourceGroupName Azure resource group name
* @param applicationResourceName The identity of the application.
* @param applicationResourceDescription Description for creating a Application resource.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- create(resourceGroupName: string, applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ create(
+ resourceGroupName: string,
+ applicationResourceName: string,
+ applicationResourceDescription: ApplicationResourceDescription,
+ options?: ApplicationCreateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -61,217 +161,114 @@ export class Application {
applicationResourceDescription,
options
},
- createOperationSpec,
- callback) as Promise;
+ createOperationSpec
+ );
}
/**
- * Gets the information about the application resource with the given name. The information include
- * the description and other properties of the application.
- * @summary Gets the application resource with the given name.
- * @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
+ * Gets the information about the application resource with the given name. The information include the
+ * description and other properties of the application.
* @param resourceGroupName Azure resource group name
* @param applicationResourceName The identity of the application.
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, applicationResourceName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, applicationResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ applicationResourceName: string,
+ options?: ApplicationGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- applicationResourceName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, applicationResourceName, options },
+ getOperationSpec
+ );
}
/**
* Deletes the application resource identified by the name.
- * @summary Deletes the application resource.
* @param resourceGroupName Azure resource group name
* @param applicationResourceName The identity of the application.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, applicationResourceName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param options The optional parameters
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, applicationResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ delete(
+ resourceGroupName: string,
+ applicationResourceName: string,
+ options?: ApplicationDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- applicationResourceName,
- options
- },
- deleteMethodOperationSpec,
- callback);
+ { resourceGroupName, applicationResourceName, options },
+ deleteOperationSpec
+ );
}
/**
* Gets the information about all application resources in a given resource group. The information
* include the description and other properties of the Application.
- * @summary Gets all the application resources in a given resource group.
* @param resourceGroupName Azure resource group name
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Azure resource group name
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Azure resource group name
- * @param options The optional parameters
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroup(
+ resourceGroupName: string,
+ options?: ApplicationListByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listByResourceGroupOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
}
/**
* Gets the information about all application resources in a given resource group. The information
* include the description and other properties of the application.
- * @summary Gets all the application resources in a given subscription.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listBySubscription(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- listBySubscription(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listBySubscription(
+ options?: ApplicationListBySubscriptionOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- options
- },
- listBySubscriptionOperationSpec,
- callback) as Promise;
+ { options },
+ listBySubscriptionOperationSpec
+ );
}
/**
- * Gets the information about all application resources in a given resource group. The information
- * include the description and other properties of the Application.
- * @summary Gets all the application resources in a given resource group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListByResourceGroupNext
+ * @param resourceGroupName Azure resource group name
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
+ * @param options The options parameters.
*/
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: ApplicationListByResourceGroupNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByResourceGroupNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, nextLink, options },
+ listByResourceGroupNextOperationSpec
+ );
}
/**
- * Gets the information about all application resources in a given resource group. The information
- * include the description and other properties of the application.
- * @summary Gets all the application resources in a given subscription.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * ListBySubscriptionNext
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
+ * @param options The options parameters.
*/
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listBySubscriptionNext(
+ nextLink: string,
+ options?: ApplicationListBySubscriptionNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listBySubscriptionNextOperationSpec,
- callback) as Promise;
+ { nextLink, options },
+ listBySubscriptionNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const createOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const createOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}",
httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.applicationResourceName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "applicationResourceDescription",
- mapper: {
- ...Mappers.ApplicationResourceDescription,
- required: true
- }
- },
responses: {
200: {
bodyMapper: Mappers.ApplicationResourceDescription
@@ -284,23 +281,22 @@ const createOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}",
+ requestBody: Parameters.applicationResourceDescription,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.applicationResourceName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationResourceDescription
@@ -309,23 +305,20 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.applicationResourceName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}",
+ httpMethod: "DELETE",
responses: {
200: {},
202: {},
@@ -334,22 +327,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
- serializer
-};
-
-const listByResourceGroupOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.resourceGroupName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName,
+ Parameters.applicationResourceName
],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationResourceDescriptionList
@@ -358,21 +349,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionOperationSpec: msRest.OperationSpec = {
+const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/applications",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/applications",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.ApplicationResourceDescriptionList
@@ -381,19 +370,14 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationResourceDescriptionList
@@ -402,19 +386,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.nextLink,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationResourceDescriptionList
@@ -423,5 +407,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.nextLink,
+ Parameters.subscriptionId
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/codePackage.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/codePackage.ts
index 88a70aea520d..f8a81a637033 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/codePackage.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/codePackage.ts
@@ -1,63 +1,50 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/codePackageMappers";
+import { CodePackage } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ServiceFabricMeshManagementClientContext } from "../serviceFabricMeshManagementClientContext";
+import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
+import {
+ CodePackageGetContainerLogsOptionalParams,
+ CodePackageGetContainerLogsResponse
+} from "../models";
-/** Class representing a CodePackage. */
-export class CodePackage {
- private readonly client: ServiceFabricMeshManagementClientContext;
+/** Class containing CodePackage operations. */
+export class CodePackageImpl implements CodePackage {
+ private readonly client: ServiceFabricMeshManagementClient;
/**
- * Create a CodePackage.
- * @param {ServiceFabricMeshManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class CodePackage class.
+ * @param client Reference to the service client
*/
- constructor(client: ServiceFabricMeshManagementClientContext) {
+ constructor(client: ServiceFabricMeshManagementClient) {
this.client = client;
}
/**
* Gets the logs for the container of the specified code package of the service replica.
- * @summary Gets the logs from the container.
* @param resourceGroupName Azure resource group name
* @param applicationResourceName The identity of the application.
* @param serviceResourceName The identity of the service.
* @param replicaName Service Fabric replica name.
* @param codePackageName The name of code package of the service.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- getContainerLogs(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, options?: Models.CodePackageGetContainerLogsOptionalParams): Promise;
- /**
- * @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param serviceResourceName The identity of the service.
- * @param replicaName Service Fabric replica name.
- * @param codePackageName The name of code package of the service.
- * @param callback The callback
- */
- getContainerLogs(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Azure resource group name
- * @param applicationResourceName The identity of the application.
- * @param serviceResourceName The identity of the service.
- * @param replicaName Service Fabric replica name.
- * @param codePackageName The name of code package of the service.
- * @param options The optional parameters
- * @param callback The callback
- */
- getContainerLogs(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, options: Models.CodePackageGetContainerLogsOptionalParams, callback: msRest.ServiceCallback): void;
- getContainerLogs(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, options?: Models.CodePackageGetContainerLogsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ getContainerLogs(
+ resourceGroupName: string,
+ applicationResourceName: string,
+ serviceResourceName: string,
+ replicaName: string,
+ codePackageName: string,
+ options?: CodePackageGetContainerLogsOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -67,31 +54,17 @@ export class CodePackage {
codePackageName,
options
},
- getContainerLogsOperationSpec,
- callback) as Promise;
+ getContainerLogsOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getContainerLogsOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const getContainerLogsOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.applicationResourceName,
- Parameters.serviceResourceName,
- Parameters.replicaName,
- Parameters.codePackageName
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.tail
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.ContainerLogs
@@ -100,5 +73,16 @@ const getContainerLogsOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion, Parameters.tail],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.applicationResourceName,
+ Parameters.serviceResourceName,
+ Parameters.replicaName,
+ Parameters.codePackageName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/gateway.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/gateway.ts
index ac874d4eb3c7..b45ec24fe85a 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/gateway.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/gateway.ts
@@ -1,60 +1,160 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/gatewayMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Gateway } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ServiceFabricMeshManagementClientContext } from "../serviceFabricMeshManagementClientContext";
+import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
+import {
+ GatewayResourceDescription,
+ GatewayListByResourceGroupNextOptionalParams,
+ GatewayListByResourceGroupOptionalParams,
+ GatewayListBySubscriptionNextOptionalParams,
+ GatewayListBySubscriptionOptionalParams,
+ GatewayCreateOptionalParams,
+ GatewayCreateResponse,
+ GatewayGetOptionalParams,
+ GatewayGetResponse,
+ GatewayDeleteOptionalParams,
+ GatewayListByResourceGroupResponse,
+ GatewayListBySubscriptionResponse,
+ GatewayListByResourceGroupNextResponse,
+ GatewayListBySubscriptionNextResponse
+} from "../models";
-/** Class representing a Gateway. */
-export class Gateway {
- private readonly client: ServiceFabricMeshManagementClientContext;
+///
+/** Class containing Gateway operations. */
+export class GatewayImpl implements Gateway {
+ private readonly client: ServiceFabricMeshManagementClient;
/**
- * Create a Gateway.
- * @param {ServiceFabricMeshManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Gateway class.
+ * @param client Reference to the service client
*/
- constructor(client: ServiceFabricMeshManagementClientContext) {
+ constructor(client: ServiceFabricMeshManagementClient) {
this.client = client;
}
/**
- * Creates a gateway resource with the specified name, description and properties. If a gateway
- * resource with the same name exists, then it is updated with the specified description and
- * properties. Use gateway resources to create a gateway for public connectivity for services
- * within your application.
- * @summary Creates or updates a gateway resource.
+ * Gets the information about all gateway resources in a given resource group. The information include
+ * the description and other properties of the Gateway.
* @param resourceGroupName Azure resource group name
- * @param gatewayResourceName The identity of the gateway.
- * @param gatewayResourceDescription Description for creating a Gateway resource.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, options?: msRest.RequestOptionsBase): Promise;
+ public listByResourceGroup(
+ resourceGroupName: string,
+ options?: GatewayListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: GatewayListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
+ resourceGroupName,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: GatewayListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
- * @param resourceGroupName Azure resource group name
- * @param gatewayResourceName The identity of the gateway.
- * @param gatewayResourceDescription Description for creating a Gateway resource.
- * @param callback The callback
+ * Gets the information about all gateway resources in a given resource group. The information include
+ * the description and other properties of the gateway.
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, callback: msRest.ServiceCallback): void;
+ public listBySubscription(
+ options?: GatewayListBySubscriptionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listBySubscriptionPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listBySubscriptionPagingPage(options);
+ }
+ };
+ }
+
+ private async *listBySubscriptionPagingPage(
+ options?: GatewayListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listBySubscription(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listBySubscriptionNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listBySubscriptionPagingAll(
+ options?: GatewayListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
+ * Creates a gateway resource with the specified name, description and properties. If a gateway
+ * resource with the same name exists, then it is updated with the specified description and
+ * properties. Use gateway resources to create a gateway for public connectivity for services within
+ * your application.
* @param resourceGroupName Azure resource group name
* @param gatewayResourceName The identity of the gateway.
* @param gatewayResourceDescription Description for creating a Gateway resource.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- create(resourceGroupName: string, gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ create(
+ resourceGroupName: string,
+ gatewayResourceName: string,
+ gatewayResourceDescription: GatewayResourceDescription,
+ options?: GatewayCreateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -62,217 +162,114 @@ export class Gateway {
gatewayResourceDescription,
options
},
- createOperationSpec,
- callback) as Promise;
+ createOperationSpec
+ );
}
/**
* Gets the information about the gateway resource with the given name. The information include the
* description and other properties of the gateway.
- * @summary Gets the gateway resource with the given name.
- * @param resourceGroupName Azure resource group name
- * @param gatewayResourceName The identity of the gateway.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, gatewayResourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
* @param resourceGroupName Azure resource group name
* @param gatewayResourceName The identity of the gateway.
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, gatewayResourceName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Azure resource group name
- * @param gatewayResourceName The identity of the gateway.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, gatewayResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, gatewayResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ gatewayResourceName: string,
+ options?: GatewayGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- gatewayResourceName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, gatewayResourceName, options },
+ getOperationSpec
+ );
}
/**
* Deletes the gateway resource identified by the name.
- * @summary Deletes the gateway resource.
- * @param resourceGroupName Azure resource group name
- * @param gatewayResourceName The identity of the gateway.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, gatewayResourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Azure resource group name
- * @param gatewayResourceName The identity of the gateway.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, gatewayResourceName: string, callback: msRest.ServiceCallback): void;
- /**
* @param resourceGroupName Azure resource group name
* @param gatewayResourceName The identity of the gateway.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, gatewayResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, gatewayResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ delete(
+ resourceGroupName: string,
+ gatewayResourceName: string,
+ options?: GatewayDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- gatewayResourceName,
- options
- },
- deleteMethodOperationSpec,
- callback);
+ { resourceGroupName, gatewayResourceName, options },
+ deleteOperationSpec
+ );
}
/**
- * Gets the information about all gateway resources in a given resource group. The information
- * include the description and other properties of the Gateway.
- * @summary Gets all the gateway resources in a given resource group.
- * @param resourceGroupName Azure resource group name
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
+ * Gets the information about all gateway resources in a given resource group. The information include
+ * the description and other properties of the Gateway.
* @param resourceGroupName Azure resource group name
- * @param callback The callback
+ * @param options The options parameters.
*/
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Azure resource group name
- * @param options The optional parameters
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroup(
+ resourceGroupName: string,
+ options?: GatewayListByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listByResourceGroupOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
}
/**
- * Gets the information about all gateway resources in a given resource group. The information
- * include the description and other properties of the gateway.
- * @summary Gets all the gateway resources in a given subscription.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listBySubscription(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- listBySubscription(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
+ * Gets the information about all gateway resources in a given resource group. The information include
+ * the description and other properties of the gateway.
+ * @param options The options parameters.
*/
- listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listBySubscription(
+ options?: GatewayListBySubscriptionOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- options
- },
- listBySubscriptionOperationSpec,
- callback) as Promise;
+ { options },
+ listBySubscriptionOperationSpec
+ );
}
/**
- * Gets the information about all gateway resources in a given resource group. The information
- * include the description and other properties of the Gateway.
- * @summary Gets all the gateway resources in a given resource group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListByResourceGroupNext
+ * @param resourceGroupName Azure resource group name
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
+ * @param options The options parameters.
*/
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: GatewayListByResourceGroupNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByResourceGroupNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, nextLink, options },
+ listByResourceGroupNextOperationSpec
+ );
}
/**
- * Gets the information about all gateway resources in a given resource group. The information
- * include the description and other properties of the gateway.
- * @summary Gets all the gateway resources in a given subscription.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListBySubscriptionNext
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
+ * @param options The options parameters.
*/
- listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listBySubscriptionNext(
+ nextLink: string,
+ options?: GatewayListBySubscriptionNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listBySubscriptionNextOperationSpec,
- callback) as Promise;
+ { nextLink, options },
+ listBySubscriptionNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const createOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const createOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.gatewayResourceName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "gatewayResourceDescription",
- mapper: {
- ...Mappers.GatewayResourceDescription,
- required: true
- }
- },
responses: {
200: {
bodyMapper: Mappers.GatewayResourceDescription
@@ -285,23 +282,22 @@ const createOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
+ requestBody: Parameters.gatewayResourceDescription,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.gatewayResourceName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.GatewayResourceDescription
@@ -310,23 +306,20 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.gatewayResourceName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
+ httpMethod: "DELETE",
responses: {
200: {},
202: {},
@@ -335,22 +328,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
- serializer
-};
-
-const listByResourceGroupOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.resourceGroupName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName,
+ Parameters.gatewayResourceName
],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.GatewayResourceDescriptionList
@@ -359,21 +350,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionOperationSpec: msRest.OperationSpec = {
+const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/gateways",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/gateways",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.GatewayResourceDescriptionList
@@ -382,19 +371,14 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.GatewayResourceDescriptionList
@@ -403,19 +387,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.nextLink,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.GatewayResourceDescriptionList
@@ -424,5 +408,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.nextLink,
+ Parameters.subscriptionId
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/index.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/index.ts
index 1a2c974d3ca3..5a5cd60a4584 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/index.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/index.ts
@@ -1,11 +1,9 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./operations";
diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/network.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/network.ts
index dd3ca893982b..1e7b9f59cedc 100644
--- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/network.ts
+++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/operations/network.ts
@@ -1,59 +1,159 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/networkMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Network } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ServiceFabricMeshManagementClientContext } from "../serviceFabricMeshManagementClientContext";
+import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
+import {
+ NetworkResourceDescription,
+ NetworkListByResourceGroupNextOptionalParams,
+ NetworkListByResourceGroupOptionalParams,
+ NetworkListBySubscriptionNextOptionalParams,
+ NetworkListBySubscriptionOptionalParams,
+ NetworkCreateOptionalParams,
+ NetworkCreateResponse,
+ NetworkGetOptionalParams,
+ NetworkGetResponse,
+ NetworkDeleteOptionalParams,
+ NetworkListByResourceGroupResponse,
+ NetworkListBySubscriptionResponse,
+ NetworkListByResourceGroupNextResponse,
+ NetworkListBySubscriptionNextResponse
+} from "../models";
-/** Class representing a Network. */
-export class Network {
- private readonly client: ServiceFabricMeshManagementClientContext;
+///
+/** Class containing Network operations. */
+export class NetworkImpl implements Network {
+ private readonly client: ServiceFabricMeshManagementClient;
/**
- * Create a Network.
- * @param {ServiceFabricMeshManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Network class.
+ * @param client Reference to the service client
*/
- constructor(client: ServiceFabricMeshManagementClientContext) {
+ constructor(client: ServiceFabricMeshManagementClient) {
this.client = client;
}
/**
- * Creates a network resource with the specified name, description and properties. If a network
- * resource with the same name exists, then it is updated with the specified description and
- * properties.
- * @summary Creates or updates a network resource.
+ * Gets the information about all network resources in a given resource group. The information include
+ * the description and other properties of the Network.
* @param resourceGroupName Azure resource group name
- * @param networkResourceName The identity of the network.
- * @param networkResourceDescription Description for creating a Network resource.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, options?: msRest.RequestOptionsBase): Promise;
+ public listByResourceGroup(
+ resourceGroupName: string,
+ options?: NetworkListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: NetworkListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
+ resourceGroupName,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: NetworkListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
- * @param resourceGroupName Azure resource group name
- * @param networkResourceName The identity of the network.
- * @param networkResourceDescription Description for creating a Network resource.
- * @param callback The callback
+ * Gets the information about all network resources in a given resource group. The information include
+ * the description and other properties of the network.
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, callback: msRest.ServiceCallback): void;
+ public listBySubscription(
+ options?: NetworkListBySubscriptionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listBySubscriptionPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listBySubscriptionPagingPage(options);
+ }
+ };
+ }
+
+ private async *listBySubscriptionPagingPage(
+ options?: NetworkListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listBySubscription(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listBySubscriptionNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listBySubscriptionPagingAll(
+ options?: NetworkListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
+ * Creates a network resource with the specified name, description and properties. If a network
+ * resource with the same name exists, then it is updated with the specified description and
+ * properties.
* @param resourceGroupName Azure resource group name
* @param networkResourceName The identity of the network.
* @param networkResourceDescription Description for creating a Network resource.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- create(resourceGroupName: string, networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ create(
+ resourceGroupName: string,
+ networkResourceName: string,
+ networkResourceDescription: NetworkResourceDescription,
+ options?: NetworkCreateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -61,217 +161,114 @@ export class Network {
networkResourceDescription,
options
},
- createOperationSpec,
- callback) as Promise;
+ createOperationSpec
+ );
}
/**
* Gets the information about the network resource with the given name. The information include the
* description and other properties of the network.
- * @summary Gets the network resource with the given name.
- * @param resourceGroupName Azure resource group name
- * @param networkResourceName The identity of the network.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, networkResourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Azure resource group name
- * @param networkResourceName The identity of the network.
- * @param callback The callback
- */
- get(resourceGroupName: string, networkResourceName: string, callback: msRest.ServiceCallback): void;
- /**
* @param resourceGroupName Azure resource group name
* @param networkResourceName The identity of the network.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, networkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, networkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ networkResourceName: string,
+ options?: NetworkGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- networkResourceName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, networkResourceName, options },
+ getOperationSpec
+ );
}
/**
* Deletes the network resource identified by the name.
- * @summary Deletes the network resource.
- * @param resourceGroupName Azure resource group name
- * @param networkResourceName The identity of the network.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, networkResourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Azure resource group name
- * @param networkResourceName The identity of the network.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, networkResourceName: string, callback: msRest.ServiceCallback): void;
- /**
* @param resourceGroupName Azure resource group name
* @param networkResourceName The identity of the network.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, networkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, networkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ delete(
+ resourceGroupName: string,
+ networkResourceName: string,
+ options?: NetworkDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- networkResourceName,
- options
- },
- deleteMethodOperationSpec,
- callback);
+ { resourceGroupName, networkResourceName, options },
+ deleteOperationSpec
+ );
}
/**
- * Gets the information about all network resources in a given resource group. The information
- * include the description and other properties of the Network.
- * @summary Gets all the network resources in a given resource group.
- * @param resourceGroupName Azure resource group name
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
+ * Gets the information about all network resources in a given resource group. The information include
+ * the description and other properties of the Network.
* @param resourceGroupName Azure resource group name
- * @param callback The callback
+ * @param options The options parameters.
*/
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Azure resource group name
- * @param options The optional parameters
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroup(
+ resourceGroupName: string,
+ options?: NetworkListByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listByResourceGroupOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
}
/**
- * Gets the information about all network resources in a given resource group. The information
- * include the description and other properties of the network.
- * @summary Gets all the network resources in a given subscription.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listBySubscription(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
+ * Gets the information about all network resources in a given resource group. The information include
+ * the description and other properties of the network.
+ * @param options The options parameters.
*/
- listBySubscription(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listBySubscription(
+ options?: NetworkListBySubscriptionOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- options
- },
- listBySubscriptionOperationSpec,
- callback) as Promise;
+ { options },
+ listBySubscriptionOperationSpec
+ );
}
/**
- * Gets the information about all network resources in a given resource group. The information
- * include the description and other properties of the Network.
- * @summary Gets all the network resources in a given resource group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListByResourceGroupNext
+ * @param resourceGroupName Azure resource group name
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
+ * @param options The options parameters.
*/
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback