@azure/arm-servicefabricmesh 0.1.0 → 3.0.0-beta.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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +75 -73
- package/dist/index.js +5478 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1366 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +121 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +105 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1264 -1320
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +25 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +104 -62
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/application.d.ts +82 -0
- package/dist-esm/src/operations/application.d.ts.map +1 -0
- package/dist-esm/src/operations/application.js +340 -0
- package/dist-esm/src/operations/application.js.map +1 -0
- package/dist-esm/src/operations/codePackage.d.ts +23 -0
- package/dist-esm/src/operations/codePackage.d.ts.map +1 -0
- package/dist-esm/src/operations/codePackage.js +66 -0
- package/dist-esm/src/operations/codePackage.js.map +1 -0
- package/dist-esm/src/operations/gateway.d.ts +83 -0
- package/dist-esm/src/operations/gateway.d.ts.map +1 -0
- package/dist-esm/src/operations/gateway.js +341 -0
- package/dist-esm/src/operations/gateway.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/network.d.ts +82 -0
- package/dist-esm/src/operations/network.d.ts.map +1 -0
- package/dist-esm/src/operations/network.js +340 -0
- package/dist-esm/src/operations/network.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/secret.d.ts +81 -0
- package/dist-esm/src/operations/secret.d.ts.map +1 -0
- package/dist-esm/src/operations/secret.js +339 -0
- package/dist-esm/src/operations/secret.js.map +1 -0
- package/dist-esm/src/operations/secretValueOperations.d.ts +81 -0
- package/dist-esm/src/operations/secretValueOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/secretValueOperations.js +303 -0
- package/dist-esm/src/operations/secretValueOperations.js.map +1 -0
- package/dist-esm/src/operations/service.d.ts +49 -0
- package/dist-esm/src/operations/service.d.ts.map +1 -0
- package/dist-esm/src/operations/service.js +177 -0
- package/dist-esm/src/operations/service.js.map +1 -0
- package/dist-esm/src/operations/serviceReplica.d.ts +53 -0
- package/dist-esm/src/operations/serviceReplica.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceReplica.js +196 -0
- package/dist-esm/src/operations/serviceReplica.js.map +1 -0
- package/dist-esm/src/operations/volume.d.ts +81 -0
- package/dist-esm/src/operations/volume.d.ts.map +1 -0
- package/dist-esm/src/operations/volume.js +339 -0
- package/dist-esm/src/operations/volume.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/application.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/application.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/application.js +9 -0
- package/dist-esm/src/operationsInterfaces/application.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/codePackage.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/codePackage.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/codePackage.js +9 -0
- package/dist-esm/src/operationsInterfaces/codePackage.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/gateway.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/gateway.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/gateway.js +9 -0
- package/dist-esm/src/operationsInterfaces/gateway.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +18 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/network.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/network.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/network.js +9 -0
- package/dist-esm/src/operationsInterfaces/network.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/secret.d.ts +43 -0
- package/dist-esm/src/operationsInterfaces/secret.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/secret.js +9 -0
- package/dist-esm/src/operationsInterfaces/secret.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/secretValueOperations.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/secretValueOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/secretValueOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/secretValueOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/service.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/service.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/service.js +9 -0
- package/dist-esm/src/operationsInterfaces/service.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceReplica.d.ts +25 -0
- package/dist-esm/src/operationsInterfaces/serviceReplica.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceReplica.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceReplica.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volume.d.ts +43 -0
- package/dist-esm/src/operationsInterfaces/volume.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volume.js +9 -0
- package/dist-esm/src/operationsInterfaces/volume.js.map +1 -0
- package/dist-esm/src/serviceFabricMeshManagementClient.d.ts +27 -0
- package/dist-esm/src/serviceFabricMeshManagementClient.d.ts.map +1 -0
- package/dist-esm/src/serviceFabricMeshManagementClient.js +60 -0
- package/dist-esm/src/serviceFabricMeshManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +87 -26
- package/review/arm-servicefabricmesh.api.md +1210 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/models/index.ts +1603 -0
- package/{lib → src}/models/mappers.ts +1315 -1344
- package/src/models/parameters.ts +250 -0
- package/src/operations/application.ts +418 -0
- package/src/operations/codePackage.ts +88 -0
- package/src/operations/gateway.ts +419 -0
- package/{lib → src}/operations/index.ts +3 -5
- package/src/operations/network.ts +418 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/secret.ts +417 -0
- package/src/operations/secretValueOperations.ts +403 -0
- package/src/operations/service.ts +241 -0
- package/src/operations/serviceReplica.ts +271 -0
- package/src/operations/volume.ts +417 -0
- package/src/operationsInterfaces/application.ts +80 -0
- package/src/operationsInterfaces/codePackage.ts +33 -0
- package/src/operationsInterfaces/gateway.ts +81 -0
- package/src/operationsInterfaces/index.ts +18 -0
- package/src/operationsInterfaces/network.ts +80 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/secret.ts +79 -0
- package/src/operationsInterfaces/secretValueOperations.ts +99 -0
- package/src/operationsInterfaces/service.ts +46 -0
- package/src/operationsInterfaces/serviceReplica.ts +50 -0
- package/src/operationsInterfaces/volume.ts +79 -0
- package/src/serviceFabricMeshManagementClient.ts +115 -0
- package/tsconfig.json +20 -7
- package/types/arm-servicefabricmesh.d.ts +1940 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-servicefabricmesh.js +0 -5353
- package/dist/arm-servicefabricmesh.js.map +0 -1
- package/dist/arm-servicefabricmesh.min.js +0 -1
- package/dist/arm-servicefabricmesh.min.js.map +0 -1
- package/esm/models/applicationMappers.d.ts +0 -2
- package/esm/models/applicationMappers.d.ts.map +0 -1
- package/esm/models/applicationMappers.js +0 -11
- package/esm/models/applicationMappers.js.map +0 -1
- package/esm/models/codePackageMappers.d.ts +0 -2
- package/esm/models/codePackageMappers.d.ts.map +0 -1
- package/esm/models/codePackageMappers.js +0 -11
- package/esm/models/codePackageMappers.js.map +0 -1
- package/esm/models/gatewayMappers.d.ts +0 -2
- package/esm/models/gatewayMappers.d.ts.map +0 -1
- package/esm/models/gatewayMappers.js +0 -11
- package/esm/models/gatewayMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2938
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -102
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/networkMappers.d.ts +0 -2
- package/esm/models/networkMappers.d.ts.map +0 -1
- package/esm/models/networkMappers.js +0 -11
- package/esm/models/networkMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/secretMappers.d.ts +0 -2
- package/esm/models/secretMappers.d.ts.map +0 -1
- package/esm/models/secretMappers.js +0 -11
- package/esm/models/secretMappers.js.map +0 -1
- package/esm/models/secretValueOperationsMappers.d.ts +0 -2
- package/esm/models/secretValueOperationsMappers.d.ts.map +0 -1
- package/esm/models/secretValueOperationsMappers.js +0 -11
- package/esm/models/secretValueOperationsMappers.js.map +0 -1
- package/esm/models/serviceMappers.d.ts +0 -2
- package/esm/models/serviceMappers.d.ts.map +0 -1
- package/esm/models/serviceMappers.js +0 -11
- package/esm/models/serviceMappers.js.map +0 -1
- package/esm/models/serviceReplicaMappers.d.ts +0 -2
- package/esm/models/serviceReplicaMappers.d.ts.map +0 -1
- package/esm/models/serviceReplicaMappers.js +0 -11
- package/esm/models/serviceReplicaMappers.js.map +0 -1
- package/esm/models/volumeMappers.d.ts +0 -2
- package/esm/models/volumeMappers.d.ts.map +0 -1
- package/esm/models/volumeMappers.js +0 -11
- package/esm/models/volumeMappers.js.map +0 -1
- package/esm/operations/application.d.ts +0 -162
- package/esm/operations/application.d.ts.map +0 -1
- package/esm/operations/application.js +0 -238
- package/esm/operations/application.js.map +0 -1
- package/esm/operations/codePackage.d.ts +0 -44
- package/esm/operations/codePackage.d.ts.map +0 -1
- package/esm/operations/codePackage.js +0 -65
- package/esm/operations/codePackage.js.map +0 -1
- package/esm/operations/gateway.d.ts +0 -163
- package/esm/operations/gateway.d.ts.map +0 -1
- package/esm/operations/gateway.js +0 -238
- package/esm/operations/gateway.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/network.d.ts +0 -162
- package/esm/operations/network.d.ts.map +0 -1
- package/esm/operations/network.js +0 -238
- package/esm/operations/network.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -48
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/secret.d.ts +0 -162
- package/esm/operations/secret.d.ts.map +0 -1
- package/esm/operations/secret.js +0 -238
- package/esm/operations/secret.js.map +0 -1
- package/esm/operations/secretValueOperations.d.ts +0 -175
- package/esm/operations/secretValueOperations.d.ts.map +0 -1
- package/esm/operations/secretValueOperations.js +0 -226
- package/esm/operations/secretValueOperations.js.map +0 -1
- package/esm/operations/service.d.ts +0 -82
- package/esm/operations/service.d.ts.map +0 -1
- package/esm/operations/service.js +0 -117
- package/esm/operations/service.js.map +0 -1
- package/esm/operations/serviceReplica.d.ts +0 -88
- package/esm/operations/serviceReplica.d.ts.map +0 -1
- package/esm/operations/serviceReplica.js +0 -121
- package/esm/operations/serviceReplica.js.map +0 -1
- package/esm/operations/volume.d.ts +0 -162
- package/esm/operations/volume.d.ts.map +0 -1
- package/esm/operations/volume.js +0 -238
- package/esm/operations/volume.js.map +0 -1
- package/esm/serviceFabricMeshManagementClient.d.ts +0 -27
- package/esm/serviceFabricMeshManagementClient.d.ts.map +0 -1
- package/esm/serviceFabricMeshManagementClient.js +0 -42
- package/esm/serviceFabricMeshManagementClient.js.map +0 -1
- package/esm/serviceFabricMeshManagementClientContext.d.ts +0 -16
- package/esm/serviceFabricMeshManagementClientContext.d.ts.map +0 -1
- package/esm/serviceFabricMeshManagementClientContext.js +0 -56
- package/esm/serviceFabricMeshManagementClientContext.js.map +0 -1
- package/lib/models/applicationMappers.ts +0 -76
- package/lib/models/codePackageMappers.ts +0 -18
- package/lib/models/gatewayMappers.ts +0 -76
- package/lib/models/index.ts +0 -3097
- package/lib/models/networkMappers.ts +0 -76
- package/lib/models/operationsMappers.ts +0 -20
- package/lib/models/parameters.ts +0 -175
- package/lib/models/secretMappers.ts +0 -76
- package/lib/models/secretValueOperationsMappers.ts +0 -77
- package/lib/models/serviceMappers.ts +0 -76
- package/lib/models/serviceReplicaMappers.ts +0 -40
- package/lib/models/volumeMappers.ts +0 -76
- package/lib/operations/application.ts +0 -427
- package/lib/operations/codePackage.ts +0 -104
- package/lib/operations/gateway.ts +0 -428
- package/lib/operations/network.ts +0 -427
- package/lib/operations/operations.ts +0 -125
- package/lib/operations/secret.ts +0 -427
- package/lib/operations/secretValueOperations.ts +0 -423
- package/lib/operations/service.ts +0 -204
- package/lib/operations/serviceReplica.ts +0 -214
- package/lib/operations/volume.ts +0 -427
- package/lib/serviceFabricMeshManagementClient.ts +0 -60
- package/lib/serviceFabricMeshManagementClientContext.ts +0 -62
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
|
|
9
|
+
import { CodePackage } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
CodePackageGetContainerLogsOptionalParams,
|
|
16
|
+
CodePackageGetContainerLogsResponse
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/** Class containing CodePackage operations. */
|
|
20
|
+
export class CodePackageImpl implements CodePackage {
|
|
21
|
+
private readonly client: ServiceFabricMeshManagementClient;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Initialize a new instance of the class CodePackage class.
|
|
25
|
+
* @param client Reference to the service client
|
|
26
|
+
*/
|
|
27
|
+
constructor(client: ServiceFabricMeshManagementClient) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Gets the logs for the container of the specified code package of the service replica.
|
|
33
|
+
* @param resourceGroupName Azure resource group name
|
|
34
|
+
* @param applicationResourceName The identity of the application.
|
|
35
|
+
* @param serviceResourceName The identity of the service.
|
|
36
|
+
* @param replicaName Service Fabric replica name.
|
|
37
|
+
* @param codePackageName The name of code package of the service.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
getContainerLogs(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
applicationResourceName: string,
|
|
43
|
+
serviceResourceName: string,
|
|
44
|
+
replicaName: string,
|
|
45
|
+
codePackageName: string,
|
|
46
|
+
options?: CodePackageGetContainerLogsOptionalParams
|
|
47
|
+
): Promise<CodePackageGetContainerLogsResponse> {
|
|
48
|
+
return this.client.sendOperationRequest(
|
|
49
|
+
{
|
|
50
|
+
resourceGroupName,
|
|
51
|
+
applicationResourceName,
|
|
52
|
+
serviceResourceName,
|
|
53
|
+
replicaName,
|
|
54
|
+
codePackageName,
|
|
55
|
+
options
|
|
56
|
+
},
|
|
57
|
+
getContainerLogsOperationSpec
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
// Operation Specifications
|
|
62
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
63
|
+
|
|
64
|
+
const getContainerLogsOperationSpec: coreClient.OperationSpec = {
|
|
65
|
+
path:
|
|
66
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs",
|
|
67
|
+
httpMethod: "GET",
|
|
68
|
+
responses: {
|
|
69
|
+
200: {
|
|
70
|
+
bodyMapper: Mappers.ContainerLogs
|
|
71
|
+
},
|
|
72
|
+
default: {
|
|
73
|
+
bodyMapper: Mappers.ErrorModel
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
queryParameters: [Parameters.apiVersion, Parameters.tail],
|
|
77
|
+
urlParameters: [
|
|
78
|
+
Parameters.$host,
|
|
79
|
+
Parameters.subscriptionId,
|
|
80
|
+
Parameters.resourceGroupName,
|
|
81
|
+
Parameters.applicationResourceName,
|
|
82
|
+
Parameters.serviceResourceName,
|
|
83
|
+
Parameters.replicaName,
|
|
84
|
+
Parameters.codePackageName
|
|
85
|
+
],
|
|
86
|
+
headerParameters: [Parameters.accept],
|
|
87
|
+
serializer
|
|
88
|
+
};
|
|
@@ -0,0 +1,419 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Gateway } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
GatewayResourceDescription,
|
|
17
|
+
GatewayListByResourceGroupNextOptionalParams,
|
|
18
|
+
GatewayListByResourceGroupOptionalParams,
|
|
19
|
+
GatewayListBySubscriptionNextOptionalParams,
|
|
20
|
+
GatewayListBySubscriptionOptionalParams,
|
|
21
|
+
GatewayCreateOptionalParams,
|
|
22
|
+
GatewayCreateResponse,
|
|
23
|
+
GatewayGetOptionalParams,
|
|
24
|
+
GatewayGetResponse,
|
|
25
|
+
GatewayDeleteOptionalParams,
|
|
26
|
+
GatewayListByResourceGroupResponse,
|
|
27
|
+
GatewayListBySubscriptionResponse,
|
|
28
|
+
GatewayListByResourceGroupNextResponse,
|
|
29
|
+
GatewayListBySubscriptionNextResponse
|
|
30
|
+
} from "../models";
|
|
31
|
+
|
|
32
|
+
/// <reference lib="esnext.asynciterable" />
|
|
33
|
+
/** Class containing Gateway operations. */
|
|
34
|
+
export class GatewayImpl implements Gateway {
|
|
35
|
+
private readonly client: ServiceFabricMeshManagementClient;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initialize a new instance of the class Gateway class.
|
|
39
|
+
* @param client Reference to the service client
|
|
40
|
+
*/
|
|
41
|
+
constructor(client: ServiceFabricMeshManagementClient) {
|
|
42
|
+
this.client = client;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Gets the information about all gateway resources in a given resource group. The information include
|
|
47
|
+
* the description and other properties of the Gateway.
|
|
48
|
+
* @param resourceGroupName Azure resource group name
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
public listByResourceGroup(
|
|
52
|
+
resourceGroupName: string,
|
|
53
|
+
options?: GatewayListByResourceGroupOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<GatewayResourceDescription> {
|
|
55
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listByResourceGroupPagingPage(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
options?: GatewayListByResourceGroupOptionalParams
|
|
72
|
+
): AsyncIterableIterator<GatewayResourceDescription[]> {
|
|
73
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
74
|
+
yield result.value || [];
|
|
75
|
+
let continuationToken = result.nextLink;
|
|
76
|
+
while (continuationToken) {
|
|
77
|
+
result = await this._listByResourceGroupNext(
|
|
78
|
+
resourceGroupName,
|
|
79
|
+
continuationToken,
|
|
80
|
+
options
|
|
81
|
+
);
|
|
82
|
+
continuationToken = result.nextLink;
|
|
83
|
+
yield result.value || [];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
private async *listByResourceGroupPagingAll(
|
|
88
|
+
resourceGroupName: string,
|
|
89
|
+
options?: GatewayListByResourceGroupOptionalParams
|
|
90
|
+
): AsyncIterableIterator<GatewayResourceDescription> {
|
|
91
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
options
|
|
94
|
+
)) {
|
|
95
|
+
yield* page;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Gets the information about all gateway resources in a given resource group. The information include
|
|
101
|
+
* the description and other properties of the gateway.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
public listBySubscription(
|
|
105
|
+
options?: GatewayListBySubscriptionOptionalParams
|
|
106
|
+
): PagedAsyncIterableIterator<GatewayResourceDescription> {
|
|
107
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
108
|
+
return {
|
|
109
|
+
next() {
|
|
110
|
+
return iter.next();
|
|
111
|
+
},
|
|
112
|
+
[Symbol.asyncIterator]() {
|
|
113
|
+
return this;
|
|
114
|
+
},
|
|
115
|
+
byPage: () => {
|
|
116
|
+
return this.listBySubscriptionPagingPage(options);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
private async *listBySubscriptionPagingPage(
|
|
122
|
+
options?: GatewayListBySubscriptionOptionalParams
|
|
123
|
+
): AsyncIterableIterator<GatewayResourceDescription[]> {
|
|
124
|
+
let result = await this._listBySubscription(options);
|
|
125
|
+
yield result.value || [];
|
|
126
|
+
let continuationToken = result.nextLink;
|
|
127
|
+
while (continuationToken) {
|
|
128
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
129
|
+
continuationToken = result.nextLink;
|
|
130
|
+
yield result.value || [];
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
private async *listBySubscriptionPagingAll(
|
|
135
|
+
options?: GatewayListBySubscriptionOptionalParams
|
|
136
|
+
): AsyncIterableIterator<GatewayResourceDescription> {
|
|
137
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
138
|
+
yield* page;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Creates a gateway resource with the specified name, description and properties. If a gateway
|
|
144
|
+
* resource with the same name exists, then it is updated with the specified description and
|
|
145
|
+
* properties. Use gateway resources to create a gateway for public connectivity for services within
|
|
146
|
+
* your application.
|
|
147
|
+
* @param resourceGroupName Azure resource group name
|
|
148
|
+
* @param gatewayResourceName The identity of the gateway.
|
|
149
|
+
* @param gatewayResourceDescription Description for creating a Gateway resource.
|
|
150
|
+
* @param options The options parameters.
|
|
151
|
+
*/
|
|
152
|
+
create(
|
|
153
|
+
resourceGroupName: string,
|
|
154
|
+
gatewayResourceName: string,
|
|
155
|
+
gatewayResourceDescription: GatewayResourceDescription,
|
|
156
|
+
options?: GatewayCreateOptionalParams
|
|
157
|
+
): Promise<GatewayCreateResponse> {
|
|
158
|
+
return this.client.sendOperationRequest(
|
|
159
|
+
{
|
|
160
|
+
resourceGroupName,
|
|
161
|
+
gatewayResourceName,
|
|
162
|
+
gatewayResourceDescription,
|
|
163
|
+
options
|
|
164
|
+
},
|
|
165
|
+
createOperationSpec
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Gets the information about the gateway resource with the given name. The information include the
|
|
171
|
+
* description and other properties of the gateway.
|
|
172
|
+
* @param resourceGroupName Azure resource group name
|
|
173
|
+
* @param gatewayResourceName The identity of the gateway.
|
|
174
|
+
* @param options The options parameters.
|
|
175
|
+
*/
|
|
176
|
+
get(
|
|
177
|
+
resourceGroupName: string,
|
|
178
|
+
gatewayResourceName: string,
|
|
179
|
+
options?: GatewayGetOptionalParams
|
|
180
|
+
): Promise<GatewayGetResponse> {
|
|
181
|
+
return this.client.sendOperationRequest(
|
|
182
|
+
{ resourceGroupName, gatewayResourceName, options },
|
|
183
|
+
getOperationSpec
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Deletes the gateway resource identified by the name.
|
|
189
|
+
* @param resourceGroupName Azure resource group name
|
|
190
|
+
* @param gatewayResourceName The identity of the gateway.
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
delete(
|
|
194
|
+
resourceGroupName: string,
|
|
195
|
+
gatewayResourceName: string,
|
|
196
|
+
options?: GatewayDeleteOptionalParams
|
|
197
|
+
): Promise<void> {
|
|
198
|
+
return this.client.sendOperationRequest(
|
|
199
|
+
{ resourceGroupName, gatewayResourceName, options },
|
|
200
|
+
deleteOperationSpec
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Gets the information about all gateway resources in a given resource group. The information include
|
|
206
|
+
* the description and other properties of the Gateway.
|
|
207
|
+
* @param resourceGroupName Azure resource group name
|
|
208
|
+
* @param options The options parameters.
|
|
209
|
+
*/
|
|
210
|
+
private _listByResourceGroup(
|
|
211
|
+
resourceGroupName: string,
|
|
212
|
+
options?: GatewayListByResourceGroupOptionalParams
|
|
213
|
+
): Promise<GatewayListByResourceGroupResponse> {
|
|
214
|
+
return this.client.sendOperationRequest(
|
|
215
|
+
{ resourceGroupName, options },
|
|
216
|
+
listByResourceGroupOperationSpec
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Gets the information about all gateway resources in a given resource group. The information include
|
|
222
|
+
* the description and other properties of the gateway.
|
|
223
|
+
* @param options The options parameters.
|
|
224
|
+
*/
|
|
225
|
+
private _listBySubscription(
|
|
226
|
+
options?: GatewayListBySubscriptionOptionalParams
|
|
227
|
+
): Promise<GatewayListBySubscriptionResponse> {
|
|
228
|
+
return this.client.sendOperationRequest(
|
|
229
|
+
{ options },
|
|
230
|
+
listBySubscriptionOperationSpec
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* ListByResourceGroupNext
|
|
236
|
+
* @param resourceGroupName Azure resource group name
|
|
237
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
238
|
+
* @param options The options parameters.
|
|
239
|
+
*/
|
|
240
|
+
private _listByResourceGroupNext(
|
|
241
|
+
resourceGroupName: string,
|
|
242
|
+
nextLink: string,
|
|
243
|
+
options?: GatewayListByResourceGroupNextOptionalParams
|
|
244
|
+
): Promise<GatewayListByResourceGroupNextResponse> {
|
|
245
|
+
return this.client.sendOperationRequest(
|
|
246
|
+
{ resourceGroupName, nextLink, options },
|
|
247
|
+
listByResourceGroupNextOperationSpec
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* ListBySubscriptionNext
|
|
253
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
254
|
+
* @param options The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
private _listBySubscriptionNext(
|
|
257
|
+
nextLink: string,
|
|
258
|
+
options?: GatewayListBySubscriptionNextOptionalParams
|
|
259
|
+
): Promise<GatewayListBySubscriptionNextResponse> {
|
|
260
|
+
return this.client.sendOperationRequest(
|
|
261
|
+
{ nextLink, options },
|
|
262
|
+
listBySubscriptionNextOperationSpec
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
// Operation Specifications
|
|
267
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
268
|
+
|
|
269
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
270
|
+
path:
|
|
271
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
|
|
272
|
+
httpMethod: "PUT",
|
|
273
|
+
responses: {
|
|
274
|
+
200: {
|
|
275
|
+
bodyMapper: Mappers.GatewayResourceDescription
|
|
276
|
+
},
|
|
277
|
+
201: {
|
|
278
|
+
bodyMapper: Mappers.GatewayResourceDescription
|
|
279
|
+
},
|
|
280
|
+
202: {},
|
|
281
|
+
default: {
|
|
282
|
+
bodyMapper: Mappers.ErrorModel
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
requestBody: Parameters.gatewayResourceDescription,
|
|
286
|
+
queryParameters: [Parameters.apiVersion],
|
|
287
|
+
urlParameters: [
|
|
288
|
+
Parameters.$host,
|
|
289
|
+
Parameters.subscriptionId,
|
|
290
|
+
Parameters.resourceGroupName,
|
|
291
|
+
Parameters.gatewayResourceName
|
|
292
|
+
],
|
|
293
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
294
|
+
mediaType: "json",
|
|
295
|
+
serializer
|
|
296
|
+
};
|
|
297
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
298
|
+
path:
|
|
299
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
|
|
300
|
+
httpMethod: "GET",
|
|
301
|
+
responses: {
|
|
302
|
+
200: {
|
|
303
|
+
bodyMapper: Mappers.GatewayResourceDescription
|
|
304
|
+
},
|
|
305
|
+
default: {
|
|
306
|
+
bodyMapper: Mappers.ErrorModel
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
queryParameters: [Parameters.apiVersion],
|
|
310
|
+
urlParameters: [
|
|
311
|
+
Parameters.$host,
|
|
312
|
+
Parameters.subscriptionId,
|
|
313
|
+
Parameters.resourceGroupName,
|
|
314
|
+
Parameters.gatewayResourceName
|
|
315
|
+
],
|
|
316
|
+
headerParameters: [Parameters.accept],
|
|
317
|
+
serializer
|
|
318
|
+
};
|
|
319
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
320
|
+
path:
|
|
321
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}",
|
|
322
|
+
httpMethod: "DELETE",
|
|
323
|
+
responses: {
|
|
324
|
+
200: {},
|
|
325
|
+
202: {},
|
|
326
|
+
204: {},
|
|
327
|
+
default: {
|
|
328
|
+
bodyMapper: Mappers.ErrorModel
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
queryParameters: [Parameters.apiVersion],
|
|
332
|
+
urlParameters: [
|
|
333
|
+
Parameters.$host,
|
|
334
|
+
Parameters.subscriptionId,
|
|
335
|
+
Parameters.resourceGroupName,
|
|
336
|
+
Parameters.gatewayResourceName
|
|
337
|
+
],
|
|
338
|
+
headerParameters: [Parameters.accept],
|
|
339
|
+
serializer
|
|
340
|
+
};
|
|
341
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
342
|
+
path:
|
|
343
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways",
|
|
344
|
+
httpMethod: "GET",
|
|
345
|
+
responses: {
|
|
346
|
+
200: {
|
|
347
|
+
bodyMapper: Mappers.GatewayResourceDescriptionList
|
|
348
|
+
},
|
|
349
|
+
default: {
|
|
350
|
+
bodyMapper: Mappers.ErrorModel
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
queryParameters: [Parameters.apiVersion],
|
|
354
|
+
urlParameters: [
|
|
355
|
+
Parameters.$host,
|
|
356
|
+
Parameters.subscriptionId,
|
|
357
|
+
Parameters.resourceGroupName
|
|
358
|
+
],
|
|
359
|
+
headerParameters: [Parameters.accept],
|
|
360
|
+
serializer
|
|
361
|
+
};
|
|
362
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
363
|
+
path:
|
|
364
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/gateways",
|
|
365
|
+
httpMethod: "GET",
|
|
366
|
+
responses: {
|
|
367
|
+
200: {
|
|
368
|
+
bodyMapper: Mappers.GatewayResourceDescriptionList
|
|
369
|
+
},
|
|
370
|
+
default: {
|
|
371
|
+
bodyMapper: Mappers.ErrorModel
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
queryParameters: [Parameters.apiVersion],
|
|
375
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
376
|
+
headerParameters: [Parameters.accept],
|
|
377
|
+
serializer
|
|
378
|
+
};
|
|
379
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
380
|
+
path: "{nextLink}",
|
|
381
|
+
httpMethod: "GET",
|
|
382
|
+
responses: {
|
|
383
|
+
200: {
|
|
384
|
+
bodyMapper: Mappers.GatewayResourceDescriptionList
|
|
385
|
+
},
|
|
386
|
+
default: {
|
|
387
|
+
bodyMapper: Mappers.ErrorModel
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
queryParameters: [Parameters.apiVersion],
|
|
391
|
+
urlParameters: [
|
|
392
|
+
Parameters.$host,
|
|
393
|
+
Parameters.nextLink,
|
|
394
|
+
Parameters.subscriptionId,
|
|
395
|
+
Parameters.resourceGroupName
|
|
396
|
+
],
|
|
397
|
+
headerParameters: [Parameters.accept],
|
|
398
|
+
serializer
|
|
399
|
+
};
|
|
400
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
401
|
+
path: "{nextLink}",
|
|
402
|
+
httpMethod: "GET",
|
|
403
|
+
responses: {
|
|
404
|
+
200: {
|
|
405
|
+
bodyMapper: Mappers.GatewayResourceDescriptionList
|
|
406
|
+
},
|
|
407
|
+
default: {
|
|
408
|
+
bodyMapper: Mappers.ErrorModel
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
queryParameters: [Parameters.apiVersion],
|
|
412
|
+
urlParameters: [
|
|
413
|
+
Parameters.$host,
|
|
414
|
+
Parameters.nextLink,
|
|
415
|
+
Parameters.subscriptionId
|
|
416
|
+
],
|
|
417
|
+
headerParameters: [Parameters.accept],
|
|
418
|
+
serializer
|
|
419
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
9
|
export * from "./operations";
|