@azure/arm-servicefabricmesh 3.0.0-beta.3 → 3.0.0-beta.4
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 +2 -2
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +321 -141
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationCreateSample.js +11 -3
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/applicationListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/applicationListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/codePackageGetContainerLogsSample.js +11 -3
- package/dist-esm/samples-dev/codePackageGetContainerLogsSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayCreateSample.js +11 -3
- package/dist-esm/samples-dev/gatewayCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayDeleteSample.js +11 -3
- package/dist-esm/samples-dev/gatewayDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayGetSample.js +11 -3
- package/dist-esm/samples-dev/gatewayGetSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/gatewayListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/gatewayListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/networkCreateSample.js +11 -3
- package/dist-esm/samples-dev/networkCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/networkDeleteSample.js +11 -3
- package/dist-esm/samples-dev/networkDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/networkGetSample.js +11 -3
- package/dist-esm/samples-dev/networkGetSample.js.map +1 -1
- package/dist-esm/samples-dev/networkListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/networkListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/networkListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/networkListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/secretCreateSample.js +11 -3
- package/dist-esm/samples-dev/secretCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/secretDeleteSample.js +11 -3
- package/dist-esm/samples-dev/secretDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/secretGetSample.js +11 -3
- package/dist-esm/samples-dev/secretGetSample.js.map +1 -1
- package/dist-esm/samples-dev/secretListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/secretListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/secretListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/secretListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueCreateSample.js +11 -3
- package/dist-esm/samples-dev/secretValueCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueDeleteSample.js +11 -3
- package/dist-esm/samples-dev/secretValueDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueGetSample.js +11 -3
- package/dist-esm/samples-dev/secretValueGetSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueListSample.js +11 -3
- package/dist-esm/samples-dev/secretValueListSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueListValueSample.js +11 -3
- package/dist-esm/samples-dev/secretValueListValueSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceGetSample.js +11 -3
- package/dist-esm/samples-dev/serviceGetSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceListSample.js +11 -3
- package/dist-esm/samples-dev/serviceListSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceReplicaGetSample.js +11 -3
- package/dist-esm/samples-dev/serviceReplicaGetSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceReplicaListSample.js +11 -3
- package/dist-esm/samples-dev/serviceReplicaListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeCreateSample.js +11 -3
- package/dist-esm/samples-dev/volumeCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeDeleteSample.js +11 -3
- package/dist-esm/samples-dev/volumeDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGetSample.js +11 -3
- package/dist-esm/samples-dev/volumeGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/volumeListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/volumeListBySubscriptionSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +67 -47
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +5 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -4
- package/dist-esm/src/models/mappers.js +10 -10
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/application.d.ts.map +1 -1
- package/dist-esm/src/operations/application.js +37 -16
- package/dist-esm/src/operations/application.js.map +1 -1
- package/dist-esm/src/operations/gateway.d.ts.map +1 -1
- package/dist-esm/src/operations/gateway.js +37 -16
- package/dist-esm/src/operations/gateway.js.map +1 -1
- package/dist-esm/src/operations/network.d.ts.map +1 -1
- package/dist-esm/src/operations/network.js +37 -16
- package/dist-esm/src/operations/network.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/secret.d.ts.map +1 -1
- package/dist-esm/src/operations/secret.js +37 -16
- package/dist-esm/src/operations/secret.js.map +1 -1
- package/dist-esm/src/operations/secretValueOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/secretValueOperations.js +19 -8
- package/dist-esm/src/operations/secretValueOperations.js.map +1 -1
- package/dist-esm/src/operations/service.d.ts.map +1 -1
- package/dist-esm/src/operations/service.js +19 -8
- package/dist-esm/src/operations/service.js.map +1 -1
- package/dist-esm/src/operations/serviceReplica.d.ts.map +1 -1
- package/dist-esm/src/operations/serviceReplica.js +19 -8
- package/dist-esm/src/operations/serviceReplica.js.map +1 -1
- package/dist-esm/src/operations/volume.d.ts.map +1 -1
- package/dist-esm/src/operations/volume.js +37 -16
- package/dist-esm/src/operations/volume.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/serviceFabricMeshManagementClient.d.ts.map +1 -1
- package/dist-esm/src/serviceFabricMeshManagementClient.js +21 -19
- package/dist-esm/src/serviceFabricMeshManagementClient.js.map +1 -1
- package/package.json +9 -8
- package/review/arm-servicefabricmesh.api.md +87 -78
- package/src/index.ts +1 -0
- package/src/models/index.ts +79 -53
- package/src/models/mappers.ts +10 -10
- package/src/operations/application.ts +46 -19
- package/src/operations/gateway.ts +46 -19
- package/src/operations/network.ts +46 -19
- package/src/operations/operations.ts +21 -9
- package/src/operations/secret.ts +46 -19
- package/src/operations/secretValueOperations.ts +23 -14
- package/src/operations/service.ts +27 -14
- package/src/operations/serviceReplica.ts +28 -15
- package/src/operations/volume.ts +46 -19
- package/src/pagingHelper.ts +39 -0
- package/src/serviceFabricMeshManagementClient.ts +27 -21
- package/types/arm-servicefabricmesh.d.ts +76 -47
- package/types/tsdoc-metadata.json +1 -1
package/src/operations/volume.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Volume } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,15 +17,15 @@ import {
|
|
|
16
17
|
VolumeResourceDescription,
|
|
17
18
|
VolumeListByResourceGroupNextOptionalParams,
|
|
18
19
|
VolumeListByResourceGroupOptionalParams,
|
|
20
|
+
VolumeListByResourceGroupResponse,
|
|
19
21
|
VolumeListBySubscriptionNextOptionalParams,
|
|
20
22
|
VolumeListBySubscriptionOptionalParams,
|
|
23
|
+
VolumeListBySubscriptionResponse,
|
|
21
24
|
VolumeCreateOptionalParams,
|
|
22
25
|
VolumeCreateResponse,
|
|
23
26
|
VolumeGetOptionalParams,
|
|
24
27
|
VolumeGetResponse,
|
|
25
28
|
VolumeDeleteOptionalParams,
|
|
26
|
-
VolumeListByResourceGroupResponse,
|
|
27
|
-
VolumeListBySubscriptionResponse,
|
|
28
29
|
VolumeListByResourceGroupNextResponse,
|
|
29
30
|
VolumeListBySubscriptionNextResponse
|
|
30
31
|
} from "../models";
|
|
@@ -60,19 +61,33 @@ export class VolumeImpl implements Volume {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
-
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listByResourceGroupPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
72
|
+
);
|
|
65
73
|
}
|
|
66
74
|
};
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
private async *listByResourceGroupPagingPage(
|
|
70
78
|
resourceGroupName: string,
|
|
71
|
-
options?: VolumeListByResourceGroupOptionalParams
|
|
79
|
+
options?: VolumeListByResourceGroupOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
72
81
|
): AsyncIterableIterator<VolumeResourceDescription[]> {
|
|
73
|
-
let result
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
let result: VolumeListByResourceGroupResponse;
|
|
83
|
+
let continuationToken = settings?.continuationToken;
|
|
84
|
+
if (!continuationToken) {
|
|
85
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
86
|
+
let page = result.value || [];
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
setContinuationToken(page, continuationToken);
|
|
89
|
+
yield page;
|
|
90
|
+
}
|
|
76
91
|
while (continuationToken) {
|
|
77
92
|
result = await this._listByResourceGroupNext(
|
|
78
93
|
resourceGroupName,
|
|
@@ -80,7 +95,9 @@ export class VolumeImpl implements Volume {
|
|
|
80
95
|
options
|
|
81
96
|
);
|
|
82
97
|
continuationToken = result.nextLink;
|
|
83
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
84
101
|
}
|
|
85
102
|
}
|
|
86
103
|
|
|
@@ -112,22 +129,34 @@ export class VolumeImpl implements Volume {
|
|
|
112
129
|
[Symbol.asyncIterator]() {
|
|
113
130
|
return this;
|
|
114
131
|
},
|
|
115
|
-
byPage: () => {
|
|
116
|
-
|
|
132
|
+
byPage: (settings?: PageSettings) => {
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
134
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
135
|
+
}
|
|
136
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
117
137
|
}
|
|
118
138
|
};
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
private async *listBySubscriptionPagingPage(
|
|
122
|
-
options?: VolumeListBySubscriptionOptionalParams
|
|
142
|
+
options?: VolumeListBySubscriptionOptionalParams,
|
|
143
|
+
settings?: PageSettings
|
|
123
144
|
): AsyncIterableIterator<VolumeResourceDescription[]> {
|
|
124
|
-
let result
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
let result: VolumeListBySubscriptionResponse;
|
|
146
|
+
let continuationToken = settings?.continuationToken;
|
|
147
|
+
if (!continuationToken) {
|
|
148
|
+
result = await this._listBySubscription(options);
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
127
154
|
while (continuationToken) {
|
|
128
155
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
129
156
|
continuationToken = result.nextLink;
|
|
130
|
-
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
131
160
|
}
|
|
132
161
|
}
|
|
133
162
|
|
|
@@ -385,7 +414,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
385
414
|
bodyMapper: Mappers.ErrorModel
|
|
386
415
|
}
|
|
387
416
|
},
|
|
388
|
-
queryParameters: [Parameters.apiVersion],
|
|
389
417
|
urlParameters: [
|
|
390
418
|
Parameters.$host,
|
|
391
419
|
Parameters.nextLink,
|
|
@@ -406,7 +434,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
406
434
|
bodyMapper: Mappers.ErrorModel
|
|
407
435
|
}
|
|
408
436
|
},
|
|
409
|
-
queryParameters: [Parameters.apiVersion],
|
|
410
437
|
urlParameters: [
|
|
411
438
|
Parameters.$host,
|
|
412
439
|
Parameters.nextLink,
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|
|
@@ -72,47 +72,53 @@ export class ServiceFabricMeshManagementClient extends coreClient.ServiceClient
|
|
|
72
72
|
credential: credentials
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
const packageDetails = `azsdk-js-arm-servicefabricmesh/3.0.0-beta.
|
|
75
|
+
const packageDetails = `azsdk-js-arm-servicefabricmesh/3.0.0-beta.4`;
|
|
76
76
|
const userAgentPrefix =
|
|
77
77
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
78
78
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
79
79
|
: `${packageDetails}`;
|
|
80
80
|
|
|
81
|
-
if (!options.credentialScopes) {
|
|
82
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
83
|
-
}
|
|
84
81
|
const optionsWithDefaults = {
|
|
85
82
|
...defaults,
|
|
86
83
|
...options,
|
|
87
84
|
userAgentOptions: {
|
|
88
85
|
userAgentPrefix
|
|
89
86
|
},
|
|
90
|
-
|
|
87
|
+
endpoint:
|
|
91
88
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
92
89
|
};
|
|
93
90
|
super(optionsWithDefaults);
|
|
94
91
|
|
|
92
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
95
93
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
96
94
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
97
|
-
|
|
95
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
98
96
|
(pipelinePolicy) =>
|
|
99
97
|
pipelinePolicy.name ===
|
|
100
98
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
101
99
|
);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
100
|
+
}
|
|
101
|
+
if (
|
|
102
|
+
!options ||
|
|
103
|
+
!options.pipeline ||
|
|
104
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
105
|
+
!bearerTokenAuthenticationPolicyFound
|
|
106
|
+
) {
|
|
107
|
+
this.pipeline.removePolicy({
|
|
108
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
109
|
+
});
|
|
110
|
+
this.pipeline.addPolicy(
|
|
111
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
112
|
+
credential: credentials,
|
|
113
|
+
scopes:
|
|
114
|
+
optionsWithDefaults.credentialScopes ??
|
|
115
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
116
|
+
challengeCallbacks: {
|
|
117
|
+
authorizeRequestOnChallenge:
|
|
118
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
);
|
|
116
122
|
}
|
|
117
123
|
// Parameter assignments
|
|
118
124
|
this.subscriptionId = subscriptionId;
|
|
@@ -148,7 +154,7 @@ export class ServiceFabricMeshManagementClient extends coreClient.ServiceClient
|
|
|
148
154
|
if (param.length > 1) {
|
|
149
155
|
const newParams = param[1].split("&").map((item) => {
|
|
150
156
|
if (item.indexOf("api-version") > -1) {
|
|
151
|
-
return
|
|
157
|
+
return "api-version=" + apiVersion;
|
|
152
158
|
} else {
|
|
153
159
|
return item;
|
|
154
160
|
}
|
|
@@ -3,7 +3,7 @@ import * as coreClient from '@azure/core-client';
|
|
|
3
3
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
4
|
|
|
5
5
|
/** Describes the horizontal auto scaling mechanism that adds or removes replicas (containers or container groups). */
|
|
6
|
-
export declare
|
|
6
|
+
export declare interface AddRemoveReplicaScalingMechanism extends AutoScalingMechanism {
|
|
7
7
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
8
8
|
kind: "AddRemoveReplica";
|
|
9
9
|
/** Minimum number of containers (scale down won't be performed below this number). */
|
|
@@ -12,7 +12,7 @@ export declare type AddRemoveReplicaScalingMechanism = AutoScalingMechanism & {
|
|
|
12
12
|
maxCount: number;
|
|
13
13
|
/** Each time auto scaling is performed, this number of containers will be added or removed. */
|
|
14
14
|
scaleIncrement: number;
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
16
|
|
|
17
17
|
/** Interface representing a Application. */
|
|
18
18
|
export declare interface Application {
|
|
@@ -140,7 +140,7 @@ export declare interface ApplicationProperties {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/** This type describes an application resource. */
|
|
143
|
-
export declare
|
|
143
|
+
export declare interface ApplicationResourceDescription extends TrackedResource {
|
|
144
144
|
/**
|
|
145
145
|
* State of the resource.
|
|
146
146
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -179,7 +179,7 @@ export declare type ApplicationResourceDescription = TrackedResource & {
|
|
|
179
179
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
180
180
|
*/
|
|
181
181
|
readonly unhealthyEvaluation?: string;
|
|
182
|
-
}
|
|
182
|
+
}
|
|
183
183
|
|
|
184
184
|
/** A pageable list of application resources. */
|
|
185
185
|
export declare interface ApplicationResourceDescriptionList {
|
|
@@ -190,13 +190,14 @@ export declare interface ApplicationResourceDescriptionList {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
/** This type describes properties of an application resource. */
|
|
193
|
-
export declare
|
|
193
|
+
export declare interface ApplicationResourceProperties extends ProvisionedResourceProperties, ApplicationProperties {
|
|
194
|
+
}
|
|
194
195
|
|
|
195
196
|
/** Describes a volume whose lifetime is scoped to the application's lifetime. */
|
|
196
|
-
export declare
|
|
197
|
+
export declare interface ApplicationScopedVolume extends VolumeReference {
|
|
197
198
|
/** Describes parameters for creating application-scoped volumes. */
|
|
198
199
|
creationParameters: ApplicationScopedVolumeCreationParametersUnion;
|
|
199
|
-
}
|
|
200
|
+
}
|
|
200
201
|
|
|
201
202
|
/** Describes parameters for creating application-scoped volumes. */
|
|
202
203
|
export declare interface ApplicationScopedVolumeCreationParameters {
|
|
@@ -207,12 +208,12 @@ export declare interface ApplicationScopedVolumeCreationParameters {
|
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
/** Describes parameters for creating application-scoped volumes provided by Service Fabric Volume Disks */
|
|
210
|
-
export declare
|
|
211
|
+
export declare interface ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk extends ApplicationScopedVolumeCreationParameters {
|
|
211
212
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
212
213
|
kind: "ServiceFabricVolumeDisk";
|
|
213
214
|
/** Volume size */
|
|
214
215
|
sizeDisk: SizeTypes;
|
|
215
|
-
}
|
|
216
|
+
}
|
|
216
217
|
|
|
217
218
|
export declare type ApplicationScopedVolumeCreationParametersUnion = ApplicationScopedVolumeCreationParameters | ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk;
|
|
218
219
|
|
|
@@ -270,12 +271,12 @@ export declare interface AutoScalingPolicy {
|
|
|
270
271
|
}
|
|
271
272
|
|
|
272
273
|
/** Describes the resource that is used for triggering auto scaling. */
|
|
273
|
-
export declare
|
|
274
|
+
export declare interface AutoScalingResourceMetric extends AutoScalingMetric {
|
|
274
275
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
275
276
|
kind: "Resource";
|
|
276
277
|
/** Name of the resource. */
|
|
277
278
|
name: AutoScalingResourceMetricName;
|
|
278
|
-
}
|
|
279
|
+
}
|
|
279
280
|
|
|
280
281
|
/**
|
|
281
282
|
* Defines values for AutoScalingResourceMetricName. \
|
|
@@ -317,7 +318,7 @@ export declare interface AvailableOperationDisplay {
|
|
|
317
318
|
}
|
|
318
319
|
|
|
319
320
|
/** Describes the average load trigger used for auto scaling. */
|
|
320
|
-
export declare
|
|
321
|
+
export declare interface AverageLoadScalingTrigger extends AutoScalingTrigger {
|
|
321
322
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
322
323
|
kind: "AverageLoad";
|
|
323
324
|
/** Description of the metric that is used for scaling. */
|
|
@@ -328,10 +329,10 @@ export declare type AverageLoadScalingTrigger = AutoScalingTrigger & {
|
|
|
328
329
|
upperLoadThreshold: number;
|
|
329
330
|
/** Scale interval that indicates how often will this trigger be checked. */
|
|
330
331
|
scaleIntervalInSeconds: number;
|
|
331
|
-
}
|
|
332
|
+
}
|
|
332
333
|
|
|
333
334
|
/** Diagnostics settings for Geneva. */
|
|
334
|
-
export declare
|
|
335
|
+
export declare interface AzureInternalMonitoringPipelineSinkDescription extends DiagnosticsSinkProperties {
|
|
335
336
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
336
337
|
kind: "AzureInternalMonitoringPipeline";
|
|
337
338
|
/** Azure Internal monitoring pipeline account. */
|
|
@@ -344,7 +345,7 @@ export declare type AzureInternalMonitoringPipelineSinkDescription = Diagnostics
|
|
|
344
345
|
fluentdConfigUrl?: any;
|
|
345
346
|
/** Azure Internal monitoring pipeline autokey associated with the certificate. */
|
|
346
347
|
autoKeyConfigUrl?: string;
|
|
347
|
-
}
|
|
348
|
+
}
|
|
348
349
|
|
|
349
350
|
/** Interface representing a CodePackage. */
|
|
350
351
|
export declare interface CodePackage {
|
|
@@ -676,7 +677,7 @@ export declare interface GatewayProperties {
|
|
|
676
677
|
}
|
|
677
678
|
|
|
678
679
|
/** This type describes a gateway resource. */
|
|
679
|
-
export declare
|
|
680
|
+
export declare interface GatewayResourceDescription extends TrackedResource {
|
|
680
681
|
/**
|
|
681
682
|
* State of the resource.
|
|
682
683
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -707,7 +708,7 @@ export declare type GatewayResourceDescription = TrackedResource & {
|
|
|
707
708
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
708
709
|
*/
|
|
709
710
|
readonly ipAddress?: string;
|
|
710
|
-
}
|
|
711
|
+
}
|
|
711
712
|
|
|
712
713
|
/** A pageable list of gateway resources. */
|
|
713
714
|
export declare interface GatewayResourceDescriptionList {
|
|
@@ -718,7 +719,17 @@ export declare interface GatewayResourceDescriptionList {
|
|
|
718
719
|
}
|
|
719
720
|
|
|
720
721
|
/** This type describes properties of a gateway resource. */
|
|
721
|
-
export declare
|
|
722
|
+
export declare interface GatewayResourceProperties extends ProvisionedResourceProperties, GatewayProperties {
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
727
|
+
* returns a continuation token that can be used to begin paging from
|
|
728
|
+
* that point later.
|
|
729
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
730
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
731
|
+
*/
|
|
732
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
722
733
|
|
|
723
734
|
/**
|
|
724
735
|
* Defines values for HeaderMatchType. \
|
|
@@ -809,7 +820,10 @@ export declare interface ImageRegistryCredential {
|
|
|
809
820
|
}
|
|
810
821
|
|
|
811
822
|
/** Describes the properties of a secret resource whose value is provided explicitly as plaintext. The secret resource may have multiple values, each being uniquely versioned. The secret value of each version is stored encrypted, and delivered as plaintext into the context of applications referencing it. */
|
|
812
|
-
export declare
|
|
823
|
+
export declare interface InlinedValueSecretResourceProperties extends SecretResourceProperties {
|
|
824
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
825
|
+
kind: "inlinedValue";
|
|
826
|
+
}
|
|
813
827
|
|
|
814
828
|
/** Known values of {@link ApplicationScopedVolumeKind} that the service accepts. */
|
|
815
829
|
export declare enum KnownApplicationScopedVolumeKind {
|
|
@@ -853,6 +867,7 @@ export declare enum KnownDiagnosticsSinkKind {
|
|
|
853
867
|
|
|
854
868
|
/** Known values of {@link HeaderMatchType} that the service accepts. */
|
|
855
869
|
export declare enum KnownHeaderMatchType {
|
|
870
|
+
/** Exact */
|
|
856
871
|
Exact = "exact"
|
|
857
872
|
}
|
|
858
873
|
|
|
@@ -886,6 +901,7 @@ export declare enum KnownOperatingSystemType {
|
|
|
886
901
|
|
|
887
902
|
/** Known values of {@link PathMatchType} that the service accepts. */
|
|
888
903
|
export declare enum KnownPathMatchType {
|
|
904
|
+
/** Prefix */
|
|
889
905
|
Prefix = "prefix"
|
|
890
906
|
}
|
|
891
907
|
|
|
@@ -913,8 +929,11 @@ export declare enum KnownSecretKind {
|
|
|
913
929
|
|
|
914
930
|
/** Known values of {@link SizeTypes} that the service accepts. */
|
|
915
931
|
export declare enum KnownSizeTypes {
|
|
932
|
+
/** Small */
|
|
916
933
|
Small = "Small",
|
|
934
|
+
/** Medium */
|
|
917
935
|
Medium = "Medium",
|
|
936
|
+
/** Large */
|
|
918
937
|
Large = "Large"
|
|
919
938
|
}
|
|
920
939
|
|
|
@@ -925,10 +944,12 @@ export declare enum KnownVolumeProvider {
|
|
|
925
944
|
}
|
|
926
945
|
|
|
927
946
|
/** Information about a Service Fabric container network local to a single Service Fabric cluster. */
|
|
928
|
-
export declare
|
|
947
|
+
export declare interface LocalNetworkResourceProperties extends NetworkResourceProperties {
|
|
948
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
949
|
+
kind: "Local";
|
|
929
950
|
/** Address space for the local container network. */
|
|
930
951
|
networkAddressPrefix?: string;
|
|
931
|
-
}
|
|
952
|
+
}
|
|
932
953
|
|
|
933
954
|
/** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. This proxy resource is explicitly created or updated by including it in the parent resource. */
|
|
934
955
|
export declare interface ManagedProxyResource {
|
|
@@ -1052,10 +1073,10 @@ export declare interface NetworkRef {
|
|
|
1052
1073
|
}
|
|
1053
1074
|
|
|
1054
1075
|
/** This type describes a network resource. */
|
|
1055
|
-
export declare
|
|
1076
|
+
export declare interface NetworkResourceDescription extends TrackedResource {
|
|
1056
1077
|
/** Describes properties of a network resource. */
|
|
1057
1078
|
properties: NetworkResourcePropertiesUnion;
|
|
1058
|
-
}
|
|
1079
|
+
}
|
|
1059
1080
|
|
|
1060
1081
|
/** A pageable list of network resources. */
|
|
1061
1082
|
export declare interface NetworkResourceDescriptionList {
|
|
@@ -1066,7 +1087,9 @@ export declare interface NetworkResourceDescriptionList {
|
|
|
1066
1087
|
}
|
|
1067
1088
|
|
|
1068
1089
|
/** Describes properties of a network resource. */
|
|
1069
|
-
export declare
|
|
1090
|
+
export declare interface NetworkResourceProperties extends NetworkResourcePropertiesBase {
|
|
1091
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
1092
|
+
kind: "NetworkResourceProperties" | "Local";
|
|
1070
1093
|
/** User readable description of the network. */
|
|
1071
1094
|
description?: string;
|
|
1072
1095
|
/**
|
|
@@ -1079,13 +1102,13 @@ export declare type NetworkResourceProperties = NetworkResourcePropertiesBase &
|
|
|
1079
1102
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1080
1103
|
*/
|
|
1081
1104
|
readonly statusDetails?: string;
|
|
1082
|
-
}
|
|
1105
|
+
}
|
|
1083
1106
|
|
|
1084
1107
|
/** This type describes the properties of a network resource, including its kind. */
|
|
1085
|
-
export declare
|
|
1108
|
+
export declare interface NetworkResourcePropertiesBase extends ProvisionedResourceProperties {
|
|
1086
1109
|
/** The type of a Service Fabric container network. */
|
|
1087
1110
|
kind: NetworkKind;
|
|
1088
|
-
}
|
|
1111
|
+
}
|
|
1089
1112
|
|
|
1090
1113
|
export declare type NetworkResourcePropertiesBaseUnion = NetworkResourcePropertiesBase | NetworkResourcePropertiesUnion;
|
|
1091
1114
|
|
|
@@ -1166,7 +1189,8 @@ export declare interface ProvisionedResourceProperties {
|
|
|
1166
1189
|
}
|
|
1167
1190
|
|
|
1168
1191
|
/** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. */
|
|
1169
|
-
export declare
|
|
1192
|
+
export declare interface ProxyResource extends Resource {
|
|
1193
|
+
}
|
|
1170
1194
|
|
|
1171
1195
|
/** Specifying this parameter adds support for reliable collections */
|
|
1172
1196
|
export declare interface ReliableCollectionsRef {
|
|
@@ -1330,10 +1354,10 @@ export declare interface SecretListBySubscriptionOptionalParams extends coreClie
|
|
|
1330
1354
|
export declare type SecretListBySubscriptionResponse = SecretResourceDescriptionList;
|
|
1331
1355
|
|
|
1332
1356
|
/** This type describes a secret resource. */
|
|
1333
|
-
export declare
|
|
1357
|
+
export declare interface SecretResourceDescription extends TrackedResource {
|
|
1334
1358
|
/** Describes the properties of a secret resource. */
|
|
1335
1359
|
properties: SecretResourcePropertiesUnion;
|
|
1336
|
-
}
|
|
1360
|
+
}
|
|
1337
1361
|
|
|
1338
1362
|
/** A pageable list of secret resources. */
|
|
1339
1363
|
export declare interface SecretResourceDescriptionList {
|
|
@@ -1344,7 +1368,9 @@ export declare interface SecretResourceDescriptionList {
|
|
|
1344
1368
|
}
|
|
1345
1369
|
|
|
1346
1370
|
/** Describes the properties of a secret resource. */
|
|
1347
|
-
export declare
|
|
1371
|
+
export declare interface SecretResourceProperties extends SecretResourcePropertiesBase {
|
|
1372
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
1373
|
+
kind: "SecretResourceProperties" | "inlinedValue";
|
|
1348
1374
|
/** User readable description of the secret. */
|
|
1349
1375
|
description?: string;
|
|
1350
1376
|
/**
|
|
@@ -1359,13 +1385,13 @@ export declare type SecretResourceProperties = SecretResourcePropertiesBase & {
|
|
|
1359
1385
|
readonly statusDetails?: string;
|
|
1360
1386
|
/** The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed. */
|
|
1361
1387
|
contentType?: string;
|
|
1362
|
-
}
|
|
1388
|
+
}
|
|
1363
1389
|
|
|
1364
1390
|
/** This type describes the properties of a secret resource, including its kind. */
|
|
1365
|
-
export declare
|
|
1391
|
+
export declare interface SecretResourcePropertiesBase extends ProvisionedResourceProperties {
|
|
1366
1392
|
/** Describes the kind of secret. */
|
|
1367
1393
|
kind: SecretKind;
|
|
1368
|
-
}
|
|
1394
|
+
}
|
|
1369
1395
|
|
|
1370
1396
|
export declare type SecretResourcePropertiesBaseUnion = SecretResourcePropertiesBase | SecretResourcePropertiesUnion;
|
|
1371
1397
|
|
|
@@ -1476,7 +1502,7 @@ export declare interface SecretValueProperties {
|
|
|
1476
1502
|
}
|
|
1477
1503
|
|
|
1478
1504
|
/** This type describes a value of a secret resource. The name of this resource is the version identifier corresponding to this secret value. */
|
|
1479
|
-
export declare
|
|
1505
|
+
export declare interface SecretValueResourceDescription extends TrackedResource {
|
|
1480
1506
|
/**
|
|
1481
1507
|
* State of the resource.
|
|
1482
1508
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -1484,7 +1510,7 @@ export declare type SecretValueResourceDescription = TrackedResource & {
|
|
|
1484
1510
|
readonly provisioningState?: string;
|
|
1485
1511
|
/** The actual value of the secret. */
|
|
1486
1512
|
value?: string;
|
|
1487
|
-
}
|
|
1513
|
+
}
|
|
1488
1514
|
|
|
1489
1515
|
/** A pageable list of values of a secret resource. The information does not include only the name of the value and not the actual unencrypted value. */
|
|
1490
1516
|
export declare interface SecretValueResourceDescriptionList {
|
|
@@ -1495,7 +1521,8 @@ export declare interface SecretValueResourceDescriptionList {
|
|
|
1495
1521
|
}
|
|
1496
1522
|
|
|
1497
1523
|
/** This type describes properties of a secret value resource. */
|
|
1498
|
-
export declare
|
|
1524
|
+
export declare interface SecretValueResourceProperties extends ProvisionedResourceProperties, SecretValueProperties {
|
|
1525
|
+
}
|
|
1499
1526
|
|
|
1500
1527
|
/** Interface representing a Service. */
|
|
1501
1528
|
export declare interface Service {
|
|
@@ -1628,10 +1655,10 @@ export declare interface ServiceReplica {
|
|
|
1628
1655
|
}
|
|
1629
1656
|
|
|
1630
1657
|
/** Describes a replica of a service resource. */
|
|
1631
|
-
export declare
|
|
1658
|
+
export declare interface ServiceReplicaDescription extends ServiceReplicaProperties {
|
|
1632
1659
|
/** Name of the replica. */
|
|
1633
1660
|
replicaName: string;
|
|
1634
|
-
}
|
|
1661
|
+
}
|
|
1635
1662
|
|
|
1636
1663
|
/** A pageable list of service replicas. */
|
|
1637
1664
|
export declare interface ServiceReplicaDescriptionList {
|
|
@@ -1675,7 +1702,7 @@ export declare interface ServiceReplicaProperties {
|
|
|
1675
1702
|
}
|
|
1676
1703
|
|
|
1677
1704
|
/** This type describes a service resource. */
|
|
1678
|
-
export declare
|
|
1705
|
+
export declare interface ServiceResourceDescription extends ManagedProxyResource {
|
|
1679
1706
|
/**
|
|
1680
1707
|
* State of the resource.
|
|
1681
1708
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -1715,7 +1742,7 @@ export declare type ServiceResourceDescription = ManagedProxyResource & {
|
|
|
1715
1742
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1716
1743
|
*/
|
|
1717
1744
|
readonly unhealthyEvaluation?: string;
|
|
1718
|
-
}
|
|
1745
|
+
}
|
|
1719
1746
|
|
|
1720
1747
|
/** A pageable list of service resources. */
|
|
1721
1748
|
export declare interface ServiceResourceDescriptionList {
|
|
@@ -1726,7 +1753,8 @@ export declare interface ServiceResourceDescriptionList {
|
|
|
1726
1753
|
}
|
|
1727
1754
|
|
|
1728
1755
|
/** This type describes properties of a service resource. */
|
|
1729
|
-
export declare
|
|
1756
|
+
export declare interface ServiceResourceProperties extends ProvisionedResourceProperties, ServiceReplicaProperties, ServiceProperties {
|
|
1757
|
+
}
|
|
1730
1758
|
|
|
1731
1759
|
/** Describes a setting for the container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets". */
|
|
1732
1760
|
export declare interface Setting {
|
|
@@ -1758,14 +1786,14 @@ export declare interface TcpConfig {
|
|
|
1758
1786
|
}
|
|
1759
1787
|
|
|
1760
1788
|
/** The resource model definition for Azure Resource Manager tracked top-level resource. */
|
|
1761
|
-
export declare
|
|
1789
|
+
export declare interface TrackedResource extends Resource {
|
|
1762
1790
|
/** Resource tags. */
|
|
1763
1791
|
tags?: {
|
|
1764
1792
|
[propertyName: string]: string;
|
|
1765
1793
|
};
|
|
1766
1794
|
/** The geo-location where the resource lives */
|
|
1767
1795
|
location: string;
|
|
1768
|
-
}
|
|
1796
|
+
}
|
|
1769
1797
|
|
|
1770
1798
|
/** Interface representing a Volume. */
|
|
1771
1799
|
export declare interface Volume {
|
|
@@ -1904,7 +1932,7 @@ export declare interface VolumeReference {
|
|
|
1904
1932
|
}
|
|
1905
1933
|
|
|
1906
1934
|
/** This type describes a volume resource. */
|
|
1907
|
-
export declare
|
|
1935
|
+
export declare interface VolumeResourceDescription extends TrackedResource {
|
|
1908
1936
|
/**
|
|
1909
1937
|
* State of the resource.
|
|
1910
1938
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -1926,7 +1954,7 @@ export declare type VolumeResourceDescription = TrackedResource & {
|
|
|
1926
1954
|
provider: VolumeProvider;
|
|
1927
1955
|
/** This type describes a volume provided by an Azure Files file share. */
|
|
1928
1956
|
azureFileParameters?: VolumeProviderParametersAzureFile;
|
|
1929
|
-
}
|
|
1957
|
+
}
|
|
1930
1958
|
|
|
1931
1959
|
/** A pageable list of volume resources. */
|
|
1932
1960
|
export declare interface VolumeResourceDescriptionList {
|
|
@@ -1937,6 +1965,7 @@ export declare interface VolumeResourceDescriptionList {
|
|
|
1937
1965
|
}
|
|
1938
1966
|
|
|
1939
1967
|
/** This type describes properties of a volume resource. */
|
|
1940
|
-
export declare
|
|
1968
|
+
export declare interface VolumeResourceProperties extends ProvisionedResourceProperties, VolumeProperties {
|
|
1969
|
+
}
|
|
1941
1970
|
|
|
1942
1971
|
export { }
|