@azure/arm-resourcemover 2.0.2-alpha.20221101.1 → 2.1.0

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +31 -10
  2. package/dist/index.js +195 -56
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/index.d.ts +1 -0
  7. package/dist-esm/src/index.d.ts.map +1 -1
  8. package/dist-esm/src/index.js +1 -0
  9. package/dist-esm/src/index.js.map +1 -1
  10. package/dist-esm/src/models/index.d.ts +86 -45
  11. package/dist-esm/src/models/index.d.ts.map +1 -1
  12. package/dist-esm/src/models/index.js +41 -0
  13. package/dist-esm/src/models/index.js.map +1 -1
  14. package/dist-esm/src/operations/moveCollections.d.ts.map +1 -1
  15. package/dist-esm/src/operations/moveCollections.js +37 -16
  16. package/dist-esm/src/operations/moveCollections.js.map +1 -1
  17. package/dist-esm/src/operations/moveResources.d.ts.map +1 -1
  18. package/dist-esm/src/operations/moveResources.js +19 -8
  19. package/dist-esm/src/operations/moveResources.js.map +1 -1
  20. package/dist-esm/src/operations/unresolvedDependencies.d.ts.map +1 -1
  21. package/dist-esm/src/operations/unresolvedDependencies.js +19 -13
  22. package/dist-esm/src/operations/unresolvedDependencies.js.map +1 -1
  23. package/dist-esm/src/pagingHelper.d.ts +13 -0
  24. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  25. package/dist-esm/src/pagingHelper.js +32 -0
  26. package/dist-esm/src/pagingHelper.js.map +1 -0
  27. package/dist-esm/src/resourceMoverServiceAPI.d.ts +2 -0
  28. package/dist-esm/src/resourceMoverServiceAPI.d.ts.map +1 -1
  29. package/dist-esm/src/resourceMoverServiceAPI.js +49 -18
  30. package/dist-esm/src/resourceMoverServiceAPI.js.map +1 -1
  31. package/dist-esm/test/sampleTest.js +11 -13
  32. package/dist-esm/test/sampleTest.js.map +1 -1
  33. package/package.json +12 -8
  34. package/review/arm-resourcemover.api.md +64 -98
  35. package/src/index.ts +1 -0
  36. package/src/models/index.ts +81 -49
  37. package/src/operations/moveCollections.ts +49 -22
  38. package/src/operations/moveResources.ts +22 -13
  39. package/src/operations/unresolvedDependencies.ts +22 -18
  40. package/src/pagingHelper.ts +39 -0
  41. package/src/resourceMoverServiceAPI.ts +60 -20
  42. package/types/arm-resourcemover.d.ts +97 -45
  43. package/types/tsdoc-metadata.json +1 -1
@@ -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
+ }
@@ -8,6 +8,11 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
11
16
  import * as coreAuth from "@azure/core-auth";
12
17
  import {
13
18
  MoveCollectionsImpl,
@@ -55,47 +60,53 @@ export class ResourceMoverServiceAPI extends coreClient.ServiceClient {
55
60
  credential: credentials
56
61
  };
57
62
 
58
- const packageDetails = `azsdk-js-arm-resourcemover/2.0.2`;
63
+ const packageDetails = `azsdk-js-arm-resourcemover/2.1.0`;
59
64
  const userAgentPrefix =
60
65
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
61
66
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
62
67
  : `${packageDetails}`;
63
68
 
64
- if (!options.credentialScopes) {
65
- options.credentialScopes = ["https://management.azure.com/.default"];
66
- }
67
69
  const optionsWithDefaults = {
68
70
  ...defaults,
69
71
  ...options,
70
72
  userAgentOptions: {
71
73
  userAgentPrefix
72
74
  },
73
- baseUri:
75
+ endpoint:
74
76
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
75
77
  };
76
78
  super(optionsWithDefaults);
77
79
 
80
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
78
81
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
79
82
  const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
80
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
83
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
81
84
  (pipelinePolicy) =>
82
85
  pipelinePolicy.name ===
83
86
  coreRestPipeline.bearerTokenAuthenticationPolicyName
84
87
  );
