@azure/arm-operations 4.0.0-beta.2 → 4.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 +13 -2
- package/dist/index.js +190 -71
- 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/managementAssociationsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementAssociationsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementAssociationsCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/managementAssociationsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.js +34 -0
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/managementAssociationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementAssociationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementAssociationsGetSample.js +34 -0
- package/dist-esm/samples-dev/managementAssociationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.js +29 -0
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.js +32 -0
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsGetSample.js +31 -0
- package/dist-esm/samples-dev/managementConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.js +29 -0
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.js +51 -0
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/solutionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionsGetSample.js +31 -0
- package/dist-esm/samples-dev/solutionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.js +30 -0
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.js +29 -0
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionsUpdateSample.js +34 -0
- package/dist-esm/samples-dev/solutionsUpdateSample.js.map +1 -0
- 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/operations/managementAssociations.d.ts +12 -3
- package/dist-esm/src/operations/managementAssociations.d.ts.map +1 -1
- package/dist-esm/src/operations/managementAssociations.js +37 -6
- package/dist-esm/src/operations/managementAssociations.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +8 -4
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/solutions.d.ts.map +1 -1
- package/dist-esm/src/operations/solutions.js +9 -3
- package/dist-esm/src/operations/solutions.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/managementAssociations.d.ts +12 -3
- package/dist-esm/src/operationsInterfaces/managementAssociations.d.ts.map +1 -1
- package/dist-esm/src/operationsManagementClient.d.ts +3 -7
- package/dist-esm/src/operationsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/operationsManagementClient.js +55 -21
- package/dist-esm/src/operationsManagementClient.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/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +51 -21
- package/review/arm-operations.api.md +7 -10
- package/rollup.config.js +6 -72
- package/src/index.ts +1 -0
- package/src/operations/managementAssociations.ts +43 -3
- package/src/operations/operations.ts +10 -5
- package/src/operations/solutions.ts +9 -3
- package/src/operationsInterfaces/managementAssociations.ts +18 -0
- package/src/operationsManagementClient.ts +70 -26
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +19 -5
- package/types/arm-operations.d.ts +24 -10
- package/types/tsdoc-metadata.json +1 -1
|
@@ -103,10 +103,12 @@ export class SolutionsImpl implements Solutions {
|
|
|
103
103
|
{ resourceGroupName, solutionName, parameters, options },
|
|
104
104
|
createOrUpdateOperationSpec
|
|
105
105
|
);
|
|
106
|
-
|
|
106
|
+
const poller = new LroEngine(lro, {
|
|
107
107
|
resumeFrom: options?.resumeFrom,
|
|
108
108
|
intervalInMs: options?.updateIntervalInMs
|
|
109
109
|
});
|
|
110
|
+
await poller.poll();
|
|
111
|
+
return poller;
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
/**
|
|
@@ -193,10 +195,12 @@ export class SolutionsImpl implements Solutions {
|
|
|
193
195
|
{ resourceGroupName, solutionName, parameters, options },
|
|
194
196
|
updateOperationSpec
|
|
195
197
|
);
|
|
196
|
-
|
|
198
|
+
const poller = new LroEngine(lro, {
|
|
197
199
|
resumeFrom: options?.resumeFrom,
|
|
198
200
|
intervalInMs: options?.updateIntervalInMs
|
|
199
201
|
});
|
|
202
|
+
await poller.poll();
|
|
203
|
+
return poller;
|
|
200
204
|
}
|
|
201
205
|
|
|
202
206
|
/**
|
|
@@ -276,10 +280,12 @@ export class SolutionsImpl implements Solutions {
|
|
|
276
280
|
{ resourceGroupName, solutionName, options },
|
|
277
281
|
deleteOperationSpec
|
|
278
282
|
);
|
|
279
|
-
|
|
283
|
+
const poller = new LroEngine(lro, {
|
|
280
284
|
resumeFrom: options?.resumeFrom,
|
|
281
285
|
intervalInMs: options?.updateIntervalInMs
|
|
282
286
|
});
|
|
287
|
+
await poller.poll();
|
|
288
|
+
return poller;
|
|
283
289
|
}
|
|
284
290
|
|
|
285
291
|
/**
|
|
@@ -29,12 +29,18 @@ export interface ManagementAssociations {
|
|
|
29
29
|
/**
|
|
30
30
|
* Creates or updates the ManagementAssociation.
|
|
31
31
|
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
32
|
+
* @param providerName Provider name for the parent resource.
|
|
33
|
+
* @param resourceType Resource type for the parent resource
|
|
34
|
+
* @param resourceName Parent resource name.
|
|
32
35
|
* @param managementAssociationName User ManagementAssociation Name.
|
|
33
36
|
* @param parameters The parameters required to create ManagementAssociation extension.
|
|
34
37
|
* @param options The options parameters.
|
|
35
38
|
*/
|
|
36
39
|
createOrUpdate(
|
|
37
40
|
resourceGroupName: string,
|
|
41
|
+
providerName: string,
|
|
42
|
+
resourceType: string,
|
|
43
|
+
resourceName: string,
|
|
38
44
|
managementAssociationName: string,
|
|
39
45
|
parameters: ManagementAssociation,
|
|
40
46
|
options?: ManagementAssociationsCreateOrUpdateOptionalParams
|
|
@@ -42,22 +48,34 @@ export interface ManagementAssociations {
|
|
|
42
48
|
/**
|
|
43
49
|
* Deletes the ManagementAssociation in the subscription.
|
|
44
50
|
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
51
|
+
* @param providerName Provider name for the parent resource.
|
|
52
|
+
* @param resourceType Resource type for the parent resource
|
|
53
|
+
* @param resourceName Parent resource name.
|
|
45
54
|
* @param managementAssociationName User ManagementAssociation Name.
|
|
46
55
|
* @param options The options parameters.
|
|
47
56
|
*/
|
|
48
57
|
delete(
|
|
49
58
|
resourceGroupName: string,
|
|
59
|
+
providerName: string,
|
|
60
|
+
resourceType: string,
|
|
61
|
+
resourceName: string,
|
|
50
62
|
managementAssociationName: string,
|
|
51
63
|
options?: ManagementAssociationsDeleteOptionalParams
|
|
52
64
|
): Promise<void>;
|
|
53
65
|
/**
|
|
54
66
|
* Retrieves the user ManagementAssociation.
|
|
55
67
|
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
68
|
+
* @param providerName Provider name for the parent resource.
|
|
69
|
+
* @param resourceType Resource type for the parent resource
|
|
70
|
+
* @param resourceName Parent resource name.
|
|
56
71
|
* @param managementAssociationName User ManagementAssociation Name.
|
|
57
72
|
* @param options The options parameters.
|
|
58
73
|
*/
|
|
59
74
|
get(
|
|
60
75
|
resourceGroupName: string,
|
|
76
|
+
providerName: string,
|
|
77
|
+
resourceType: string,
|
|
78
|
+
resourceName: string,
|
|
61
79
|
managementAssociationName: string,
|
|
62
80
|
options?: ManagementAssociationsGetOptionalParams
|
|
63
81
|
): Promise<ManagementAssociationsGetResponse>;
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
10
16
|
import * as coreAuth from "@azure/core-auth";
|
|
11
17
|
import {
|
|
12
18
|
SolutionsImpl,
|
|
@@ -26,26 +32,17 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
|
|
|
26
32
|
$host: string;
|
|
27
33
|
subscriptionId: string;
|
|
28
34
|
apiVersion: string;
|
|
29
|
-
providerName: string;
|
|
30
|
-
resourceType: string;
|
|
31
|
-
resourceName: string;
|
|
32
35
|
|
|
33
36
|
/**
|
|
34
37
|
* Initializes a new instance of the OperationsManagementClient class.
|
|
35
38
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
36
39
|
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
|
|
37
40
|
* subscription. The subscription ID forms part of the URI for every service call.
|
|
38
|
-
* @param providerName Provider name for the parent resource.
|
|
39
|
-
* @param resourceType Resource type for the parent resource
|
|
40
|
-
* @param resourceName Parent resource name.
|
|
41
41
|
* @param options The parameter options
|
|
42
42
|
*/
|
|
43
43
|
constructor(
|
|
44
44
|
credentials: coreAuth.TokenCredential,
|
|
45
45
|
subscriptionId: string,
|
|
46
|
-
providerName: string,
|
|
47
|
-
resourceType: string,
|
|
48
|
-
resourceName: string,
|
|
49
46
|
options?: OperationsManagementClientOptionalParams
|
|
50
47
|
) {
|
|
51
48
|
if (credentials === undefined) {
|
|
@@ -54,15 +51,6 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
|
|
|
54
51
|
if (subscriptionId === undefined) {
|
|
55
52
|
throw new Error("'subscriptionId' cannot be null");
|
|
56
53
|
}
|
|
57
|
-
if (providerName === undefined) {
|
|
58
|
-
throw new Error("'providerName' cannot be null");
|
|
59
|
-
}
|
|
60
|
-
if (resourceType === undefined) {
|
|
61
|
-
throw new Error("'resourceType' cannot be null");
|
|
62
|
-
}
|
|
63
|
-
if (resourceName === undefined) {
|
|
64
|
-
throw new Error("'resourceName' cannot be null");
|
|
65
|
-
}
|
|
66
54
|
|
|
67
55
|
// Initializing default values for options
|
|
68
56
|
if (!options) {
|
|
@@ -73,29 +61,56 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
|
|
|
73
61
|
credential: credentials
|
|
74
62
|
};
|
|
75
63
|
|
|
76
|
-
const packageDetails = `azsdk-js-arm-operations/4.0.0-beta.
|
|
64
|
+
const packageDetails = `azsdk-js-arm-operations/4.0.0-beta.4`;
|
|
77
65
|
const userAgentPrefix =
|
|
78
66
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
79
67
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
80
68
|
: `${packageDetails}`;
|
|
81
69
|
|
|
82
|
-
if (!options.credentialScopes) {
|
|
83
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
84
|
-
}
|
|
85
70
|
const optionsWithDefaults = {
|
|
86
71
|
...defaults,
|
|
87
72
|
...options,
|
|
88
73
|
userAgentOptions: {
|
|
89
74
|
userAgentPrefix
|
|
90
75
|
},
|
|
91
|
-
|
|
76
|
+
endpoint:
|
|
77
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
92
78
|
};
|
|
93
79
|
super(optionsWithDefaults);
|
|
80
|
+
|
|
81
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
82
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
83
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
84
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
85
|
+
(pipelinePolicy) =>
|
|
86
|
+
pipelinePolicy.name ===
|
|
87
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
if (
|
|
91
|
+
!options ||
|
|
92
|
+
!options.pipeline ||
|
|
93
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
94
|
+
!bearerTokenAuthenticationPolicyFound
|
|
95
|
+
) {
|
|
96
|
+
this.pipeline.removePolicy({
|
|
97
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
98
|
+
});
|
|
99
|
+
this.pipeline.addPolicy(
|
|
100
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
101
|
+
credential: credentials,
|
|
102
|
+
scopes:
|
|
103
|
+
optionsWithDefaults.credentialScopes ??
|
|
104
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
105
|
+
challengeCallbacks: {
|
|
106
|
+
authorizeRequestOnChallenge:
|
|
107
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
);
|
|
111
|
+
}
|
|
94
112
|
// Parameter assignments
|
|
95
113
|
this.subscriptionId = subscriptionId;
|
|
96
|
-
this.providerName = providerName;
|
|
97
|
-
this.resourceType = resourceType;
|
|
98
|
-
this.resourceName = resourceName;
|
|
99
114
|
|
|
100
115
|
// Assigning values to Constant parameters
|
|
101
116
|
this.$host = options.$host || "https://management.azure.com";
|
|
@@ -104,6 +119,35 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
|
|
|
104
119
|
this.managementAssociations = new ManagementAssociationsImpl(this);
|
|
105
120
|
this.managementConfigurations = new ManagementConfigurationsImpl(this);
|
|
106
121
|
this.operations = new OperationsImpl(this);
|
|
122
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
126
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
127
|
+
if (!apiVersion) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const apiVersionPolicy = {
|
|
131
|
+
name: "CustomApiVersionPolicy",
|
|
132
|
+
async sendRequest(
|
|
133
|
+
request: PipelineRequest,
|
|
134
|
+
next: SendRequest
|
|
135
|
+
): Promise<PipelineResponse> {
|
|
136
|
+
const param = request.url.split("?");
|
|
137
|
+
if (param.length > 1) {
|
|
138
|
+
const newParams = param[1].split("&").map((item) => {
|
|
139
|
+
if (item.indexOf("api-version") > -1) {
|
|
140
|
+
return "api-version=" + apiVersion;
|
|
141
|
+
} else {
|
|
142
|
+
return item;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
146
|
+
}
|
|
147
|
+
return next(request);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
107
151
|
}
|
|
108
152
|
|
|
109
153
|
solutions: Solutions;
|
|
@@ -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 a result page from a pageable operation, returns a
|
|
17
|
+
* continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage().
|
|
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
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -9,11 +9,25 @@
|
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"allowSyntheticDefaultImports": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": [
|
|
12
|
+
"lib": [
|
|
13
|
+
"es6",
|
|
14
|
+
"dom"
|
|
15
|
+
],
|
|
13
16
|
"declaration": true,
|
|
14
17
|
"outDir": "./dist-esm",
|
|
15
|
-
"importHelpers": true
|
|
18
|
+
"importHelpers": true,
|
|
19
|
+
"paths": {
|
|
20
|
+
"@azure/arm-operations": [
|
|
21
|
+
"./src/index"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
16
24
|
},
|
|
17
|
-
"include": [
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
"include": [
|
|
26
|
+
"./src/**/*.ts",
|
|
27
|
+
"./test/**/*.ts",
|
|
28
|
+
"samples-dev/**/*.ts"
|
|
29
|
+
],
|
|
30
|
+
"exclude": [
|
|
31
|
+
"node_modules"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -26,6 +26,15 @@ export declare interface CodeMessageErrorError {
|
|
|
26
26
|
message?: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Given a result page from a pageable operation, returns a
|
|
31
|
+
* continuation token that can be used to begin paging from
|
|
32
|
+
* that point later.
|
|
33
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
34
|
+
* @returns The continuation token that can be passed into byPage().
|
|
35
|
+
*/
|
|
36
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
37
|
+
|
|
29
38
|
/** The container for solution. */
|
|
30
39
|
export declare interface ManagementAssociation {
|
|
31
40
|
/**
|
|
@@ -71,25 +80,34 @@ export declare interface ManagementAssociations {
|
|
|
71
80
|
/**
|
|
72
81
|
* Creates or updates the ManagementAssociation.
|
|
73
82
|
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
83
|
+
* @param providerName Provider name for the parent resource.
|
|
84
|
+
* @param resourceType Resource type for the parent resource
|
|
85
|
+
* @param resourceName Parent resource name.
|
|
74
86
|
* @param managementAssociationName User ManagementAssociation Name.
|
|
75
87
|
* @param parameters The parameters required to create ManagementAssociation extension.
|
|
76
88
|
* @param options The options parameters.
|
|
77
89
|
*/
|
|
78
|
-
createOrUpdate(resourceGroupName: string, managementAssociationName: string, parameters: ManagementAssociation, options?: ManagementAssociationsCreateOrUpdateOptionalParams): Promise<ManagementAssociationsCreateOrUpdateResponse>;
|
|
90
|
+
createOrUpdate(resourceGroupName: string, providerName: string, resourceType: string, resourceName: string, managementAssociationName: string, parameters: ManagementAssociation, options?: ManagementAssociationsCreateOrUpdateOptionalParams): Promise<ManagementAssociationsCreateOrUpdateResponse>;
|
|
79
91
|
/**
|
|
80
92
|
* Deletes the ManagementAssociation in the subscription.
|
|
81
93
|
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
94
|
+
* @param providerName Provider name for the parent resource.
|
|
95
|
+
* @param resourceType Resource type for the parent resource
|
|
96
|
+
* @param resourceName Parent resource name.
|
|
82
97
|
* @param managementAssociationName User ManagementAssociation Name.
|
|
83
98
|
* @param options The options parameters.
|
|
84
99
|
*/
|
|
85
|
-
delete(resourceGroupName: string, managementAssociationName: string, options?: ManagementAssociationsDeleteOptionalParams): Promise<void>;
|
|
100
|
+
delete(resourceGroupName: string, providerName: string, resourceType: string, resourceName: string, managementAssociationName: string, options?: ManagementAssociationsDeleteOptionalParams): Promise<void>;
|
|
86
101
|
/**
|
|
87
102
|
* Retrieves the user ManagementAssociation.
|
|
88
103
|
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
104
|
+
* @param providerName Provider name for the parent resource.
|
|
105
|
+
* @param resourceType Resource type for the parent resource
|
|
106
|
+
* @param resourceName Parent resource name.
|
|
89
107
|
* @param managementAssociationName User ManagementAssociation Name.
|
|
90
108
|
* @param options The options parameters.
|
|
91
109
|
*/
|
|
92
|
-
get(resourceGroupName: string, managementAssociationName: string, options?: ManagementAssociationsGetOptionalParams): Promise<ManagementAssociationsGetResponse>;
|
|
110
|
+
get(resourceGroupName: string, providerName: string, resourceType: string, resourceName: string, managementAssociationName: string, options?: ManagementAssociationsGetOptionalParams): Promise<ManagementAssociationsGetResponse>;
|
|
93
111
|
}
|
|
94
112
|
|
|
95
113
|
/** Optional parameters. */
|
|
@@ -263,20 +281,16 @@ export declare class OperationsManagementClient extends coreClient.ServiceClient
|
|
|
263
281
|
$host: string;
|
|
264
282
|
subscriptionId: string;
|
|
265
283
|
apiVersion: string;
|
|
266
|
-
providerName: string;
|
|
267
|
-
resourceType: string;
|
|
268
|
-
resourceName: string;
|
|
269
284
|
/**
|
|
270
285
|
* Initializes a new instance of the OperationsManagementClient class.
|
|
271
286
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
272
287
|
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
|
|
273
288
|
* subscription. The subscription ID forms part of the URI for every service call.
|
|
274
|
-
* @param providerName Provider name for the parent resource.
|
|
275
|
-
* @param resourceType Resource type for the parent resource
|
|
276
|
-
* @param resourceName Parent resource name.
|
|
277
289
|
* @param options The parameter options
|
|
278
290
|
*/
|
|
279
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string,
|
|
291
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: OperationsManagementClientOptionalParams);
|
|
292
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
293
|
+
private addCustomApiVersionPolicy;
|
|
280
294
|
solutions: Solutions;
|
|
281
295
|
managementAssociations: ManagementAssociations;
|
|
282
296
|
managementConfigurations: ManagementConfigurations;
|