@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,271 @@
|
|
|
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 { ServiceReplica } 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
|
+
ServiceReplicaDescription,
|
|
17
|
+
ServiceReplicaListNextOptionalParams,
|
|
18
|
+
ServiceReplicaListOptionalParams,
|
|
19
|
+
ServiceReplicaGetOptionalParams,
|
|
20
|
+
ServiceReplicaGetResponse,
|
|
21
|
+
ServiceReplicaListResponse,
|
|
22
|
+
ServiceReplicaListNextResponse
|
|
23
|
+
} from "../models";
|
|
24
|
+
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing ServiceReplica operations. */
|
|
27
|
+
export class ServiceReplicaImpl implements ServiceReplica {
|
|
28
|
+
private readonly client: ServiceFabricMeshManagementClient;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initialize a new instance of the class ServiceReplica class.
|
|
32
|
+
* @param client Reference to the service client
|
|
33
|
+
*/
|
|
34
|
+
constructor(client: ServiceFabricMeshManagementClient) {
|
|
35
|
+
this.client = client;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets the information about all replicas of a given service of an application. The information
|
|
40
|
+
* includes the runtime properties of the replica instance.
|
|
41
|
+
* @param resourceGroupName Azure resource group name
|
|
42
|
+
* @param applicationResourceName The identity of the application.
|
|
43
|
+
* @param serviceResourceName The identity of the service.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
public list(
|
|
47
|
+
resourceGroupName: string,
|
|
48
|
+
applicationResourceName: string,
|
|
49
|
+
serviceResourceName: string,
|
|
50
|
+
options?: ServiceReplicaListOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<ServiceReplicaDescription> {
|
|
52
|
+
const iter = this.listPagingAll(
|
|
53
|
+
resourceGroupName,
|
|
54
|
+
applicationResourceName,
|
|
55
|
+
serviceResourceName,
|
|
56
|
+
options
|
|
57
|
+
);
|
|
58
|
+
return {
|
|
59
|
+
next() {
|
|
60
|
+
return iter.next();
|
|
61
|
+
},
|
|
62
|
+
[Symbol.asyncIterator]() {
|
|
63
|
+
return this;
|
|
64
|
+
},
|
|
65
|
+
byPage: () => {
|
|
66
|
+
return this.listPagingPage(
|
|
67
|
+
resourceGroupName,
|
|
68
|
+
applicationResourceName,
|
|
69
|
+
serviceResourceName,
|
|
70
|
+
options
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async *listPagingPage(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
applicationResourceName: string,
|
|
79
|
+
serviceResourceName: string,
|
|
80
|
+
options?: ServiceReplicaListOptionalParams
|
|
81
|
+
): AsyncIterableIterator<ServiceReplicaDescription[]> {
|
|
82
|
+
let result = await this._list(
|
|
83
|
+
resourceGroupName,
|
|
84
|
+
applicationResourceName,
|
|
85
|
+
serviceResourceName,
|
|
86
|
+
options
|
|
87
|
+
);
|
|
88
|
+
yield result.value || [];
|
|
89
|
+
let continuationToken = result.nextLink;
|
|
90
|
+
while (continuationToken) {
|
|
91
|
+
result = await this._listNext(
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
applicationResourceName,
|
|
94
|
+
serviceResourceName,
|
|
95
|
+
continuationToken,
|
|
96
|
+
options
|
|
97
|
+
);
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield result.value || [];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private async *listPagingAll(
|
|
104
|
+
resourceGroupName: string,
|
|
105
|
+
applicationResourceName: string,
|
|
106
|
+
serviceResourceName: string,
|
|
107
|
+
options?: ServiceReplicaListOptionalParams
|
|
108
|
+
): AsyncIterableIterator<ServiceReplicaDescription> {
|
|
109
|
+
for await (const page of this.listPagingPage(
|
|
110
|
+
resourceGroupName,
|
|
111
|
+
applicationResourceName,
|
|
112
|
+
serviceResourceName,
|
|
113
|
+
options
|
|
114
|
+
)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Gets the information about the service replica with the given name. The information include the
|
|
121
|
+
* description and other properties of the service replica.
|
|
122
|
+
* @param resourceGroupName Azure resource group name
|
|
123
|
+
* @param applicationResourceName The identity of the application.
|
|
124
|
+
* @param serviceResourceName The identity of the service.
|
|
125
|
+
* @param replicaName Service Fabric replica name.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
get(
|
|
129
|
+
resourceGroupName: string,
|
|
130
|
+
applicationResourceName: string,
|
|
131
|
+
serviceResourceName: string,
|
|
132
|
+
replicaName: string,
|
|
133
|
+
options?: ServiceReplicaGetOptionalParams
|
|
134
|
+
): Promise<ServiceReplicaGetResponse> {
|
|
135
|
+
return this.client.sendOperationRequest(
|
|
136
|
+
{
|
|
137
|
+
resourceGroupName,
|
|
138
|
+
applicationResourceName,
|
|
139
|
+
serviceResourceName,
|
|
140
|
+
replicaName,
|
|
141
|
+
options
|
|
142
|
+
},
|
|
143
|
+
getOperationSpec
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Gets the information about all replicas of a given service of an application. The information
|
|
149
|
+
* includes the runtime properties of the replica instance.
|
|
150
|
+
* @param resourceGroupName Azure resource group name
|
|
151
|
+
* @param applicationResourceName The identity of the application.
|
|
152
|
+
* @param serviceResourceName The identity of the service.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
private _list(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
applicationResourceName: string,
|
|
158
|
+
serviceResourceName: string,
|
|
159
|
+
options?: ServiceReplicaListOptionalParams
|
|
160
|
+
): Promise<ServiceReplicaListResponse> {
|
|
161
|
+
return this.client.sendOperationRequest(
|
|
162
|
+
{
|
|
163
|
+
resourceGroupName,
|
|
164
|
+
applicationResourceName,
|
|
165
|
+
serviceResourceName,
|
|
166
|
+
options
|
|
167
|
+
},
|
|
168
|
+
listOperationSpec
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* ListNext
|
|
174
|
+
* @param resourceGroupName Azure resource group name
|
|
175
|
+
* @param applicationResourceName The identity of the application.
|
|
176
|
+
* @param serviceResourceName The identity of the service.
|
|
177
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
178
|
+
* @param options The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
private _listNext(
|
|
181
|
+
resourceGroupName: string,
|
|
182
|
+
applicationResourceName: string,
|
|
183
|
+
serviceResourceName: string,
|
|
184
|
+
nextLink: string,
|
|
185
|
+
options?: ServiceReplicaListNextOptionalParams
|
|
186
|
+
): Promise<ServiceReplicaListNextResponse> {
|
|
187
|
+
return this.client.sendOperationRequest(
|
|
188
|
+
{
|
|
189
|
+
resourceGroupName,
|
|
190
|
+
applicationResourceName,
|
|
191
|
+
serviceResourceName,
|
|
192
|
+
nextLink,
|
|
193
|
+
options
|
|
194
|
+
},
|
|
195
|
+
listNextOperationSpec
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
// Operation Specifications
|
|
200
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
201
|
+
|
|
202
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
203
|
+
path:
|
|
204
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas/{replicaName}",
|
|
205
|
+
httpMethod: "GET",
|
|
206
|
+
responses: {
|
|
207
|
+
200: {
|
|
208
|
+
bodyMapper: Mappers.ServiceReplicaDescription
|
|
209
|
+
},
|
|
210
|
+
default: {
|
|
211
|
+
bodyMapper: Mappers.ErrorModel
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
queryParameters: [Parameters.apiVersion],
|
|
215
|
+
urlParameters: [
|
|
216
|
+
Parameters.$host,
|
|
217
|
+
Parameters.subscriptionId,
|
|
218
|
+
Parameters.resourceGroupName,
|
|
219
|
+
Parameters.applicationResourceName,
|
|
220
|
+
Parameters.serviceResourceName,
|
|
221
|
+
Parameters.replicaName
|
|
222
|
+
],
|
|
223
|
+
headerParameters: [Parameters.accept],
|
|
224
|
+
serializer
|
|
225
|
+
};
|
|
226
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
227
|
+
path:
|
|
228
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas",
|
|
229
|
+
httpMethod: "GET",
|
|
230
|
+
responses: {
|
|
231
|
+
200: {
|
|
232
|
+
bodyMapper: Mappers.ServiceReplicaDescriptionList
|
|
233
|
+
},
|
|
234
|
+
default: {
|
|
235
|
+
bodyMapper: Mappers.ErrorModel
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
queryParameters: [Parameters.apiVersion],
|
|
239
|
+
urlParameters: [
|
|
240
|
+
Parameters.$host,
|
|
241
|
+
Parameters.subscriptionId,
|
|
242
|
+
Parameters.resourceGroupName,
|
|
243
|
+
Parameters.applicationResourceName,
|
|
244
|
+
Parameters.serviceResourceName
|
|
245
|
+
],
|
|
246
|
+
headerParameters: [Parameters.accept],
|
|
247
|
+
serializer
|
|
248
|
+
};
|
|
249
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
250
|
+
path: "{nextLink}",
|
|
251
|
+
httpMethod: "GET",
|
|
252
|
+
responses: {
|
|
253
|
+
200: {
|
|
254
|
+
bodyMapper: Mappers.ServiceReplicaDescriptionList
|
|
255
|
+
},
|
|
256
|
+
default: {
|
|
257
|
+
bodyMapper: Mappers.ErrorModel
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.nextLink,
|
|
264
|
+
Parameters.subscriptionId,
|
|
265
|
+
Parameters.resourceGroupName,
|
|
266
|
+
Parameters.applicationResourceName,
|
|
267
|
+
Parameters.serviceResourceName
|
|
268
|
+
],
|
|
269
|
+
headerParameters: [Parameters.accept],
|
|
270
|
+
serializer
|
|
271
|
+
};
|
|
@@ -0,0 +1,417 @@
|
|
|
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 { Volume } 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
|
+
VolumeResourceDescription,
|
|
17
|
+
VolumeListByResourceGroupNextOptionalParams,
|
|
18
|
+
VolumeListByResourceGroupOptionalParams,
|
|
19
|
+
VolumeListBySubscriptionNextOptionalParams,
|
|
20
|
+
VolumeListBySubscriptionOptionalParams,
|
|
21
|
+
VolumeCreateOptionalParams,
|
|
22
|
+
VolumeCreateResponse,
|
|
23
|
+
VolumeGetOptionalParams,
|
|
24
|
+
VolumeGetResponse,
|
|
25
|
+
VolumeDeleteOptionalParams,
|
|
26
|
+
VolumeListByResourceGroupResponse,
|
|
27
|
+
VolumeListBySubscriptionResponse,
|
|
28
|
+
VolumeListByResourceGroupNextResponse,
|
|
29
|
+
VolumeListBySubscriptionNextResponse
|
|
30
|
+
} from "../models";
|
|
31
|
+
|
|
32
|
+
/// <reference lib="esnext.asynciterable" />
|
|
33
|
+
/** Class containing Volume operations. */
|
|
34
|
+
export class VolumeImpl implements Volume {
|
|
35
|
+
private readonly client: ServiceFabricMeshManagementClient;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initialize a new instance of the class Volume 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 volume resources in a given resource group. The information include
|
|
47
|
+
* the description and other properties of the Volume.
|
|
48
|
+
* @param resourceGroupName Azure resource group name
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
public listByResourceGroup(
|
|
52
|
+
resourceGroupName: string,
|
|
53
|
+
options?: VolumeListByResourceGroupOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<VolumeResourceDescription> {
|
|
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?: VolumeListByResourceGroupOptionalParams
|
|
72
|
+
): AsyncIterableIterator<VolumeResourceDescription[]> {
|
|
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?: VolumeListByResourceGroupOptionalParams
|
|
90
|
+
): AsyncIterableIterator<VolumeResourceDescription> {
|
|
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 volume resources in a given resource group. The information include
|
|
101
|
+
* the description and other properties of the volume.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
public listBySubscription(
|
|
105
|
+
options?: VolumeListBySubscriptionOptionalParams
|
|
106
|
+
): PagedAsyncIterableIterator<VolumeResourceDescription> {
|
|
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?: VolumeListBySubscriptionOptionalParams
|
|
123
|
+
): AsyncIterableIterator<VolumeResourceDescription[]> {
|
|
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?: VolumeListBySubscriptionOptionalParams
|
|
136
|
+
): AsyncIterableIterator<VolumeResourceDescription> {
|
|
137
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
138
|
+
yield* page;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Creates a volume resource with the specified name, description and properties. If a volume resource
|
|
144
|
+
* with the same name exists, then it is updated with the specified description and properties.
|
|
145
|
+
* @param resourceGroupName Azure resource group name
|
|
146
|
+
* @param volumeResourceName The identity of the volume.
|
|
147
|
+
* @param volumeResourceDescription Description for creating a Volume resource.
|
|
148
|
+
* @param options The options parameters.
|
|
149
|
+
*/
|
|
150
|
+
create(
|
|
151
|
+
resourceGroupName: string,
|
|
152
|
+
volumeResourceName: string,
|
|
153
|
+
volumeResourceDescription: VolumeResourceDescription,
|
|
154
|
+
options?: VolumeCreateOptionalParams
|
|
155
|
+
): Promise<VolumeCreateResponse> {
|
|
156
|
+
return this.client.sendOperationRequest(
|
|
157
|
+
{
|
|
158
|
+
resourceGroupName,
|
|
159
|
+
volumeResourceName,
|
|
160
|
+
volumeResourceDescription,
|
|
161
|
+
options
|
|
162
|
+
},
|
|
163
|
+
createOperationSpec
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Gets the information about the volume resource with the given name. The information include the
|
|
169
|
+
* description and other properties of the volume.
|
|
170
|
+
* @param resourceGroupName Azure resource group name
|
|
171
|
+
* @param volumeResourceName The identity of the volume.
|
|
172
|
+
* @param options The options parameters.
|
|
173
|
+
*/
|
|
174
|
+
get(
|
|
175
|
+
resourceGroupName: string,
|
|
176
|
+
volumeResourceName: string,
|
|
177
|
+
options?: VolumeGetOptionalParams
|
|
178
|
+
): Promise<VolumeGetResponse> {
|
|
179
|
+
return this.client.sendOperationRequest(
|
|
180
|
+
{ resourceGroupName, volumeResourceName, options },
|
|
181
|
+
getOperationSpec
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Deletes the volume resource identified by the name.
|
|
187
|
+
* @param resourceGroupName Azure resource group name
|
|
188
|
+
* @param volumeResourceName The identity of the volume.
|
|
189
|
+
* @param options The options parameters.
|
|
190
|
+
*/
|
|
191
|
+
delete(
|
|
192
|
+
resourceGroupName: string,
|
|
193
|
+
volumeResourceName: string,
|
|
194
|
+
options?: VolumeDeleteOptionalParams
|
|
195
|
+
): Promise<void> {
|
|
196
|
+
return this.client.sendOperationRequest(
|
|
197
|
+
{ resourceGroupName, volumeResourceName, options },
|
|
198
|
+
deleteOperationSpec
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Gets the information about all volume resources in a given resource group. The information include
|
|
204
|
+
* the description and other properties of the Volume.
|
|
205
|
+
* @param resourceGroupName Azure resource group name
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
private _listByResourceGroup(
|
|
209
|
+
resourceGroupName: string,
|
|
210
|
+
options?: VolumeListByResourceGroupOptionalParams
|
|
211
|
+
): Promise<VolumeListByResourceGroupResponse> {
|
|
212
|
+
return this.client.sendOperationRequest(
|
|
213
|
+
{ resourceGroupName, options },
|
|
214
|
+
listByResourceGroupOperationSpec
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Gets the information about all volume resources in a given resource group. The information include
|
|
220
|
+
* the description and other properties of the volume.
|
|
221
|
+
* @param options The options parameters.
|
|
222
|
+
*/
|
|
223
|
+
private _listBySubscription(
|
|
224
|
+
options?: VolumeListBySubscriptionOptionalParams
|
|
225
|
+
): Promise<VolumeListBySubscriptionResponse> {
|
|
226
|
+
return this.client.sendOperationRequest(
|
|
227
|
+
{ options },
|
|
228
|
+
listBySubscriptionOperationSpec
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* ListByResourceGroupNext
|
|
234
|
+
* @param resourceGroupName Azure resource group name
|
|
235
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
private _listByResourceGroupNext(
|
|
239
|
+
resourceGroupName: string,
|
|
240
|
+
nextLink: string,
|
|
241
|
+
options?: VolumeListByResourceGroupNextOptionalParams
|
|
242
|
+
): Promise<VolumeListByResourceGroupNextResponse> {
|
|
243
|
+
return this.client.sendOperationRequest(
|
|
244
|
+
{ resourceGroupName, nextLink, options },
|
|
245
|
+
listByResourceGroupNextOperationSpec
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* ListBySubscriptionNext
|
|
251
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
252
|
+
* @param options The options parameters.
|
|
253
|
+
*/
|
|
254
|
+
private _listBySubscriptionNext(
|
|
255
|
+
nextLink: string,
|
|
256
|
+
options?: VolumeListBySubscriptionNextOptionalParams
|
|
257
|
+
): Promise<VolumeListBySubscriptionNextResponse> {
|
|
258
|
+
return this.client.sendOperationRequest(
|
|
259
|
+
{ nextLink, options },
|
|
260
|
+
listBySubscriptionNextOperationSpec
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
// Operation Specifications
|
|
265
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
266
|
+
|
|
267
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
268
|
+
path:
|
|
269
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}",
|
|
270
|
+
httpMethod: "PUT",
|
|
271
|
+
responses: {
|
|
272
|
+
200: {
|
|
273
|
+
bodyMapper: Mappers.VolumeResourceDescription
|
|
274
|
+
},
|
|
275
|
+
201: {
|
|
276
|
+
bodyMapper: Mappers.VolumeResourceDescription
|
|
277
|
+
},
|
|
278
|
+
202: {},
|
|
279
|
+
default: {
|
|
280
|
+
bodyMapper: Mappers.ErrorModel
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
requestBody: Parameters.volumeResourceDescription,
|
|
284
|
+
queryParameters: [Parameters.apiVersion],
|
|
285
|
+
urlParameters: [
|
|
286
|
+
Parameters.$host,
|
|
287
|
+
Parameters.subscriptionId,
|
|
288
|
+
Parameters.resourceGroupName,
|
|
289
|
+
Parameters.volumeResourceName
|
|
290
|
+
],
|
|
291
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
292
|
+
mediaType: "json",
|
|
293
|
+
serializer
|
|
294
|
+
};
|
|
295
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
296
|
+
path:
|
|
297
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}",
|
|
298
|
+
httpMethod: "GET",
|
|
299
|
+
responses: {
|
|
300
|
+
200: {
|
|
301
|
+
bodyMapper: Mappers.VolumeResourceDescription
|
|
302
|
+
},
|
|
303
|
+
default: {
|
|
304
|
+
bodyMapper: Mappers.ErrorModel
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
queryParameters: [Parameters.apiVersion],
|
|
308
|
+
urlParameters: [
|
|
309
|
+
Parameters.$host,
|
|
310
|
+
Parameters.subscriptionId,
|
|
311
|
+
Parameters.resourceGroupName,
|
|
312
|
+
Parameters.volumeResourceName
|
|
313
|
+
],
|
|
314
|
+
headerParameters: [Parameters.accept],
|
|
315
|
+
serializer
|
|
316
|
+
};
|
|
317
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
318
|
+
path:
|
|
319
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}",
|
|
320
|
+
httpMethod: "DELETE",
|
|
321
|
+
responses: {
|
|
322
|
+
200: {},
|
|
323
|
+
202: {},
|
|
324
|
+
204: {},
|
|
325
|
+
default: {
|
|
326
|
+
bodyMapper: Mappers.ErrorModel
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
queryParameters: [Parameters.apiVersion],
|
|
330
|
+
urlParameters: [
|
|
331
|
+
Parameters.$host,
|
|
332
|
+
Parameters.subscriptionId,
|
|
333
|
+
Parameters.resourceGroupName,
|
|
334
|
+
Parameters.volumeResourceName
|
|
335
|
+
],
|
|
336
|
+
headerParameters: [Parameters.accept],
|
|
337
|
+
serializer
|
|
338
|
+
};
|
|
339
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
340
|
+
path:
|
|
341
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes",
|
|
342
|
+
httpMethod: "GET",
|
|
343
|
+
responses: {
|
|
344
|
+
200: {
|
|
345
|
+
bodyMapper: Mappers.VolumeResourceDescriptionList
|
|
346
|
+
},
|
|
347
|
+
default: {
|
|
348
|
+
bodyMapper: Mappers.ErrorModel
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
queryParameters: [Parameters.apiVersion],
|
|
352
|
+
urlParameters: [
|
|
353
|
+
Parameters.$host,
|
|
354
|
+
Parameters.subscriptionId,
|
|
355
|
+
Parameters.resourceGroupName
|
|
356
|
+
],
|
|
357
|
+
headerParameters: [Parameters.accept],
|
|
358
|
+
serializer
|
|
359
|
+
};
|
|
360
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
361
|
+
path:
|
|
362
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/volumes",
|
|
363
|
+
httpMethod: "GET",
|
|
364
|
+
responses: {
|
|
365
|
+
200: {
|
|
366
|
+
bodyMapper: Mappers.VolumeResourceDescriptionList
|
|
367
|
+
},
|
|
368
|
+
default: {
|
|
369
|
+
bodyMapper: Mappers.ErrorModel
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
queryParameters: [Parameters.apiVersion],
|
|
373
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
374
|
+
headerParameters: [Parameters.accept],
|
|
375
|
+
serializer
|
|
376
|
+
};
|
|
377
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
378
|
+
path: "{nextLink}",
|
|
379
|
+
httpMethod: "GET",
|
|
380
|
+
responses: {
|
|
381
|
+
200: {
|
|
382
|
+
bodyMapper: Mappers.VolumeResourceDescriptionList
|
|
383
|
+
},
|
|
384
|
+
default: {
|
|
385
|
+
bodyMapper: Mappers.ErrorModel
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
queryParameters: [Parameters.apiVersion],
|
|
389
|
+
urlParameters: [
|
|
390
|
+
Parameters.$host,
|
|
391
|
+
Parameters.nextLink,
|
|
392
|
+
Parameters.subscriptionId,
|
|
393
|
+
Parameters.resourceGroupName
|
|
394
|
+
],
|
|
395
|
+
headerParameters: [Parameters.accept],
|
|
396
|
+
serializer
|
|
397
|
+
};
|
|
398
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
399
|
+
path: "{nextLink}",
|
|
400
|
+
httpMethod: "GET",
|
|
401
|
+
responses: {
|
|
402
|
+
200: {
|
|
403
|
+
bodyMapper: Mappers.VolumeResourceDescriptionList
|
|
404
|
+
},
|
|
405
|
+
default: {
|
|
406
|
+
bodyMapper: Mappers.ErrorModel
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
queryParameters: [Parameters.apiVersion],
|
|
410
|
+
urlParameters: [
|
|
411
|
+
Parameters.$host,
|
|
412
|
+
Parameters.nextLink,
|
|
413
|
+
Parameters.subscriptionId
|
|
414
|
+
],
|
|
415
|
+
headerParameters: [Parameters.accept],
|
|
416
|
+
serializer
|
|
417
|
+
};
|