85
- if (!bearerTokenAuthenticationPolicyFound) {
86
- this.pipeline.removePolicy({
87
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
88
- });
89
- this.pipeline.addPolicy(
90
- coreRestPipeline.bearerTokenAuthenticationPolicy({
91
- scopes: `${optionsWithDefaults.baseUri}/.default`,
92
- challengeCallbacks: {
93
- authorizeRequestOnChallenge:
94
- coreClient.authorizeRequestOnClaimChallenge
95
- }
96
- })
97
- );
98
- }
88
+ }
89
+ if (
90
+ !options ||
91
+ !options.pipeline ||
92
+ options.pipeline.getOrderedPolicies().length == 0 ||
93
+ !bearerTokenAuthenticationPolicyFound
94
+ ) {
95
+ this.pipeline.removePolicy({
96
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
97
+ });
98
+ this.pipeline.addPolicy(
99
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
100
+ credential: credentials,
101
+ scopes:
102
+ optionsWithDefaults.credentialScopes ??
103
+ `${optionsWithDefaults.endpoint}/.default`,
104
+ challengeCallbacks: {
105
+ authorizeRequestOnChallenge:
106
+ coreClient.authorizeRequestOnClaimChallenge
107
+ }
108
+ })
109
+ );
99
110
  }
100
111
  // Parameter assignments
101
112
  this.subscriptionId = subscriptionId;
@@ -109,6 +120,35 @@ export class ResourceMoverServiceAPI extends coreClient.ServiceClient {
109
120
  this.operationsDiscoveryOperations = new OperationsDiscoveryOperationsImpl(
110
121
  this
111
122
  );
123
+ this.addCustomApiVersionPolicy(options.apiVersion);
124
+ }
125
+
126
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
127
+ private addCustomApiVersionPolicy(apiVersion?: string) {
128
+ if (!apiVersion) {
129
+ return;
130
+ }
131
+ const apiVersionPolicy = {
132
+ name: "CustomApiVersionPolicy",
133
+ async sendRequest(
134
+ request: PipelineRequest,
135
+ next: SendRequest
136
+ ): Promise<PipelineResponse> {
137
+ const param = request.url.split("?");
138
+ if (param.length > 1) {
139
+ const newParams = param[1].split("&").map((item) => {
140
+ if (item.indexOf("api-version") > -1) {
141
+ return "api-version=" + apiVersion;
142
+ } else {
143
+ return item;
144
+ }
145
+ });
146
+ request.url = param[0] + "?" + newParams.join("&");
147
+ }
148
+ return next(request);
149
+ }
150
+ };
151
+ this.pipeline.addPolicy(apiVersionPolicy);
112
152
  }
113
153
 
114
154
  moveCollections: MoveCollections;
@@ -33,7 +33,7 @@ export declare interface AutomaticResolutionProperties {
33
33
  }
34
34
 
35
35
  /** Gets or sets the availability set resource settings. */
