@azure/arm-serialconsole 2.1.1-alpha.20250217.1 → 2.1.1-alpha.20250218.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -12
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +3 -3
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/microsoftSerialConsoleClient.d.ts +2 -2
- package/dist/browser/microsoftSerialConsoleClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/microsoftSerialConsoleClient.js +17 -20
- package/dist/browser/microsoftSerialConsoleClient.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +2 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +1 -1
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/serialPorts.d.ts +3 -3
- package/dist/browser/operations/serialPorts.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/serialPorts.js +2 -2
- package/dist/browser/operations/serialPorts.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +2 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +1 -1
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/serialPorts.d.ts +1 -1
- package/dist/browser/operationsInterfaces/serialPorts.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/serialPorts.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/microsoftSerialConsoleClient.d.ts +44 -0
- package/dist/commonjs/microsoftSerialConsoleClient.d.ts.map +1 -0
- package/dist/commonjs/microsoftSerialConsoleClient.js +211 -0
- package/dist/commonjs/microsoftSerialConsoleClient.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +151 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +16 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +288 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +14 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +131 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +2 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +12 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/serialPorts.d.ts +78 -0
- package/dist/commonjs/operations/serialPorts.d.ts.map +1 -0
- package/dist/commonjs/operations/serialPorts.js +275 -0
- package/dist/commonjs/operations/serialPorts.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/serialPorts.d.ts +70 -0
- package/dist/commonjs/operationsInterfaces/serialPorts.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/serialPorts.js +10 -0
- package/dist/commonjs/operationsInterfaces/serialPorts.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +4 -4
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/microsoftSerialConsoleClient.d.ts +44 -0
- package/dist/esm/microsoftSerialConsoleClient.d.ts.map +1 -0
- package/dist/esm/microsoftSerialConsoleClient.js +206 -0
- package/dist/esm/microsoftSerialConsoleClient.js.map +1 -0
- package/dist/esm/models/index.d.ts +151 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/models/index.js} +2 -2
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +16 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +285 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +14 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +128 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +2 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +9 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/serialPorts.d.ts +78 -0
- package/dist/esm/operations/serialPorts.d.ts.map +1 -0
- package/dist/esm/operations/serialPorts.js +270 -0
- package/dist/esm/operations/serialPorts.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +9 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/serialPorts.d.ts +70 -0
- package/dist/esm/operationsInterfaces/serialPorts.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/serialPorts.js +9 -0
- package/dist/esm/operationsInterfaces/serialPorts.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +11 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/microsoftSerialConsoleClient.d.ts +44 -0
- package/dist/react-native/microsoftSerialConsoleClient.d.ts.map +1 -0
- package/dist/react-native/microsoftSerialConsoleClient.js +206 -0
- package/dist/react-native/microsoftSerialConsoleClient.js.map +1 -0
- package/dist/react-native/models/index.d.ts +151 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/react-native/models/index.js} +2 -2
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +16 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +285 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +14 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +128 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +2 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +9 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/serialPorts.d.ts +78 -0
- package/dist/react-native/operations/serialPorts.d.ts.map +1 -0
- package/dist/react-native/operations/serialPorts.js +270 -0
- package/dist/react-native/operations/serialPorts.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +9 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/serialPorts.d.ts +70 -0
- package/dist/react-native/operationsInterfaces/serialPorts.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/serialPorts.js +9 -0
- package/dist/react-native/operationsInterfaces/serialPorts.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +65 -34
- package/dist/index.js +0 -930
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/disableConsoleSample.d.ts +0 -2
- package/dist-esm/samples-dev/disableConsoleSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/disableConsoleSample.js +0 -28
- package/dist-esm/samples-dev/disableConsoleSample.js.map +0 -1
- package/dist-esm/samples-dev/enableConsoleSample.d.ts +0 -2
- package/dist-esm/samples-dev/enableConsoleSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/enableConsoleSample.js +0 -28
- package/dist-esm/samples-dev/enableConsoleSample.js.map +0 -1
- package/dist-esm/samples-dev/getConsoleStatusSample.d.ts +0 -2
- package/dist-esm/samples-dev/getConsoleStatusSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/getConsoleStatusSample.js +0 -28
- package/dist-esm/samples-dev/getConsoleStatusSample.js.map +0 -1
- package/dist-esm/samples-dev/listOperationsSample.d.ts +0 -2
- package/dist-esm/samples-dev/listOperationsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/listOperationsSample.js +0 -27
- package/dist-esm/samples-dev/listOperationsSample.js.map +0 -1
- package/dist-esm/samples-dev/serialPortsConnectSample.d.ts +0 -2
- package/dist-esm/samples-dev/serialPortsConnectSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serialPortsConnectSample.js +0 -53
- package/dist-esm/samples-dev/serialPortsConnectSample.js.map +0 -1
- package/dist-esm/samples-dev/serialPortsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/serialPortsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serialPortsCreateSample.js +0 -26
- package/dist-esm/samples-dev/serialPortsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/serialPortsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/serialPortsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serialPortsDeleteSample.js +0 -32
- package/dist-esm/samples-dev/serialPortsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/serialPortsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/serialPortsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serialPortsGetSample.js +0 -32
- package/dist-esm/samples-dev/serialPortsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.d.ts +0 -2
- package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.js +0 -27
- package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.js.map +0 -1
- package/dist-esm/samples-dev/serialPortsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/serialPortsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serialPortsListSample.js +0 -31
- package/dist-esm/samples-dev/serialPortsListSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -4
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/microsoftSerialConsoleClient.d.ts.map +0 -1
- package/dist-esm/src/microsoftSerialConsoleClient.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -2
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/serialPorts.d.ts.map +0 -1
- package/dist-esm/src/operations/serialPorts.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/serialPorts.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/serialPorts.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/microsoftSerialConsoleClient.ts +0 -287
- package/src/models/index.ts +0 -193
- package/src/models/mappers.ts +0 -305
- package/src/models/parameters.ts +0 -145
- package/src/operations/serialPorts.ts +0 -357
- package/src/operationsInterfaces/serialPorts.ts +0 -128
- package/tsconfig.json +0 -33
- package/types/arm-serialconsole.d.ts +0 -297
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/serialPorts.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/README.md
CHANGED
|
@@ -48,20 +48,28 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
|
|
|
48
48
|
|
|
49
49
|
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
52
|
+
|
|
53
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
54
|
+
import { MicrosoftSerialConsoleClient } from "@azure/arm-serialconsole";
|
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
55
56
|
|
|
56
57
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
58
|
const client = new MicrosoftSerialConsoleClient(new DefaultAzureCredential(), subscriptionId);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { MicrosoftSerialConsoleClient } from "@azure/arm-serialconsole";
|
|
66
|
+
|
|
67
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
68
|
+
const credential = new InteractiveBrowserCredential({
|
|
69
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
70
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
71
|
+
});
|
|
72
|
+
const client = new MicrosoftSerialConsoleClient(credential, subscriptionId);
|
|
65
73
|
```
|
|
66
74
|
|
|
67
75
|
### JavaScript Bundle
|
|
@@ -80,8 +88,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
88
|
|
|
81
89
|
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`:
|
|
82
90
|
|
|
83
|
-
```
|
|
84
|
-
|
|
91
|
+
```ts snippet:SetLogLevel
|
|
92
|
+
import { setLogLevel } from "@azure/logger";
|
|
93
|
+
|
|
85
94
|
setLogLevel("info");
|
|
86
95
|
```
|
|
87
96
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,cAAc,iCAAiC,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
export * from "./models";
|
|
9
|
-
export { MicrosoftSerialConsoleClient } from "./microsoftSerialConsoleClient";
|
|
10
|
-
export * from "./operationsInterfaces";
|
|
8
|
+
export * from "./models/index.js";
|
|
9
|
+
export { MicrosoftSerialConsoleClient } from "./microsoftSerialConsoleClient.js";
|
|
10
|
+
export * from "./operationsInterfaces/index.js";
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { MicrosoftSerialConsoleClient } from \"./microsoftSerialConsoleClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { SerialPorts } from "./operationsInterfaces";
|
|
4
|
-
import { MicrosoftSerialConsoleClientOptionalParams, ListOperationsOptionalParams, ListOperationsResponse, GetConsoleStatusOptionalParams, GetConsoleStatusResponse, DisableConsoleOptionalParams, DisableConsoleResponse, EnableConsoleOptionalParams, EnableConsoleResponse } from "./models";
|
|
3
|
+
import { SerialPorts } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { MicrosoftSerialConsoleClientOptionalParams, ListOperationsOptionalParams, ListOperationsResponse, GetConsoleStatusOptionalParams, GetConsoleStatusResponse, DisableConsoleOptionalParams, DisableConsoleResponse, EnableConsoleOptionalParams, EnableConsoleResponse } from "./models/index.js";
|
|
5
5
|
export declare class MicrosoftSerialConsoleClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
7
|
apiVersion: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoftSerialConsoleClient.d.ts","sourceRoot":"","sources":["../../src/microsoftSerialConsoleClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,OAAO,EACL,0CAA0C,EAC1C,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0CAA0C;IA4EtD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;OAGG;IACH,cAAc,CACZ,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAIlC;;;;OAIG;IACH,gBAAgB,CACd,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;;OAIG;IACH,cAAc,CACZ,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;OAIG;IACH,aAAa,CACX,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAOjC,WAAW,EAAE,WAAW,CAAC;CAC1B"}
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { SerialPortsImpl } from "./operations";
|
|
12
|
-
import * as Parameters from "./models/parameters";
|
|
13
|
-
import * as Mappers from "./models/mappers";
|
|
10
|
+
import { SerialPortsImpl } from "./operations/index.js";
|
|
11
|
+
import * as Parameters from "./models/parameters.js";
|
|
12
|
+
import * as Mappers from "./models/mappers.js";
|
|
14
13
|
export class MicrosoftSerialConsoleClient extends coreClient.ServiceClient {
|
|
15
14
|
/**
|
|
16
15
|
* Initializes a new instance of the MicrosoftSerialConsoleClient class.
|
|
@@ -79,22 +78,20 @@ export class MicrosoftSerialConsoleClient extends coreClient.ServiceClient {
|
|
|
79
78
|
}
|
|
80
79
|
const apiVersionPolicy = {
|
|
81
80
|
name: "CustomApiVersionPolicy",
|
|
82
|
-
sendRequest(request, next) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return next(request);
|
|
97
|
-
});
|
|
81
|
+
async sendRequest(request, next) {
|
|
82
|
+
const param = request.url.split("?");
|
|
83
|
+
if (param.length > 1) {
|
|
84
|
+
const newParams = param[1].split("&").map((item) => {
|
|
85
|
+
if (item.indexOf("api-version") > -1) {
|
|
86
|
+
return "api-version=" + apiVersion;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return item;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
93
|
+
}
|
|
94
|
+
return next(request);
|
|
98
95
|
}
|
|
99
96
|
};
|
|
100
97
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoftSerialConsoleClient.js","sourceRoot":"","sources":["../../src/microsoftSerialConsoleClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAa/C,MAAM,OAAO,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IAKxE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoD;;QAEpD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+C;YAC3D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,kCAAkC,CAAC;QAC1D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,E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licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { SerialPortsImpl } from \"./operations/index.js\";\nimport { SerialPorts } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MicrosoftSerialConsoleClientOptionalParams,\n ListOperationsOptionalParams,\n ListOperationsResponse,\n GetConsoleStatusOptionalParams,\n GetConsoleStatusResponse,\n DisableConsoleOptionalParams,\n DisableConsoleResponse,\n EnableConsoleOptionalParams,\n EnableConsoleResponse\n} from \"./models/index.js\";\n\nexport class MicrosoftSerialConsoleClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftSerialConsoleClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription ID which uniquely identifies the Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call requiring it.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftSerialConsoleClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MicrosoftSerialConsoleClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-serialconsole/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2018-05-01\";\n this.serialPorts = new SerialPortsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets a list of Serial Console API operations.\n * @param options The options parameters.\n */\n listOperations(\n options?: ListOperationsOptionalParams\n ): Promise<ListOperationsResponse> {\n return this.sendOperationRequest({ options }, listOperationsOperationSpec);\n }\n\n /**\n * Gets whether or not Serial Console is disabled for a given subscription\n * @param defaultParam Default parameter. Leave the value as \"default\".\n * @param options The options parameters.\n */\n getConsoleStatus(\n defaultParam: string,\n options?: GetConsoleStatusOptionalParams\n ): Promise<GetConsoleStatusResponse> {\n return this.sendOperationRequest(\n { defaultParam, options },\n getConsoleStatusOperationSpec\n );\n }\n\n /**\n * Disables the Serial Console service for all VMs and VM scale sets in the provided subscription\n * @param defaultParam Default parameter. Leave the value as \"default\".\n * @param options The options parameters.\n */\n disableConsole(\n defaultParam: string,\n options?: DisableConsoleOptionalParams\n ): Promise<DisableConsoleResponse> {\n return this.sendOperationRequest(\n { defaultParam, options },\n disableConsoleOperationSpec\n );\n }\n\n /**\n * Enables the Serial Console service for all VMs and VM scale sets in the provided subscription\n * @param defaultParam Default parameter. Leave the value as \"default\".\n * @param options The options parameters.\n */\n enableConsole(\n defaultParam: string,\n options?: EnableConsoleOptionalParams\n ): Promise<EnableConsoleResponse> {\n return this.sendOperationRequest(\n { defaultParam, options },\n enableConsoleOperationSpec\n );\n }\n\n serialPorts: SerialPorts;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.SerialConsole/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialConsoleOperations\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getConsoleStatusOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/consoleServices/{default}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialConsoleStatus\n },\n 404: {\n bodyMapper: Mappers.GetSerialConsoleSubscriptionNotFound\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.defaultParam\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst disableConsoleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/consoleServices/{default}/disableConsole\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DisableSerialConsoleResult\n },\n 404: {\n bodyMapper: Mappers.GetSerialConsoleSubscriptionNotFound\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.defaultParam\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst enableConsoleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/consoleServices/{default}/enableConsole\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnableSerialConsoleResult\n },\n 404: {\n bodyMapper: Mappers.GetSerialConsoleSubscriptionNotFound\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.defaultParam\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** Serial Console operations */\nexport interface SerialConsoleOperations {\n /** A list of Serial Console operations */\n value?: SerialConsoleOperationsValueItem[];\n}\n\nexport interface SerialConsoleOperationsValueItem {\n name?: string;\n isDataAction?: string;\n display?: SerialConsoleOperationsValueItemDisplay;\n}\n\nexport interface SerialConsoleOperationsValueItemDisplay {\n provider?: string;\n resource?: string;\n operation?: string;\n description?: string;\n}\n\n/** Returns whether or not Serial Console is disabled. */\nexport interface SerialConsoleStatus {\n /** Whether or not Serial Console is disabled. */\n disabled?: boolean;\n}\n\n/** Error saying that the provided subscription could not be found */\nexport interface GetSerialConsoleSubscriptionNotFound {\n /** Error code */\n code?: string;\n /** Subscription not found message */\n message?: string;\n}\n\n/** Returns whether or not Serial Console is disabled. */\nexport interface DisableSerialConsoleResult {\n /** Whether or not Serial Console is disabled. */\n disabled?: boolean;\n}\n\n/** Returns whether or not Serial Console is disabled (enabled). */\nexport interface EnableSerialConsoleResult {\n /** Whether or not Serial Console is disabled (enabled). */\n disabled?: boolean;\n}\n\n/** The list serial ports operation response. */\nexport interface SerialPortListResult {\n /** The list of serial ports. */\n value?: SerialPort[];\n}\n\n/** The Resource model definition. */\nexport interface Resource {\n /**\n * Resource Id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Resource name\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** An error response from the service. */\nexport interface CloudError {\n /** Cloud error body. */\n error?: CloudErrorBody;\n}\n\n/** An error response from the Batch service. */\nexport interface CloudErrorBody {\n /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */\n code?: string;\n /** A message describing the error, intended to be suitable for display in a user interface. */\n message?: string;\n /** The target of the particular error. For example, the name of the property in error. */\n target?: string;\n /** A list of additional details about the error. */\n details?: CloudErrorBody[];\n}\n\n/** Returns a connection string to the serial port of the resource. */\nexport interface SerialPortConnectResult {\n /** Connection string to the serial port of the resource. */\n connectionString?: string;\n}\n\n/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */\nexport interface ProxyResource extends Resource {}\n\n/** Represents the serial port of the parent resource. */\nexport interface SerialPort extends ProxyResource {\n /** Specifies whether the port is enabled for a serial console connection. */\n state?: SerialPortState;\n}\n\n/** Defines values for SerialPortState. */\nexport type SerialPortState = \"enabled\" | \"disabled\";\n\n/** Optional parameters. */\nexport interface ListOperationsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperations operation. */\nexport type ListOperationsResponse = SerialConsoleOperations;\n\n/** Optional parameters. */\nexport interface GetConsoleStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getConsoleStatus operation. */\nexport type GetConsoleStatusResponse = SerialConsoleStatus;\n\n/** Optional parameters. */\nexport interface DisableConsoleOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the disableConsole operation. */\nexport type DisableConsoleResponse = DisableSerialConsoleResult;\n\n/** Optional parameters. */\nexport interface EnableConsoleOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the enableConsole operation. */\nexport type EnableConsoleResponse = EnableSerialConsoleResult;\n\n/** Optional parameters. */\nexport interface SerialPortsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type SerialPortsListResponse = SerialPortListResult;\n\n/** Optional parameters. */\nexport interface SerialPortsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type SerialPortsGetResponse = SerialPort;\n\n/** Optional parameters. */\nexport interface SerialPortsCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type SerialPortsCreateResponse = SerialPort;\n\n/** Optional parameters. */\nexport interface SerialPortsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface SerialPortsListBySubscriptionsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptions operation. */\nexport type SerialPortsListBySubscriptionsResponse = SerialPortListResult;\n\n/** Optional parameters. */\nexport interface SerialPortsConnectOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the connect operation. */\nexport type SerialPortsConnectResponse = SerialPortConnectResult;\n\n/** Optional parameters. */\nexport interface MicrosoftSerialConsoleClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,uBAAuB,GAA+B;IACjE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yBAAyB;QACpC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kCAAkC;yBAC9C;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAA+B;IAC1E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kCAAkC;QAC7C,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW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F;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA+B;IACvD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,eAAe;QAC1B,eAAe,oBACV,QAAQ,CAAC,IAAI,CAAC,eAAe,CACjC;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA+B;IACpD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,YAAY;QACvB,eAAe,kCACV,aAAa,CAAC,IAAI,CAAC,eAAe,KACrC,KAAK,EAAE;gBACL,cAAc,EAAE,kBAAkB;gBAClC,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;oBACZ,aAAa,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;iBACvC;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const SerialConsoleOperations: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperations\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItem\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SerialConsoleOperationsValueItem: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItem\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItemDisplay\"\n }\n }\n }\n }\n};\n\nexport const SerialConsoleOperationsValueItemDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItemDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SerialConsoleStatus: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleStatus\",\n modelProperties: {\n disabled: {\n serializedName: \"disabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const GetSerialConsoleSubscriptionNotFound: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GetSerialConsoleSubscriptionNotFound\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DisableSerialConsoleResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DisableSerialConsoleResult\",\n modelProperties: {\n disabled: {\n serializedName: \"disabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const EnableSerialConsoleResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EnableSerialConsoleResult\",\n modelProperties: {\n disabled: {\n serializedName: \"disabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const SerialPortListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialPortListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SerialPort\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n};\n\nexport const CloudErrorBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SerialPortConnectResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialPortConnectResult\",\n modelProperties: {\n connectionString: {\n serializedName: \"connectionString\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n ...Resource.type.modelProperties\n }\n }\n};\n\nexport const SerialPort: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialPort\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n state: {\n serializedName: \"properties.state\",\n type: {\n name: \"Enum\",\n allowedValues: [\"enabled\", \"disabled\"]\n }\n }\n }\n }\n};\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { SerialPort as SerialPortMapper } from "../models/mappers";
|
|
8
|
+
import { SerialPort as SerialPortMapper } from "../models/mappers.js";
|
|
9
9
|
export const accept = {
|
|
10
10
|
parameterPath: "accept",
|
|
11
11
|
mapper: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,gBAAgB;QAChC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAA0B;IACjD,aAAa,EAAE,cA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zC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,gBAAgB;CACzB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { SerialPort as SerialPortMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-05-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const defaultParam: OperationURLParameter = {\n parameterPath: \"defaultParam\",\n mapper: {\n serializedName: \"default\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceProviderNamespace: OperationURLParameter = {\n parameterPath: \"resourceProviderNamespace\",\n mapper: {\n serializedName: \"resourceProviderNamespace\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parentResourceType: OperationURLParameter = {\n parameterPath: \"parentResourceType\",\n mapper: {\n serializedName: \"parentResourceType\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const parentResource: OperationURLParameter = {\n parameterPath: \"parentResource\",\n mapper: {\n serializedName: \"parentResource\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const serialPort: OperationURLParameter = {\n parameterPath: \"serialPort\",\n mapper: {\n serializedName: \"serialPort\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: SerialPortMapper\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./serialPorts.js\";\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SerialPorts } from "../operationsInterfaces";
|
|
2
|
-
import { MicrosoftSerialConsoleClient } from "../microsoftSerialConsoleClient";
|
|
3
|
-
import { SerialPortsListOptionalParams, SerialPortsListResponse, SerialPortsGetOptionalParams, SerialPortsGetResponse, SerialPort, SerialPortsCreateOptionalParams, SerialPortsCreateResponse, SerialPortsDeleteOptionalParams, SerialPortsListBySubscriptionsOptionalParams, SerialPortsListBySubscriptionsResponse, SerialPortsConnectOptionalParams, SerialPortsConnectResponse } from "../models";
|
|
1
|
+
import { SerialPorts } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { MicrosoftSerialConsoleClient } from "../microsoftSerialConsoleClient.js";
|
|
3
|
+
import { SerialPortsListOptionalParams, SerialPortsListResponse, SerialPortsGetOptionalParams, SerialPortsGetResponse, SerialPort, SerialPortsCreateOptionalParams, SerialPortsCreateResponse, SerialPortsDeleteOptionalParams, SerialPortsListBySubscriptionsOptionalParams, SerialPortsListBySubscriptionsResponse, SerialPortsConnectOptionalParams, SerialPortsConnectResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing SerialPorts operations. */
|
|
5
5
|
export declare class SerialPortsImpl implements SerialPorts {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialPorts.d.ts","sourceRoot":"","sources":["../../../src/operations/serialPorts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,UAAU,EACV,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,4CAA4C,EAC5C,sCAAsC,EACtC,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAE5B,+CAA+C;AAC/C,qBAAa,eAAgB,YAAW,WAAW;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IA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GACzC,OAAO,CAAC,0BAA0B,CAAC;CAavC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
-
import * as Mappers from "../models/mappers";
|
|
10
|
-
import * as Parameters from "../models/parameters";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing SerialPorts operations. */
|
|
12
12
|
export class SerialPortsImpl {
|
|
13
13
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialPorts.js","sourceRoot":"","sources":["../../../src/operations/serialPorts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,iBAAyB,EACzB,yBAAiC,EACjC,kBAA0B,EAC1B,cAAsB,EACtB,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,yBAAyB;YACzB,kBAAkB;YAClB,cAAc;YACd,OAAO;SACR,EACD,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAyB,EACzB,yBAAiC,EACjC,kBAA0B,EAC1B,cAAsB,EACtB,UAAkB,EAClB,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,yBAAyB;YACzB,kBAAkB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AC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EACF,mNAAmN;IACrN,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SerialPorts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftSerialConsoleClient } from \"../microsoftSerialConsoleClient.js\";\nimport {\n SerialPortsListOptionalParams,\n SerialPortsListResponse,\n SerialPortsGetOptionalParams,\n SerialPortsGetResponse,\n SerialPort,\n SerialPortsCreateOptionalParams,\n SerialPortsCreateResponse,\n SerialPortsDeleteOptionalParams,\n SerialPortsListBySubscriptionsOptionalParams,\n SerialPortsListBySubscriptionsResponse,\n SerialPortsConnectOptionalParams,\n SerialPortsConnectResponse\n} from \"../models/index.js\";\n\n/** Class containing SerialPorts operations. */\nexport class SerialPortsImpl implements SerialPorts {\n private readonly client: MicrosoftSerialConsoleClient;\n\n /**\n * Initialize a new instance of the class SerialPorts class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftSerialConsoleClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the configured serial ports for a parent resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n options?: SerialPortsListOptionalParams\n ): Promise<SerialPortsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n options\n },\n listOperationSpec\n );\n }\n\n /**\n * Gets the configured settings for a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsGetOptionalParams\n ): Promise<SerialPortsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to create.\n * @param parameters Parameters supplied to create the serial port.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n parameters: SerialPort,\n options?: SerialPortsCreateOptionalParams\n ): Promise<SerialPortsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n parameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Deletes a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to delete.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Handles requests to list all SerialPort resources in a subscription.\n * @param options The options parameters.\n */\n listBySubscriptions(\n options?: SerialPortsListBySubscriptionsOptionalParams\n ): Promise<SerialPortsListBySubscriptionsResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionsOperationSpec\n );\n }\n\n /**\n * Connect to serial port of the target resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n connect(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsConnectOptionalParams\n ): Promise<SerialPortsConnectResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n options\n },\n connectOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPortListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPort\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.SerialPort\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/serialPorts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPortListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst connectOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPortConnectResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./serialPorts.js\";\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SerialPortsListOptionalParams, SerialPortsListResponse, SerialPortsGetOptionalParams, SerialPortsGetResponse, SerialPort, SerialPortsCreateOptionalParams, SerialPortsCreateResponse, SerialPortsDeleteOptionalParams, SerialPortsListBySubscriptionsOptionalParams, SerialPortsListBySubscriptionsResponse, SerialPortsConnectOptionalParams, SerialPortsConnectResponse } from "../models";
|
|
1
|
+
import { SerialPortsListOptionalParams, SerialPortsListResponse, SerialPortsGetOptionalParams, SerialPortsGetResponse, SerialPort, SerialPortsCreateOptionalParams, SerialPortsCreateResponse, SerialPortsDeleteOptionalParams, SerialPortsListBySubscriptionsOptionalParams, SerialPortsListBySubscriptionsResponse, SerialPortsConnectOptionalParams, SerialPortsConnectResponse } from "../models/index.js";
|
|
2
2
|
/** Interface representing a SerialPorts. */
|
|
3
3
|
export interface SerialPorts {
|
|
4
4
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialPorts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/serialPorts.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,UAAU,EACV,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,4CAA4C,EAC5C,sCAAsC,EACtC,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAE5B,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;OASG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACpC;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;OAGG;IACH,mBAAmB,CACjB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACnD;;;;;;;;;;OAUG;IACH,OAAO,CACL,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialPorts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/serialPorts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n SerialPortsListOptionalParams,\n SerialPortsListResponse,\n SerialPortsGetOptionalParams,\n SerialPortsGetResponse,\n SerialPort,\n SerialPortsCreateOptionalParams,\n SerialPortsCreateResponse,\n SerialPortsDeleteOptionalParams,\n SerialPortsListBySubscriptionsOptionalParams,\n SerialPortsListBySubscriptionsResponse,\n SerialPortsConnectOptionalParams,\n SerialPortsConnectResponse\n} from \"../models/index.js\";\n\n/** Interface representing a SerialPorts. */\nexport interface SerialPorts {\n /**\n * Lists all of the configured serial ports for a parent resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n options?: SerialPortsListOptionalParams\n ): Promise<SerialPortsListResponse>;\n /**\n * Gets the configured settings for a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsGetOptionalParams\n ): Promise<SerialPortsGetResponse>;\n /**\n * Creates or updates a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to create.\n * @param parameters Parameters supplied to create the serial port.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n parameters: SerialPort,\n options?: SerialPortsCreateOptionalParams\n ): Promise<SerialPortsCreateResponse>;\n /**\n * Deletes a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to delete.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsDeleteOptionalParams\n ): Promise<void>;\n /**\n * Handles requests to list all SerialPort resources in a subscription.\n * @param options The options parameters.\n */\n listBySubscriptions(\n options?: SerialPortsListBySubscriptionsOptionalParams\n ): Promise<SerialPortsListBySubscriptionsResponse>;\n /**\n * Connect to serial port of the target resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n connect(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsConnectOptionalParams\n ): Promise<SerialPortsConnectResponse>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.MicrosoftSerialConsoleClient = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
tslib_1.__exportStar(require("./models/index.js"), exports);
|
|
13
|
+
var microsoftSerialConsoleClient_js_1 = require("./microsoftSerialConsoleClient.js");
|
|
14
|
+
Object.defineProperty(exports, "MicrosoftSerialConsoleClient", { enumerable: true, get: function () { return microsoftSerialConsoleClient_js_1.MicrosoftSerialConsoleClient; } });
|
|
15
|
+
tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4DAAkC;AAClC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { MicrosoftSerialConsoleClient } from \"./microsoftSerialConsoleClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { SerialPorts } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { MicrosoftSerialConsoleClientOptionalParams, ListOperationsOptionalParams, ListOperationsResponse, GetConsoleStatusOptionalParams, GetConsoleStatusResponse, DisableConsoleOptionalParams, DisableConsoleResponse, EnableConsoleOptionalParams, EnableConsoleResponse } from "./models/index.js";
|
|
5
|
+
export declare class MicrosoftSerialConsoleClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the MicrosoftSerialConsoleClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId Subscription ID which uniquely identifies the Microsoft Azure subscription.
|
|
13
|
+
* The subscription ID forms part of the URI for every service call requiring it.
|
|
14
|
+
* @param options The parameter options
|
|
15
|
+
*/
|
|
16
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftSerialConsoleClientOptionalParams);
|
|
17
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
18
|
+
private addCustomApiVersionPolicy;
|
|
19
|
+
/**
|
|
20
|
+
* Gets a list of Serial Console API operations.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
listOperations(options?: ListOperationsOptionalParams): Promise<ListOperationsResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets whether or not Serial Console is disabled for a given subscription
|
|
26
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
getConsoleStatus(defaultParam: string, options?: GetConsoleStatusOptionalParams): Promise<GetConsoleStatusResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Disables the Serial Console service for all VMs and VM scale sets in the provided subscription
|
|
32
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
disableConsole(defaultParam: string, options?: DisableConsoleOptionalParams): Promise<DisableConsoleResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Enables the Serial Console service for all VMs and VM scale sets in the provided subscription
|
|
38
|
+
* @param defaultParam Default parameter. Leave the value as "default".
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
enableConsole(defaultParam: string, options?: EnableConsoleOptionalParams): Promise<EnableConsoleResponse>;
|
|
42
|
+
serialPorts: SerialPorts;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=microsoftSerialConsoleClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoftSerialConsoleClient.d.ts","sourceRoot":"","sources":["../../src/microsoftSerialConsoleClient.ts"],"names":[],"mappings":"AAQA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