@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
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
/** Class containing SerialPorts operations. */
|
|
12
|
+
export class SerialPortsImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class SerialPorts class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Lists all of the configured serial ports for a parent resource
|
|
22
|
+
* @param resourceGroupName The name of the resource group.
|
|
23
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
24
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
25
|
+
* or 'virtualMachineScaleSets'
|
|
26
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
27
|
+
* example: the name of the virtual machine.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, options) {
|
|
31
|
+
return this.client.sendOperationRequest({
|
|
32
|
+
resourceGroupName,
|
|
33
|
+
resourceProviderNamespace,
|
|
34
|
+
parentResourceType,
|
|
35
|
+
parentResource,
|
|
36
|
+
options
|
|
37
|
+
}, listOperationSpec);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Gets the configured settings for a serial port
|
|
41
|
+
* @param resourceGroupName The name of the resource group.
|
|
42
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
43
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
44
|
+
* or 'virtualMachineScaleSets'
|
|
45
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
46
|
+
* example: the name of the virtual machine.
|
|
47
|
+
* @param serialPort The name of the serial port to connect to.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
get(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
|
|
51
|
+
return this.client.sendOperationRequest({
|
|
52
|
+
resourceGroupName,
|
|
53
|
+
resourceProviderNamespace,
|
|
54
|
+
parentResourceType,
|
|
55
|
+
parentResource,
|
|
56
|
+
serialPort,
|
|
57
|
+
options
|
|
58
|
+
}, getOperationSpec);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Creates or updates a serial port
|
|
62
|
+
* @param resourceGroupName The name of the resource group.
|
|
63
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
64
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
65
|
+
* or 'virtualMachineScaleSets'
|
|
66
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
67
|
+
* example: the name of the virtual machine.
|
|
68
|
+
* @param serialPort The name of the serial port to create.
|
|
69
|
+
* @param parameters Parameters supplied to create the serial port.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
create(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, parameters, options) {
|
|
73
|
+
return this.client.sendOperationRequest({
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
resourceProviderNamespace,
|
|
76
|
+
parentResourceType,
|
|
77
|
+
parentResource,
|
|
78
|
+
serialPort,
|
|
79
|
+
parameters,
|
|
80
|
+
options
|
|
81
|
+
}, createOperationSpec);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Deletes a serial port
|
|
85
|
+
* @param resourceGroupName The name of the resource group.
|
|
86
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
87
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
88
|
+
* or 'virtualMachineScaleSets'
|
|
89
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
90
|
+
* example: the name of the virtual machine.
|
|
91
|
+
* @param serialPort The name of the serial port to delete.
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
delete(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
|
|
95
|
+
return this.client.sendOperationRequest({
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
resourceProviderNamespace,
|
|
98
|
+
parentResourceType,
|
|
99
|
+
parentResource,
|
|
100
|
+
serialPort,
|
|
101
|
+
options
|
|
102
|
+
}, deleteOperationSpec);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Handles requests to list all SerialPort resources in a subscription.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
listBySubscriptions(options) {
|
|
109
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionsOperationSpec);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Connect to serial port of the target resource
|
|
113
|
+
* @param resourceGroupName The name of the resource group.
|
|
114
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
115
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
116
|
+
* or 'virtualMachineScaleSets'
|
|
117
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
118
|
+
* example: the name of the virtual machine.
|
|
119
|
+
* @param serialPort The name of the serial port to connect to.
|
|
120
|
+
* @param options The options parameters.
|
|
121
|
+
*/
|
|
122
|
+
connect(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
|
|
123
|
+
return this.client.sendOperationRequest({
|
|
124
|
+
resourceGroupName,
|
|
125
|
+
resourceProviderNamespace,
|
|
126
|
+
parentResourceType,
|
|
127
|
+
parentResource,
|
|
128
|
+
serialPort,
|
|
129
|
+
options
|
|
130
|
+
}, connectOperationSpec);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// Operation Specifications
|
|
134
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
135
|
+
const listOperationSpec = {
|
|
136
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts",
|
|
137
|
+
httpMethod: "GET",
|
|
138
|
+
responses: {
|
|
139
|
+
200: {
|
|
140
|
+
bodyMapper: Mappers.SerialPortListResult
|
|
141
|
+
},
|
|
142
|
+
default: {
|
|
143
|
+
bodyMapper: Mappers.CloudError
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
queryParameters: [Parameters.apiVersion],
|
|
147
|
+
urlParameters: [
|
|
148
|
+
Parameters.$host,
|
|
149
|
+
Parameters.subscriptionId,
|
|
150
|
+
Parameters.resourceGroupName,
|
|
151
|
+
Parameters.resourceProviderNamespace,
|
|
152
|
+
Parameters.parentResourceType,
|
|
153
|
+
Parameters.parentResource
|
|
154
|
+
],
|
|
155
|
+
headerParameters: [Parameters.accept],
|
|
156
|
+
serializer
|
|
157
|
+
};
|
|
158
|
+
const getOperationSpec = {
|
|
159
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
|
|
160
|
+
httpMethod: "GET",
|
|
161
|
+
responses: {
|
|
162
|
+
200: {
|
|
163
|
+
bodyMapper: Mappers.SerialPort
|
|
164
|
+
},
|
|
165
|
+
default: {
|
|
166
|
+
bodyMapper: Mappers.CloudError
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
queryParameters: [Parameters.apiVersion],
|
|
170
|
+
urlParameters: [
|
|
171
|
+
Parameters.$host,
|
|
172
|
+
Parameters.subscriptionId,
|
|
173
|
+
Parameters.resourceGroupName,
|
|
174
|
+
Parameters.resourceProviderNamespace,
|
|
175
|
+
Parameters.parentResourceType,
|
|
176
|
+
Parameters.parentResource,
|
|
177
|
+
Parameters.serialPort
|
|
178
|
+
],
|
|
179
|
+
headerParameters: [Parameters.accept],
|
|
180
|
+
serializer
|
|
181
|
+
};
|
|
182
|
+
const createOperationSpec = {
|
|
183
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
|
|
184
|
+
httpMethod: "PUT",
|
|
185
|
+
responses: {
|
|
186
|
+
201: {
|
|
187
|
+
bodyMapper: Mappers.SerialPort
|
|
188
|
+
},
|
|
189
|
+
default: {
|
|
190
|
+
bodyMapper: Mappers.CloudError
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
requestBody: Parameters.parameters,
|
|
194
|
+
queryParameters: [Parameters.apiVersion],
|
|
195
|
+
urlParameters: [
|
|
196
|
+
Parameters.$host,
|
|
197
|
+
Parameters.subscriptionId,
|
|
198
|
+
Parameters.resourceGroupName,
|
|
199
|
+
Parameters.resourceProviderNamespace,
|
|
200
|
+
Parameters.parentResourceType,
|
|
201
|
+
Parameters.parentResource,
|
|
202
|
+
Parameters.serialPort
|
|
203
|
+
],
|
|
204
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
205
|
+
mediaType: "json",
|
|
206
|
+
serializer
|
|
207
|
+
};
|
|
208
|
+
const deleteOperationSpec = {
|
|
209
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
|
|
210
|
+
httpMethod: "DELETE",
|
|
211
|
+
responses: {
|
|
212
|
+
200: {},
|
|
213
|
+
204: {},
|
|
214
|
+
default: {
|
|
215
|
+
bodyMapper: Mappers.CloudError
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
queryParameters: [Parameters.apiVersion],
|
|
219
|
+
urlParameters: [
|
|
220
|
+
Parameters.$host,
|
|
221
|
+
Parameters.subscriptionId,
|
|
222
|
+
Parameters.resourceGroupName,
|
|
223
|
+
Parameters.resourceProviderNamespace,
|
|
224
|
+
Parameters.parentResourceType,
|
|
225
|
+
Parameters.parentResource,
|
|
226
|
+
Parameters.serialPort
|
|
227
|
+
],
|
|
228
|
+
headerParameters: [Parameters.accept],
|
|
229
|
+
serializer
|
|
230
|
+
};
|
|
231
|
+
const listBySubscriptionsOperationSpec = {
|
|
232
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/serialPorts",
|
|
233
|
+
httpMethod: "GET",
|
|
234
|
+
responses: {
|
|
235
|
+
200: {
|
|
236
|
+
bodyMapper: Mappers.SerialPortListResult
|
|
237
|
+
},
|
|
238
|
+
default: {
|
|
239
|
+
bodyMapper: Mappers.CloudError
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
243
|
+
headerParameters: [Parameters.accept],
|
|
244
|
+
serializer
|
|
245
|
+
};
|
|
246
|
+
const connectOperationSpec = {
|
|
247
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect",
|
|
248
|
+
httpMethod: "POST",
|
|
249
|
+
responses: {
|
|
250
|
+
200: {
|
|
251
|
+
bodyMapper: Mappers.SerialPortConnectResult
|
|
252
|
+
},
|
|
253
|
+
default: {
|
|
254
|
+
bodyMapper: Mappers.CloudError
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
queryParameters: [Parameters.apiVersion],
|
|
258
|
+
urlParameters: [
|
|
259
|
+
Parameters.$host,
|
|
260
|
+
Parameters.subscriptionId,
|
|
261
|
+
Parameters.resourceGroupName,
|
|
262
|
+
Parameters.resourceProviderNamespace,
|
|
263
|
+
Parameters.parentResourceType,
|
|
264
|
+
Parameters.parentResource,
|
|
265
|
+
Parameters.serialPort
|
|
266
|
+
],
|
|
267
|
+
headerParameters: [Parameters.accept],
|
|
268
|
+
serializer
|
|
269
|
+
};
|
|
270
|
+
//# sourceMappingURL=serialPorts.js.map
|
|
@@ -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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AAK;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;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EACF,+EAA+E;IACjF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./serialPorts.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { SerialPortsListOptionalParams, SerialPortsListResponse, SerialPortsGetOptionalParams, SerialPortsGetResponse, SerialPort, SerialPortsCreateOptionalParams, SerialPortsCreateResponse, SerialPortsDeleteOptionalParams, SerialPortsListBySubscriptionsOptionalParams, SerialPortsListBySubscriptionsResponse, SerialPortsConnectOptionalParams, SerialPortsConnectResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a SerialPorts. */
|
|
3
|
+
export interface SerialPorts {
|
|
4
|
+
/**
|
|
5
|
+
* Lists all of the configured serial ports for a parent resource
|
|
6
|
+
* @param resourceGroupName The name of the resource group.
|
|
7
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
8
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
9
|
+
* or 'virtualMachineScaleSets'
|
|
10
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
11
|
+
* example: the name of the virtual machine.
|
|
12
|
+
* @param options The options parameters.
|
|
13
|
+
*/
|
|
14
|
+
list(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, options?: SerialPortsListOptionalParams): Promise<SerialPortsListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the configured settings for a serial port
|
|
17
|
+
* @param resourceGroupName The name of the resource group.
|
|
18
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
19
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
20
|
+
* or 'virtualMachineScaleSets'
|
|
21
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
22
|
+
* example: the name of the virtual machine.
|
|
23
|
+
* @param serialPort The name of the serial port to connect to.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
get(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsGetOptionalParams): Promise<SerialPortsGetResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates or updates a serial port
|
|
29
|
+
* @param resourceGroupName The name of the resource group.
|
|
30
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
31
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
32
|
+
* or 'virtualMachineScaleSets'
|
|
33
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
34
|
+
* example: the name of the virtual machine.
|
|
35
|
+
* @param serialPort The name of the serial port to create.
|
|
36
|
+
* @param parameters Parameters supplied to create the serial port.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
create(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, parameters: SerialPort, options?: SerialPortsCreateOptionalParams): Promise<SerialPortsCreateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Deletes a serial port
|
|
42
|
+
* @param resourceGroupName The name of the resource group.
|
|
43
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
44
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
45
|
+
* or 'virtualMachineScaleSets'
|
|
46
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
47
|
+
* example: the name of the virtual machine.
|
|
48
|
+
* @param serialPort The name of the serial port to delete.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
delete(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsDeleteOptionalParams): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Handles requests to list all SerialPort resources in a subscription.
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
listBySubscriptions(options?: SerialPortsListBySubscriptionsOptionalParams): Promise<SerialPortsListBySubscriptionsResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Connect to serial port of the target resource
|
|
59
|
+
* @param resourceGroupName The name of the resource group.
|
|
60
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
61
|
+
* @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
|
|
62
|
+
* or 'virtualMachineScaleSets'
|
|
63
|
+
* @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
|
|
64
|
+
* example: the name of the virtual machine.
|
|
65
|
+
* @param serialPort The name of the serial port to connect to.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
connect(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsConnectOptionalParams): Promise<SerialPortsConnectResponse>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=serialPorts.d.ts.map
|
|
@@ -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,6BAA6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
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=serialPorts.js.map
|
|
@@ -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,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./models/index.js";
|
|
9
|
+
export { MicrosoftSerialConsoleClient } from "./microsoftSerialConsoleClient.js";
|
|
10
|
+
export * from "./operationsInterfaces/index.js";
|
|
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"]}
|
|
@@ -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,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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