36
- export declare type AvailabilitySetResourceSettings = ResourceSettings & {
36
+ export declare interface AvailabilitySetResourceSettings extends ResourceSettings {
37
37
  /** Polymorphic discriminator, which specifies the different types this object can be */
38
38
  resourceType: "Microsoft.Compute/availabilitySets";
39
39
  /** Gets or sets the Resource tags. */
@@ -44,7 +44,7 @@ export declare type AvailabilitySetResourceSettings = ResourceSettings & {
44
44
  faultDomain?: number;
45
45
  /** Gets or sets the target update domain. */
46
46
  updateDomain?: number;
47
- };
47
+ }
48
48
 
49
49
  /** Defines reference to an Azure resource. */
50
50
  export declare interface AzureResourceReference {
@@ -133,10 +133,10 @@ export declare interface DiscardRequest {
133
133
  }
134
134
 
135
135
  /** Defines the disk encryption set resource settings. */
136
- export declare type DiskEncryptionSetResourceSettings = ResourceSettings & {
136
+ export declare interface DiskEncryptionSetResourceSettings extends ResourceSettings {
137
137
  /** Polymorphic discriminator, which specifies the different types this object can be */
138
138
  resourceType: "Microsoft.Compute/diskEncryptionSets";
139
- };
139
+ }
140
140
 
141
141
  /**
142
142
  * Contains the localized display information for this particular operation / action. These
@@ -190,6 +190,15 @@ export declare interface Display {
190
190
  description?: string;
191
191
  }
192
192
 
193
+ /**
194
+ * Given the last `.value` produced by the `byPage` iterator,
195
+ * returns a continuation token that can be used to begin paging from
196
+ * that point later.
197
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
198
+ * @returns The continuation token that can be passed into byPage() during future calls.
199
+ */
200
+ export declare function getContinuationToken(page: unknown): string | undefined;
201
+
193
202
  /** Defines the MSI properties of the Move Collection. */
194
203
  export declare interface Identity {
195
204
  /** The type of identity used for the resource mover service. */
@@ -224,93 +233,134 @@ export declare interface JobStatus {
224
233
  }
225
234
 
226
235
  /** Defines the key vault resource settings. */
227
- export declare type KeyVaultResourceSettings = ResourceSettings & {
236
+ export declare interface KeyVaultResourceSettings extends ResourceSettings {
228
237
  /** Polymorphic discriminator, which specifies the different types this object can be */
229
238
  resourceType: "Microsoft.KeyVault/vaults";
230
- };
239
+ }
231
240
 
232
241
  /** Known values of {@link CreatedByType} that the service accepts. */
233
242
  export declare enum KnownCreatedByType {
243
+ /** User */
234
244
  User = "User",
245
+ /** Application */
235
246
  Application = "Application",
247
+ /** ManagedIdentity */
236
248
  ManagedIdentity = "ManagedIdentity",
249
+ /** Key */
237
250
  Key = "Key"
238
251
  }
239
252
 
240
253
  /** Known values of {@link DependencyLevel} that the service accepts. */
241
254
  export declare enum KnownDependencyLevel {
255
+ /** Direct */
242
256
  Direct = "Direct",
257
+ /** Descendant */
243
258
  Descendant = "Descendant"
244
259
  }
245
260
 
246
261
  /** Known values of {@link DependencyType} that the service accepts. */
247
262
  export declare enum KnownDependencyType {
263
+ /** RequiredForPrepare */
248
264
  RequiredForPrepare = "RequiredForPrepare",
265
+ /** RequiredForMove */
249
266
  RequiredForMove = "RequiredForMove"
250
267
  }
251
268
 
252
269
  /** Known values of {@link JobName} that the service accepts. */
253
270
  export declare enum KnownJobName {
271
+ /** InitialSync */
254
272
  InitialSync = "InitialSync"
255
273
  }
256
274
 
257
275
  /** Known values of {@link MoveResourceInputType} that the service accepts. */
258
276
  export declare enum KnownMoveResourceInputType {
277
+ /** MoveResourceId */
259
278
  MoveResourceId = "MoveResourceId",
279
+ /** MoveResourceSourceId */
260
280
  MoveResourceSourceId = "MoveResourceSourceId"
261
281
  }
262
282
 
263
283
  /** Known values of {@link MoveState} that the service accepts. */
264
284
  export declare enum KnownMoveState {
285
+ /** AssignmentPending */
265
286
  AssignmentPending = "AssignmentPending",
287
+ /** PreparePending */
266
288
  PreparePending = "PreparePending",
289
+ /** PrepareInProgress */
267
290
  PrepareInProgress = "PrepareInProgress",
291
+ /** PrepareFailed */
268
292
  PrepareFailed = "PrepareFailed",
293
+ /** MovePending */
269
294
  MovePending = "MovePending",
295
+ /** MoveInProgress */
270
296
  MoveInProgress = "MoveInProgress",
297
+ /** MoveFailed */
271
298
  MoveFailed = "MoveFailed",
299
+ /** DiscardInProgress */
272
300
  DiscardInProgress = "DiscardInProgress",
301
+ /** DiscardFailed */
273
302
  DiscardFailed = "DiscardFailed",
303
+ /** CommitPending */
274
304
  CommitPending = "CommitPending",
305
+ /** CommitInProgress */
275
306
  CommitInProgress = "CommitInProgress",
307
+ /** CommitFailed */
276
308
  CommitFailed = "CommitFailed",
309
+ /** Committed */
277
310
  Committed = "Committed",
311
+ /** DeleteSourcePending */
278
312
  DeleteSourcePending = "DeleteSourcePending",
313
+ /** ResourceMoveCompleted */
279
314
  ResourceMoveCompleted = "ResourceMoveCompleted"
280
315
  }
281
316
 
282
317
  /** Known values of {@link ProvisioningState} that the service accepts. */
283
318
  export declare enum KnownProvisioningState {
319
+ /** Succeeded */
284
320
  Succeeded = "Succeeded",
321
+ /** Updating */
285
322
  Updating = "Updating",
323
+ /** Creating */
286
324
  Creating = "Creating",
325
+ /** Failed */
287
326
  Failed = "Failed"
288
327
  }
289
328
 
290
329
  /** Known values of {@link ResolutionType} that the service accepts. */
291
330
  export declare enum KnownResolutionType {
331
+ /** Manual */
292
332
  Manual = "Manual",
333
+ /** Automatic */
293
334
  Automatic = "Automatic"
294
335
  }
295
336
 
296
337
  /** Known values of {@link ResourceIdentityType} that the service accepts. */
297
338
  export declare enum KnownResourceIdentityType {
339
+ /** None */
298
340
  None = "None",
341
+ /** SystemAssigned */
299
342
  SystemAssigned = "SystemAssigned",
343
+ /** UserAssigned */
300
344
  UserAssigned = "UserAssigned"
301
345
  }
302
346
 
303
347
  /** Known values of {@link TargetAvailabilityZone} that the service accepts. */
304
348
  export declare enum KnownTargetAvailabilityZone {
349
+ /** One */
305
350
  One = "1",
351
+ /** Two */
306
352
  Two = "2",
353
+ /** Three */
307
354
  Three = "3",
355
+ /** NA */
308
356
  NA = "NA"
309
357
  }
310
358
 
311
359
  /** Known values of {@link ZoneRedundant} that the service accepts. */
312
360
  export declare enum KnownZoneRedundant {
361
+ /** Enable */
313
362
  Enable = "Enable",
363
+ /** Disable */
314
364
  Disable = "Disable"
315
365
  }
316
366
 
@@ -338,13 +388,15 @@ export declare interface LBFrontendIPConfigurationResourceSettings {
338
388
  }
339
389
 
340
390
  /** Defines reference to load balancer backend address pools. */
341
- export declare type LoadBalancerBackendAddressPoolReference = ProxyResourceReference & {};
391
+ export declare interface LoadBalancerBackendAddressPoolReference extends ProxyResourceReference {
392
+ }
342
393
 
343
394
  /** Defines reference to load balancer NAT rules. */
344
- export declare type LoadBalancerNatRuleReference = ProxyResourceReference & {};
395
+ export declare interface LoadBalancerNatRuleReference extends ProxyResourceReference {
396
+ }
345
397
 
346
398
  /** Defines the load balancer resource settings. */
347
- export declare type LoadBalancerResourceSettings = ResourceSettings & {
399
+ export declare interface LoadBalancerResourceSettings extends ResourceSettings {
348
400
  /** Polymorphic discriminator, which specifies the different types this object can be */
349
401
  resourceType: "Microsoft.Network/loadBalancers";
350
402
  /** Gets or sets the Resource tags. */
@@ -362,7 +414,7 @@ export declare type LoadBalancerResourceSettings = ResourceSettings & {
362
414
  * precedence only if frontend IP configurations settings are not present.
363
415
  */
364
416
  zones?: string;
365
- };
417
+ }
366
418
 
367
419
  /** Defines the properties for manual resolution. */
368
420
  export declare interface ManualResolutionProperties {
@@ -428,7 +480,8 @@ export declare interface MoveCollectionProperties {
428
480
  }
429
481
 
430
482
  /** Defines the move collection errors. */
431
- export declare type MoveCollectionPropertiesErrors = MoveResourceError & {};
483
+ export declare interface MoveCollectionPropertiesErrors extends MoveResourceError {
484
+ }
432
485
 
433
486
  /** Defines the collection of move collections. */
434
487
  export declare interface MoveCollectionResultList {
@@ -932,10 +985,12 @@ export declare interface MoveResourceProperties {
932
985
  }
933
986
 
934
987
  /** Defines the move resource errors. */
935
- export declare type MoveResourcePropertiesErrors = MoveResourceError & {};
988
+ export declare interface MoveResourcePropertiesErrors extends MoveResourceError {
989
+ }
936
990
 
937
991
  /** Defines the move resource status. */
938
- export declare type MoveResourcePropertiesMoveStatus = MoveResourceStatus & {};
992
+ export declare interface MoveResourcePropertiesMoveStatus extends MoveResourceStatus {
993
+ }
939
994
 
940
995
  /** Interface representing a MoveResources. */
941
996
  export declare interface MoveResources {
@@ -1021,8 +1076,6 @@ export declare type MoveResourcesGetResponse = MoveResource;
1021
1076
 
1022
1077
  /** Optional parameters. */
1023
1078
  export declare interface MoveResourcesListNextOptionalParams extends coreClient.OperationOptions {
1024
- /** The filter to apply on the operation. For example, you can use $filter=Properties/ProvisioningState eq 'Succeeded'. */
1025
- filter?: string;
1026
1079
  }
1027
1080
 
1028
1081
  /** Contains response data for the listNext operation. */
@@ -1074,7 +1127,7 @@ export declare interface MoveResourceStatus {
1074
1127
  export declare type MoveState = string;
1075
1128
 
1076
1129
  /** Defines the network interface resource settings. */
1077
- export declare type NetworkInterfaceResourceSettings = ResourceSettings & {
1130
+ export declare interface NetworkInterfaceResourceSettings extends ResourceSettings {
1078
1131
  /** Polymorphic discriminator, which specifies the different types this object can be */
1079
1132
  resourceType: "Microsoft.Network/networkInterfaces";
1080
1133
  /** Gets or sets the Resource tags. */
@@ -1085,10 +1138,10 @@ export declare type NetworkInterfaceResourceSettings = ResourceSettings & {
1085
1138
  ipConfigurations?: NicIpConfigurationResourceSettings[];
1086
1139
  /** Gets or sets a value indicating whether accelerated networking is enabled. */
1087
1140
  enableAcceleratedNetworking?: boolean;
1088
- };
1141
+ }
1089
1142
 
1090
1143
  /** Defines the NSG resource settings. */
1091
- export declare type NetworkSecurityGroupResourceSettings = ResourceSettings & {
1144
+ export declare interface NetworkSecurityGroupResourceSettings extends ResourceSettings {
1092
1145
  /** Polymorphic discriminator, which specifies the different types this object can be */
1093
1146
  resourceType: "Microsoft.Network/networkSecurityGroups";
1094
1147
  /** Gets or sets the Resource tags. */
@@ -1097,7 +1150,7 @@ export declare type NetworkSecurityGroupResourceSettings = ResourceSettings & {
1097
1150
  };
1098
1151
  /** Gets or sets Security rules of network security group. */
1099
1152
  securityRules?: NsgSecurityRule[];
1100
- };
1153
+ }
1101
1154
 
1102
1155
  /** Defines NIC IP configuration properties. */
1103
1156
  export declare interface NicIpConfigurationResourceSettings {
@@ -1120,7 +1173,8 @@ export declare interface NicIpConfigurationResourceSettings {
1120
1173
  }
1121
1174
 
1122
1175
  /** Defines reference to NSG. */
1123
- export declare type NsgReference = AzureResourceReference & {};
1176
+ export declare interface NsgReference extends AzureResourceReference {
1177
+ }
1124
1178
 
1125
1179
  /** Security Rule data model for Network Security Groups. */
1126
1180
  export declare interface NsgSecurityRule {
@@ -1229,7 +1283,7 @@ export declare interface OperationsDiscovery {
1229
1283
  * Default value is "user,system".
1230
1284
  */
1231
1285
  origin?: string;
1232
- /** Any object */
1286
+ /** ClientDiscovery properties. */
1233
1287
  properties?: Record<string, unknown>;
1234
1288
  }
1235
1289
 
@@ -1340,13 +1394,13 @@ export declare interface PrepareRequest {
1340
1394
  export declare type ProvisioningState = string;
1341
1395
 
1342
1396
  /** Defines reference to a proxy resource. */
1343
- export declare type ProxyResourceReference = AzureResourceReference & {
1397
+ export declare interface ProxyResourceReference extends AzureResourceReference {
1344
1398
  /** Gets the name of the proxy resource on the target side. */
1345
1399
  name?: string;
1346
- };
1400
+ }
1347
1401
 
1348
1402
  /** Defines the public IP address resource settings. */
1349
- export declare type PublicIPAddressResourceSettings = ResourceSettings & {
1403
+ export declare interface PublicIPAddressResourceSettings extends ResourceSettings {
1350
1404
  /** Polymorphic discriminator, which specifies the different types this object can be */
1351
1405
  resourceType: "Microsoft.Network/publicIPAddresses";
1352
1406
  /** Gets or sets the Resource tags. */
@@ -1363,10 +1417,11 @@ export declare type PublicIPAddressResourceSettings = ResourceSettings & {
1363
1417
  sku?: string;
1364
1418
  /** Gets or sets public IP zones. */
1365
1419
  zones?: string;
1366
- };
1420
+ }
1367
1421
 
1368
1422
  /** Defines reference to a public IP. */
1369
- export declare type PublicIpReference = AzureResourceReference & {};
1423
+ export declare interface PublicIpReference extends AzureResourceReference {
1424
+ }
1370
1425
 
1371
1426
  /** Required for resources collection. */
1372
1427
  export declare interface RequiredForResourcesCollection {
@@ -1385,10 +1440,10 @@ export declare interface RequiredForResourcesCollection {
1385
1440
  export declare type ResolutionType = string;
1386
1441
 
1387
1442
  /** Defines the resource group resource settings. */
1388
- export declare type ResourceGroupResourceSettings = ResourceSettings & {
1443
+ export declare interface ResourceGroupResourceSettings extends ResourceSettings {
1389
1444
  /** Polymorphic discriminator, which specifies the different types this object can be */
1390
1445
  resourceType: "resourceGroups";
1391
- };
1446
+ }
1392
1447
 
1393
1448
  /**
1394
1449
  * Defines values for ResourceIdentityType. \
@@ -1422,6 +1477,8 @@ export declare class ResourceMoverServiceAPI extends coreClient.ServiceClient {
1422
1477
  * @param options The parameter options
1423
1478
  */
1424
1479
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ResourceMoverServiceAPIOptionalParams);
1480
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1481
+ private addCustomApiVersionPolicy;
1425
1482
  moveCollections: MoveCollections;
1426
1483
  moveResources: MoveResources;
1427
1484
  unresolvedDependencies: UnresolvedDependencies;
@@ -1449,7 +1506,7 @@ export declare interface ResourceSettings {
1449
1506
  export declare type ResourceSettingsUnion = ResourceSettings | VirtualMachineResourceSettings | AvailabilitySetResourceSettings | VirtualNetworkResourceSettings | NetworkInterfaceResourceSettings | NetworkSecurityGroupResourceSettings | LoadBalancerResourceSettings | SqlServerResourceSettings | SqlElasticPoolResourceSettings | SqlDatabaseResourceSettings | ResourceGroupResourceSettings | PublicIPAddressResourceSettings | KeyVaultResourceSettings | DiskEncryptionSetResourceSettings;
1450
1507
 
1451
1508
  /** Defines the Sql Database resource settings. */
1452
- export declare type SqlDatabaseResourceSettings = ResourceSettings & {
1509
+ export declare interface SqlDatabaseResourceSettings extends ResourceSettings {
1453
1510
  /** Polymorphic discriminator, which specifies the different types this object can be */
1454
1511
  resourceType: "Microsoft.Sql/servers/databases";
1455
1512
  /** Gets or sets the Resource tags. */
@@ -1458,10 +1515,10 @@ export declare type SqlDatabaseResourceSettings = ResourceSettings & {
1458
1515
  };
1459
1516
  /** Defines the zone redundant resource setting. */
1460
1517
  zoneRedundant?: ZoneRedundant;
1461
- };
1518
+ }
1462
1519
 
1463
1520
  /** Defines the Sql ElasticPool resource settings. */
1464
- export declare type SqlElasticPoolResourceSettings = ResourceSettings & {
1521
+ export declare interface SqlElasticPoolResourceSettings extends ResourceSettings {
1465
1522
  /** Polymorphic discriminator, which specifies the different types this object can be */
1466
1523
  resourceType: "Microsoft.Sql/servers/elasticPools";
1467
1524
  /** Gets or sets the Resource tags. */
@@ -1470,16 +1527,17 @@ export declare type SqlElasticPoolResourceSettings = ResourceSettings & {
1470
1527
  };
1471
1528
  /** Defines the zone redundant resource setting. */
1472
1529
  zoneRedundant?: ZoneRedundant;
1473
- };
1530
+ }
1474
1531
 
1475
1532
  /** Defines the SQL Server resource settings. */
1476
- export declare type SqlServerResourceSettings = ResourceSettings & {
1533
+ export declare interface SqlServerResourceSettings extends ResourceSettings {
1477
1534
  /** Polymorphic discriminator, which specifies the different types this object can be */
1478
1535
  resourceType: "Microsoft.Sql/servers";
1479
- };
1536
+ }
1480
1537
 
1481
1538
  /** Defines reference to subnet. */
1482
- export declare type SubnetReference = ProxyResourceReference & {};
1539
+ export declare interface SubnetReference extends ProxyResourceReference {
1540
+ }
1483
1541
 
1484
1542
  /** Defines the virtual network subnets resource settings. */
1485
1543
  export declare interface SubnetResourceSettings {
@@ -1558,12 +1616,6 @@ export declare interface UnresolvedDependenciesFilterProperties {
1558
1616
 
1559
1617
  /** Optional parameters. */
1560
1618
  export declare interface UnresolvedDependenciesGetNextOptionalParams extends coreClient.OperationOptions {
1561
- /** The filter to apply on the operation. For example, $apply=filter(count eq 2). */
1562
- filter?: string;
1563
- /** Defines the dependency level. */
1564
- dependencyLevel?: DependencyLevel;
1565
- /** OData order by query option. For example, you can use $orderby=Count desc. */
1566
- orderby?: string;
1567
1619
  }
1568
1620
 
1569
1621
  /** Contains response data for the getNext operation. */
@@ -1619,7 +1671,7 @@ export declare interface UpdateMoveCollectionRequest {
1619
1671
  }
1620
1672
 
1621
1673
  /** Gets or sets the virtual machine resource settings. */
1622
- export declare type VirtualMachineResourceSettings = ResourceSettings & {
1674
+ export declare interface VirtualMachineResourceSettings extends ResourceSettings {
1623
1675
  /** Polymorphic discriminator, which specifies the different types this object can be */
1624
1676
  resourceType: "Microsoft.Compute/virtualMachines";
1625
1677
  /** Gets or sets the Resource tags. */
@@ -1634,10 +1686,10 @@ export declare type VirtualMachineResourceSettings = ResourceSettings & {
1634
1686
  targetVmSize?: string;
1635
1687
  /** Gets or sets the target availability set id for virtual machines not in an availability set at source. */
1636
1688
  targetAvailabilitySetId?: string;
1637
- };
1689
+ }
1638
1690
 
1639
1691
  /** Defines the virtual network resource settings. */
1640
- export declare type VirtualNetworkResourceSettings = ResourceSettings & {
1692
+ export declare interface VirtualNetworkResourceSettings extends ResourceSettings {
1641
1693
  /** Polymorphic discriminator, which specifies the different types this object can be */
1642
1694
  resourceType: "Microsoft.Network/virtualNetworks";
1643
1695
  /** Gets or sets the Resource tags. */
@@ -1658,7 +1710,7 @@ export declare type VirtualNetworkResourceSettings = ResourceSettings & {
1658
1710
  dnsServers?: string[];
1659
1711
  /** Gets or sets List of subnets in a VirtualNetwork. */
1660
1712
  subnets?: SubnetResourceSettings[];
1661
- };
1713
+ }
1662
1714
 
1663
1715
  /**
1664
1716
  * Defines values for ZoneRedundant. \
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.5"
8
+ "packageVersion": "7.33.6"
9
9
  }
10
10
  ]
11
11
  }