@azure/arm-networkcloud 1.0.0-beta.2 → 1.0.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.
- package/CHANGELOG.md +1 -177
- package/README.md +1 -1
- package/dist/index.js +166 -647
- 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/agentPoolsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsGetSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsListByKubernetesClusterSample.js +1 -1
- package/dist-esm/samples-dev/agentPoolsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachineKeySetsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachineKeySetsGetSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachineKeySetsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachineKeySetsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesCordonSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesGetSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesPowerOffSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesReimageSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesReplaceSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesRestartSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesRunCommandSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesRunDataExtractsSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesRunReadCommandsSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesStartSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesUncordonSample.js +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bmcKeySetsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bmcKeySetsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/bmcKeySetsGetSample.js +1 -1
- package/dist-esm/samples-dev/bmcKeySetsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/bmcKeySetsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/cloudServicesNetworksCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/cloudServicesNetworksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/cloudServicesNetworksGetSample.js +1 -1
- package/dist-esm/samples-dev/cloudServicesNetworksListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/cloudServicesNetworksListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/cloudServicesNetworksUpdateSample.js +1 -1
- package/dist-esm/samples-dev/clusterManagersCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/clusterManagersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/clusterManagersGetSample.js +1 -1
- package/dist-esm/samples-dev/clusterManagersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/clusterManagersListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/clusterManagersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/clustersDeploySample.js +2 -2
- package/dist-esm/samples-dev/clustersGetSample.js +1 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/clustersListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +2 -2
- package/dist-esm/samples-dev/clustersUpdateVersionSample.js +1 -1
- package/dist-esm/samples-dev/consolesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/consolesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/consolesGetSample.js +1 -1
- package/dist-esm/samples-dev/consolesListByVirtualMachineSample.js +1 -1
- package/dist-esm/samples-dev/consolesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/kubernetesClustersCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/kubernetesClustersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/kubernetesClustersGetSample.js +1 -1
- package/dist-esm/samples-dev/kubernetesClustersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/kubernetesClustersListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/kubernetesClustersRestartNodeSample.js +1 -1
- package/dist-esm/samples-dev/kubernetesClustersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/l2NetworksCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/l2NetworksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/l2NetworksGetSample.js +1 -1
- package/dist-esm/samples-dev/l2NetworksListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/l2NetworksListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/l2NetworksUpdateSample.js +1 -1
- package/dist-esm/samples-dev/l3NetworksCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/l3NetworksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/l3NetworksGetSample.js +1 -1
- package/dist-esm/samples-dev/l3NetworksListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/l3NetworksListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/l3NetworksUpdateSample.js +1 -1
- package/dist-esm/samples-dev/metricsConfigurationsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/metricsConfigurationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/metricsConfigurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/metricsConfigurationsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/metricsConfigurationsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/rackSkusGetSample.js +1 -1
- package/dist-esm/samples-dev/rackSkusListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/racksCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/racksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/racksGetSample.js +1 -1
- package/dist-esm/samples-dev/racksListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/racksListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/racksUpdateSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesGetSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/storageAppliancesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/trunkedNetworksCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/trunkedNetworksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/trunkedNetworksGetSample.js +1 -1
- package/dist-esm/samples-dev/trunkedNetworksListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/trunkedNetworksListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/trunkedNetworksUpdateSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesPowerOffSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesReimageSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/volumesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +1 -1
- package/dist-esm/samples-dev/volumesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/volumesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/volumesUpdateSample.js +1 -1
- package/dist-esm/src/models/index.d.ts +43 -115
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +0 -6
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -8
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +75 -147
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +0 -4
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +2 -18
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/networkCloud.js +2 -2
- package/dist-esm/src/networkCloud.js.map +1 -1
- package/dist-esm/src/operations/bareMetalMachines.d.ts +1 -17
- package/dist-esm/src/operations/bareMetalMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/bareMetalMachines.js +40 -135
- package/dist-esm/src/operations/bareMetalMachines.js.map +1 -1
- package/dist-esm/src/operations/clusters.js +8 -8
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/kubernetesClusters.js +4 -4
- package/dist-esm/src/operations/kubernetesClusters.js.map +1 -1
- package/dist-esm/src/operations/storageAppliances.d.ts +1 -17
- package/dist-esm/src/operations/storageAppliances.d.ts.map +1 -1
- package/dist-esm/src/operations/storageAppliances.js +8 -103
- package/dist-esm/src/operations/storageAppliances.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts +1 -33
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +16 -206
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/bareMetalMachines.d.ts +1 -17
- package/dist-esm/src/operationsInterfaces/bareMetalMachines.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/storageAppliances.d.ts +1 -17
- package/dist-esm/src/operationsInterfaces/storageAppliances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +1 -33
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -1
- package/package.json +4 -3
- package/review/arm-networkcloud.api.md +32 -113
- package/src/models/index.ts +44 -137
- package/src/models/mappers.ts +76 -155
- package/src/models/parameters.ts +1 -24
- package/src/networkCloud.ts +2 -2
- package/src/operations/bareMetalMachines.ts +40 -177
- package/src/operations/clusters.ts +8 -8
- package/src/operations/kubernetesClusters.ts +4 -4
- package/src/operations/storageAppliances.ts +8 -153
- package/src/operations/virtualMachines.ts +16 -289
- package/src/operationsInterfaces/bareMetalMachines.ts +1 -35
- package/src/operationsInterfaces/storageAppliances.ts +1 -35
- package/src/operationsInterfaces/virtualMachines.ts +0 -67
- package/types/arm-networkcloud.d.ts +44 -197
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/bareMetalMachinesValidateHardwareSample.d.ts +0 -2
- package/dist-esm/samples-dev/bareMetalMachinesValidateHardwareSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/bareMetalMachinesValidateHardwareSample.js +0 -42
- package/dist-esm/samples-dev/bareMetalMachinesValidateHardwareSample.js.map +0 -1
- package/dist-esm/samples-dev/storageAppliancesRunReadCommandsSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageAppliancesRunReadCommandsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageAppliancesRunReadCommandsSample.js +0 -43
- package/dist-esm/samples-dev/storageAppliancesRunReadCommandsSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesAttachVolumeSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesAttachVolumeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesAttachVolumeSample.js +0 -42
- package/dist-esm/samples-dev/virtualMachinesAttachVolumeSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesDetachVolumeSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualMachinesDetachVolumeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualMachinesDetachVolumeSample.js +0 -42
- package/dist-esm/samples-dev/virtualMachinesDetachVolumeSample.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -857,12 +857,6 @@ exports.KnownBareMetalMachineSkipShutdown = void 0;
|
|
|
857
857
|
/** False */
|
|
858
858
|
KnownBareMetalMachineSkipShutdown["False"] = "False";
|
|
859
859
|
})(exports.KnownBareMetalMachineSkipShutdown || (exports.KnownBareMetalMachineSkipShutdown = {}));
|
|
860
|
-
/** Known values of {@link BareMetalMachineHardwareValidationCategory} that the service accepts. */
|
|
861
|
-
exports.KnownBareMetalMachineHardwareValidationCategory = void 0;
|
|
862
|
-
(function (KnownBareMetalMachineHardwareValidationCategory) {
|
|
863
|
-
/** BasicValidation */
|
|
864
|
-
KnownBareMetalMachineHardwareValidationCategory["BasicValidation"] = "BasicValidation";
|
|
865
|
-
})(exports.KnownBareMetalMachineHardwareValidationCategory || (exports.KnownBareMetalMachineHardwareValidationCategory = {}));
|
|
866
860
|
/** Known values of {@link BareMetalMachineKeySetDetailedStatus} that the service accepts. */
|
|
867
861
|
exports.KnownBareMetalMachineKeySetDetailedStatus = void 0;
|
|
868
862
|
(function (KnownBareMetalMachineKeySetDetailedStatus) {
|
|
@@ -3674,6 +3668,81 @@ const BareMetalMachineCordonParameters = {
|
|
|
3674
3668
|
}
|
|
3675
3669
|
}
|
|
3676
3670
|
};
|
|
3671
|
+
const OperationStatusResult = {
|
|
3672
|
+
type: {
|
|
3673
|
+
name: "Composite",
|
|
3674
|
+
className: "OperationStatusResult",
|
|
3675
|
+
modelProperties: {
|
|
3676
|
+
id: {
|
|
3677
|
+
serializedName: "id",
|
|
3678
|
+
type: {
|
|
3679
|
+
name: "String"
|
|
3680
|
+
}
|
|
3681
|
+
},
|
|
3682
|
+
resourceId: {
|
|
3683
|
+
serializedName: "resourceId",
|
|
3684
|
+
readOnly: true,
|
|
3685
|
+
type: {
|
|
3686
|
+
name: "String"
|
|
3687
|
+
}
|
|
3688
|
+
},
|
|
3689
|
+
name: {
|
|
3690
|
+
serializedName: "name",
|
|
3691
|
+
type: {
|
|
3692
|
+
name: "String"
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
status: {
|
|
3696
|
+
serializedName: "status",
|
|
3697
|
+
required: true,
|
|
3698
|
+
type: {
|
|
3699
|
+
name: "String"
|
|
3700
|
+
}
|
|
3701
|
+
},
|
|
3702
|
+
percentComplete: {
|
|
3703
|
+
constraints: {
|
|
3704
|
+
InclusiveMaximum: 100,
|
|
3705
|
+
InclusiveMinimum: 0
|
|
3706
|
+
},
|
|
3707
|
+
serializedName: "percentComplete",
|
|
3708
|
+
type: {
|
|
3709
|
+
name: "Number"
|
|
3710
|
+
}
|
|
3711
|
+
},
|
|
3712
|
+
startTime: {
|
|
3713
|
+
serializedName: "startTime",
|
|
3714
|
+
type: {
|
|
3715
|
+
name: "DateTime"
|
|
3716
|
+
}
|
|
3717
|
+
},
|
|
3718
|
+
endTime: {
|
|
3719
|
+
serializedName: "endTime",
|
|
3720
|
+
type: {
|
|
3721
|
+
name: "DateTime"
|
|
3722
|
+
}
|
|
3723
|
+
},
|
|
3724
|
+
operations: {
|
|
3725
|
+
serializedName: "operations",
|
|
3726
|
+
type: {
|
|
3727
|
+
name: "Sequence",
|
|
3728
|
+
element: {
|
|
3729
|
+
type: {
|
|
3730
|
+
name: "Composite",
|
|
3731
|
+
className: "OperationStatusResult"
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
},
|
|
3736
|
+
error: {
|
|
3737
|
+
serializedName: "error",
|
|
3738
|
+
type: {
|
|
3739
|
+
name: "Composite",
|
|
3740
|
+
className: "ErrorDetail"
|
|
3741
|
+
}
|
|
3742
|
+
}
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3745
|
+
};
|
|
3677
3746
|
const BareMetalMachinePowerOffParameters = {
|
|
3678
3747
|
type: {
|
|
3679
3748
|
name: "Composite",
|
|
@@ -3874,21 +3943,6 @@ const BareMetalMachineRunReadCommandsParameters = {
|
|
|
3874
3943
|
}
|
|
3875
3944
|
}
|
|
3876
3945
|
};
|
|
3877
|
-
const BareMetalMachineValidateHardwareParameters = {
|
|
3878
|
-
type: {
|
|
3879
|
-
name: "Composite",
|
|
3880
|
-
className: "BareMetalMachineValidateHardwareParameters",
|
|
3881
|
-
modelProperties: {
|
|
3882
|
-
validationCategory: {
|
|
3883
|
-
serializedName: "validationCategory",
|
|
3884
|
-
required: true,
|
|
3885
|
-
type: {
|
|
3886
|
-
name: "String"
|
|
3887
|
-
}
|
|
3888
|
-
}
|
|
3889
|
-
}
|
|
3890
|
-
}
|
|
3891
|
-
};
|
|
3892
3946
|
const CloudServicesNetworkPatchParameters = {
|
|
3893
3947
|
type: {
|
|
3894
3948
|
name: "Composite",
|
|
@@ -4497,67 +4551,6 @@ const StorageApplianceEnableRemoteVendorManagementParameters = {
|
|
|
4497
4551
|
}
|
|
4498
4552
|
}
|
|
4499
4553
|
};
|
|
4500
|
-
const StorageApplianceRunReadCommandsParameters = {
|
|
4501
|
-
type: {
|
|
4502
|
-
name: "Composite",
|
|
4503
|
-
className: "StorageApplianceRunReadCommandsParameters",
|
|
4504
|
-
modelProperties: {
|
|
4505
|
-
commands: {
|
|
4506
|
-
constraints: {
|
|
4507
|
-
MinItems: 1
|
|
4508
|
-
},
|
|
4509
|
-
serializedName: "commands",
|
|
4510
|
-
required: true,
|
|
4511
|
-
type: {
|
|
4512
|
-
name: "Sequence",
|
|
4513
|
-
element: {
|
|
4514
|
-
type: {
|
|
4515
|
-
name: "Composite",
|
|
4516
|
-
className: "StorageApplianceCommandSpecification"
|
|
4517
|
-
}
|
|
4518
|
-
}
|
|
4519
|
-
}
|
|
4520
|
-
},
|
|
4521
|
-
limitTimeSeconds: {
|
|
4522
|
-
constraints: {
|
|
4523
|
-
InclusiveMaximum: 14400,
|
|
4524
|
-
InclusiveMinimum: 60
|
|
4525
|
-
},
|
|
4526
|
-
serializedName: "limitTimeSeconds",
|
|
4527
|
-
required: true,
|
|
4528
|
-
type: {
|
|
4529
|
-
name: "Number"
|
|
4530
|
-
}
|
|
4531
|
-
}
|
|
4532
|
-
}
|
|
4533
|
-
}
|
|
4534
|
-
};
|
|
4535
|
-
const StorageApplianceCommandSpecification = {
|
|
4536
|
-
type: {
|
|
4537
|
-
name: "Composite",
|
|
4538
|
-
className: "StorageApplianceCommandSpecification",
|
|
4539
|
-
modelProperties: {
|
|
4540
|
-
arguments: {
|
|
4541
|
-
serializedName: "arguments",
|
|
4542
|
-
type: {
|
|
4543
|
-
name: "Sequence",
|
|
4544
|
-
element: {
|
|
4545
|
-
type: {
|
|
4546
|
-
name: "String"
|
|
4547
|
-
}
|
|
4548
|
-
}
|
|
4549
|
-
}
|
|
4550
|
-
},
|
|
4551
|
-
command: {
|
|
4552
|
-
serializedName: "command",
|
|
4553
|
-
required: true,
|
|
4554
|
-
type: {
|
|
4555
|
-
name: "String"
|
|
4556
|
-
}
|
|
4557
|
-
}
|
|
4558
|
-
}
|
|
4559
|
-
}
|
|
4560
|
-
};
|
|
4561
4554
|
const TrunkedNetworkPatchParameters = {
|
|
4562
4555
|
type: {
|
|
4563
4556
|
name: "Composite",
|
|
@@ -4595,21 +4588,6 @@ const VirtualMachinePatchParameters = {
|
|
|
4595
4588
|
}
|
|
4596
4589
|
}
|
|
4597
4590
|
};
|
|
4598
|
-
const VirtualMachineVolumeParameters = {
|
|
4599
|
-
type: {
|
|
4600
|
-
name: "Composite",
|
|
4601
|
-
className: "VirtualMachineVolumeParameters",
|
|
4602
|
-
modelProperties: {
|
|
4603
|
-
volumeId: {
|
|
4604
|
-
serializedName: "volumeId",
|
|
4605
|
-
required: true,
|
|
4606
|
-
type: {
|
|
4607
|
-
name: "String"
|
|
4608
|
-
}
|
|
4609
|
-
}
|
|
4610
|
-
}
|
|
4611
|
-
}
|
|
4612
|
-
};
|
|
4613
4591
|
const ConsoleList = {
|
|
4614
4592
|
type: {
|
|
4615
4593
|
name: "Composite",
|
|
@@ -6942,20 +6920,6 @@ const BareMetalMachinesUncordonHeaders = {
|
|
|
6942
6920
|
}
|
|
6943
6921
|
}
|
|
6944
6922
|
};
|
|
6945
|
-
const BareMetalMachinesValidateHardwareHeaders = {
|
|
6946
|
-
type: {
|
|
6947
|
-
name: "Composite",
|
|
6948
|
-
className: "BareMetalMachinesValidateHardwareHeaders",
|
|
6949
|
-
modelProperties: {
|
|
6950
|
-
location: {
|
|
6951
|
-
serializedName: "location",
|
|
6952
|
-
type: {
|
|
6953
|
-
name: "String"
|
|
6954
|
-
}
|
|
6955
|
-
}
|
|
6956
|
-
}
|
|
6957
|
-
}
|
|
6958
|
-
};
|
|
6959
6923
|
const CloudServicesNetworksCreateOrUpdateHeaders = {
|
|
6960
6924
|
type: {
|
|
6961
6925
|
name: "Composite",
|
|
@@ -7320,20 +7284,6 @@ const StorageAppliancesEnableRemoteVendorManagementHeaders = {
|
|
|
7320
7284
|
}
|
|
7321
7285
|
}
|
|
7322
7286
|
};
|
|
7323
|
-
const StorageAppliancesRunReadCommandsHeaders = {
|
|
7324
|
-
type: {
|
|
7325
|
-
name: "Composite",
|
|
7326
|
-
className: "StorageAppliancesRunReadCommandsHeaders",
|
|
7327
|
-
modelProperties: {
|
|
7328
|
-
location: {
|
|
7329
|
-
serializedName: "location",
|
|
7330
|
-
type: {
|
|
7331
|
-
name: "String"
|
|
7332
|
-
}
|
|
7333
|
-
}
|
|
7334
|
-
}
|
|
7335
|
-
}
|
|
7336
|
-
};
|
|
7337
7287
|
const TrunkedNetworksCreateOrUpdateHeaders = {
|
|
7338
7288
|
type: {
|
|
7339
7289
|
name: "Composite",
|
|
@@ -7404,34 +7354,6 @@ const VirtualMachinesUpdateHeaders = {
|
|
|
7404
7354
|
}
|
|
7405
7355
|
}
|
|
7406
7356
|
};
|
|
7407
|
-
const VirtualMachinesAttachVolumeHeaders = {
|
|
7408
|
-
type: {
|
|
7409
|
-
name: "Composite",
|
|
7410
|
-
className: "VirtualMachinesAttachVolumeHeaders",
|
|
7411
|
-
modelProperties: {
|
|
7412
|
-
location: {
|
|
7413
|
-
serializedName: "location",
|
|
7414
|
-
type: {
|
|
7415
|
-
name: "String"
|
|
7416
|
-
}
|
|
7417
|
-
}
|
|
7418
|
-
}
|
|
7419
|
-
}
|
|
7420
|
-
};
|
|
7421
|
-
const VirtualMachinesDetachVolumeHeaders = {
|
|
7422
|
-
type: {
|
|
7423
|
-
name: "Composite",
|
|
7424
|
-
className: "VirtualMachinesDetachVolumeHeaders",
|
|
7425
|
-
modelProperties: {
|
|
7426
|
-
location: {
|
|
7427
|
-
serializedName: "location",
|
|
7428
|
-
type: {
|
|
7429
|
-
name: "String"
|
|
7430
|
-
}
|
|
7431
|
-
}
|
|
7432
|
-
}
|
|
7433
|
-
}
|
|
7434
|
-
};
|
|
7435
7357
|
const VirtualMachinesPowerOffHeaders = {
|
|
7436
7358
|
type: {
|
|
7437
7359
|
name: "Composite",
|
|
@@ -7799,13 +7721,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
7799
7721
|
VolumeList: VolumeList,
|
|
7800
7722
|
BareMetalMachinePatchParameters: BareMetalMachinePatchParameters,
|
|
7801
7723
|
BareMetalMachineCordonParameters: BareMetalMachineCordonParameters,
|
|
7724
|
+
OperationStatusResult: OperationStatusResult,
|
|
7802
7725
|
BareMetalMachinePowerOffParameters: BareMetalMachinePowerOffParameters,
|
|
7803
7726
|
BareMetalMachineReplaceParameters: BareMetalMachineReplaceParameters,
|
|
7804
7727
|
BareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters,
|
|
7805
7728
|
BareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters,
|
|
7806
7729
|
BareMetalMachineCommandSpecification: BareMetalMachineCommandSpecification,
|
|
7807
7730
|
BareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters,
|
|
7808
|
-
BareMetalMachineValidateHardwareParameters: BareMetalMachineValidateHardwareParameters,
|
|
7809
7731
|
CloudServicesNetworkPatchParameters: CloudServicesNetworkPatchParameters,
|
|
7810
7732
|
ClusterManagerPatchParameters: ClusterManagerPatchParameters,
|
|
7811
7733
|
ClusterPatchParameters: ClusterPatchParameters,
|
|
@@ -7829,11 +7751,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
7829
7751
|
RackPatchParameters: RackPatchParameters,
|
|
7830
7752
|
StorageAppliancePatchParameters: StorageAppliancePatchParameters,
|
|
7831
7753
|
StorageApplianceEnableRemoteVendorManagementParameters: StorageApplianceEnableRemoteVendorManagementParameters,
|
|
7832
|
-
StorageApplianceRunReadCommandsParameters: StorageApplianceRunReadCommandsParameters,
|
|
7833
|
-
StorageApplianceCommandSpecification: StorageApplianceCommandSpecification,
|
|
7834
7754
|
TrunkedNetworkPatchParameters: TrunkedNetworkPatchParameters,
|
|
7835
7755
|
VirtualMachinePatchParameters: VirtualMachinePatchParameters,
|
|
7836
|
-
VirtualMachineVolumeParameters: VirtualMachineVolumeParameters,
|
|
7837
7756
|
ConsoleList: ConsoleList,
|
|
7838
7757
|
ConsolePatchParameters: ConsolePatchParameters,
|
|
7839
7758
|
VirtualMachinePowerOffParameters: VirtualMachinePowerOffParameters,
|
|
@@ -7872,7 +7791,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
7872
7791
|
BareMetalMachinesRunReadCommandsHeaders: BareMetalMachinesRunReadCommandsHeaders,
|
|
7873
7792
|
BareMetalMachinesStartHeaders: BareMetalMachinesStartHeaders,
|
|
7874
7793
|
BareMetalMachinesUncordonHeaders: BareMetalMachinesUncordonHeaders,
|
|
7875
|
-
BareMetalMachinesValidateHardwareHeaders: BareMetalMachinesValidateHardwareHeaders,
|
|
7876
7794
|
CloudServicesNetworksCreateOrUpdateHeaders: CloudServicesNetworksCreateOrUpdateHeaders,
|
|
7877
7795
|
CloudServicesNetworksDeleteHeaders: CloudServicesNetworksDeleteHeaders,
|
|
7878
7796
|
CloudServicesNetworksUpdateHeaders: CloudServicesNetworksUpdateHeaders,
|
|
@@ -7899,14 +7817,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
7899
7817
|
StorageAppliancesUpdateHeaders: StorageAppliancesUpdateHeaders,
|
|
7900
7818
|
StorageAppliancesDisableRemoteVendorManagementHeaders: StorageAppliancesDisableRemoteVendorManagementHeaders,
|
|
7901
7819
|
StorageAppliancesEnableRemoteVendorManagementHeaders: StorageAppliancesEnableRemoteVendorManagementHeaders,
|
|
7902
|
-
StorageAppliancesRunReadCommandsHeaders: StorageAppliancesRunReadCommandsHeaders,
|
|
7903
7820
|
TrunkedNetworksCreateOrUpdateHeaders: TrunkedNetworksCreateOrUpdateHeaders,
|
|
7904
7821
|
TrunkedNetworksDeleteHeaders: TrunkedNetworksDeleteHeaders,
|
|
7905
7822
|
VirtualMachinesCreateOrUpdateHeaders: VirtualMachinesCreateOrUpdateHeaders,
|
|
7906
7823
|
VirtualMachinesDeleteHeaders: VirtualMachinesDeleteHeaders,
|
|
7907
7824
|
VirtualMachinesUpdateHeaders: VirtualMachinesUpdateHeaders,
|
|
7908
|
-
VirtualMachinesAttachVolumeHeaders: VirtualMachinesAttachVolumeHeaders,
|
|
7909
|
-
VirtualMachinesDetachVolumeHeaders: VirtualMachinesDetachVolumeHeaders,
|
|
7910
7825
|
VirtualMachinesPowerOffHeaders: VirtualMachinesPowerOffHeaders,
|
|
7911
7826
|
VirtualMachinesReimageHeaders: VirtualMachinesReimageHeaders,
|
|
7912
7827
|
VirtualMachinesRestartHeaders: VirtualMachinesRestartHeaders,
|
|
@@ -7962,7 +7877,7 @@ const $host = {
|
|
|
7962
7877
|
const apiVersion = {
|
|
7963
7878
|
parameterPath: "apiVersion",
|
|
7964
7879
|
mapper: {
|
|
7965
|
-
defaultValue: "2023-
|
|
7880
|
+
defaultValue: "2023-07-01",
|
|
7966
7881
|
isConstant: true,
|
|
7967
7882
|
serializedName: "api-version",
|
|
7968
7883
|
type: {
|
|
@@ -8061,10 +7976,6 @@ const bareMetalMachineRunReadCommandsParameters = {
|
|
|
8061
7976
|
parameterPath: "bareMetalMachineRunReadCommandsParameters",
|
|
8062
7977
|
mapper: BareMetalMachineRunReadCommandsParameters
|
|
8063
7978
|
};
|
|
8064
|
-
const bareMetalMachineValidateHardwareParameters = {
|
|
8065
|
-
parameterPath: "bareMetalMachineValidateHardwareParameters",
|
|
8066
|
-
mapper: BareMetalMachineValidateHardwareParameters
|
|
8067
|
-
};
|
|
8068
7979
|
const cloudServicesNetworkName = {
|
|
8069
7980
|
parameterPath: "cloudServicesNetworkName",
|
|
8070
7981
|
mapper: {
|
|
@@ -8262,10 +8173,6 @@ const storageApplianceEnableRemoteVendorManagementParameters = {
|
|
|
8262
8173
|
],
|
|
8263
8174
|
mapper: StorageApplianceEnableRemoteVendorManagementParameters
|
|
8264
8175
|
};
|
|
8265
|
-
const storageApplianceRunReadCommandsParameters = {
|
|
8266
|
-
parameterPath: "storageApplianceRunReadCommandsParameters",
|
|
8267
|
-
mapper: StorageApplianceRunReadCommandsParameters
|
|
8268
|
-
};
|
|
8269
8176
|
const trunkedNetworkName = {
|
|
8270
8177
|
parameterPath: "trunkedNetworkName",
|
|
8271
8178
|
mapper: {
|
|
@@ -8308,14 +8215,6 @@ const virtualMachineUpdateParameters = {
|
|
|
8308
8215
|
parameterPath: ["options", "virtualMachineUpdateParameters"],
|
|
8309
8216
|
mapper: VirtualMachinePatchParameters
|
|
8310
8217
|
};
|
|
8311
|
-
const virtualMachineAttachVolumeParameters = {
|
|
8312
|
-
parameterPath: "virtualMachineAttachVolumeParameters",
|
|
8313
|
-
mapper: VirtualMachineVolumeParameters
|
|
8314
|
-
};
|
|
8315
|
-
const virtualMachineDetachVolumeParameters = {
|
|
8316
|
-
parameterPath: "virtualMachineDetachVolumeParameters",
|
|
8317
|
-
mapper: VirtualMachineVolumeParameters
|
|
8318
|
-
};
|
|
8319
8218
|
const virtualMachinePowerOffParameters = {
|
|
8320
8219
|
parameterPath: ["options", "virtualMachinePowerOffParameters"],
|
|
8321
8220
|
mapper: VirtualMachinePowerOffParameters
|
|
@@ -9416,7 +9315,7 @@ class BareMetalMachinesImpl {
|
|
|
9416
9315
|
bareMetalMachineRunReadCommandsParameters,
|
|
9417
9316
|
options
|
|
9418
9317
|
},
|
|
9419
|
-
spec: runReadCommandsOperationSpec
|
|
9318
|
+
spec: runReadCommandsOperationSpec
|
|
9420
9319
|
});
|
|
9421
9320
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9422
9321
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -9554,69 +9453,6 @@ class BareMetalMachinesImpl {
|
|
|
9554
9453
|
return poller.pollUntilDone();
|
|
9555
9454
|
});
|
|
9556
9455
|
}
|
|
9557
|
-
/**
|
|
9558
|
-
* Validate the hardware of the provided bare metal machine.
|
|
9559
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9560
|
-
* @param bareMetalMachineName The name of the bare metal machine.
|
|
9561
|
-
* @param bareMetalMachineValidateHardwareParameters The request body.
|
|
9562
|
-
* @param options The options parameters.
|
|
9563
|
-
*/
|
|
9564
|
-
beginValidateHardware(resourceGroupName, bareMetalMachineName, bareMetalMachineValidateHardwareParameters, options) {
|
|
9565
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9566
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9567
|
-
return this.client.sendOperationRequest(args, spec);
|
|
9568
|
-
});
|
|
9569
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9570
|
-
var _a;
|
|
9571
|
-
let currentRawResponse = undefined;
|
|
9572
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9573
|
-
const callback = (rawResponse, flatResponse) => {
|
|
9574
|
-
currentRawResponse = rawResponse;
|
|
9575
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9576
|
-
};
|
|
9577
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9578
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
9579
|
-
return {
|
|
9580
|
-
flatResponse,
|
|
9581
|
-
rawResponse: {
|
|
9582
|
-
statusCode: currentRawResponse.status,
|
|
9583
|
-
body: currentRawResponse.parsedBody,
|
|
9584
|
-
headers: currentRawResponse.headers.toJSON()
|
|
9585
|
-
}
|
|
9586
|
-
};
|
|
9587
|
-
});
|
|
9588
|
-
const lro = createLroSpec({
|
|
9589
|
-
sendOperationFn,
|
|
9590
|
-
args: {
|
|
9591
|
-
resourceGroupName,
|
|
9592
|
-
bareMetalMachineName,
|
|
9593
|
-
bareMetalMachineValidateHardwareParameters,
|
|
9594
|
-
options
|
|
9595
|
-
},
|
|
9596
|
-
spec: validateHardwareOperationSpec
|
|
9597
|
-
});
|
|
9598
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9599
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9600
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9601
|
-
resourceLocationConfig: "location"
|
|
9602
|
-
});
|
|
9603
|
-
yield poller.poll();
|
|
9604
|
-
return poller;
|
|
9605
|
-
});
|
|
9606
|
-
}
|
|
9607
|
-
/**
|
|
9608
|
-
* Validate the hardware of the provided bare metal machine.
|
|
9609
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9610
|
-
* @param bareMetalMachineName The name of the bare metal machine.
|
|
9611
|
-
* @param bareMetalMachineValidateHardwareParameters The request body.
|
|
9612
|
-
* @param options The options parameters.
|
|
9613
|
-
*/
|
|
9614
|
-
beginValidateHardwareAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineValidateHardwareParameters, options) {
|
|
9615
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9616
|
-
const poller = yield this.beginValidateHardware(resourceGroupName, bareMetalMachineName, bareMetalMachineValidateHardwareParameters, options);
|
|
9617
|
-
return poller.pollUntilDone();
|
|
9618
|
-
});
|
|
9619
|
-
}
|
|
9620
9456
|
/**
|
|
9621
9457
|
* ListBySubscriptionNext
|
|
9622
9458
|
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
@@ -9785,16 +9621,16 @@ const cordonOperationSpec = {
|
|
|
9785
9621
|
httpMethod: "POST",
|
|
9786
9622
|
responses: {
|
|
9787
9623
|
200: {
|
|
9788
|
-
|
|
9624
|
+
bodyMapper: OperationStatusResult
|
|
9789
9625
|
},
|
|
9790
9626
|
201: {
|
|
9791
|
-
|
|
9627
|
+
bodyMapper: OperationStatusResult
|
|
9792
9628
|
},
|
|
9793
9629
|
202: {
|
|
9794
|
-
|
|
9630
|
+
bodyMapper: OperationStatusResult
|
|
9795
9631
|
},
|
|
9796
9632
|
204: {
|
|
9797
|
-
|
|
9633
|
+
bodyMapper: OperationStatusResult
|
|
9798
9634
|
},
|
|
9799
9635
|
default: {
|
|
9800
9636
|
bodyMapper: ErrorResponse
|
|
@@ -9817,16 +9653,16 @@ const powerOffOperationSpec$1 = {
|
|
|
9817
9653
|
httpMethod: "POST",
|
|
9818
9654
|
responses: {
|
|
9819
9655
|
200: {
|
|
9820
|
-
|
|
9656
|
+
bodyMapper: OperationStatusResult
|
|
9821
9657
|
},
|
|
9822
9658
|
201: {
|
|
9823
|
-
|
|
9659
|
+
bodyMapper: OperationStatusResult
|
|
9824
9660
|
},
|
|
9825
9661
|
202: {
|
|
9826
|
-
|
|
9662
|
+
bodyMapper: OperationStatusResult
|
|
9827
9663
|
},
|
|
9828
9664
|
204: {
|
|
9829
|
-
|
|
9665
|
+
bodyMapper: OperationStatusResult
|
|
9830
9666
|
},
|
|
9831
9667
|
default: {
|
|
9832
9668
|
bodyMapper: ErrorResponse
|
|
@@ -9849,16 +9685,16 @@ const reimageOperationSpec$1 = {
|
|
|
9849
9685
|
httpMethod: "POST",
|
|
9850
9686
|
responses: {
|
|
9851
9687
|
200: {
|
|
9852
|
-
|
|
9688
|
+
bodyMapper: OperationStatusResult
|
|
9853
9689
|
},
|
|
9854
9690
|
201: {
|
|
9855
|
-
|
|
9691
|
+
bodyMapper: OperationStatusResult
|
|
9856
9692
|
},
|
|
9857
9693
|
202: {
|
|
9858
|
-
|
|
9694
|
+
bodyMapper: OperationStatusResult
|
|
9859
9695
|
},
|
|
9860
9696
|
204: {
|
|
9861
|
-
|
|
9697
|
+
bodyMapper: OperationStatusResult
|
|
9862
9698
|
},
|
|
9863
9699
|
default: {
|
|
9864
9700
|
bodyMapper: ErrorResponse
|
|
@@ -9879,16 +9715,16 @@ const replaceOperationSpec = {
|
|
|
9879
9715
|
httpMethod: "POST",
|
|
9880
9716
|
responses: {
|
|
9881
9717
|
200: {
|
|
9882
|
-
|
|
9718
|
+
bodyMapper: OperationStatusResult
|
|
9883
9719
|
},
|
|
9884
9720
|
201: {
|
|
9885
|
-
|
|
9721
|
+
bodyMapper: OperationStatusResult
|
|
9886
9722
|
},
|
|
9887
9723
|
202: {
|
|
9888
|
-
|
|
9724
|
+
bodyMapper: OperationStatusResult
|
|
9889
9725
|
},
|
|
9890
9726
|
204: {
|
|
9891
|
-
|
|
9727
|
+
bodyMapper: OperationStatusResult
|
|
9892
9728
|
},
|
|
9893
9729
|
default: {
|
|
9894
9730
|
bodyMapper: ErrorResponse
|
|
@@ -9911,16 +9747,16 @@ const restartOperationSpec$1 = {
|
|
|
9911
9747
|
httpMethod: "POST",
|
|
9912
9748
|
responses: {
|
|
9913
9749
|
200: {
|
|
9914
|
-
|
|
9750
|
+
bodyMapper: OperationStatusResult
|
|
9915
9751
|
},
|
|
9916
9752
|
201: {
|
|
9917
|
-
|
|
9753
|
+
bodyMapper: OperationStatusResult
|
|
9918
9754
|
},
|
|
9919
9755
|
202: {
|
|
9920
|
-
|
|
9756
|
+
bodyMapper: OperationStatusResult
|
|
9921
9757
|
},
|
|
9922
9758
|
204: {
|
|
9923
|
-
|
|
9759
|
+
bodyMapper: OperationStatusResult
|
|
9924
9760
|
},
|
|
9925
9761
|
default: {
|
|
9926
9762
|
bodyMapper: ErrorResponse
|
|
@@ -9941,16 +9777,16 @@ const runCommandOperationSpec = {
|
|
|
9941
9777
|
httpMethod: "POST",
|
|
9942
9778
|
responses: {
|
|
9943
9779
|
200: {
|
|
9944
|
-
|
|
9780
|
+
bodyMapper: OperationStatusResult
|
|
9945
9781
|
},
|
|
9946
9782
|
201: {
|
|
9947
|
-
|
|
9783
|
+
bodyMapper: OperationStatusResult
|
|
9948
9784
|
},
|
|
9949
9785
|
202: {
|
|
9950
|
-
|
|
9786
|
+
bodyMapper: OperationStatusResult
|
|
9951
9787
|
},
|
|
9952
9788
|
204: {
|
|
9953
|
-
|
|
9789
|
+
bodyMapper: OperationStatusResult
|
|
9954
9790
|
},
|
|
9955
9791
|
default: {
|
|
9956
9792
|
bodyMapper: ErrorResponse
|
|
@@ -9973,16 +9809,16 @@ const runDataExtractsOperationSpec = {
|
|
|
9973
9809
|
httpMethod: "POST",
|
|
9974
9810
|
responses: {
|
|
9975
9811
|
200: {
|
|
9976
|
-
|
|
9812
|
+
bodyMapper: OperationStatusResult
|
|
9977
9813
|
},
|
|
9978
9814
|
201: {
|
|
9979
|
-
|
|
9815
|
+
bodyMapper: OperationStatusResult
|
|
9980
9816
|
},
|
|
9981
9817
|
202: {
|
|
9982
|
-
|
|
9818
|
+
bodyMapper: OperationStatusResult
|
|
9983
9819
|
},
|
|
9984
9820
|
204: {
|
|
9985
|
-
|
|
9821
|
+
bodyMapper: OperationStatusResult
|
|
9986
9822
|
},
|
|
9987
9823
|
default: {
|
|
9988
9824
|
bodyMapper: ErrorResponse
|
|
@@ -10000,58 +9836,27 @@ const runDataExtractsOperationSpec = {
|
|
|
10000
9836
|
mediaType: "json",
|
|
10001
9837
|
serializer: serializer$h
|
|
10002
9838
|
};
|
|
10003
|
-
const runReadCommandsOperationSpec
|
|
10004
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runReadCommands",
|
|
10005
|
-
httpMethod: "POST",
|
|
10006
|
-
responses: {
|
|
10007
|
-
200: {
|
|
10008
|
-
headersMapper: BareMetalMachinesRunReadCommandsHeaders
|
|
10009
|
-
},
|
|
10010
|
-
201: {
|
|
10011
|
-
headersMapper: BareMetalMachinesRunReadCommandsHeaders
|
|
10012
|
-
},
|
|
10013
|
-
202: {
|
|
10014
|
-
headersMapper: BareMetalMachinesRunReadCommandsHeaders
|
|
10015
|
-
},
|
|
10016
|
-
204: {
|
|
10017
|
-
headersMapper: BareMetalMachinesRunReadCommandsHeaders
|
|
10018
|
-
},
|
|
10019
|
-
default: {
|
|
10020
|
-
bodyMapper: ErrorResponse
|
|
10021
|
-
}
|
|
10022
|
-
},
|
|
10023
|
-
requestBody: bareMetalMachineRunReadCommandsParameters,
|
|
10024
|
-
queryParameters: [apiVersion],
|
|
10025
|
-
urlParameters: [
|
|
10026
|
-
$host,
|
|
10027
|
-
subscriptionId,
|
|
10028
|
-
resourceGroupName,
|
|
10029
|
-
bareMetalMachineName
|
|
10030
|
-
],
|
|
10031
|
-
headerParameters: [accept, contentType],
|
|
10032
|
-
mediaType: "json",
|
|
10033
|
-
serializer: serializer$h
|
|
10034
|
-
};
|
|
10035
|
-
const startOperationSpec$1 = {
|
|
10036
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/start",
|
|
9839
|
+
const runReadCommandsOperationSpec = {
|
|
9840
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runReadCommands",
|
|
10037
9841
|
httpMethod: "POST",
|
|
10038
9842
|
responses: {
|
|
10039
9843
|
200: {
|
|
10040
|
-
|
|
9844
|
+
bodyMapper: OperationStatusResult
|
|
10041
9845
|
},
|
|
10042
9846
|
201: {
|
|
10043
|
-
|
|
9847
|
+
bodyMapper: OperationStatusResult
|
|
10044
9848
|
},
|
|
10045
9849
|
202: {
|
|
10046
|
-
|
|
9850
|
+
bodyMapper: OperationStatusResult
|
|
10047
9851
|
},
|
|
10048
9852
|
204: {
|
|
10049
|
-
|
|
9853
|
+
bodyMapper: OperationStatusResult
|
|
10050
9854
|
},
|
|
10051
9855
|
default: {
|
|
10052
9856
|
bodyMapper: ErrorResponse
|
|
10053
9857
|
}
|
|
10054
9858
|
},
|
|
9859
|
+
requestBody: bareMetalMachineRunReadCommandsParameters,
|
|
10055
9860
|
queryParameters: [apiVersion],
|
|
10056
9861
|
urlParameters: [
|
|
10057
9862
|
$host,
|
|
@@ -10059,24 +9864,25 @@ const startOperationSpec$1 = {
|
|
|
10059
9864
|
resourceGroupName,
|
|
10060
9865
|
bareMetalMachineName
|
|
10061
9866
|
],
|
|
10062
|
-
headerParameters: [accept],
|
|
9867
|
+
headerParameters: [accept, contentType],
|
|
9868
|
+
mediaType: "json",
|
|
10063
9869
|
serializer: serializer$h
|
|
10064
9870
|
};
|
|
10065
|
-
const
|
|
10066
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/
|
|
9871
|
+
const startOperationSpec$1 = {
|
|
9872
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/start",
|
|
10067
9873
|
httpMethod: "POST",
|
|
10068
9874
|
responses: {
|
|
10069
9875
|
200: {
|
|
10070
|
-
|
|
9876
|
+
bodyMapper: OperationStatusResult
|
|
10071
9877
|
},
|
|
10072
9878
|
201: {
|
|
10073
|
-
|
|
9879
|
+
bodyMapper: OperationStatusResult
|
|
10074
9880
|
},
|
|
10075
9881
|
202: {
|
|
10076
|
-
|
|
9882
|
+
bodyMapper: OperationStatusResult
|
|
10077
9883
|
},
|
|
10078
9884
|
204: {
|
|
10079
|
-
|
|
9885
|
+
bodyMapper: OperationStatusResult
|
|
10080
9886
|
},
|
|
10081
9887
|
default: {
|
|
10082
9888
|
bodyMapper: ErrorResponse
|
|
@@ -10092,27 +9898,26 @@ const uncordonOperationSpec = {
|
|
|
10092
9898
|
headerParameters: [accept],
|
|
10093
9899
|
serializer: serializer$h
|
|
10094
9900
|
};
|
|
10095
|
-
const
|
|
10096
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/
|
|
9901
|
+
const uncordonOperationSpec = {
|
|
9902
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/uncordon",
|
|
10097
9903
|
httpMethod: "POST",
|
|
10098
9904
|
responses: {
|
|
10099
9905
|
200: {
|
|
10100
|
-
|
|
9906
|
+
bodyMapper: OperationStatusResult
|
|
10101
9907
|
},
|
|
10102
9908
|
201: {
|
|
10103
|
-
|
|
9909
|
+
bodyMapper: OperationStatusResult
|
|
10104
9910
|
},
|
|
10105
9911
|
202: {
|
|
10106
|
-
|
|
9912
|
+
bodyMapper: OperationStatusResult
|
|
10107
9913
|
},
|
|
10108
9914
|
204: {
|
|
10109
|
-
|
|
9915
|
+
bodyMapper: OperationStatusResult
|
|
10110
9916
|
},
|
|
10111
9917
|
default: {
|
|
10112
9918
|
bodyMapper: ErrorResponse
|
|
10113
9919
|
}
|
|
10114
9920
|
},
|
|
10115
|
-
requestBody: bareMetalMachineValidateHardwareParameters,
|
|
10116
9921
|
queryParameters: [apiVersion],
|
|
10117
9922
|
urlParameters: [
|
|
10118
9923
|
$host,
|
|
@@ -10120,8 +9925,7 @@ const validateHardwareOperationSpec = {
|
|
|
10120
9925
|
resourceGroupName,
|
|
10121
9926
|
bareMetalMachineName
|
|
10122
9927
|
],
|
|
10123
|
-
headerParameters: [accept
|
|
10124
|
-
mediaType: "json",
|
|
9928
|
+
headerParameters: [accept],
|
|
10125
9929
|
serializer: serializer$h
|
|
10126
9930
|
};
|
|
10127
9931
|
const listBySubscriptionNextOperationSpec$c = {
|
|
@@ -11848,16 +11652,16 @@ const deployOperationSpec = {
|
|
|
11848
11652
|
httpMethod: "POST",
|
|
11849
11653
|
responses: {
|
|
11850
11654
|
200: {
|
|
11851
|
-
|
|
11655
|
+
bodyMapper: OperationStatusResult
|
|
11852
11656
|
},
|
|
11853
11657
|
201: {
|
|
11854
|
-
|
|
11658
|
+
bodyMapper: OperationStatusResult
|
|
11855
11659
|
},
|
|
11856
11660
|
202: {
|
|
11857
|
-
|
|
11661
|
+
bodyMapper: OperationStatusResult
|
|
11858
11662
|
},
|
|
11859
11663
|
204: {
|
|
11860
|
-
|
|
11664
|
+
bodyMapper: OperationStatusResult
|
|
11861
11665
|
},
|
|
11862
11666
|
default: {
|
|
11863
11667
|
bodyMapper: ErrorResponse
|
|
@@ -11880,16 +11684,16 @@ const updateVersionOperationSpec = {
|
|
|
11880
11684
|
httpMethod: "POST",
|
|
11881
11685
|
responses: {
|
|
11882
11686
|
200: {
|
|
11883
|
-
|
|
11687
|
+
bodyMapper: OperationStatusResult
|
|
11884
11688
|
},
|
|
11885
11689
|
201: {
|
|
11886
|
-
|
|
11690
|
+
bodyMapper: OperationStatusResult
|
|
11887
11691
|
},
|
|
11888
11692
|
202: {
|
|
11889
|
-
|
|
11693
|
+
bodyMapper: OperationStatusResult
|
|
11890
11694
|
},
|
|
11891
11695
|
204: {
|
|
11892
|
-
|
|
11696
|
+
bodyMapper: OperationStatusResult
|
|
11893
11697
|
},
|
|
11894
11698
|
default: {
|
|
11895
11699
|
bodyMapper: ErrorResponse
|
|
@@ -12529,16 +12333,16 @@ const restartNodeOperationSpec = {
|
|
|
12529
12333
|
httpMethod: "POST",
|
|
12530
12334
|
responses: {
|
|
12531
12335
|
200: {
|
|
12532
|
-
|
|
12336
|
+
bodyMapper: OperationStatusResult
|
|
12533
12337
|
},
|
|
12534
12338
|
201: {
|
|
12535
|
-
|
|
12339
|
+
bodyMapper: OperationStatusResult
|
|
12536
12340
|
},
|
|
12537
12341
|
202: {
|
|
12538
|
-
|
|
12342
|
+
bodyMapper: OperationStatusResult
|
|
12539
12343
|
},
|
|
12540
12344
|
204: {
|
|
12541
|
-
|
|
12345
|
+
bodyMapper: OperationStatusResult
|
|
12542
12346
|
},
|
|
12543
12347
|
default: {
|
|
12544
12348
|
bodyMapper: ErrorResponse
|
|
@@ -14771,69 +14575,6 @@ class StorageAppliancesImpl {
|
|
|
14771
14575
|
return poller.pollUntilDone();
|
|
14772
14576
|
});
|
|
14773
14577
|
}
|
|
14774
|
-
/**
|
|
14775
|
-
* Run and retrieve output from read only commands on the provided storage appliance.
|
|
14776
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
14777
|
-
* @param storageApplianceName The name of the storage appliance.
|
|
14778
|
-
* @param storageApplianceRunReadCommandsParameters The request body.
|
|
14779
|
-
* @param options The options parameters.
|
|
14780
|
-
*/
|
|
14781
|
-
beginRunReadCommands(resourceGroupName, storageApplianceName, storageApplianceRunReadCommandsParameters, options) {
|
|
14782
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14783
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14784
|
-
return this.client.sendOperationRequest(args, spec);
|
|
14785
|
-
});
|
|
14786
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14787
|
-
var _a;
|
|
14788
|
-
let currentRawResponse = undefined;
|
|
14789
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
14790
|
-
const callback = (rawResponse, flatResponse) => {
|
|
14791
|
-
currentRawResponse = rawResponse;
|
|
14792
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
14793
|
-
};
|
|
14794
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14795
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
14796
|
-
return {
|
|
14797
|
-
flatResponse,
|
|
14798
|
-
rawResponse: {
|
|
14799
|
-
statusCode: currentRawResponse.status,
|
|
14800
|
-
body: currentRawResponse.parsedBody,
|
|
14801
|
-
headers: currentRawResponse.headers.toJSON()
|
|
14802
|
-
}
|
|
14803
|
-
};
|
|
14804
|
-
});
|
|
14805
|
-
const lro = createLroSpec({
|
|
14806
|
-
sendOperationFn,
|
|
14807
|
-
args: {
|
|
14808
|
-
resourceGroupName,
|
|
14809
|
-
storageApplianceName,
|
|
14810
|
-
storageApplianceRunReadCommandsParameters,
|
|
14811
|
-
options
|
|
14812
|
-
},
|
|
14813
|
-
spec: runReadCommandsOperationSpec
|
|
14814
|
-
});
|
|
14815
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14816
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
14817
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
14818
|
-
resourceLocationConfig: "location"
|
|
14819
|
-
});
|
|
14820
|
-
yield poller.poll();
|
|
14821
|
-
return poller;
|
|
14822
|
-
});
|
|
14823
|
-
}
|
|
14824
|
-
/**
|
|
14825
|
-
* Run and retrieve output from read only commands on the provided storage appliance.
|
|
14826
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
14827
|
-
* @param storageApplianceName The name of the storage appliance.
|
|
14828
|
-
* @param storageApplianceRunReadCommandsParameters The request body.
|
|
14829
|
-
* @param options The options parameters.
|
|
14830
|
-
*/
|
|
14831
|
-
beginRunReadCommandsAndWait(resourceGroupName, storageApplianceName, storageApplianceRunReadCommandsParameters, options) {
|
|
14832
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14833
|
-
const poller = yield this.beginRunReadCommands(resourceGroupName, storageApplianceName, storageApplianceRunReadCommandsParameters, options);
|
|
14834
|
-
return poller.pollUntilDone();
|
|
14835
|
-
});
|
|
14836
|
-
}
|
|
14837
14578
|
/**
|
|
14838
14579
|
* ListBySubscriptionNext
|
|
14839
14580
|
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
@@ -15002,16 +14743,16 @@ const disableRemoteVendorManagementOperationSpec = {
|
|
|
15002
14743
|
httpMethod: "POST",
|
|
15003
14744
|
responses: {
|
|
15004
14745
|
200: {
|
|
15005
|
-
|
|
14746
|
+
bodyMapper: OperationStatusResult
|
|
15006
14747
|
},
|
|
15007
14748
|
201: {
|
|
15008
|
-
|
|
14749
|
+
bodyMapper: OperationStatusResult
|
|
15009
14750
|
},
|
|
15010
14751
|
202: {
|
|
15011
|
-
|
|
14752
|
+
bodyMapper: OperationStatusResult
|
|
15012
14753
|
},
|
|
15013
14754
|
204: {
|
|
15014
|
-
|
|
14755
|
+
bodyMapper: OperationStatusResult
|
|
15015
14756
|
},
|
|
15016
14757
|
default: {
|
|
15017
14758
|
bodyMapper: ErrorResponse
|
|
@@ -15032,16 +14773,16 @@ const enableRemoteVendorManagementOperationSpec = {
|
|
|
15032
14773
|
httpMethod: "POST",
|
|
15033
14774
|
responses: {
|
|
15034
14775
|
200: {
|
|
15035
|
-
|
|
14776
|
+
bodyMapper: OperationStatusResult
|
|
15036
14777
|
},
|
|
15037
14778
|
201: {
|
|
15038
|
-
|
|
14779
|
+
bodyMapper: OperationStatusResult
|
|
15039
14780
|
},
|
|
15040
14781
|
202: {
|
|
15041
|
-
|
|
14782
|
+
bodyMapper: OperationStatusResult
|
|
15042
14783
|
},
|
|
15043
14784
|
204: {
|
|
15044
|
-
|
|
14785
|
+
bodyMapper: OperationStatusResult
|
|
15045
14786
|
},
|
|
15046
14787
|
default: {
|
|
15047
14788
|
bodyMapper: ErrorResponse
|
|
@@ -15059,38 +14800,6 @@ const enableRemoteVendorManagementOperationSpec = {
|
|
|
15059
14800
|
mediaType: "json",
|
|
15060
14801
|
serializer: serializer$8
|
|
15061
14802
|
};
|
|
15062
|
-
const runReadCommandsOperationSpec = {
|
|
15063
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/runReadCommands",
|
|
15064
|
-
httpMethod: "POST",
|
|
15065
|
-
responses: {
|
|
15066
|
-
200: {
|
|
15067
|
-
headersMapper: StorageAppliancesRunReadCommandsHeaders
|
|
15068
|
-
},
|
|
15069
|
-
201: {
|
|
15070
|
-
headersMapper: StorageAppliancesRunReadCommandsHeaders
|
|
15071
|
-
},
|
|
15072
|
-
202: {
|
|
15073
|
-
headersMapper: StorageAppliancesRunReadCommandsHeaders
|
|
15074
|
-
},
|
|
15075
|
-
204: {
|
|
15076
|
-
headersMapper: StorageAppliancesRunReadCommandsHeaders
|
|
15077
|
-
},
|
|
15078
|
-
default: {
|
|
15079
|
-
bodyMapper: ErrorResponse
|
|
15080
|
-
}
|
|
15081
|
-
},
|
|
15082
|
-
requestBody: storageApplianceRunReadCommandsParameters,
|
|
15083
|
-
queryParameters: [apiVersion],
|
|
15084
|
-
urlParameters: [
|
|
15085
|
-
$host,
|
|
15086
|
-
subscriptionId,
|
|
15087
|
-
resourceGroupName,
|
|
15088
|
-
storageApplianceName
|
|
15089
|
-
],
|
|
15090
|
-
headerParameters: [accept, contentType],
|
|
15091
|
-
mediaType: "json",
|
|
15092
|
-
serializer: serializer$8
|
|
15093
|
-
};
|
|
15094
14803
|
const listBySubscriptionNextOperationSpec$3 = {
|
|
15095
14804
|
path: "{nextLink}",
|
|
15096
14805
|
httpMethod: "GET",
|
|
@@ -15978,132 +15687,6 @@ class VirtualMachinesImpl {
|
|
|
15978
15687
|
return poller.pollUntilDone();
|
|
15979
15688
|
});
|
|
15980
15689
|
}
|
|
15981
|
-
/**
|
|
15982
|
-
* Attach volume to the provided virtual machine.
|
|
15983
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
15984
|
-
* @param virtualMachineName The name of the virtual machine.
|
|
15985
|
-
* @param virtualMachineAttachVolumeParameters The request body.
|
|
15986
|
-
* @param options The options parameters.
|
|
15987
|
-
*/
|
|
15988
|
-
beginAttachVolume(resourceGroupName, virtualMachineName, virtualMachineAttachVolumeParameters, options) {
|
|
15989
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
15990
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
15991
|
-
return this.client.sendOperationRequest(args, spec);
|
|
15992
|
-
});
|
|
15993
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
15994
|
-
var _a;
|
|
15995
|
-
let currentRawResponse = undefined;
|
|
15996
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
15997
|
-
const callback = (rawResponse, flatResponse) => {
|
|
15998
|
-
currentRawResponse = rawResponse;
|
|
15999
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
16000
|
-
};
|
|
16001
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16002
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
16003
|
-
return {
|
|
16004
|
-
flatResponse,
|
|
16005
|
-
rawResponse: {
|
|
16006
|
-
statusCode: currentRawResponse.status,
|
|
16007
|
-
body: currentRawResponse.parsedBody,
|
|
16008
|
-
headers: currentRawResponse.headers.toJSON()
|
|
16009
|
-
}
|
|
16010
|
-
};
|
|
16011
|
-
});
|
|
16012
|
-
const lro = createLroSpec({
|
|
16013
|
-
sendOperationFn,
|
|
16014
|
-
args: {
|
|
16015
|
-
resourceGroupName,
|
|
16016
|
-
virtualMachineName,
|
|
16017
|
-
virtualMachineAttachVolumeParameters,
|
|
16018
|
-
options
|
|
16019
|
-
},
|
|
16020
|
-
spec: attachVolumeOperationSpec
|
|
16021
|
-
});
|
|
16022
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16023
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
16024
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
16025
|
-
resourceLocationConfig: "location"
|
|
16026
|
-
});
|
|
16027
|
-
yield poller.poll();
|
|
16028
|
-
return poller;
|
|
16029
|
-
});
|
|
16030
|
-
}
|
|
16031
|
-
/**
|
|
16032
|
-
* Attach volume to the provided virtual machine.
|
|
16033
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16034
|
-
* @param virtualMachineName The name of the virtual machine.
|
|
16035
|
-
* @param virtualMachineAttachVolumeParameters The request body.
|
|
16036
|
-
* @param options The options parameters.
|
|
16037
|
-
*/
|
|
16038
|
-
beginAttachVolumeAndWait(resourceGroupName, virtualMachineName, virtualMachineAttachVolumeParameters, options) {
|
|
16039
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16040
|
-
const poller = yield this.beginAttachVolume(resourceGroupName, virtualMachineName, virtualMachineAttachVolumeParameters, options);
|
|
16041
|
-
return poller.pollUntilDone();
|
|
16042
|
-
});
|
|
16043
|
-
}
|
|
16044
|
-
/**
|
|
16045
|
-
* Detach volume from the provided virtual machine.
|
|
16046
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16047
|
-
* @param virtualMachineName The name of the virtual machine.
|
|
16048
|
-
* @param virtualMachineDetachVolumeParameters The request body.
|
|
16049
|
-
* @param options The options parameters.
|
|
16050
|
-
*/
|
|
16051
|
-
beginDetachVolume(resourceGroupName, virtualMachineName, virtualMachineDetachVolumeParameters, options) {
|
|
16052
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16053
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16054
|
-
return this.client.sendOperationRequest(args, spec);
|
|
16055
|
-
});
|
|
16056
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16057
|
-
var _a;
|
|
16058
|
-
let currentRawResponse = undefined;
|
|
16059
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
16060
|
-
const callback = (rawResponse, flatResponse) => {
|
|
16061
|
-
currentRawResponse = rawResponse;
|
|
16062
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
16063
|
-
};
|
|
16064
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16065
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
16066
|
-
return {
|
|
16067
|
-
flatResponse,
|
|
16068
|
-
rawResponse: {
|
|
16069
|
-
statusCode: currentRawResponse.status,
|
|
16070
|
-
body: currentRawResponse.parsedBody,
|
|
16071
|
-
headers: currentRawResponse.headers.toJSON()
|
|
16072
|
-
}
|
|
16073
|
-
};
|
|
16074
|
-
});
|
|
16075
|
-
const lro = createLroSpec({
|
|
16076
|
-
sendOperationFn,
|
|
16077
|
-
args: {
|
|
16078
|
-
resourceGroupName,
|
|
16079
|
-
virtualMachineName,
|
|
16080
|
-
virtualMachineDetachVolumeParameters,
|
|
16081
|
-
options
|
|
16082
|
-
},
|
|
16083
|
-
spec: detachVolumeOperationSpec
|
|
16084
|
-
});
|
|
16085
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16086
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
16087
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
16088
|
-
resourceLocationConfig: "location"
|
|
16089
|
-
});
|
|
16090
|
-
yield poller.poll();
|
|
16091
|
-
return poller;
|
|
16092
|
-
});
|
|
16093
|
-
}
|
|
16094
|
-
/**
|
|
16095
|
-
* Detach volume from the provided virtual machine.
|
|
16096
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16097
|
-
* @param virtualMachineName The name of the virtual machine.
|
|
16098
|
-
* @param virtualMachineDetachVolumeParameters The request body.
|
|
16099
|
-
* @param options The options parameters.
|
|
16100
|
-
*/
|
|
16101
|
-
beginDetachVolumeAndWait(resourceGroupName, virtualMachineName, virtualMachineDetachVolumeParameters, options) {
|
|
16102
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16103
|
-
const poller = yield this.beginDetachVolume(resourceGroupName, virtualMachineName, virtualMachineDetachVolumeParameters, options);
|
|
16104
|
-
return poller.pollUntilDone();
|
|
16105
|
-
});
|
|
16106
|
-
}
|
|
16107
15690
|
/**
|
|
16108
15691
|
* Power off the provided virtual machine.
|
|
16109
15692
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -16491,85 +16074,21 @@ const updateOperationSpec$6 = {
|
|
|
16491
16074
|
mediaType: "json",
|
|
16492
16075
|
serializer: serializer$6
|
|
16493
16076
|
};
|
|
16494
|
-
const attachVolumeOperationSpec = {
|
|
16495
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/attachVolume",
|
|
16496
|
-
httpMethod: "POST",
|
|
16497
|
-
responses: {
|
|
16498
|
-
200: {
|
|
16499
|
-
headersMapper: VirtualMachinesAttachVolumeHeaders
|
|
16500
|
-
},
|
|
16501
|
-
201: {
|
|
16502
|
-
headersMapper: VirtualMachinesAttachVolumeHeaders
|
|
16503
|
-
},
|
|
16504
|
-
202: {
|
|
16505
|
-
headersMapper: VirtualMachinesAttachVolumeHeaders
|
|
16506
|
-
},
|
|
16507
|
-
204: {
|
|
16508
|
-
headersMapper: VirtualMachinesAttachVolumeHeaders
|
|
16509
|
-
},
|
|
16510
|
-
default: {
|
|
16511
|
-
bodyMapper: ErrorResponse
|
|
16512
|
-
}
|
|
16513
|
-
},
|
|
16514
|
-
requestBody: virtualMachineAttachVolumeParameters,
|
|
16515
|
-
queryParameters: [apiVersion],
|
|
16516
|
-
urlParameters: [
|
|
16517
|
-
$host,
|
|
16518
|
-
subscriptionId,
|
|
16519
|
-
resourceGroupName,
|
|
16520
|
-
virtualMachineName
|
|
16521
|
-
],
|
|
16522
|
-
headerParameters: [accept, contentType],
|
|
16523
|
-
mediaType: "json",
|
|
16524
|
-
serializer: serializer$6
|
|
16525
|
-
};
|
|
16526
|
-
const detachVolumeOperationSpec = {
|
|
16527
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/detachVolume",
|
|
16528
|
-
httpMethod: "POST",
|
|
16529
|
-
responses: {
|
|
16530
|
-
200: {
|
|
16531
|
-
headersMapper: VirtualMachinesDetachVolumeHeaders
|
|
16532
|
-
},
|
|
16533
|
-
201: {
|
|
16534
|
-
headersMapper: VirtualMachinesDetachVolumeHeaders
|
|
16535
|
-
},
|
|
16536
|
-
202: {
|
|
16537
|
-
headersMapper: VirtualMachinesDetachVolumeHeaders
|
|
16538
|
-
},
|
|
16539
|
-
204: {
|
|
16540
|
-
headersMapper: VirtualMachinesDetachVolumeHeaders
|
|
16541
|
-
},
|
|
16542
|
-
default: {
|
|
16543
|
-
bodyMapper: ErrorResponse
|
|
16544
|
-
}
|
|
16545
|
-
},
|
|
16546
|
-
requestBody: virtualMachineDetachVolumeParameters,
|
|
16547
|
-
queryParameters: [apiVersion],
|
|
16548
|
-
urlParameters: [
|
|
16549
|
-
$host,
|
|
16550
|
-
subscriptionId,
|
|
16551
|
-
resourceGroupName,
|
|
16552
|
-
virtualMachineName
|
|
16553
|
-
],
|
|
16554
|
-
headerParameters: [accept, contentType],
|
|
16555
|
-
mediaType: "json",
|
|
16556
|
-
serializer: serializer$6
|
|
16557
|
-
};
|
|
16558
16077
|
const powerOffOperationSpec = {
|
|
16559
16078
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/powerOff",
|
|
16560
16079
|
httpMethod: "POST",
|
|
16561
16080
|
responses: {
|
|
16562
16081
|
200: {
|
|
16563
|
-
|
|
16082
|
+
bodyMapper: OperationStatusResult
|
|
16564
16083
|
},
|
|
16565
16084
|
201: {
|
|
16566
|
-
|
|
16085
|
+
bodyMapper: OperationStatusResult
|
|
16567
16086
|
},
|
|
16568
16087
|
202: {
|
|
16569
|
-
|
|
16088
|
+
bodyMapper: OperationStatusResult
|
|
16570
16089
|
},
|
|
16571
16090
|
204: {
|
|
16572
|
-
|
|
16091
|
+
bodyMapper: OperationStatusResult
|
|
16573
16092
|
},
|
|
16574
16093
|
default: {
|
|
16575
16094
|
bodyMapper: ErrorResponse
|
|
@@ -16592,16 +16111,16 @@ const reimageOperationSpec = {
|
|
|
16592
16111
|
httpMethod: "POST",
|
|
16593
16112
|
responses: {
|
|
16594
16113
|
200: {
|
|
16595
|
-
|
|
16114
|
+
bodyMapper: OperationStatusResult
|
|
16596
16115
|
},
|
|
16597
16116
|
201: {
|
|
16598
|
-
|
|
16117
|
+
bodyMapper: OperationStatusResult
|
|
16599
16118
|
},
|
|
16600
16119
|
202: {
|
|
16601
|
-
|
|
16120
|
+
bodyMapper: OperationStatusResult
|
|
16602
16121
|
},
|
|
16603
16122
|
204: {
|
|
16604
|
-
|
|
16123
|
+
bodyMapper: OperationStatusResult
|
|
16605
16124
|
},
|
|
16606
16125
|
default: {
|
|
16607
16126
|
bodyMapper: ErrorResponse
|
|
@@ -16622,16 +16141,16 @@ const restartOperationSpec = {
|
|
|
16622
16141
|
httpMethod: "POST",
|
|
16623
16142
|
responses: {
|
|
16624
16143
|
200: {
|
|
16625
|
-
|
|
16144
|
+
bodyMapper: OperationStatusResult
|
|
16626
16145
|
},
|
|
16627
16146
|
201: {
|
|
16628
|
-
|
|
16147
|
+
bodyMapper: OperationStatusResult
|
|
16629
16148
|
},
|
|
16630
16149
|
202: {
|
|
16631
|
-
|
|
16150
|
+
bodyMapper: OperationStatusResult
|
|
16632
16151
|
},
|
|
16633
16152
|
204: {
|
|
16634
|
-
|
|
16153
|
+
bodyMapper: OperationStatusResult
|
|
16635
16154
|
},
|
|
16636
16155
|
default: {
|
|
16637
16156
|
bodyMapper: ErrorResponse
|
|
@@ -16652,16 +16171,16 @@ const startOperationSpec = {
|
|
|
16652
16171
|
httpMethod: "POST",
|
|
16653
16172
|
responses: {
|
|
16654
16173
|
200: {
|
|
16655
|
-
|
|
16174
|
+
bodyMapper: OperationStatusResult
|
|
16656
16175
|
},
|
|
16657
16176
|
201: {
|
|
16658
|
-
|
|
16177
|
+
bodyMapper: OperationStatusResult
|
|
16659
16178
|
},
|
|
16660
16179
|
202: {
|
|
16661
|
-
|
|
16180
|
+
bodyMapper: OperationStatusResult
|
|
16662
16181
|
},
|
|
16663
16182
|
204: {
|
|
16664
|
-
|
|
16183
|
+
bodyMapper: OperationStatusResult
|
|
16665
16184
|
},
|
|
16666
16185
|
default: {
|
|
16667
16186
|
bodyMapper: ErrorResponse
|
|
@@ -19548,7 +19067,7 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
|
|
|
19548
19067
|
requestContentType: "application/json; charset=utf-8",
|
|
19549
19068
|
credential: credentials
|
|
19550
19069
|
};
|
|
19551
|
-
const packageDetails = `azsdk-js-arm-networkcloud/1.0.0
|
|
19070
|
+
const packageDetails = `azsdk-js-arm-networkcloud/1.0.0`;
|
|
19552
19071
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
19553
19072
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
19554
19073
|
: `${packageDetails}`;
|
|
@@ -19581,7 +19100,7 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
|
|
|
19581
19100
|
this.subscriptionId = subscriptionId;
|
|
19582
19101
|
// Assigning values to Constant parameters
|
|
19583
19102
|
this.$host = options.$host || "https://management.azure.com";
|
|
19584
|
-
this.apiVersion = options.apiVersion || "2023-
|
|
19103
|
+
this.apiVersion = options.apiVersion || "2023-07-01";
|
|
19585
19104
|
this.operations = new OperationsImpl(this);
|
|
19586
19105
|
this.bareMetalMachines = new BareMetalMachinesImpl(this);
|
|
19587
19106
|
this.cloudServicesNetworks = new CloudServicesNetworksImpl(this);
|