diff --git a/sdk/avs/arm-avs/CHANGELOG.md b/sdk/avs/arm-avs/CHANGELOG.md index ccd70a10a6c9..cc5c32811b5f 100644 --- a/sdk/avs/arm-avs/CHANGELOG.md +++ b/sdk/avs/arm-avs/CHANGELOG.md @@ -1,15 +1,83 @@ # Release History - -## 6.0.1 (Unreleased) - + +## 6.1.0 (2025-04-29) + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation group Hosts + - Added operation group ProvisionedNetworks + - Added operation group PureStoragePolicies + - Added operation group Skus + - Added Interface GeneralHostProperties + - Added Interface Host + - Added Interface HostListResult + - Added Interface HostProperties + - Added Interface HostsGetOptionalParams + - Added Interface HostsListNextOptionalParams + - Added Interface HostsListOptionalParams + - Added Interface PagedResourceSku + - Added Interface ProvisionedNetwork + - Added Interface ProvisionedNetworkListResult + - Added Interface ProvisionedNetworksGetOptionalParams + - Added Interface ProvisionedNetworksListNextOptionalParams + - Added Interface ProvisionedNetworksListOptionalParams + - Added Interface PureStoragePoliciesCreateOrUpdateHeaders + - Added Interface PureStoragePoliciesCreateOrUpdateOptionalParams + - Added Interface PureStoragePoliciesDeleteHeaders + - Added Interface PureStoragePoliciesDeleteOptionalParams + - Added Interface PureStoragePoliciesGetOptionalParams + - Added Interface PureStoragePoliciesListNextOptionalParams + - Added Interface PureStoragePoliciesListOptionalParams + - Added Interface PureStoragePolicy + - Added Interface PureStoragePolicyListResult + - Added Interface PureStorageVolume + - Added Interface ResourceSku + - Added Interface ResourceSkuCapabilities + - Added Interface ResourceSkuLocationInfo + - Added Interface ResourceSkuRestrictionInfo + - Added Interface ResourceSkuRestrictions + - Added Interface ResourceSkuZoneDetails + - Added Interface SkusListNextOptionalParams + - Added Interface SkusListOptionalParams + - Added Interface SpecializedHostProperties + - Added Type Alias HostKind + - Added Type Alias HostMaintenance + - Added Type Alias HostPropertiesUnion + - Added Type Alias HostProvisioningState + - Added Type Alias HostsGetResponse + - Added Type Alias HostsListNextResponse + - Added Type Alias HostsListResponse + - Added Type Alias ProvisionedNetworkProvisioningState + - Added Type Alias ProvisionedNetworksGetResponse + - Added Type Alias ProvisionedNetworksListNextResponse + - Added Type Alias ProvisionedNetworksListResponse + - Added Type Alias ProvisionedNetworkTypes + - Added Type Alias PureStoragePoliciesCreateOrUpdateResponse + - Added Type Alias PureStoragePoliciesDeleteResponse + - Added Type Alias PureStoragePoliciesGetResponse + - Added Type Alias PureStoragePoliciesListNextResponse + - Added Type Alias PureStoragePoliciesListResponse + - Added Type Alias PureStoragePolicyProvisioningState + - Added Type Alias ResourceSkuResourceType + - Added Type Alias ResourceSkuRestrictionsReasonCode + - Added Type Alias ResourceSkuRestrictionsType + - Added Type Alias SkusListNextResponse + - Added Type Alias SkusListResponse + - Interface AddonHcxProperties has a new optional parameter managementNetwork + - Interface AddonHcxProperties has a new optional parameter uplinkNetwork + - Interface Datastore has a new optional parameter pureStorageVolume + - Interface PrivateCloud has a new optional parameter zones + - Added Enum KnownHostKind + - Added Enum KnownHostMaintenance + - Added Enum KnownHostProvisioningState + - Added Enum KnownProvisionedNetworkProvisioningState + - Added Enum KnownProvisionedNetworkTypes + - Added Enum KnownPureStoragePolicyProvisioningState + - Added Enum KnownResourceSkuResourceType + - Added Enum KnownResourceSkuRestrictionsReasonCode + - Added Enum KnownResourceSkuRestrictionsType + + ## 6.0.0 (2024-09-19) ### Features Added diff --git a/sdk/avs/arm-avs/LICENSE b/sdk/avs/arm-avs/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/avs/arm-avs/LICENSE +++ b/sdk/avs/arm-avs/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/avs/arm-avs/README.md b/sdk/avs/arm-avs/README.md index 87dad7c573db..5c99e445dcb2 100644 --- a/sdk/avs/arm-avs/README.md +++ b/sdk/avs/arm-avs/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to AzureVMwareSolutionApi** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { AzureVMwareSolutionAPI } from "@azure/arm-avs"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new AzureVMwareSolutionAPI(credential, subscriptionId); ``` ### JavaScript Bundle - To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/avs/arm-avs/_meta.json b/sdk/avs/arm-avs/_meta.json index 8fe4619b54a9..9f79fb7e256d 100644 --- a/sdk/avs/arm-avs/_meta.json +++ b/sdk/avs/arm-avs/_meta.json @@ -1,8 +1,8 @@ { - "commit": "386aaedd2edd916b8cef6aa0fffd7b72688787fc", + "commit": "9fdb9feed5f676b3de19959839dbb8924a0fda2f", "readme": "specification/vmware/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\vmware\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/vmware/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.13", - "use": "@autorest/typescript@6.0.27" -} \ No newline at end of file + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.26", + "use": "@autorest/typescript@^6.0.12" +} diff --git a/sdk/avs/arm-avs/api-extractor.json b/sdk/avs/arm-avs/api-extractor.json index 29ccdef7de6e..01fa2d85a010 100644 --- a/sdk/avs/arm-avs/api-extractor.json +++ b/sdk/avs/arm-avs/api-extractor.json @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/avs/arm-avs/package.json b/sdk/avs/arm-avs/package.json index e4028a3b1d89..9c8d96e2db00 100644 --- a/sdk/avs/arm-avs/package.json +++ b/sdk/avs/arm-avs/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureVMwareSolutionAPI.", - "version": "6.0.1", + "version": "6.1.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", - "@azure/core-lro": "^2.7.2", + "@azure/core-client": "^1.9.3", + "@azure/core-lro": "^2.5.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.18.1", + "@azure/core-rest-pipeline": "^1.19.1", "tslib": "^2.8.1" }, "keywords": [ @@ -28,18 +28,19 @@ "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/commonjs/index.d.ts", + "type": "module", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.5.0", + "@azure/identity": "^4.9.1", "@azure/logger": "^1.1.4", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", "dotenv": "^16.0.0", - "playwright": "^1.49.1", + "playwright": "^1.52.0", "typescript": "~5.8.2", "vitest": "^3.0.9" }, @@ -60,16 +61,16 @@ "build:node": "echo skipped", "build:samples": "echo skipped.", "build:test": "echo skipped", - "check-format": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "dev-tool run extract-api", - "format": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", - "minify": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", "prepack": "npm run build", "test": "npm run integration-test", @@ -90,16 +91,9 @@ ] }, "autoPublish": true, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/avs/arm-avs", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-avs" - }, - "type": "module", "tshy": { "project": "./tsconfig.src.json", "exports": { @@ -116,8 +110,6 @@ ], "selfLink": false }, - "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/index.js", "exports": { "./package.json": "./package.json", ".": { @@ -139,4 +131,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/avs/arm-avs/review/arm-avs.api.md b/sdk/avs/arm-avs/review/arm-avs.api.md index 33cd6412a704..0064c88e5c3a 100644 --- a/sdk/avs/arm-avs/review/arm-avs.api.md +++ b/sdk/avs/arm-avs/review/arm-avs.api.md @@ -27,7 +27,9 @@ export interface AddonArcProperties extends AddonProperties { // @public export interface AddonHcxProperties extends AddonProperties { addonType: "HCX"; + managementNetwork?: string; offer: string; + uplinkNetwork?: string; } // @public @@ -226,6 +228,8 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { // (undocumented) hcxEnterpriseSites: HcxEnterpriseSites; // (undocumented) + hosts: Hosts; + // (undocumented) iscsiPaths: IscsiPaths; // (undocumented) locations: Locations; @@ -236,12 +240,18 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { // (undocumented) privateClouds: PrivateClouds; // (undocumented) + provisionedNetworks: ProvisionedNetworks; + // (undocumented) + pureStoragePolicies: PureStoragePolicies; + // (undocumented) scriptCmdlets: ScriptCmdlets; // (undocumented) scriptExecutions: ScriptExecutions; // (undocumented) scriptPackages: ScriptPackages; // (undocumented) + skus: Skus; + // (undocumented) subscriptionId: string; // (undocumented) virtualMachines: VirtualMachines; @@ -468,6 +478,7 @@ export interface Datastore extends ProxyResource { elasticSanVolume?: ElasticSanVolume; netAppVolume?: NetAppVolume; readonly provisioningState?: DatastoreProvisioningState; + pureStorageVolume?: PureStorageVolume; readonly status?: DatastoreStatus; } @@ -637,6 +648,11 @@ export interface ExpressRouteAuthorizationList { // @public export type ExpressRouteAuthorizationProvisioningState = string; +// @public +export interface GeneralHostProperties extends HostProperties { + kind: "General"; +} + // @public export function getContinuationToken(page: unknown): string | undefined; @@ -778,6 +794,75 @@ export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList; // @public export type HcxEnterpriseSiteStatus = string; +// @public +export interface Host extends ProxyResource { + displayName?: string; + readonly faultDomain?: string; + readonly fqdn?: string; + kind?: HostKind; + maintenance?: HostMaintenance; + readonly moRefId?: string; + readonly provisioningState?: HostProvisioningState; + sku?: Sku; + zones?: string[]; +} + +// @public +export type HostKind = string; + +// @public +export interface HostListResult { + nextLink?: string; + value: Host[]; +} + +// @public +export type HostMaintenance = string; + +// @public +export interface HostProperties { + displayName?: string; + readonly faultDomain?: string; + readonly fqdn?: string; + kind: "General" | "Specialized"; + maintenance?: HostMaintenance; + readonly moRefId?: string; + readonly provisioningState?: HostProvisioningState; +} + +// @public (undocumented) +export type HostPropertiesUnion = HostProperties | GeneralHostProperties | SpecializedHostProperties; + +// @public +export type HostProvisioningState = string; + +// @public +export interface Hosts { + get(resourceGroupName: string, privateCloudName: string, clusterName: string, hostId: string, options?: HostsGetOptionalParams): Promise; + list(resourceGroupName: string, privateCloudName: string, clusterName: string, options?: HostsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface HostsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type HostsGetResponse = Host; + +// @public +export interface HostsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type HostsListNextResponse = HostListResult; + +// @public +export interface HostsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type HostsListResponse = HostListResult; + // @public export interface IdentitySource { alias?: string; @@ -1055,6 +1140,25 @@ export enum KnownHcxEnterpriseSiteStatus { Deleted = "Deleted" } +// @public +export enum KnownHostKind { + General = "General", + Specialized = "Specialized" +} + +// @public +export enum KnownHostMaintenance { + Replacement = "Replacement", + Upgrade = "Upgrade" +} + +// @public +export enum KnownHostProvisioningState { + Canceled = "Canceled", + Failed = "Failed", + Succeeded = "Succeeded" +} + // @public export enum KnownInternetEnum { Disabled = "Disabled", @@ -1144,6 +1248,33 @@ export enum KnownPrivateCloudProvisioningState { Updating = "Updating" } +// @public +export enum KnownProvisionedNetworkProvisioningState { + Canceled = "Canceled", + Failed = "Failed", + Succeeded = "Succeeded" +} + +// @public +export enum KnownProvisionedNetworkTypes { + EsxManagement = "esxManagement", + EsxReplication = "esxReplication", + HcxManagement = "hcxManagement", + HcxUplink = "hcxUplink", + VcenterManagement = "vcenterManagement", + Vmotion = "vmotion", + Vsan = "vsan" +} + +// @public +export enum KnownPureStoragePolicyProvisioningState { + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownQuotaEnabled { Disabled = "Disabled", @@ -1156,6 +1287,24 @@ export enum KnownResourceIdentityType { SystemAssigned = "SystemAssigned" } +// @public +export enum KnownResourceSkuResourceType { + PrivateClouds = "privateClouds", + PrivateCloudsClusters = "privateClouds/clusters" +} + +// @public +export enum KnownResourceSkuRestrictionsReasonCode { + NotAvailableForSubscription = "NotAvailableForSubscription", + QuotaId = "QuotaId" +} + +// @public +export enum KnownResourceSkuRestrictionsType { + Location = "Location", + Zone = "Zone" +} + // @public export enum KnownScriptCmdletAudience { Any = "Any", @@ -1433,6 +1582,12 @@ export type OptionalParamEnum = string; // @public export type Origin = string; +// @public +export interface PagedResourceSku { + nextLink?: string; + value: ResourceSku[]; +} + // @public export interface PlacementPolicies { beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, clusterName: string, placementPolicyName: string, placementPolicy: PlacementPolicy, options?: PlacementPoliciesCreateOrUpdateOptionalParams): Promise, PlacementPoliciesCreateOrUpdateResponse>>; @@ -1579,6 +1734,7 @@ export interface PrivateCloud extends TrackedResource { vcenterPassword?: string; virtualNetworkId?: string; readonly vmotionNetwork?: string; + zones?: string[]; } // @public @@ -1744,6 +1900,52 @@ export interface PrivateCloudUpdate { }; } +// @public +export interface ProvisionedNetwork extends ProxyResource { + readonly addressPrefix?: string; + readonly networkType?: ProvisionedNetworkTypes; + readonly provisioningState?: ProvisionedNetworkProvisioningState; +} + +// @public +export interface ProvisionedNetworkListResult { + nextLink?: string; + value: ProvisionedNetwork[]; +} + +// @public +export type ProvisionedNetworkProvisioningState = string; + +// @public +export interface ProvisionedNetworks { + get(resourceGroupName: string, privateCloudName: string, provisionedNetworkName: string, options?: ProvisionedNetworksGetOptionalParams): Promise; + list(resourceGroupName: string, privateCloudName: string, options?: ProvisionedNetworksListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProvisionedNetworksGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProvisionedNetworksGetResponse = ProvisionedNetwork; + +// @public +export interface ProvisionedNetworksListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProvisionedNetworksListNextResponse = ProvisionedNetworkListResult; + +// @public +export interface ProvisionedNetworksListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProvisionedNetworksListResponse = ProvisionedNetworkListResult; + +// @public +export type ProvisionedNetworkTypes = string; + // @public export interface ProxyResource extends Resource { } @@ -1755,6 +1957,89 @@ export interface PSCredentialExecutionParameter extends ScriptExecutionParameter username?: string; } +// @public +export interface PureStoragePolicies { + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, storagePolicyName: string, resource: PureStoragePolicy, options?: PureStoragePoliciesCreateOrUpdateOptionalParams): Promise, PureStoragePoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, privateCloudName: string, storagePolicyName: string, resource: PureStoragePolicy, options?: PureStoragePoliciesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, privateCloudName: string, storagePolicyName: string, options?: PureStoragePoliciesDeleteOptionalParams): Promise, PureStoragePoliciesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, privateCloudName: string, storagePolicyName: string, options?: PureStoragePoliciesDeleteOptionalParams): Promise; + get(resourceGroupName: string, privateCloudName: string, storagePolicyName: string, options?: PureStoragePoliciesGetOptionalParams): Promise; + list(resourceGroupName: string, privateCloudName: string, options?: PureStoragePoliciesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PureStoragePoliciesCreateOrUpdateHeaders { + azureAsyncOperation?: string; + retryAfter?: number; +} + +// @public +export interface PureStoragePoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PureStoragePoliciesCreateOrUpdateResponse = PureStoragePolicy; + +// @public +export interface PureStoragePoliciesDeleteHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface PureStoragePoliciesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PureStoragePoliciesDeleteResponse = PureStoragePoliciesDeleteHeaders; + +// @public +export interface PureStoragePoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PureStoragePoliciesGetResponse = PureStoragePolicy; + +// @public +export interface PureStoragePoliciesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PureStoragePoliciesListNextResponse = PureStoragePolicyListResult; + +// @public +export interface PureStoragePoliciesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PureStoragePoliciesListResponse = PureStoragePolicyListResult; + +// @public +export interface PureStoragePolicy extends ProxyResource { + readonly provisioningState?: PureStoragePolicyProvisioningState; + storagePolicyDefinition?: string; + storagePoolId?: string; +} + +// @public +export interface PureStoragePolicyListResult { + nextLink?: string; + value: PureStoragePolicy[]; +} + +// @public +export type PureStoragePolicyProvisioningState = string; + +// @public +export interface PureStorageVolume { + sizeGb: number; + storagePoolId: string; +} + // @public export interface Quota { readonly hostsRemaining?: { @@ -1777,6 +2062,61 @@ export interface Resource { // @public export type ResourceIdentityType = string; +// @public +export interface ResourceSku { + capabilities?: ResourceSkuCapabilities[]; + family?: string; + locationInfo: ResourceSkuLocationInfo[]; + locations: string[]; + name: string; + resourceType: ResourceSkuResourceType; + restrictions: ResourceSkuRestrictions[]; + size?: string; + tier?: string; +} + +// @public +export interface ResourceSkuCapabilities { + name: string; + value: string; +} + +// @public +export interface ResourceSkuLocationInfo { + location: string; + zoneDetails: ResourceSkuZoneDetails[]; + zones: string[]; +} + +// @public +export type ResourceSkuResourceType = string; + +// @public +export interface ResourceSkuRestrictionInfo { + locations?: string[]; + zones?: string[]; +} + +// @public +export interface ResourceSkuRestrictions { + reasonCode?: ResourceSkuRestrictionsReasonCode; + restrictionInfo: ResourceSkuRestrictionInfo; + type?: ResourceSkuRestrictionsType; + values: string[]; +} + +// @public +export type ResourceSkuRestrictionsReasonCode = string; + +// @public +export type ResourceSkuRestrictionsType = string; + +// @public +export interface ResourceSkuZoneDetails { + capabilities: ResourceSkuCapabilities[]; + name: string[]; +} + // @public export interface ScriptCmdlet extends ProxyResource { readonly audience?: ScriptCmdletAudience; @@ -2017,9 +2357,33 @@ export interface Sku { tier?: SkuTier; } +// @public +export interface Skus { + list(options?: SkusListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SkusListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SkusListNextResponse = PagedResourceSku; + +// @public +export interface SkusListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SkusListResponse = PagedResourceSku; + // @public export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; +// @public +export interface SpecializedHostProperties extends HostProperties { + kind: "Specialized"; +} + // @public export type SslEnum = string; diff --git a/sdk/avs/arm-avs/sample.env b/sdk/avs/arm-avs/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/avs/arm-avs/sample.env +++ b/sdk/avs/arm-avs/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsCreateOrUpdateSample.ts index deceb830fb0b..21f0f3531bad 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_ArcReg.json */ -async function addonsCreateOrUpdateArcReg() { +async function addonsCreateOrUpdateArcReg(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -46,7 +46,7 @@ async function addonsCreateOrUpdateArcReg() { * @summary Create a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_HCX.json */ -async function addonsCreateOrUpdateHcx() { +async function addonsCreateOrUpdateHcx(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -76,7 +76,7 @@ async function addonsCreateOrUpdateHcx() { * @summary Create a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_SRM.json */ -async function addonsCreateOrUpdateSrm() { +async function addonsCreateOrUpdateSrm(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -106,7 +106,7 @@ async function addonsCreateOrUpdateSrm() { * @summary Create a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_VR.json */ -async function addonsCreateOrUpdateVr() { +async function addonsCreateOrUpdateVr(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -125,7 +125,7 @@ async function addonsCreateOrUpdateVr() { console.log(result); } -async function main() { +async function main(): Promise { addonsCreateOrUpdateArcReg(); addonsCreateOrUpdateHcx(); addonsCreateOrUpdateSrm(); diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsDeleteSample.ts index c911d24b8d71..605c9a0cfd4b 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Delete.json */ -async function addonsDelete() { +async function addonsDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function addonsDelete() { console.log(result); } -async function main() { +async function main(): Promise { addonsDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsGetSample.ts index d645c0bf4d62..645898fa6887 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json */ -async function addonsGetArcReg() { +async function addonsGetArcReg(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +38,7 @@ async function addonsGetArcReg() { * @summary Get a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json */ -async function addonsGetHcx() { +async function addonsGetHcx(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -61,7 +61,7 @@ async function addonsGetHcx() { * @summary Get a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json */ -async function addonsGetSrm() { +async function addonsGetSrm(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -84,7 +84,7 @@ async function addonsGetSrm() { * @summary Get a Addon * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json */ -async function addonsGetVr() { +async function addonsGetVr(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -101,7 +101,7 @@ async function addonsGetVr() { console.log(result); } -async function main() { +async function main(): Promise { addonsGetArcReg(); addonsGetHcx(); addonsGetSrm(); diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsListSample.ts index 823a495f4d85..d79fcc78fede 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/addonsListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/addonsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List Addon resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_List.json */ -async function addonsList() { +async function addonsList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function addonsList() { console.log(resArray); } -async function main() { +async function main(): Promise { addonsList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsCreateOrUpdateSample.ts index 6ae792f2720a..be7a3534a692 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Create a ExpressRouteAuthorization * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_CreateOrUpdate.json */ -async function authorizationsCreateOrUpdate() { +async function authorizationsCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +37,7 @@ async function authorizationsCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { authorizationsCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsDeleteSample.ts index 6e4ab2a2bae4..b884fee952b1 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a ExpressRouteAuthorization * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Delete.json */ -async function authorizationsDelete() { +async function authorizationsDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function authorizationsDelete() { console.log(result); } -async function main() { +async function main(): Promise { authorizationsDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsGetSample.ts index 3717a9e593d0..0d15c19635a2 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a ExpressRouteAuthorization * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json */ -async function authorizationsGet() { +async function authorizationsGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function authorizationsGet() { console.log(result); } -async function main() { +async function main(): Promise { authorizationsGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsListSample.ts index 7744cf0b9b26..63673767e432 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/authorizationsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List ExpressRouteAuthorization resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_List.json */ -async function authorizationsList() { +async function authorizationsList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function authorizationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { authorizationsList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksCreateOrUpdateSample.ts index 9aaa9ee298a4..13db6bc25ec2 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a CloudLink * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_CreateOrUpdate.json */ -async function cloudLinksCreateOrUpdate() { +async function cloudLinksCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +37,7 @@ async function cloudLinksCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { cloudLinksCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksDeleteSample.ts index ecc932144c8b..e37a240fc063 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a CloudLink * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Delete.json */ -async function cloudLinksDelete() { +async function cloudLinksDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function cloudLinksDelete() { console.log(result); } -async function main() { +async function main(): Promise { cloudLinksDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksGetSample.ts index 6e2736841c46..361d2c9dfb1d 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a CloudLink * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json */ -async function cloudLinksGet() { +async function cloudLinksGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function cloudLinksGet() { console.log(result); } -async function main() { +async function main(): Promise { cloudLinksGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksListSample.ts index 8c587396e9ef..63be9500b108 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/cloudLinksListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List CloudLink resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_List.json */ -async function cloudLinksList() { +async function cloudLinksList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function cloudLinksList() { console.log(resArray); } -async function main() { +async function main(): Promise { cloudLinksList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersCreateOrUpdateSample.ts index 84402c30a01d..01d5fd195192 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a Cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_CreateOrUpdate.json */ -async function clustersCreateOrUpdate() { +async function clustersCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function clustersCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { clustersCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersDeleteSample.ts index cf886fcf9309..c05669ae421f 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a Cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Delete.json */ -async function clustersDelete() { +async function clustersDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function clustersDelete() { console.log(result); } -async function main() { +async function main(): Promise { clustersDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersGetSample.ts index 9c9f68dcee1e..25f3aadd4fa6 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a Cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json */ -async function clustersGet() { +async function clustersGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function clustersGet() { console.log(result); } -async function main() { +async function main(): Promise { clustersGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListSample.ts index 8a73b06af74f..cf483aefa26d 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List Cluster resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_List.json */ -async function clustersList() { +async function clustersList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function clustersList() { console.log(resArray); } -async function main() { +async function main(): Promise { clustersList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListZonesSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListZonesSample.ts index 617c962a7a69..18793673ef93 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListZonesSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersListZonesSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List hosts by zone in a cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones.json */ -async function clustersListZones() { +async function clustersListZones(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +38,7 @@ async function clustersListZones() { * @summary List hosts by zone in a cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones_Stretched.json */ -async function clustersListZonesStretched() { +async function clustersListZonesStretched(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -55,7 +55,7 @@ async function clustersListZonesStretched() { console.log(result); } -async function main() { +async function main(): Promise { clustersListZones(); clustersListZonesStretched(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersUpdateSample.ts index 2e421890addd..68c234428d4a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/clustersUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/clustersUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Update a Cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Update.json */ -async function clustersUpdate() { +async function clustersUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function clustersUpdate() { console.log(result); } -async function main() { +async function main(): Promise { clustersUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresCreateOrUpdateSample.ts index 80aefef90cf2..42963bb62043 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a Datastore * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_CreateOrUpdate.json */ -async function datastoresCreateOrUpdate() { +async function datastoresCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -40,7 +40,7 @@ async function datastoresCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { datastoresCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresDeleteSample.ts index 6e14528dc0b4..4e9abae36c45 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a Datastore * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Delete.json */ -async function datastoresDelete() { +async function datastoresDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function datastoresDelete() { console.log(result); } -async function main() { +async function main(): Promise { datastoresDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresGetSample.ts index 6b6e5cab6c97..80a228952588 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a Datastore * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json */ -async function datastoresGet() { +async function datastoresGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function datastoresGet() { console.log(result); } -async function main() { +async function main(): Promise { datastoresGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresListSample.ts index 48bfb2f1bdc7..c8f3d4ee8d8c 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/datastoresListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List Datastore resources by Cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_List.json */ -async function datastoresList() { +async function datastoresList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -35,7 +35,7 @@ async function datastoresList() { console.log(resArray); } -async function main() { +async function main(): Promise { datastoresList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsCreateOrUpdateSample.ts index b4f7464aa948..57861802356a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a GlobalReachConnection * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_CreateOrUpdate.json */ -async function globalReachConnectionsCreateOrUpdate() { +async function globalReachConnectionsCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +38,7 @@ async function globalReachConnectionsCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { globalReachConnectionsCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsDeleteSample.ts index 3f18d54aa0a0..bcece3c924d1 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a GlobalReachConnection * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Delete.json */ -async function globalReachConnectionsDelete() { +async function globalReachConnectionsDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function globalReachConnectionsDelete() { console.log(result); } -async function main() { +async function main(): Promise { globalReachConnectionsDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsGetSample.ts index 65fb4821d0a9..62f5a4d13923 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a GlobalReachConnection * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json */ -async function globalReachConnectionsGet() { +async function globalReachConnectionsGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function globalReachConnectionsGet() { console.log(result); } -async function main() { +async function main(): Promise { globalReachConnectionsGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsListSample.ts index 6ae4950a1793..4169cf1108f1 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/globalReachConnectionsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List GlobalReachConnection resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_List.json */ -async function globalReachConnectionsList() { +async function globalReachConnectionsList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function globalReachConnectionsList() { console.log(resArray); } -async function main() { +async function main(): Promise { globalReachConnectionsList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesCreateOrUpdateSample.ts index 1a327d847df9..7ce5caba15fd 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a HcxEnterpriseSite * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_CreateOrUpdate.json */ -async function hcxEnterpriseSitesCreateOrUpdate() { +async function hcxEnterpriseSitesCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function hcxEnterpriseSitesCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { hcxEnterpriseSitesCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesDeleteSample.ts index efebbdf498dc..833f5b201cb4 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a HcxEnterpriseSite * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Delete.json */ -async function hcxEnterpriseSitesDelete() { +async function hcxEnterpriseSitesDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function hcxEnterpriseSitesDelete() { console.log(result); } -async function main() { +async function main(): Promise { hcxEnterpriseSitesDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesGetSample.ts index cb951cdb3c3a..455402221575 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a HcxEnterpriseSite * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json */ -async function hcxEnterpriseSitesGet() { +async function hcxEnterpriseSitesGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function hcxEnterpriseSitesGet() { console.log(result); } -async function main() { +async function main(): Promise { hcxEnterpriseSitesGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesListSample.ts index b239e3784699..4fe2a1847f69 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/hcxEnterpriseSitesListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List HcxEnterpriseSite resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_List.json */ -async function hcxEnterpriseSitesList() { +async function hcxEnterpriseSitesList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function hcxEnterpriseSitesList() { console.log(resArray); } -async function main() { +async function main(): Promise { hcxEnterpriseSitesList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsCreateOrUpdateSample.ts index 16ae237a5e49..d8bdde93f59a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a IscsiPath * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_CreateOrUpdate.json */ -async function iscsiPathsCreateOrUpdate() { +async function iscsiPathsCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function iscsiPathsCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { iscsiPathsCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsDeleteSample.ts index 97d9c404ae22..e164fdc1553d 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a IscsiPath * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Delete.json */ -async function iscsiPathsDelete() { +async function iscsiPathsDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -30,7 +30,7 @@ async function iscsiPathsDelete() { console.log(result); } -async function main() { +async function main(): Promise { iscsiPathsDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsGetSample.ts index 6bcd5823eb24..0aa2cc6dccfd 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a IscsiPath * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Get.json */ -async function iscsiPathsGet() { +async function iscsiPathsGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -30,7 +30,7 @@ async function iscsiPathsGet() { console.log(result); } -async function main() { +async function main(): Promise { iscsiPathsGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsListByPrivateCloudSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsListByPrivateCloudSample.ts index 05b5943fcd03..3b37949f639a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsListByPrivateCloudSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/iscsiPathsListByPrivateCloudSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List IscsiPath resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_List.json */ -async function iscsiPathsListByPrivateCloud() { +async function iscsiPathsListByPrivateCloud(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function iscsiPathsListByPrivateCloud() { console.log(resArray); } -async function main() { +async function main(): Promise { iscsiPathsListByPrivateCloud(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckQuotaAvailabilitySample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckQuotaAvailabilitySample.ts index deae8ab22044..341e1d9fd9e0 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckQuotaAvailabilitySample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckQuotaAvailabilitySample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Return quota for subscription by region * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckQuotaAvailability.json */ -async function locationsCheckQuotaAvailability() { +async function locationsCheckQuotaAvailability(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -26,7 +26,7 @@ async function locationsCheckQuotaAvailability() { console.log(result); } -async function main() { +async function main(): Promise { locationsCheckQuotaAvailability(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckTrialAvailabilitySample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckTrialAvailabilitySample.ts index a843a4442725..9fa52273e50f 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckTrialAvailabilitySample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/locationsCheckTrialAvailabilitySample.ts @@ -19,7 +19,7 @@ import "dotenv/config"; * @summary Return trial status for subscription by region * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckTrialAvailability.json */ -async function locationsCheckTrialAvailability() { +async function locationsCheckTrialAvailability(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +36,7 @@ async function locationsCheckTrialAvailability() { * @summary Return trial status for subscription by region * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckTrialAvailabilityWithSku.json */ -async function locationsCheckTrialAvailabilityWithSku() { +async function locationsCheckTrialAvailabilityWithSku(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -52,7 +52,7 @@ async function locationsCheckTrialAvailabilityWithSku() { console.log(result); } -async function main() { +async function main(): Promise { locationsCheckTrialAvailability(); locationsCheckTrialAvailabilityWithSku(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/operationsListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/operationsListSample.ts index d5638875c602..74e9a29b7df1 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/operationsListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/operationsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List the operations for the provider * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Operations_List.json */ -async function operationsList() { +async function operationsList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -28,7 +28,7 @@ async function operationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { operationsList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesCreateOrUpdateSample.ts index 16436c6fb345..46a75b6198d2 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a PlacementPolicy * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_CreateOrUpdate.json */ -async function placementPoliciesCreateOrUpdate() { +async function placementPoliciesCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -52,7 +52,7 @@ async function placementPoliciesCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { placementPoliciesCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesDeleteSample.ts index 7f69016f7764..bc27f49a1d10 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a PlacementPolicy * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Delete.json */ -async function placementPoliciesDelete() { +async function placementPoliciesDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function placementPoliciesDelete() { console.log(result); } -async function main() { +async function main(): Promise { placementPoliciesDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesGetSample.ts index 9fb4d40a9837..b17897b7573b 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a PlacementPolicy * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json */ -async function placementPoliciesGet() { +async function placementPoliciesGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function placementPoliciesGet() { console.log(result); } -async function main() { +async function main(): Promise { placementPoliciesGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesListSample.ts index 29bcf3913c35..ff65e75c9f0b 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List PlacementPolicy resources by Cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_List.json */ -async function placementPoliciesList() { +async function placementPoliciesList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -35,7 +35,7 @@ async function placementPoliciesList() { console.log(resArray); } -async function main() { +async function main(): Promise { placementPoliciesList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesUpdateSample.ts index ddbf4b13d24c..b16b8040c33c 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/placementPoliciesUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Update a PlacementPolicy * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Update.json */ -async function placementPoliciesUpdate() { +async function placementPoliciesUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -49,7 +49,7 @@ async function placementPoliciesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { placementPoliciesUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsCreateOrUpdateSample.ts index 9160cc2a8f95..4a5e311613f4 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_CreateOrUpdate.json */ -async function privateCloudsCreateOrUpdate() { +async function privateCloudsCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -45,7 +45,7 @@ async function privateCloudsCreateOrUpdate() { * @summary Create a PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_CreateOrUpdate_Stretched.json */ -async function privateCloudsCreateOrUpdateStretched() { +async function privateCloudsCreateOrUpdateStretched(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -69,7 +69,7 @@ async function privateCloudsCreateOrUpdateStretched() { console.log(result); } -async function main() { +async function main(): Promise { privateCloudsCreateOrUpdate(); privateCloudsCreateOrUpdateStretched(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsDeleteSample.ts index 25dfbdfcf8b1..bc0c6bd68a9f 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Delete.json */ -async function privateCloudsDelete() { +async function privateCloudsDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -30,7 +30,7 @@ async function privateCloudsDelete() { console.log(result); } -async function main() { +async function main(): Promise { privateCloudsDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsGetSample.ts index e1593dc73771..fda04f628891 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json */ -async function privateCloudsGet() { +async function privateCloudsGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +36,7 @@ async function privateCloudsGet() { * @summary Get a PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json */ -async function privateCloudsGetStretched() { +async function privateCloudsGetStretched(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -51,7 +51,7 @@ async function privateCloudsGetStretched() { console.log(result); } -async function main() { +async function main(): Promise { privateCloudsGet(); privateCloudsGetStretched(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListAdminCredentialsSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListAdminCredentialsSample.ts index b46db76acb98..cfb5925bb4e8 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListAdminCredentialsSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListAdminCredentialsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List the admin credentials for the private cloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListAdminCredentials.json */ -async function privateCloudsListAdminCredentials() { +async function privateCloudsListAdminCredentials(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -30,7 +30,7 @@ async function privateCloudsListAdminCredentials() { console.log(result); } -async function main() { +async function main(): Promise { privateCloudsListAdminCredentials(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListInSubscriptionSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListInSubscriptionSample.ts index 5c7aa802cca6..aedf9446792e 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListInSubscriptionSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListInSubscriptionSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List PrivateCloud resources by subscription ID * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListInSubscription.json */ -async function privateCloudsListInSubscription() { +async function privateCloudsListInSubscription(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function privateCloudsListInSubscription() { * @summary List PrivateCloud resources by subscription ID * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListInSubscription_Stretched.json */ -async function privateCloudsListInSubscriptionStretched() { +async function privateCloudsListInSubscriptionStretched(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -47,7 +47,7 @@ async function privateCloudsListInSubscriptionStretched() { console.log(resArray); } -async function main() { +async function main(): Promise { privateCloudsListInSubscription(); privateCloudsListInSubscriptionStretched(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListSample.ts index 508198a78c6a..900f4abf054a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List PrivateCloud resources by resource group * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List.json */ -async function privateCloudsList() { +async function privateCloudsList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -35,7 +35,7 @@ async function privateCloudsList() { * @summary List PrivateCloud resources by resource group * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List_Stretched.json */ -async function privateCloudsListStretched() { +async function privateCloudsListStretched(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -49,7 +49,7 @@ async function privateCloudsListStretched() { console.log(resArray); } -async function main() { +async function main(): Promise { privateCloudsList(); privateCloudsListStretched(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateNsxtPasswordSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateNsxtPasswordSample.ts index ef1de319c175..2520720606e4 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateNsxtPasswordSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateNsxtPasswordSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Rotate the NSX-T Manager password * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_RotateNsxtPassword.json */ -async function privateCloudsRotateNsxtPassword() { +async function privateCloudsRotateNsxtPassword(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -30,7 +30,7 @@ async function privateCloudsRotateNsxtPassword() { console.log(result); } -async function main() { +async function main(): Promise { privateCloudsRotateNsxtPassword(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateVcenterPasswordSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateVcenterPasswordSample.ts index 46d6a2f4aeac..41d6253a5d85 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateVcenterPasswordSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsRotateVcenterPasswordSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Rotate the vCenter password * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_RotateVcenterPassword.json */ -async function privateCloudsRotateVcenterPassword() { +async function privateCloudsRotateVcenterPassword(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -30,7 +30,7 @@ async function privateCloudsRotateVcenterPassword() { console.log(result); } -async function main() { +async function main(): Promise { privateCloudsRotateVcenterPassword(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsUpdateSample.ts index 841e4a2f8e98..61a07c47c465 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/privateCloudsUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Update a PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update.json */ -async function privateCloudsUpdate() { +async function privateCloudsUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -49,7 +49,7 @@ async function privateCloudsUpdate() { * @summary Update a PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update_Stretched.json */ -async function privateCloudsUpdateStretched() { +async function privateCloudsUpdateStretched(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -68,7 +68,7 @@ async function privateCloudsUpdateStretched() { console.log(result); } -async function main() { +async function main(): Promise { privateCloudsUpdate(); privateCloudsUpdateStretched(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsGetSample.ts index 47c6790ba622..f4969f04f883 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a ScriptCmdlet * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json */ -async function scriptCmdletsGet() { +async function scriptCmdletsGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function scriptCmdletsGet() { console.log(result); } -async function main() { +async function main(): Promise { scriptCmdletsGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsListSample.ts index 5d888c2f4665..0d065be35840 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptCmdletsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List ScriptCmdlet resources by ScriptPackage * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_List.json */ -async function scriptCmdletsList() { +async function scriptCmdletsList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -35,7 +35,7 @@ async function scriptCmdletsList() { console.log(resArray); } -async function main() { +async function main(): Promise { scriptCmdletsList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsCreateOrUpdateSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsCreateOrUpdateSample.ts index 42305fb9001c..b72147b8b2c6 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsCreateOrUpdateSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a ScriptExecution * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_CreateOrUpdate.json */ -async function scriptExecutionsCreateOrUpdate() { +async function scriptExecutionsCreateOrUpdate(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -54,7 +54,7 @@ async function scriptExecutionsCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { scriptExecutionsCreateOrUpdate(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsDeleteSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsDeleteSample.ts index 5e14f9400529..9ba03d9df1e8 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsDeleteSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsDeleteSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a ScriptExecution * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Delete.json */ -async function scriptExecutionsDelete() { +async function scriptExecutionsDelete(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function scriptExecutionsDelete() { console.log(result); } -async function main() { +async function main(): Promise { scriptExecutionsDelete(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetExecutionLogsSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetExecutionLogsSample.ts index d2d0b836a9ee..a2437c3eefa0 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetExecutionLogsSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetExecutionLogsSample.ts @@ -19,7 +19,7 @@ import "dotenv/config"; * @summary Return the logs for a script execution resource * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_GetExecutionLogs.json */ -async function scriptExecutionsGetExecutionLogs() { +async function scriptExecutionsGetExecutionLogs(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -46,7 +46,7 @@ async function scriptExecutionsGetExecutionLogs() { console.log(result); } -async function main() { +async function main(): Promise { scriptExecutionsGetExecutionLogs(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetSample.ts index 2329ae13ee81..8ae41fb7b59a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a ScriptExecution * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json */ -async function scriptExecutionsGet() { +async function scriptExecutionsGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function scriptExecutionsGet() { console.log(result); } -async function main() { +async function main(): Promise { scriptExecutionsGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsListSample.ts index 4748aaadb29c..2b8e773b55ea 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptExecutionsListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List ScriptExecution resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_List.json */ -async function scriptExecutionsList() { +async function scriptExecutionsList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function scriptExecutionsList() { console.log(resArray); } -async function main() { +async function main(): Promise { scriptExecutionsList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesGetSample.ts index 924bff4d6a9e..6fbc07491d77 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a ScriptPackage * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json */ -async function scriptPackagesGet() { +async function scriptPackagesGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function scriptPackagesGet() { console.log(result); } -async function main() { +async function main(): Promise { scriptPackagesGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesListSample.ts index e97c5e600cdb..c2658959b02a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/scriptPackagesListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List ScriptPackage resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_List.json */ -async function scriptPackagesList() { +async function scriptPackagesList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function scriptPackagesList() { console.log(resArray); } -async function main() { +async function main(): Promise { scriptPackagesList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesGetSample.ts index af708e221f7c..bf2501bd643c 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a VirtualMachine * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json */ -async function virtualMachinesGet() { +async function virtualMachinesGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function virtualMachinesGet() { console.log(result); } -async function main() { +async function main(): Promise { virtualMachinesGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesListSample.ts index bb54e7ae3d85..7d0fb04cd42b 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List VirtualMachine resources by Cluster * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_List.json */ -async function virtualMachinesList() { +async function virtualMachinesList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -35,7 +35,7 @@ async function virtualMachinesList() { console.log(resArray); } -async function main() { +async function main(): Promise { virtualMachinesList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesRestrictMovementSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesRestrictMovementSample.ts index 8e4ca28c6b41..85103fb170e1 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesRestrictMovementSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/virtualMachinesRestrictMovementSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Enable or disable DRS-driven VM movement restriction * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_RestrictMovement.json */ -async function virtualMachinesRestrictMovement() { +async function virtualMachinesRestrictMovement(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -41,7 +41,7 @@ async function virtualMachinesRestrictMovement() { console.log(result); } -async function main() { +async function main(): Promise { virtualMachinesRestrictMovement(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDhcpSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDhcpSample.ts index ebccd14a8442..204a38dd0508 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDhcpSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDhcpSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a WorkloadNetworkDhcp * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDhcp.json */ -async function workloadNetworksCreateDhcp() { +async function workloadNetworksCreateDhcp(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -42,7 +42,7 @@ async function workloadNetworksCreateDhcp() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksCreateDhcp(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsServiceSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsServiceSample.ts index acd145df2623..4ffcd85b3b2f 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsServiceSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsServiceSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Create a WorkloadNetworkDnsService * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsService.json */ -async function workloadNetworksCreateDnsService() { +async function workloadNetworksCreateDnsService(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -44,7 +44,7 @@ async function workloadNetworksCreateDnsService() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksCreateDnsService(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsZoneSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsZoneSample.ts index d993dfe0df20..1d7f83b46b1f 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsZoneSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateDnsZoneSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a WorkloadNetworkDnsZone * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsZone.json */ -async function workloadNetworksCreateDnsZone() { +async function workloadNetworksCreateDnsZone(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -40,7 +40,7 @@ async function workloadNetworksCreateDnsZone() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksCreateDnsZone(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePortMirroringSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePortMirroringSample.ts index f9fd79bce173..f88dd622d8bd 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePortMirroringSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePortMirroringSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Create a WorkloadNetworkPortMirroring * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePortMirroring.json */ -async function workloadNetworksCreatePortMirroring() { +async function workloadNetworksCreatePortMirroring(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -43,7 +43,7 @@ async function workloadNetworksCreatePortMirroring() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksCreatePortMirroring(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePublicIPSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePublicIPSample.ts index 386b209c6ae7..27d831ed9525 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePublicIPSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreatePublicIPSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Create a WorkloadNetworkPublicIP * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePublicIP.json */ -async function workloadNetworksCreatePublicIP() { +async function workloadNetworksCreatePublicIP(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -40,7 +40,7 @@ async function workloadNetworksCreatePublicIP() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksCreatePublicIP(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateSegmentsSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateSegmentsSample.ts index ad688b27c945..2da632bb68c2 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateSegmentsSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateSegmentsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a WorkloadNetworkSegment * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateSegments.json */ -async function workloadNetworksCreateSegments() { +async function workloadNetworksCreateSegments(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -42,7 +42,7 @@ async function workloadNetworksCreateSegments() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksCreateSegments(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateVMGroupSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateVMGroupSample.ts index fa33f45e7947..faf242a8a0dd 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateVMGroupSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksCreateVMGroupSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Create a WorkloadNetworkVMGroup * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateVMGroup.json */ -async function workloadNetworksCreateVMGroup() { +async function workloadNetworksCreateVMGroup(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +38,7 @@ async function workloadNetworksCreateVMGroup() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksCreateVMGroup(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDhcpSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDhcpSample.ts index 9ac1bd9010cd..848a1f39dc3e 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDhcpSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDhcpSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a WorkloadNetworkDhcp * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDhcp.json */ -async function workloadNetworksDeleteDhcp() { +async function workloadNetworksDeleteDhcp(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksDeleteDhcp() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksDeleteDhcp(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsServiceSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsServiceSample.ts index 69c18a77a59e..030efe16c375 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsServiceSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsServiceSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a WorkloadNetworkDnsService * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsService.json */ -async function workloadNetworksDeleteDnsService() { +async function workloadNetworksDeleteDnsService(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksDeleteDnsService() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksDeleteDnsService(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsZoneSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsZoneSample.ts index 7887102ab928..27e936aa3394 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsZoneSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteDnsZoneSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a WorkloadNetworkDnsZone * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsZone.json */ -async function workloadNetworksDeleteDnsZone() { +async function workloadNetworksDeleteDnsZone(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksDeleteDnsZone() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksDeleteDnsZone(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePortMirroringSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePortMirroringSample.ts index c1a810a108d1..cccb39bd86d7 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePortMirroringSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePortMirroringSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a WorkloadNetworkPortMirroring * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeletePortMirroring.json */ -async function workloadNetworksDeletePortMirroring() { +async function workloadNetworksDeletePortMirroring(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksDeletePortMirroring() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksDeletePortMirroring(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePublicIPSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePublicIPSample.ts index 5526442a39b7..ddd40bf24925 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePublicIPSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeletePublicIPSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a WorkloadNetworkPublicIP * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeletePublicIP.json */ -async function workloadNetworksDeletePublicIP() { +async function workloadNetworksDeletePublicIP(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksDeletePublicIP() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksDeletePublicIP(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteSegmentSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteSegmentSample.ts index c51d61ca7765..cd024e5b89e1 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteSegmentSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteSegmentSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a WorkloadNetworkSegment * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteSegment.json */ -async function workloadNetworksDeleteSegment() { +async function workloadNetworksDeleteSegment(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksDeleteSegment() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksDeleteSegment(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteVMGroupSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteVMGroupSample.ts index e9ae9cd1f065..f8f21ecc931a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteVMGroupSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksDeleteVMGroupSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Delete a WorkloadNetworkVMGroup * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteVMGroup.json */ -async function workloadNetworksDeleteVMGroup() { +async function workloadNetworksDeleteVMGroup(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksDeleteVMGroup() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksDeleteVMGroup(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDhcpSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDhcpSample.ts index f6a2a6b7288b..c136fd1413da 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDhcpSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDhcpSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkDhcp * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json */ -async function workloadNetworksGetDhcp() { +async function workloadNetworksGetDhcp(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetDhcp() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetDhcp(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsServiceSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsServiceSample.ts index bd1eefd1671b..dbd5599a606b 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsServiceSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsServiceSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkDnsService * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService.json */ -async function workloadNetworksGetDnsService() { +async function workloadNetworksGetDnsService(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetDnsService() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetDnsService(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsZoneSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsZoneSample.ts index 53f61bee7306..7e3f376179c7 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsZoneSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetDnsZoneSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkDnsZone * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json */ -async function workloadNetworksGetDnsZone() { +async function workloadNetworksGetDnsZone(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetDnsZone() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetDnsZone(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetGatewaySample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetGatewaySample.ts index f9adabfbcc9f..0aa7633cf3de 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetGatewaySample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetGatewaySample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkGateway * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json */ -async function workloadNetworksGetGateway() { +async function workloadNetworksGetGateway(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetGateway() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetGateway(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPortMirroringSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPortMirroringSample.ts index 655905a5a2bd..b42be4797682 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPortMirroringSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPortMirroringSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkPortMirroring * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring.json */ -async function workloadNetworksGetPortMirroring() { +async function workloadNetworksGetPortMirroring(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetPortMirroring() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetPortMirroring(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPublicIPSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPublicIPSample.ts index 76c712df722a..1691eb7f4c79 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPublicIPSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetPublicIPSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkPublicIP * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json */ -async function workloadNetworksGetPublicIP() { +async function workloadNetworksGetPublicIP(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetPublicIP() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetPublicIP(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSample.ts index 520908b78224..54fda10dbb95 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_Get.json */ -async function workloadNetworksGet() { +async function workloadNetworksGet(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -30,7 +30,7 @@ async function workloadNetworksGet() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGet(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSegmentSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSegmentSample.ts index cd7da0306578..8fc37a73bba9 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSegmentSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetSegmentSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkSegment * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json */ -async function workloadNetworksGetSegment() { +async function workloadNetworksGetSegment(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetSegment() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetSegment(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVMGroupSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVMGroupSample.ts index fee98a55082a..e61e3c881ec9 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVMGroupSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVMGroupSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkVMGroup * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json */ -async function workloadNetworksGetVMGroup() { +async function workloadNetworksGetVMGroup(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetVMGroup() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetVMGroup(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVirtualMachineSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVirtualMachineSample.ts index e17d956364c6..5b83726ce44e 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVirtualMachineSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksGetVirtualMachineSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Get a WorkloadNetworkVirtualMachine * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine.json */ -async function workloadNetworksGetVirtualMachine() { +async function workloadNetworksGetVirtualMachine(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -32,7 +32,7 @@ async function workloadNetworksGetVirtualMachine() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksGetVirtualMachine(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDhcpSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDhcpSample.ts index ec80d4b404bd..99def4f23fc6 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDhcpSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDhcpSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkDhcp resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDhcp.json */ -async function workloadNetworksListDhcp() { +async function workloadNetworksListDhcp(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListDhcp() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListDhcp(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsServicesSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsServicesSample.ts index 07543c1a5fd9..c79bb0c7e17a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsServicesSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsServicesSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkDnsService resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsServices.json */ -async function workloadNetworksListDnsServices() { +async function workloadNetworksListDnsServices(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListDnsServices() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListDnsServices(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsZonesSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsZonesSample.ts index 42f8952bae70..129b952604e6 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsZonesSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListDnsZonesSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkDnsZone resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsZones.json */ -async function workloadNetworksListDnsZones() { +async function workloadNetworksListDnsZones(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListDnsZones() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListDnsZones(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListGatewaysSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListGatewaysSample.ts index 9b14c85b7ad3..02166de6832c 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListGatewaysSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListGatewaysSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkGateway resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListGateways.json */ -async function workloadNetworksListGateways() { +async function workloadNetworksListGateways(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListGateways() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListGateways(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPortMirroringSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPortMirroringSample.ts index 6b94d52f6182..3e72b58f9c48 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPortMirroringSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPortMirroringSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkPortMirroring resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPortMirroring.json */ -async function workloadNetworksListPortMirroring() { +async function workloadNetworksListPortMirroring(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListPortMirroring() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListPortMirroring(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPublicIPsSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPublicIPsSample.ts index 1d37869405e9..1e9f3ee399e1 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPublicIPsSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListPublicIPsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkPublicIP resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPublicIPs.json */ -async function workloadNetworksListPublicIPs() { +async function workloadNetworksListPublicIPs(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListPublicIPs() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListPublicIPs(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSample.ts index 2ddbc83c790e..7d2c9f4ed9b6 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetwork resources by PrivateCloud * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_List.json */ -async function workloadNetworksList() { +async function workloadNetworksList(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksList() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksList(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSegmentsSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSegmentsSample.ts index 63fa4c8b2196..ffb57e9de621 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSegmentsSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListSegmentsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkSegment resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListSegments.json */ -async function workloadNetworksListSegments() { +async function workloadNetworksListSegments(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListSegments() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListSegments(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVMGroupsSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVMGroupsSample.ts index 379e6c46937b..b4e2abaaaf01 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVMGroupsSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVMGroupsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkVMGroup resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListVMGroups.json */ -async function workloadNetworksListVMGroups() { +async function workloadNetworksListVMGroups(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListVMGroups() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListVMGroups(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVirtualMachinesSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVirtualMachinesSample.ts index 40a03cc8af53..3020090a25ff 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVirtualMachinesSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksListVirtualMachinesSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary List WorkloadNetworkVirtualMachine resources by WorkloadNetwork * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListVirtualMachines.json */ -async function workloadNetworksListVirtualMachines() { +async function workloadNetworksListVirtualMachines(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +33,7 @@ async function workloadNetworksListVirtualMachines() { console.log(resArray); } -async function main() { +async function main(): Promise { workloadNetworksListVirtualMachines(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDhcpSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDhcpSample.ts index b489f3f9f44a..44d475a83e02 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDhcpSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDhcpSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Update a WorkloadNetworkDhcp * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDhcp.json */ -async function workloadNetworksUpdateDhcp() { +async function workloadNetworksUpdateDhcp(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -41,7 +41,7 @@ async function workloadNetworksUpdateDhcp() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksUpdateDhcp(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsServiceSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsServiceSample.ts index c4a7b4711afe..79bfb59cb56a 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsServiceSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsServiceSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Update a WorkloadNetworkDnsService * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsService.json */ -async function workloadNetworksUpdateDnsService() { +async function workloadNetworksUpdateDnsService(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -44,7 +44,7 @@ async function workloadNetworksUpdateDnsService() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksUpdateDnsService(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsZoneSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsZoneSample.ts index 04800e3afa58..e4cf964f8746 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsZoneSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateDnsZoneSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Update a WorkloadNetworkDnsZone * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsZone.json */ -async function workloadNetworksUpdateDnsZone() { +async function workloadNetworksUpdateDnsZone(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -40,7 +40,7 @@ async function workloadNetworksUpdateDnsZone() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksUpdateDnsZone(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdatePortMirroringSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdatePortMirroringSample.ts index 2b57fa0cb52e..5c9d0dc22b51 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdatePortMirroringSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdatePortMirroringSample.ts @@ -18,7 +18,7 @@ import "dotenv/config"; * @summary Update a WorkloadNetworkPortMirroring * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdatePortMirroring.json */ -async function workloadNetworksUpdatePortMirroring() { +async function workloadNetworksUpdatePortMirroring(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -42,7 +42,7 @@ async function workloadNetworksUpdatePortMirroring() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksUpdatePortMirroring(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateSegmentsSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateSegmentsSample.ts index 5d11c547a02f..cdce2379cf4e 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateSegmentsSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateSegmentsSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Update a WorkloadNetworkSegment * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateSegments.json */ -async function workloadNetworksUpdateSegments() { +async function workloadNetworksUpdateSegments(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -41,7 +41,7 @@ async function workloadNetworksUpdateSegments() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksUpdateSegments(); } diff --git a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateVMGroupSample.ts b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateVMGroupSample.ts index 5380103c36f6..f30871cfbf16 100644 --- a/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateVMGroupSample.ts +++ b/sdk/avs/arm-avs/samples/v6/typescript/src/workloadNetworksUpdateVMGroupSample.ts @@ -15,7 +15,7 @@ import "dotenv/config"; * @summary Update a WorkloadNetworkVMGroup * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateVMGroup.json */ -async function workloadNetworksUpdateVMGroup() { +async function workloadNetworksUpdateVMGroup(): Promise { const subscriptionId = process.env["AVS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +37,7 @@ async function workloadNetworksUpdateVMGroup() { console.log(result); } -async function main() { +async function main(): Promise { workloadNetworksUpdateVMGroup(); } diff --git a/sdk/avs/arm-avs/src/azureVMwareSolutionAPI.ts b/sdk/avs/arm-avs/src/azureVMwareSolutionAPI.ts index abc6379bd498..cb58b56c1af1 100644 --- a/sdk/avs/arm-avs/src/azureVMwareSolutionAPI.ts +++ b/sdk/avs/arm-avs/src/azureVMwareSolutionAPI.ts @@ -8,26 +8,26 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { - PipelineRequest, - PipelineResponse, - SendRequest, -} from "@azure/core-rest-pipeline"; +import { PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, LocationsImpl, PrivateCloudsImpl, + SkusImpl, AddonsImpl, AuthorizationsImpl, CloudLinksImpl, ClustersImpl, DatastoresImpl, + HostsImpl, PlacementPoliciesImpl, VirtualMachinesImpl, GlobalReachConnectionsImpl, HcxEnterpriseSitesImpl, IscsiPathsImpl, + ProvisionedNetworksImpl, + PureStoragePoliciesImpl, ScriptExecutionsImpl, ScriptPackagesImpl, ScriptCmdletsImpl, @@ -37,16 +37,20 @@ import { Operations, Locations, PrivateClouds, + Skus, Addons, Authorizations, CloudLinks, Clusters, Datastores, + Hosts, PlacementPolicies, VirtualMachines, GlobalReachConnections, HcxEnterpriseSites, IscsiPaths, + ProvisionedNetworks, + PureStoragePolicies, ScriptExecutions, ScriptPackages, ScriptCmdlets, @@ -86,7 +90,7 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-avs/6.0.1`; + const packageDetails = `azsdk-js-arm-avs/6.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -98,8 +102,7 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix, }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com", + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); @@ -109,8 +112,7 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName, + pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -126,11 +128,9 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credentials, scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, + optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge, + authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge, }, }), ); @@ -140,20 +140,24 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-09-01"; + this.apiVersion = options.apiVersion || "2024-09-01"; this.operations = new OperationsImpl(this); this.locations = new LocationsImpl(this); this.privateClouds = new PrivateCloudsImpl(this); + this.skus = new SkusImpl(this); this.addons = new AddonsImpl(this); this.authorizations = new AuthorizationsImpl(this); this.cloudLinks = new CloudLinksImpl(this); this.clusters = new ClustersImpl(this); this.datastores = new DatastoresImpl(this); + this.hosts = new HostsImpl(this); this.placementPolicies = new PlacementPoliciesImpl(this); this.virtualMachines = new VirtualMachinesImpl(this); this.globalReachConnections = new GlobalReachConnectionsImpl(this); this.hcxEnterpriseSites = new HcxEnterpriseSitesImpl(this); this.iscsiPaths = new IscsiPathsImpl(this); + this.provisionedNetworks = new ProvisionedNetworksImpl(this); + this.pureStoragePolicies = new PureStoragePoliciesImpl(this); this.scriptExecutions = new ScriptExecutionsImpl(this); this.scriptPackages = new ScriptPackagesImpl(this); this.scriptCmdlets = new ScriptCmdletsImpl(this); @@ -168,10 +172,7 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { } const apiVersionPolicy = { name: "CustomApiVersionPolicy", - async sendRequest( - request: PipelineRequest, - next: SendRequest, - ): Promise { + async sendRequest(request: PipelineRequest, next: SendRequest): Promise { const param = request.url.split("?"); if (param.length > 1) { const newParams = param[1].split("&").map((item) => { @@ -192,16 +193,20 @@ export class AzureVMwareSolutionAPI extends coreClient.ServiceClient { operations: Operations; locations: Locations; privateClouds: PrivateClouds; + skus: Skus; addons: Addons; authorizations: Authorizations; cloudLinks: CloudLinks; clusters: Clusters; datastores: Datastores; + hosts: Hosts; placementPolicies: PlacementPolicies; virtualMachines: VirtualMachines; globalReachConnections: GlobalReachConnections; hcxEnterpriseSites: HcxEnterpriseSites; iscsiPaths: IscsiPaths; + provisionedNetworks: ProvisionedNetworks; + pureStoragePolicies: PureStoragePolicies; scriptExecutions: ScriptExecutions; scriptPackages: ScriptPackages; scriptCmdlets: ScriptCmdlets; diff --git a/sdk/avs/arm-avs/src/lroImpl.ts b/sdk/avs/arm-avs/src/lroImpl.ts index d8bc98987053..1b3a95e6c540 100644 --- a/sdk/avs/arm-avs/src/lroImpl.ts +++ b/sdk/avs/arm-avs/src/lroImpl.ts @@ -5,6 +5,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ + import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; @@ -22,10 +23,7 @@ export function createLroSpec(inputs: { requestMethod: spec.httpMethod, requestPath: spec.path!, sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { + sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, diff --git a/sdk/avs/arm-avs/src/models/index.ts b/sdk/avs/arm-avs/src/models/index.ts index ace57a27fd86..fd4eecd088bc 100644 --- a/sdk/avs/arm-avs/src/models/index.ts +++ b/sdk/avs/arm-avs/src/models/index.ts @@ -14,6 +14,10 @@ export type AddonPropertiesUnion = | AddonHcxProperties | AddonSrmProperties | AddonVrProperties; +export type HostPropertiesUnion = + | HostProperties + | GeneralHostProperties + | SpecializedHostProperties; export type PlacementPolicyPropertiesUnion = | PlacementPolicyProperties | VmHostPlacementPolicyProperties @@ -217,7 +221,7 @@ export interface IdentitySource { name?: string; /** The domain's NetBIOS name */ alias?: string; - /** The domain's dns name */ + /** The domain's DNS name */ domain?: string; /** The base distinguished name for users */ baseUserDN?: string; @@ -399,6 +403,82 @@ export interface SystemData { lastModifiedAt?: Date; } +/** Paged collection of ResourceSku items */ +export interface PagedResourceSku { + /** The ResourceSku items on this page */ + value: ResourceSku[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** A SKU for a resource. */ +export interface ResourceSku { + /** The type of resource the SKU applies to. */ + resourceType: ResourceSkuResourceType; + /** The name of the SKU. */ + name: string; + /** The tier of virtual machines in a scale set */ + tier?: string; + /** The size of the SKU. */ + size?: string; + /** The family of the SKU. */ + family?: string; + /** The set of locations that the SKU is available. */ + locations: string[]; + /** A list of locations and availability zones in those locations where the SKU is available */ + locationInfo: ResourceSkuLocationInfo[]; + /** Name value pairs to describe the capability. */ + capabilities?: ResourceSkuCapabilities[]; + /** The restrictions of the SKU. */ + restrictions: ResourceSkuRestrictions[]; +} + +/** Describes an available Compute SKU Location Information. */ +export interface ResourceSkuLocationInfo { + /** Location of the SKU */ + location: string; + /** List of availability zones where the SKU is supported. */ + zones: string[]; + /** Gets details of capabilities available to a SKU in specific zones. */ + zoneDetails: ResourceSkuZoneDetails[]; +} + +/** Describes The zonal capabilities of a SKU. */ +export interface ResourceSkuZoneDetails { + /** Gets the set of zones that the SKU is available in with the specified capabilities. */ + name: string[]; + /** A list of capabilities that are available for the SKU in the specified list of zones. */ + capabilities: ResourceSkuCapabilities[]; +} + +/** Describes The SKU capabilities object. */ +export interface ResourceSkuCapabilities { + /** The name of the SKU capability. */ + name: string; + /** The value of the SKU capability. */ + value: string; +} + +/** The restrictions of the SKU. */ +export interface ResourceSkuRestrictions { + /** the type of restrictions. */ + type?: ResourceSkuRestrictionsType; + /** The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. */ + values: string[]; + /** The information about the restriction where the SKU cannot be used. */ + restrictionInfo: ResourceSkuRestrictionInfo; + /** the reason for restriction. */ + reasonCode?: ResourceSkuRestrictionsReasonCode; +} + +/** Describes an available Compute SKU Restriction Information. */ +export interface ResourceSkuRestrictionInfo { + /** Locations where the SKU is restricted */ + locations?: string[]; + /** List of availability zones where the SKU is restricted. */ + zones?: string[]; +} + /** An update to a private cloud resource */ export interface PrivateCloudUpdate { /** Resource tags. */ @@ -519,6 +599,49 @@ export interface ElasticSanVolume { targetId: string; } +/** A Pure Storage volume from PureStorage.Block provider */ +export interface PureStorageVolume { + /** Azure resource ID of the Pure Storage Pool */ + storagePoolId: string; + /** Volume size to be used to create a Virtual Volumes (vVols) datastore */ + sizeGb: number; +} + +/** The response of a Host list operation. */ +export interface HostListResult { + /** The Host items on this page */ + value: Host[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** The properties of a host. */ +export interface HostProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "General" | "Specialized"; + /** + * The state of the host provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: HostProvisioningState; + /** Display name of the host in VMware vCenter. */ + displayName?: string; + /** + * vCenter managed object reference ID of the host. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly moRefId?: string; + /** + * Fully qualified domain name of the host. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fqdn?: string; + /** If provided, the host is in maintenance. The value is the reason for maintenance. */ + maintenance?: HostMaintenance; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly faultDomain?: string; +} + /** List of all zones and associated hosts for a cluster */ export interface ClusterZoneList { /** Zone and associated hosts info */ @@ -640,6 +763,22 @@ export interface AdminCredentials { readonly vcenterPassword?: string; } +/** The response of a ProvisionedNetwork list operation. */ +export interface ProvisionedNetworkListResult { + /** The ProvisionedNetwork items on this page */ + value: ProvisionedNetwork[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** The response of a PureStoragePolicy list operation. */ +export interface PureStoragePolicyListResult { + /** The PureStoragePolicy items on this page */ + value: PureStoragePolicy[]; + /** The link to the next page of items */ + nextLink?: string; +} + /** The response of a ScriptExecution list operation. */ export interface ScriptExecutionsList { /** The ScriptExecution items on this page */ @@ -842,6 +981,10 @@ export interface AddonHcxProperties extends AddonProperties { addonType: "HCX"; /** The HCX offer, example VMware MaaS Cloud Provider (Enterprise) */ offer: string; + /** HCX management network. */ + managementNetwork?: string; + /** HCX uplink network */ + uplinkNetwork?: string; } /** The properties of a Site Recovery Manager (SRM) addon */ @@ -860,9 +1003,20 @@ export interface AddonVrProperties extends AddonProperties { vrsCount: number; } +/** The properties of a general host. */ +export interface GeneralHostProperties extends HostProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "General"; +} + +/** The properties of a specialized host. */ +export interface SpecializedHostProperties extends HostProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Specialized"; +} + /** VM-Host placement policy properties */ -export interface VmHostPlacementPolicyProperties - extends PlacementPolicyProperties { +export interface VmHostPlacementPolicyProperties extends PlacementPolicyProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "VmHost"; /** Virtual machine members list */ @@ -888,8 +1042,7 @@ export interface VmPlacementPolicyProperties extends PlacementPolicyProperties { } /** a powershell credential object */ -export interface PSCredentialExecutionParameter - extends ScriptExecutionParameter { +export interface PSCredentialExecutionParameter extends ScriptExecutionParameter { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Credential"; /** username for login */ @@ -902,8 +1055,7 @@ export interface PSCredentialExecutionParameter } /** a plain text value execution parameter */ -export interface ScriptSecureStringExecutionParameter - extends ScriptExecutionParameter { +export interface ScriptSecureStringExecutionParameter extends ScriptExecutionParameter { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "SecureValue"; /** @@ -914,8 +1066,7 @@ export interface ScriptSecureStringExecutionParameter } /** a plain text value execution parameter */ -export interface ScriptStringExecutionParameter - extends ScriptExecutionParameter { +export interface ScriptStringExecutionParameter extends ScriptExecutionParameter { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Value"; /** The value for the passed parameter */ @@ -946,6 +1097,8 @@ export interface PrivateCloud extends TrackedResource { sku: Sku; /** The managed service identities assigned to this resource. */ identity?: PrivateCloudIdentity; + /** The availability zones. */ + zones?: string[]; /** The default cluster used for management */ managementCluster?: ManagementCluster; /** Connectivity to internet is enabled or disabled */ @@ -1116,6 +1269,8 @@ export interface Datastore extends ProxyResource { diskPoolVolume?: DiskPoolVolume; /** An Elastic SAN volume */ elasticSanVolume?: ElasticSanVolume; + /** A Pure Storage volume */ + pureStorageVolume?: PureStorageVolume; /** * The operational status of the datastore * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1123,6 +1278,37 @@ export interface Datastore extends ProxyResource { readonly status?: DatastoreStatus; } +/** A host resource */ +export interface Host extends ProxyResource { + /** The availability zones. */ + zones?: string[]; + /** The SKU (Stock Keeping Unit) assigned to this resource. */ + sku?: Sku; + /** The kind of host */ + kind?: HostKind; + /** + * The state of the host provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: HostProvisioningState; + /** Display name of the host in VMware vCenter. */ + displayName?: string; + /** + * vCenter managed object reference ID of the host. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly moRefId?: string; + /** + * Fully qualified domain name of the host. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fqdn?: string; + /** If provided, the host is in maintenance. The value is the reason for maintenance. */ + maintenance?: HostMaintenance; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly faultDomain?: string; +} + /** A vSphere Distributed Resource Scheduler (DRS) placement policy */ export interface PlacementPolicy extends ProxyResource { /** The resource-specific properties for this resource. */ @@ -1142,7 +1328,7 @@ export interface VirtualMachine extends ProxyResource { */ readonly displayName?: string; /** - * Virtual machine managed object reference id + * vCenter managed object reference ID of the virtual machine * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly moRefId?: string; @@ -1223,6 +1409,38 @@ export interface IscsiPath extends ProxyResource { networkBlock?: string; } +/** A provisioned network resource */ +export interface ProvisionedNetwork extends ProxyResource { + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisionedNetworkProvisioningState; + /** + * The address prefixes of the provisioned network in CIDR notation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly addressPrefix?: string; + /** + * The type of network provisioned. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkType?: ProvisionedNetworkTypes; +} + +/** An instance describing a Pure Storage Policy Based Management policy */ +export interface PureStoragePolicy extends ProxyResource { + /** Definition of a Pure Storage Policy Based Management policy */ + storagePolicyDefinition?: string; + /** Azure resource ID of the Pure Storage Pool associated with the storage policy */ + storagePoolId?: string; + /** + * The state of the Pure Storage Policy Based Management policy provisioning + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PureStoragePolicyProvisioningState; +} + /** An instance of a script executed by a user - custom or AVS */ export interface ScriptExecution extends ProxyResource { /** A reference to the script cmdlet resource if user is running a AVS script */ @@ -1699,6 +1917,22 @@ export interface IscsiPathsDeleteHeaders { retryAfter?: number; } +/** Defines headers for PureStoragePolicies_createOrUpdate operation. */ +export interface PureStoragePoliciesCreateOrUpdateHeaders { + /** A link to the status monitor */ + azureAsyncOperation?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; +} + +/** Defines headers for PureStoragePolicies_delete operation. */ +export interface PureStoragePoliciesDeleteHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; +} + /** Defines headers for ScriptExecutions_createOrUpdate operation. */ export interface ScriptExecutionsCreateOrUpdateHeaders { /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ @@ -2186,6 +2420,60 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link ResourceSkuResourceType} that the service accepts. */ +export enum KnownResourceSkuResourceType { + /** The SKU is for a private cloud. */ + PrivateClouds = "privateClouds", + /** The SKU is for a private cloud cluster. */ + PrivateCloudsClusters = "privateClouds/clusters", +} + +/** + * Defines values for ResourceSkuResourceType. \ + * {@link KnownResourceSkuResourceType} can be used interchangeably with ResourceSkuResourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **privateClouds**: The SKU is for a private cloud. \ + * **privateClouds\/clusters**: The SKU is for a private cloud cluster. + */ +export type ResourceSkuResourceType = string; + +/** Known values of {@link ResourceSkuRestrictionsType} that the service accepts. */ +export enum KnownResourceSkuRestrictionsType { + /** SKU restricted by location. */ + Location = "Location", + /** SKU restricted by availability zone. */ + Zone = "Zone", +} + +/** + * Defines values for ResourceSkuRestrictionsType. \ + * {@link KnownResourceSkuRestrictionsType} can be used interchangeably with ResourceSkuRestrictionsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Location**: SKU restricted by location. \ + * **Zone**: SKU restricted by availability zone. + */ +export type ResourceSkuRestrictionsType = string; + +/** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */ +export enum KnownResourceSkuRestrictionsReasonCode { + /** The restriction is due to exceeding a quota limitation. */ + QuotaId = "QuotaId", + /** The restriction is not available for this subscription. */ + NotAvailableForSubscription = "NotAvailableForSubscription", +} + +/** + * Defines values for ResourceSkuRestrictionsReasonCode. \ + * {@link KnownResourceSkuRestrictionsReasonCode} can be used interchangeably with ResourceSkuRestrictionsReasonCode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **QuotaId**: The restriction is due to exceeding a quota limitation. \ + * **NotAvailableForSubscription**: The restriction is not available for this subscription. + */ +export type ResourceSkuRestrictionsReasonCode = string; + /** Known values of {@link AddonType} that the service accepts. */ export enum KnownAddonType { /** SRM */ @@ -2402,6 +2690,63 @@ export enum KnownDatastoreStatus { */ export type DatastoreStatus = string; +/** Known values of {@link HostKind} that the service accepts. */ +export enum KnownHostKind { + /** General */ + General = "General", + /** Specialized */ + Specialized = "Specialized", +} + +/** + * Defines values for HostKind. \ + * {@link KnownHostKind} can be used interchangeably with HostKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **General** \ + * **Specialized** + */ +export type HostKind = string; + +/** Known values of {@link HostProvisioningState} that the service accepts. */ +export enum KnownHostProvisioningState { + /** Resource has been created. */ + Succeeded = "Succeeded", + /** Resource creation failed. */ + Failed = "Failed", + /** Resource creation was canceled. */ + Canceled = "Canceled", +} + +/** + * Defines values for HostProvisioningState. \ + * {@link KnownHostProvisioningState} can be used interchangeably with HostProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. + */ +export type HostProvisioningState = string; + +/** Known values of {@link HostMaintenance} that the service accepts. */ +export enum KnownHostMaintenance { + /** The host is a replacement host. */ + Replacement = "Replacement", + /** The host is for an upgrade, such as an upgrade to ESXi, NSX-T, or other component. */ + Upgrade = "Upgrade", +} + +/** + * Defines values for HostMaintenance. \ + * {@link KnownHostMaintenance} can be used interchangeably with HostMaintenance, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Replacement**: The host is a replacement host. \ + * **Upgrade**: The host is for an upgrade, such as an upgrade to ESXi, NSX-T, or other component. + */ +export type HostMaintenance = string; + /** Known values of {@link PlacementPolicyType} that the service accepts. */ export enum KnownPlacementPolicyType { /** VmVm */ @@ -2666,6 +3011,87 @@ export enum KnownIscsiPathProvisioningState { */ export type IscsiPathProvisioningState = string; +/** Known values of {@link ProvisionedNetworkProvisioningState} that the service accepts. */ +export enum KnownProvisionedNetworkProvisioningState { + /** Resource has been created. */ + Succeeded = "Succeeded", + /** Resource creation failed. */ + Failed = "Failed", + /** Resource creation was canceled. */ + Canceled = "Canceled", +} + +/** + * Defines values for ProvisionedNetworkProvisioningState. \ + * {@link KnownProvisionedNetworkProvisioningState} can be used interchangeably with ProvisionedNetworkProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. + */ +export type ProvisionedNetworkProvisioningState = string; + +/** Known values of {@link ProvisionedNetworkTypes} that the service accepts. */ +export enum KnownProvisionedNetworkTypes { + /** network for ESX management */ + EsxManagement = "esxManagement", + /** network for ESX replication */ + EsxReplication = "esxReplication", + /** network for HCX management */ + HcxManagement = "hcxManagement", + /** network for HCX uplink */ + HcxUplink = "hcxUplink", + /** network for vCenter management */ + VcenterManagement = "vcenterManagement", + /** network for vmotion */ + Vmotion = "vmotion", + /** network for vsan */ + Vsan = "vsan", +} + +/** + * Defines values for ProvisionedNetworkTypes. \ + * {@link KnownProvisionedNetworkTypes} can be used interchangeably with ProvisionedNetworkTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **esxManagement**: network for ESX management \ + * **esxReplication**: network for ESX replication \ + * **hcxManagement**: network for HCX management \ + * **hcxUplink**: network for HCX uplink \ + * **vcenterManagement**: network for vCenter management \ + * **vmotion**: network for vmotion \ + * **vsan**: network for vsan + */ +export type ProvisionedNetworkTypes = string; + +/** Known values of {@link PureStoragePolicyProvisioningState} that the service accepts. */ +export enum KnownPureStoragePolicyProvisioningState { + /** Resource has been created. */ + Succeeded = "Succeeded", + /** Resource creation failed. */ + Failed = "Failed", + /** Resource creation was canceled. */ + Canceled = "Canceled", + /** is deleting */ + Deleting = "Deleting", + /** is updating */ + Updating = "Updating", +} + +/** + * Defines values for PureStoragePolicyProvisioningState. \ + * {@link KnownPureStoragePolicyProvisioningState} can be used interchangeably with PureStoragePolicyProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. \ + * **Deleting**: is deleting \ + * **Updating**: is updating + */ +export type PureStoragePolicyProvisioningState = string; + /** Known values of {@link ScriptExecutionParameterType} that the service accepts. */ export enum KnownScriptExecutionParameterType { /** Value */ @@ -3293,15 +3719,13 @@ export type AffinityType = string; export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; /** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type OperationsListNextResponse = OperationListResult; @@ -3314,8 +3738,7 @@ export interface LocationsCheckQuotaAvailabilityOptionalParams export type LocationsCheckQuotaAvailabilityResponse = Quota; /** Optional parameters. */ -export interface LocationsCheckTrialAvailabilityOptionalParams - extends coreClient.OperationOptions { +export interface LocationsCheckTrialAvailabilityOptionalParams extends coreClient.OperationOptions { /** Optionally, check for a specific SKU */ sku?: Sku; } @@ -3331,22 +3754,19 @@ export interface PrivateCloudsListInSubscriptionOptionalParams export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList; /** Optional parameters. */ -export interface PrivateCloudsListOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateCloudsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type PrivateCloudsListResponse = PrivateCloudList; /** Optional parameters. */ -export interface PrivateCloudsGetOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateCloudsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type PrivateCloudsGetResponse = PrivateCloud; /** Optional parameters. */ -export interface PrivateCloudsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface PrivateCloudsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3357,8 +3777,7 @@ export interface PrivateCloudsCreateOrUpdateOptionalParams export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud; /** Optional parameters. */ -export interface PrivateCloudsUpdateOptionalParams - extends coreClient.OperationOptions { +export interface PrivateCloudsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3369,8 +3788,7 @@ export interface PrivateCloudsUpdateOptionalParams export type PrivateCloudsUpdateResponse = PrivateCloud; /** Optional parameters. */ -export interface PrivateCloudsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface PrivateCloudsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3385,8 +3803,7 @@ export interface PrivateCloudsListAdminCredentialsOptionalParams export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials; /** Optional parameters. */ -export interface PrivateCloudsRotateNsxtPasswordOptionalParams - extends coreClient.OperationOptions { +export interface PrivateCloudsRotateNsxtPasswordOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3394,8 +3811,7 @@ export interface PrivateCloudsRotateNsxtPasswordOptionalParams } /** Contains response data for the rotateNsxtPassword operation. */ -export type PrivateCloudsRotateNsxtPasswordResponse = - PrivateCloudsRotateNsxtPasswordHeaders; +export type PrivateCloudsRotateNsxtPasswordResponse = PrivateCloudsRotateNsxtPasswordHeaders; /** Optional parameters. */ export interface PrivateCloudsRotateVcenterPasswordOptionalParams @@ -3407,8 +3823,7 @@ export interface PrivateCloudsRotateVcenterPasswordOptionalParams } /** Contains response data for the rotateVcenterPassword operation. */ -export type PrivateCloudsRotateVcenterPasswordResponse = - PrivateCloudsRotateVcenterPasswordHeaders; +export type PrivateCloudsRotateVcenterPasswordResponse = PrivateCloudsRotateVcenterPasswordHeaders; /** Optional parameters. */ export interface PrivateCloudsListInSubscriptionNextOptionalParams @@ -3418,12 +3833,23 @@ export interface PrivateCloudsListInSubscriptionNextOptionalParams export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList; /** Optional parameters. */ -export interface PrivateCloudsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateCloudsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type PrivateCloudsListNextResponse = PrivateCloudList; +/** Optional parameters. */ +export interface SkusListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SkusListResponse = PagedResourceSku; + +/** Optional parameters. */ +export interface SkusListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SkusListNextResponse = PagedResourceSku; + /** Optional parameters. */ export interface AddonsListOptionalParams extends coreClient.OperationOptions {} @@ -3437,8 +3863,7 @@ export interface AddonsGetOptionalParams extends coreClient.OperationOptions {} export type AddonsGetResponse = Addon; /** Optional parameters. */ -export interface AddonsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface AddonsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3449,8 +3874,7 @@ export interface AddonsCreateOrUpdateOptionalParams export type AddonsCreateOrUpdateResponse = Addon; /** Optional parameters. */ -export interface AddonsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface AddonsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3458,29 +3882,25 @@ export interface AddonsDeleteOptionalParams } /** Optional parameters. */ -export interface AddonsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AddonsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AddonsListNextResponse = AddonList; /** Optional parameters. */ -export interface AuthorizationsListOptionalParams - extends coreClient.OperationOptions {} +export interface AuthorizationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AuthorizationsListResponse = ExpressRouteAuthorizationList; /** Optional parameters. */ -export interface AuthorizationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AuthorizationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AuthorizationsGetResponse = ExpressRouteAuthorization; /** Optional parameters. */ -export interface AuthorizationsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface AuthorizationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3491,8 +3911,7 @@ export interface AuthorizationsCreateOrUpdateOptionalParams export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization; /** Optional parameters. */ -export interface AuthorizationsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface AuthorizationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3500,29 +3919,25 @@ export interface AuthorizationsDeleteOptionalParams } /** Optional parameters. */ -export interface AuthorizationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AuthorizationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList; /** Optional parameters. */ -export interface CloudLinksListOptionalParams - extends coreClient.OperationOptions {} +export interface CloudLinksListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CloudLinksListResponse = CloudLinkList; /** Optional parameters. */ -export interface CloudLinksGetOptionalParams - extends coreClient.OperationOptions {} +export interface CloudLinksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CloudLinksGetResponse = CloudLink; /** Optional parameters. */ -export interface CloudLinksCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface CloudLinksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3533,8 +3948,7 @@ export interface CloudLinksCreateOrUpdateOptionalParams export type CloudLinksCreateOrUpdateResponse = CloudLink; /** Optional parameters. */ -export interface CloudLinksDeleteOptionalParams - extends coreClient.OperationOptions { +export interface CloudLinksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3542,29 +3956,25 @@ export interface CloudLinksDeleteOptionalParams } /** Optional parameters. */ -export interface CloudLinksListNextOptionalParams - extends coreClient.OperationOptions {} +export interface CloudLinksListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CloudLinksListNextResponse = CloudLinkList; /** Optional parameters. */ -export interface ClustersListOptionalParams - extends coreClient.OperationOptions {} +export interface ClustersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ClustersListResponse = ClusterList; /** Optional parameters. */ -export interface ClustersGetOptionalParams - extends coreClient.OperationOptions {} +export interface ClustersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ClustersGetResponse = Cluster; /** Optional parameters. */ -export interface ClustersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface ClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3575,8 +3985,7 @@ export interface ClustersCreateOrUpdateOptionalParams export type ClustersCreateOrUpdateResponse = Cluster; /** Optional parameters. */ -export interface ClustersUpdateOptionalParams - extends coreClient.OperationOptions { +export interface ClustersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3587,8 +3996,7 @@ export interface ClustersUpdateOptionalParams export type ClustersUpdateResponse = Cluster; /** Optional parameters. */ -export interface ClustersDeleteOptionalParams - extends coreClient.OperationOptions { +export interface ClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3596,36 +4004,31 @@ export interface ClustersDeleteOptionalParams } /** Optional parameters. */ -export interface ClustersListZonesOptionalParams - extends coreClient.OperationOptions {} +export interface ClustersListZonesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listZones operation. */ export type ClustersListZonesResponse = ClusterZoneList; /** Optional parameters. */ -export interface ClustersListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ClustersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ClustersListNextResponse = ClusterList; /** Optional parameters. */ -export interface DatastoresListOptionalParams - extends coreClient.OperationOptions {} +export interface DatastoresListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type DatastoresListResponse = DatastoreList; /** Optional parameters. */ -export interface DatastoresGetOptionalParams - extends coreClient.OperationOptions {} +export interface DatastoresGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DatastoresGetResponse = Datastore; /** Optional parameters. */ -export interface DatastoresCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface DatastoresCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3636,8 +4039,7 @@ export interface DatastoresCreateOrUpdateOptionalParams export type DatastoresCreateOrUpdateResponse = Datastore; /** Optional parameters. */ -export interface DatastoresDeleteOptionalParams - extends coreClient.OperationOptions { +export interface DatastoresDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3645,29 +4047,43 @@ export interface DatastoresDeleteOptionalParams } /** Optional parameters. */ -export interface DatastoresListNextOptionalParams - extends coreClient.OperationOptions {} +export interface DatastoresListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DatastoresListNextResponse = DatastoreList; /** Optional parameters. */ -export interface PlacementPoliciesListOptionalParams - extends coreClient.OperationOptions {} +export interface HostsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type HostsListResponse = HostListResult; + +/** Optional parameters. */ +export interface HostsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type HostsGetResponse = Host; + +/** Optional parameters. */ +export interface HostsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type HostsListNextResponse = HostListResult; + +/** Optional parameters. */ +export interface PlacementPoliciesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type PlacementPoliciesListResponse = PlacementPoliciesList; /** Optional parameters. */ -export interface PlacementPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface PlacementPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type PlacementPoliciesGetResponse = PlacementPolicy; /** Optional parameters. */ -export interface PlacementPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface PlacementPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3678,8 +4094,7 @@ export interface PlacementPoliciesCreateOrUpdateOptionalParams export type PlacementPoliciesCreateOrUpdateResponse = PlacementPolicy; /** Optional parameters. */ -export interface PlacementPoliciesUpdateOptionalParams - extends coreClient.OperationOptions { +export interface PlacementPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3690,8 +4105,7 @@ export interface PlacementPoliciesUpdateOptionalParams export type PlacementPoliciesUpdateResponse = PlacementPolicy; /** Optional parameters. */ -export interface PlacementPoliciesDeleteOptionalParams - extends coreClient.OperationOptions { +export interface PlacementPoliciesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3699,29 +4113,25 @@ export interface PlacementPoliciesDeleteOptionalParams } /** Optional parameters. */ -export interface PlacementPoliciesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface PlacementPoliciesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type PlacementPoliciesListNextResponse = PlacementPoliciesList; /** Optional parameters. */ -export interface VirtualMachinesListOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachinesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachinesListResponse = VirtualMachinesList; /** Optional parameters. */ -export interface VirtualMachinesGetOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachinesGetResponse = VirtualMachine; /** Optional parameters. */ -export interface VirtualMachinesRestrictMovementOptionalParams - extends coreClient.OperationOptions { +export interface VirtualMachinesRestrictMovementOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3729,26 +4139,22 @@ export interface VirtualMachinesRestrictMovementOptionalParams } /** Contains response data for the restrictMovement operation. */ -export type VirtualMachinesRestrictMovementResponse = - VirtualMachinesRestrictMovementHeaders; +export type VirtualMachinesRestrictMovementResponse = VirtualMachinesRestrictMovementHeaders; /** Optional parameters. */ -export interface VirtualMachinesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachinesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachinesListNextResponse = VirtualMachinesList; /** Optional parameters. */ -export interface GlobalReachConnectionsListOptionalParams - extends coreClient.OperationOptions {} +export interface GlobalReachConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type GlobalReachConnectionsListResponse = GlobalReachConnectionList; /** Optional parameters. */ -export interface GlobalReachConnectionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface GlobalReachConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GlobalReachConnectionsGetResponse = GlobalReachConnection; @@ -3763,12 +4169,10 @@ export interface GlobalReachConnectionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type GlobalReachConnectionsCreateOrUpdateResponse = - GlobalReachConnection; +export type GlobalReachConnectionsCreateOrUpdateResponse = GlobalReachConnection; /** Optional parameters. */ -export interface GlobalReachConnectionsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface GlobalReachConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3776,22 +4180,19 @@ export interface GlobalReachConnectionsDeleteOptionalParams } /** Optional parameters. */ -export interface GlobalReachConnectionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface GlobalReachConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GlobalReachConnectionsListNextResponse = GlobalReachConnectionList; /** Optional parameters. */ -export interface HcxEnterpriseSitesListOptionalParams - extends coreClient.OperationOptions {} +export interface HcxEnterpriseSitesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList; /** Optional parameters. */ -export interface HcxEnterpriseSitesGetOptionalParams - extends coreClient.OperationOptions {} +export interface HcxEnterpriseSitesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite; @@ -3804,33 +4205,28 @@ export interface HcxEnterpriseSitesCreateOrUpdateOptionalParams export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite; /** Optional parameters. */ -export interface HcxEnterpriseSitesDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface HcxEnterpriseSitesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface HcxEnterpriseSitesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface HcxEnterpriseSitesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList; /** Optional parameters. */ -export interface IscsiPathsListByPrivateCloudOptionalParams - extends coreClient.OperationOptions {} +export interface IscsiPathsListByPrivateCloudOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByPrivateCloud operation. */ export type IscsiPathsListByPrivateCloudResponse = IscsiPathListResult; /** Optional parameters. */ -export interface IscsiPathsGetOptionalParams - extends coreClient.OperationOptions {} +export interface IscsiPathsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type IscsiPathsGetResponse = IscsiPath; /** Optional parameters. */ -export interface IscsiPathsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface IscsiPathsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3841,8 +4237,7 @@ export interface IscsiPathsCreateOrUpdateOptionalParams export type IscsiPathsCreateOrUpdateResponse = IscsiPath; /** Optional parameters. */ -export interface IscsiPathsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface IscsiPathsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3857,22 +4252,78 @@ export interface IscsiPathsListByPrivateCloudNextOptionalParams export type IscsiPathsListByPrivateCloudNextResponse = IscsiPathListResult; /** Optional parameters. */ -export interface ScriptExecutionsListOptionalParams - extends coreClient.OperationOptions {} +export interface ProvisionedNetworksListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ProvisionedNetworksListResponse = ProvisionedNetworkListResult; + +/** Optional parameters. */ +export interface ProvisionedNetworksGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ProvisionedNetworksGetResponse = ProvisionedNetwork; + +/** Optional parameters. */ +export interface ProvisionedNetworksListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ProvisionedNetworksListNextResponse = ProvisionedNetworkListResult; + +/** Optional parameters. */ +export interface PureStoragePoliciesListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PureStoragePoliciesListResponse = PureStoragePolicyListResult; + +/** Optional parameters. */ +export interface PureStoragePoliciesGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PureStoragePoliciesGetResponse = PureStoragePolicy; + +/** Optional parameters. */ +export interface PureStoragePoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type PureStoragePoliciesCreateOrUpdateResponse = PureStoragePolicy; + +/** Optional parameters. */ +export interface PureStoragePoliciesDeleteOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type PureStoragePoliciesDeleteResponse = PureStoragePoliciesDeleteHeaders; + +/** Optional parameters. */ +export interface PureStoragePoliciesListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type PureStoragePoliciesListNextResponse = PureStoragePolicyListResult; + +/** Optional parameters. */ +export interface ScriptExecutionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ScriptExecutionsListResponse = ScriptExecutionsList; /** Optional parameters. */ -export interface ScriptExecutionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ScriptExecutionsGetResponse = ScriptExecution; /** Optional parameters. */ -export interface ScriptExecutionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { +export interface ScriptExecutionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3883,8 +4334,7 @@ export interface ScriptExecutionsCreateOrUpdateOptionalParams export type ScriptExecutionsCreateOrUpdateResponse = ScriptExecution; /** Optional parameters. */ -export interface ScriptExecutionsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface ScriptExecutionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3902,85 +4352,73 @@ export interface ScriptExecutionsGetExecutionLogsOptionalParams export type ScriptExecutionsGetExecutionLogsResponse = ScriptExecution; /** Optional parameters. */ -export interface ScriptExecutionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptExecutionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ScriptExecutionsListNextResponse = ScriptExecutionsList; /** Optional parameters. */ -export interface ScriptPackagesListOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptPackagesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ScriptPackagesListResponse = ScriptPackagesList; /** Optional parameters. */ -export interface ScriptPackagesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptPackagesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ScriptPackagesGetResponse = ScriptPackage; /** Optional parameters. */ -export interface ScriptPackagesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptPackagesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ScriptPackagesListNextResponse = ScriptPackagesList; /** Optional parameters. */ -export interface ScriptCmdletsListOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptCmdletsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ScriptCmdletsListResponse = ScriptCmdletsList; /** Optional parameters. */ -export interface ScriptCmdletsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptCmdletsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ScriptCmdletsGetResponse = ScriptCmdlet; /** Optional parameters. */ -export interface ScriptCmdletsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ScriptCmdletsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ScriptCmdletsListNextResponse = ScriptCmdletsList; /** Optional parameters. */ -export interface WorkloadNetworksListOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type WorkloadNetworksListResponse = WorkloadNetworkList; /** Optional parameters. */ -export interface WorkloadNetworksGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type WorkloadNetworksGetResponse = WorkloadNetwork; /** Optional parameters. */ -export interface WorkloadNetworksListDhcpOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListDhcpOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDhcp operation. */ export type WorkloadNetworksListDhcpResponse = WorkloadNetworkDhcpList; /** Optional parameters. */ -export interface WorkloadNetworksGetDhcpOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetDhcpOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDhcp operation. */ export type WorkloadNetworksGetDhcpResponse = WorkloadNetworkDhcp; /** Optional parameters. */ -export interface WorkloadNetworksCreateDhcpOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksCreateDhcpOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3991,8 +4429,7 @@ export interface WorkloadNetworksCreateDhcpOptionalParams export type WorkloadNetworksCreateDhcpResponse = WorkloadNetworkDhcp; /** Optional parameters. */ -export interface WorkloadNetworksUpdateDhcpOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksUpdateDhcpOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4003,8 +4440,7 @@ export interface WorkloadNetworksUpdateDhcpOptionalParams export type WorkloadNetworksUpdateDhcpResponse = WorkloadNetworkDhcp; /** Optional parameters. */ -export interface WorkloadNetworksDeleteDhcpOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksDeleteDhcpOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4016,12 +4452,10 @@ export interface WorkloadNetworksListDnsServicesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDnsServices operation. */ -export type WorkloadNetworksListDnsServicesResponse = - WorkloadNetworkDnsServicesList; +export type WorkloadNetworksListDnsServicesResponse = WorkloadNetworkDnsServicesList; /** Optional parameters. */ -export interface WorkloadNetworksGetDnsServiceOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetDnsServiceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDnsService operation. */ export type WorkloadNetworksGetDnsServiceResponse = WorkloadNetworkDnsService; @@ -4036,8 +4470,7 @@ export interface WorkloadNetworksCreateDnsServiceOptionalParams } /** Contains response data for the createDnsService operation. */ -export type WorkloadNetworksCreateDnsServiceResponse = - WorkloadNetworkDnsService; +export type WorkloadNetworksCreateDnsServiceResponse = WorkloadNetworkDnsService; /** Optional parameters. */ export interface WorkloadNetworksUpdateDnsServiceOptionalParams @@ -4049,8 +4482,7 @@ export interface WorkloadNetworksUpdateDnsServiceOptionalParams } /** Contains response data for the updateDnsService operation. */ -export type WorkloadNetworksUpdateDnsServiceResponse = - WorkloadNetworkDnsService; +export type WorkloadNetworksUpdateDnsServiceResponse = WorkloadNetworkDnsService; /** Optional parameters. */ export interface WorkloadNetworksDeleteDnsServiceOptionalParams @@ -4062,22 +4494,19 @@ export interface WorkloadNetworksDeleteDnsServiceOptionalParams } /** Optional parameters. */ -export interface WorkloadNetworksListDnsZonesOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListDnsZonesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDnsZones operation. */ export type WorkloadNetworksListDnsZonesResponse = WorkloadNetworkDnsZonesList; /** Optional parameters. */ -export interface WorkloadNetworksGetDnsZoneOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetDnsZoneOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDnsZone operation. */ export type WorkloadNetworksGetDnsZoneResponse = WorkloadNetworkDnsZone; /** Optional parameters. */ -export interface WorkloadNetworksCreateDnsZoneOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksCreateDnsZoneOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4088,8 +4517,7 @@ export interface WorkloadNetworksCreateDnsZoneOptionalParams export type WorkloadNetworksCreateDnsZoneResponse = WorkloadNetworkDnsZone; /** Optional parameters. */ -export interface WorkloadNetworksUpdateDnsZoneOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksUpdateDnsZoneOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4100,8 +4528,7 @@ export interface WorkloadNetworksUpdateDnsZoneOptionalParams export type WorkloadNetworksUpdateDnsZoneResponse = WorkloadNetworkDnsZone; /** Optional parameters. */ -export interface WorkloadNetworksDeleteDnsZoneOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksDeleteDnsZoneOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4109,15 +4536,13 @@ export interface WorkloadNetworksDeleteDnsZoneOptionalParams } /** Optional parameters. */ -export interface WorkloadNetworksListGatewaysOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListGatewaysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listGateways operation. */ export type WorkloadNetworksListGatewaysResponse = WorkloadNetworkGatewayList; /** Optional parameters. */ -export interface WorkloadNetworksGetGatewayOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetGatewayOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getGateway operation. */ export type WorkloadNetworksGetGatewayResponse = WorkloadNetworkGateway; @@ -4127,16 +4552,14 @@ export interface WorkloadNetworksListPortMirroringOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPortMirroring operation. */ -export type WorkloadNetworksListPortMirroringResponse = - WorkloadNetworkPortMirroringList; +export type WorkloadNetworksListPortMirroringResponse = WorkloadNetworkPortMirroringList; /** Optional parameters. */ export interface WorkloadNetworksGetPortMirroringOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPortMirroring operation. */ -export type WorkloadNetworksGetPortMirroringResponse = - WorkloadNetworkPortMirroring; +export type WorkloadNetworksGetPortMirroringResponse = WorkloadNetworkPortMirroring; /** Optional parameters. */ export interface WorkloadNetworksCreatePortMirroringOptionalParams @@ -4148,8 +4571,7 @@ export interface WorkloadNetworksCreatePortMirroringOptionalParams } /** Contains response data for the createPortMirroring operation. */ -export type WorkloadNetworksCreatePortMirroringResponse = - WorkloadNetworkPortMirroring; +export type WorkloadNetworksCreatePortMirroringResponse = WorkloadNetworkPortMirroring; /** Optional parameters. */ export interface WorkloadNetworksUpdatePortMirroringOptionalParams @@ -4161,8 +4583,7 @@ export interface WorkloadNetworksUpdatePortMirroringOptionalParams } /** Contains response data for the updatePortMirroring operation. */ -export type WorkloadNetworksUpdatePortMirroringResponse = - WorkloadNetworkPortMirroring; +export type WorkloadNetworksUpdatePortMirroringResponse = WorkloadNetworkPortMirroring; /** Optional parameters. */ export interface WorkloadNetworksDeletePortMirroringOptionalParams @@ -4174,23 +4595,19 @@ export interface WorkloadNetworksDeletePortMirroringOptionalParams } /** Optional parameters. */ -export interface WorkloadNetworksListPublicIPsOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListPublicIPsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPublicIPs operation. */ -export type WorkloadNetworksListPublicIPsResponse = - WorkloadNetworkPublicIPsList; +export type WorkloadNetworksListPublicIPsResponse = WorkloadNetworkPublicIPsList; /** Optional parameters. */ -export interface WorkloadNetworksGetPublicIPOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetPublicIPOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPublicIP operation. */ export type WorkloadNetworksGetPublicIPResponse = WorkloadNetworkPublicIP; /** Optional parameters. */ -export interface WorkloadNetworksCreatePublicIPOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksCreatePublicIPOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4201,8 +4618,7 @@ export interface WorkloadNetworksCreatePublicIPOptionalParams export type WorkloadNetworksCreatePublicIPResponse = WorkloadNetworkPublicIP; /** Optional parameters. */ -export interface WorkloadNetworksDeletePublicIPOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksDeletePublicIPOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4210,22 +4626,19 @@ export interface WorkloadNetworksDeletePublicIPOptionalParams } /** Optional parameters. */ -export interface WorkloadNetworksListSegmentsOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListSegmentsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSegments operation. */ export type WorkloadNetworksListSegmentsResponse = WorkloadNetworkSegmentsList; /** Optional parameters. */ -export interface WorkloadNetworksGetSegmentOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetSegmentOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getSegment operation. */ export type WorkloadNetworksGetSegmentResponse = WorkloadNetworkSegment; /** Optional parameters. */ -export interface WorkloadNetworksCreateSegmentsOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksCreateSegmentsOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4236,8 +4649,7 @@ export interface WorkloadNetworksCreateSegmentsOptionalParams export type WorkloadNetworksCreateSegmentsResponse = WorkloadNetworkSegment; /** Optional parameters. */ -export interface WorkloadNetworksUpdateSegmentsOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksUpdateSegmentsOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4248,8 +4660,7 @@ export interface WorkloadNetworksUpdateSegmentsOptionalParams export type WorkloadNetworksUpdateSegmentsResponse = WorkloadNetworkSegment; /** Optional parameters. */ -export interface WorkloadNetworksDeleteSegmentOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksDeleteSegmentOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4261,34 +4672,29 @@ export interface WorkloadNetworksListVirtualMachinesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listVirtualMachines operation. */ -export type WorkloadNetworksListVirtualMachinesResponse = - WorkloadNetworkVirtualMachinesList; +export type WorkloadNetworksListVirtualMachinesResponse = WorkloadNetworkVirtualMachinesList; /** Optional parameters. */ export interface WorkloadNetworksGetVirtualMachineOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getVirtualMachine operation. */ -export type WorkloadNetworksGetVirtualMachineResponse = - WorkloadNetworkVirtualMachine; +export type WorkloadNetworksGetVirtualMachineResponse = WorkloadNetworkVirtualMachine; /** Optional parameters. */ -export interface WorkloadNetworksListVMGroupsOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListVMGroupsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listVMGroups operation. */ export type WorkloadNetworksListVMGroupsResponse = WorkloadNetworkVMGroupsList; /** Optional parameters. */ -export interface WorkloadNetworksGetVMGroupOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksGetVMGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getVMGroup operation. */ export type WorkloadNetworksGetVMGroupResponse = WorkloadNetworkVMGroup; /** Optional parameters. */ -export interface WorkloadNetworksCreateVMGroupOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksCreateVMGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4299,8 +4705,7 @@ export interface WorkloadNetworksCreateVMGroupOptionalParams export type WorkloadNetworksCreateVMGroupResponse = WorkloadNetworkVMGroup; /** Optional parameters. */ -export interface WorkloadNetworksUpdateVMGroupOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksUpdateVMGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4311,8 +4716,7 @@ export interface WorkloadNetworksUpdateVMGroupOptionalParams export type WorkloadNetworksUpdateVMGroupResponse = WorkloadNetworkVMGroup; /** Optional parameters. */ -export interface WorkloadNetworksDeleteVMGroupOptionalParams - extends coreClient.OperationOptions { +export interface WorkloadNetworksDeleteVMGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -4320,15 +4724,13 @@ export interface WorkloadNetworksDeleteVMGroupOptionalParams } /** Optional parameters. */ -export interface WorkloadNetworksListNextOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type WorkloadNetworksListNextResponse = WorkloadNetworkList; /** Optional parameters. */ -export interface WorkloadNetworksListDhcpNextOptionalParams - extends coreClient.OperationOptions {} +export interface WorkloadNetworksListDhcpNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDhcpNext operation. */ export type WorkloadNetworksListDhcpNextResponse = WorkloadNetworkDhcpList; @@ -4338,68 +4740,59 @@ export interface WorkloadNetworksListDnsServicesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDnsServicesNext operation. */ -export type WorkloadNetworksListDnsServicesNextResponse = - WorkloadNetworkDnsServicesList; +export type WorkloadNetworksListDnsServicesNextResponse = WorkloadNetworkDnsServicesList; /** Optional parameters. */ export interface WorkloadNetworksListDnsZonesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDnsZonesNext operation. */ -export type WorkloadNetworksListDnsZonesNextResponse = - WorkloadNetworkDnsZonesList; +export type WorkloadNetworksListDnsZonesNextResponse = WorkloadNetworkDnsZonesList; /** Optional parameters. */ export interface WorkloadNetworksListGatewaysNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listGatewaysNext operation. */ -export type WorkloadNetworksListGatewaysNextResponse = - WorkloadNetworkGatewayList; +export type WorkloadNetworksListGatewaysNextResponse = WorkloadNetworkGatewayList; /** Optional parameters. */ export interface WorkloadNetworksListPortMirroringNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPortMirroringNext operation. */ -export type WorkloadNetworksListPortMirroringNextResponse = - WorkloadNetworkPortMirroringList; +export type WorkloadNetworksListPortMirroringNextResponse = WorkloadNetworkPortMirroringList; /** Optional parameters. */ export interface WorkloadNetworksListPublicIPsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPublicIPsNext operation. */ -export type WorkloadNetworksListPublicIPsNextResponse = - WorkloadNetworkPublicIPsList; +export type WorkloadNetworksListPublicIPsNextResponse = WorkloadNetworkPublicIPsList; /** Optional parameters. */ export interface WorkloadNetworksListSegmentsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSegmentsNext operation. */ -export type WorkloadNetworksListSegmentsNextResponse = - WorkloadNetworkSegmentsList; +export type WorkloadNetworksListSegmentsNextResponse = WorkloadNetworkSegmentsList; /** Optional parameters. */ export interface WorkloadNetworksListVirtualMachinesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listVirtualMachinesNext operation. */ -export type WorkloadNetworksListVirtualMachinesNextResponse = - WorkloadNetworkVirtualMachinesList; +export type WorkloadNetworksListVirtualMachinesNextResponse = WorkloadNetworkVirtualMachinesList; /** Optional parameters. */ export interface WorkloadNetworksListVMGroupsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listVMGroupsNext operation. */ -export type WorkloadNetworksListVMGroupsNextResponse = - WorkloadNetworkVMGroupsList; +export type WorkloadNetworksListVMGroupsNextResponse = WorkloadNetworkVMGroupsList; /** Optional parameters. */ -export interface AzureVMwareSolutionAPIOptionalParams - extends coreClient.ServiceClientOptions { +export interface AzureVMwareSolutionAPIOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; /** Api Version */ diff --git a/sdk/avs/arm-avs/src/models/mappers.ts b/sdk/avs/arm-avs/src/models/mappers.ts index f7ca4d7126e7..4348d9bd3624 100644 --- a/sdk/avs/arm-avs/src/models/mappers.ts +++ b/sdk/avs/arm-avs/src/models/mappers.ts @@ -742,6 +742,294 @@ export const SystemData: coreClient.CompositeMapper = { }, }; +export const PagedResourceSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PagedResourceSku", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ResourceSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + required: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + tier: { + serializedName: "tier", + type: { + name: "String", + }, + }, + size: { + serializedName: "size", + type: { + name: "String", + }, + }, + family: { + serializedName: "family", + type: { + name: "String", + }, + }, + locations: { + serializedName: "locations", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + locationInfo: { + serializedName: "locationInfo", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + }, + }, + }, + }, + capabilities: { + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + }, + }, + }, + }, + restrictions: { + serializedName: "restrictions", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + }, + }, + }, + }, + }, + }, +}; + +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + zoneDetails: { + serializedName: "zoneDetails", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + }, + }, + }, + }, + }, + }, +}; + +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + capabilities: { + serializedName: "capabilities", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + }, + }, + }, + }, + }, + }, +}; + +export const ResourceSkuCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ResourceSkuRestrictions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + values: { + serializedName: "values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + restrictionInfo: { + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + }, + }, + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + modelProperties: { + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + export const PrivateCloudUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1098,20 +1386,136 @@ export const ElasticSanVolume: coreClient.CompositeMapper = { }, }; -export const ClusterZoneList: coreClient.CompositeMapper = { +export const PureStorageVolume: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterZoneList", + className: "PureStorageVolume", modelProperties: { - zones: { - serializedName: "zones", + storagePoolId: { + serializedName: "storagePoolId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClusterZone", - }, + name: "String", + }, + }, + sizeGb: { + serializedName: "sizeGb", + required: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const HostListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HostListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Host", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const HostProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HostProperties", + uberParent: "HostProperties", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + kind: { + serializedName: "kind", + required: true, + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + moRefId: { + serializedName: "moRefId", + readOnly: true, + type: { + name: "String", + }, + }, + fqdn: { + constraints: { + MaxLength: 255, + MinLength: 1, + }, + serializedName: "fqdn", + readOnly: true, + type: { + name: "String", + }, + }, + maintenance: { + serializedName: "maintenance", + type: { + name: "String", + }, + }, + faultDomain: { + serializedName: "faultDomain", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClusterZoneList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterZoneList", + modelProperties: { + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterZone", + }, }, }, }, @@ -1428,6 +1832,62 @@ export const AdminCredentials: coreClient.CompositeMapper = { }, }; +export const ProvisionedNetworkListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProvisionedNetworkListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProvisionedNetwork", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PureStoragePolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PureStoragePolicyListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PureStoragePolicy", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + export const ScriptExecutionsList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2025,6 +2485,18 @@ export const AddonHcxProperties: coreClient.CompositeMapper = { name: "String", }, }, + managementNetwork: { + serializedName: "managementNetwork", + type: { + name: "String", + }, + }, + uplinkNetwork: { + serializedName: "uplinkNetwork", + type: { + name: "String", + }, + }, }, }, }; @@ -2068,14 +2540,39 @@ export const AddonVrProperties: coreClient.CompositeMapper = { }, }; +export const GeneralHostProperties: coreClient.CompositeMapper = { + serializedName: "General", + type: { + name: "Composite", + className: "GeneralHostProperties", + uberParent: "HostProperties", + polymorphicDiscriminator: HostProperties.type.polymorphicDiscriminator, + modelProperties: { + ...HostProperties.type.modelProperties, + }, + }, +}; + +export const SpecializedHostProperties: coreClient.CompositeMapper = { + serializedName: "Specialized", + type: { + name: "Composite", + className: "SpecializedHostProperties", + uberParent: "HostProperties", + polymorphicDiscriminator: HostProperties.type.polymorphicDiscriminator, + modelProperties: { + ...HostProperties.type.modelProperties, + }, + }, +}; + export const VmHostPlacementPolicyProperties: coreClient.CompositeMapper = { serializedName: "VmHost", type: { name: "Composite", className: "VmHostPlacementPolicyProperties", uberParent: "PlacementPolicyProperties", - polymorphicDiscriminator: - PlacementPolicyProperties.type.polymorphicDiscriminator, + polymorphicDiscriminator: PlacementPolicyProperties.type.polymorphicDiscriminator, modelProperties: { ...PlacementPolicyProperties.type.modelProperties, vmMembers: { @@ -2131,8 +2628,7 @@ export const VmPlacementPolicyProperties: coreClient.CompositeMapper = { name: "Composite", className: "VmPlacementPolicyProperties", uberParent: "PlacementPolicyProperties", - polymorphicDiscriminator: - PlacementPolicyProperties.type.polymorphicDiscriminator, + polymorphicDiscriminator: PlacementPolicyProperties.type.polymorphicDiscriminator, modelProperties: { ...PlacementPolicyProperties.type.modelProperties, vmMembers: { @@ -2164,8 +2660,7 @@ export const PSCredentialExecutionParameter: coreClient.CompositeMapper = { name: "Composite", className: "PSCredentialExecutionParameter", uberParent: "ScriptExecutionParameter", - polymorphicDiscriminator: - ScriptExecutionParameter.type.polymorphicDiscriminator, + polymorphicDiscriminator: ScriptExecutionParameter.type.polymorphicDiscriminator, modelProperties: { ...ScriptExecutionParameter.type.modelProperties, username: { @@ -2184,26 +2679,24 @@ export const PSCredentialExecutionParameter: coreClient.CompositeMapper = { }, }; -export const ScriptSecureStringExecutionParameter: coreClient.CompositeMapper = - { - serializedName: "SecureValue", - type: { - name: "Composite", - className: "ScriptSecureStringExecutionParameter", - uberParent: "ScriptExecutionParameter", - polymorphicDiscriminator: - ScriptExecutionParameter.type.polymorphicDiscriminator, - modelProperties: { - ...ScriptExecutionParameter.type.modelProperties, - secureValue: { - serializedName: "secureValue", - type: { - name: "String", - }, +export const ScriptSecureStringExecutionParameter: coreClient.CompositeMapper = { + serializedName: "SecureValue", + type: { + name: "Composite", + className: "ScriptSecureStringExecutionParameter", + uberParent: "ScriptExecutionParameter", + polymorphicDiscriminator: ScriptExecutionParameter.type.polymorphicDiscriminator, + modelProperties: { + ...ScriptExecutionParameter.type.modelProperties, + secureValue: { + serializedName: "secureValue", + type: { + name: "String", }, }, }, - }; + }, +}; export const ScriptStringExecutionParameter: coreClient.CompositeMapper = { serializedName: "Value", @@ -2211,8 +2704,7 @@ export const ScriptStringExecutionParameter: coreClient.CompositeMapper = { name: "Composite", className: "ScriptStringExecutionParameter", uberParent: "ScriptExecutionParameter", - polymorphicDiscriminator: - ScriptExecutionParameter.type.polymorphicDiscriminator, + polymorphicDiscriminator: ScriptExecutionParameter.type.polymorphicDiscriminator, modelProperties: { ...ScriptExecutionParameter.type.modelProperties, value: { @@ -2231,8 +2723,7 @@ export const WorkloadNetworkDhcpRelay: coreClient.CompositeMapper = { name: "Composite", className: "WorkloadNetworkDhcpRelay", uberParent: "WorkloadNetworkDhcpEntity", - polymorphicDiscriminator: - WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, + polymorphicDiscriminator: WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, modelProperties: { ...WorkloadNetworkDhcpEntity.type.modelProperties, serverAddresses: { @@ -2260,8 +2751,7 @@ export const WorkloadNetworkDhcpServer: coreClient.CompositeMapper = { name: "Composite", className: "WorkloadNetworkDhcpServer", uberParent: "WorkloadNetworkDhcpEntity", - polymorphicDiscriminator: - WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, + polymorphicDiscriminator: WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, modelProperties: { ...WorkloadNetworkDhcpEntity.type.modelProperties, serverAddress: { @@ -2300,6 +2790,17 @@ export const PrivateCloud: coreClient.CompositeMapper = { className: "PrivateCloudIdentity", }, }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, managementCluster: { serializedName: "properties.managementCluster", type: { @@ -2638,6 +3139,13 @@ export const Datastore: coreClient.CompositeMapper = { className: "ElasticSanVolume", }, }, + pureStorageVolume: { + serializedName: "properties.pureStorageVolume", + type: { + name: "Composite", + className: "PureStorageVolume", + }, + }, status: { serializedName: "properties.status", readOnly: true, @@ -2649,29 +3157,36 @@ export const Datastore: coreClient.CompositeMapper = { }, }; -export const PlacementPolicy: coreClient.CompositeMapper = { +export const Host: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PlacementPolicy", + className: "Host", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "PlacementPolicyProperties", + className: "Sku", + }, + }, + kind: { + serializedName: "properties.kind", + type: { + name: "String", }, }, - }, - }, -}; - -export const VirtualMachine: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachine", - modelProperties: { - ...ProxyResource.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -2681,7 +3196,6 @@ export const VirtualMachine: coreClient.CompositeMapper = { }, displayName: { serializedName: "properties.displayName", - readOnly: true, type: { name: "String", }, @@ -2693,15 +3207,25 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "String", }, }, - folderPath: { - serializedName: "properties.folderPath", + fqdn: { + constraints: { + MaxLength: 255, + MinLength: 1, + }, + serializedName: "properties.fqdn", readOnly: true, type: { name: "String", }, }, - restrictMovement: { - serializedName: "properties.restrictMovement", + maintenance: { + serializedName: "properties.maintenance", + type: { + name: "String", + }, + }, + faultDomain: { + serializedName: "properties.faultDomain", readOnly: true, type: { name: "String", @@ -2711,21 +3235,83 @@ export const VirtualMachine: coreClient.CompositeMapper = { }, }; -export const GlobalReachConnection: coreClient.CompositeMapper = { +export const PlacementPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GlobalReachConnection", + className: "PlacementPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "PlacementPolicyProperties", }, }, - addressPrefix: { - serializedName: "properties.addressPrefix", + }, + }, +}; + +export const VirtualMachine: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachine", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "properties.displayName", + readOnly: true, + type: { + name: "String", + }, + }, + moRefId: { + serializedName: "properties.moRefId", + readOnly: true, + type: { + name: "String", + }, + }, + folderPath: { + serializedName: "properties.folderPath", + readOnly: true, + type: { + name: "String", + }, + }, + restrictMovement: { + serializedName: "properties.restrictMovement", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GlobalReachConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GlobalReachConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + addressPrefix: { + serializedName: "properties.addressPrefix", readOnly: true, type: { name: "String", @@ -2814,6 +3400,66 @@ export const IscsiPath: coreClient.CompositeMapper = { }, }; +export const ProvisionedNetwork: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProvisionedNetwork", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + addressPrefix: { + serializedName: "properties.addressPrefix", + readOnly: true, + type: { + name: "String", + }, + }, + networkType: { + serializedName: "properties.networkType", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PureStoragePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PureStoragePolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + storagePolicyDefinition: { + serializedName: "properties.storagePolicyDefinition", + type: { + name: "String", + }, + }, + storagePoolId: { + serializedName: "properties.storagePoolId", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const ScriptExecution: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3463,8 +4109,422 @@ export const WorkloadNetworkVMGroup: coreClient.CompositeMapper = { name: "String", }, }, - revision: { - serializedName: "properties.revision", + revision: { + serializedName: "properties.revision", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PrivateCloudsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateCloudsCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PrivateCloudsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateCloudsUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PrivateCloudsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateCloudsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PrivateCloudsRotateNsxtPasswordHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateCloudsRotateNsxtPasswordHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PrivateCloudsRotateVcenterPasswordHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateCloudsRotateVcenterPasswordHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const AddonsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AddonsCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const AddonsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AddonsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const AuthorizationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AuthorizationsCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const AuthorizationsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AuthorizationsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const CloudLinksCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudLinksCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const CloudLinksDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudLinksDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const ClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClustersCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const ClustersUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClustersUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const ClustersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClustersDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const DatastoresCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoresCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const DatastoresDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoresDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PlacementPoliciesCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PlacementPoliciesCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PlacementPoliciesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PlacementPoliciesUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const PlacementPoliciesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PlacementPoliciesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const VirtualMachinesRestrictMovementHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachinesRestrictMovementHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const GlobalReachConnectionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GlobalReachConnectionsCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const GlobalReachConnectionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GlobalReachConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", type: { name: "Number", }, @@ -3473,10 +4533,10 @@ export const WorkloadNetworkVMGroup: coreClient.CompositeMapper = { }, }; -export const PrivateCloudsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const IscsiPathsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateCloudsCreateOrUpdateHeaders", + className: "IscsiPathsCreateOrUpdateHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -3488,10 +4548,10 @@ export const PrivateCloudsCreateOrUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const PrivateCloudsUpdateHeaders: coreClient.CompositeMapper = { +export const IscsiPathsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateCloudsUpdateHeaders", + className: "IscsiPathsDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -3509,13 +4569,13 @@ export const PrivateCloudsUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const PrivateCloudsDeleteHeaders: coreClient.CompositeMapper = { +export const PureStoragePoliciesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateCloudsDeleteHeaders", + className: "PureStoragePoliciesCreateOrUpdateHeaders", modelProperties: { - location: { - serializedName: "location", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String", }, @@ -3530,54 +4590,31 @@ export const PrivateCloudsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const PrivateCloudsRotateNsxtPasswordHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PrivateCloudsRotateNsxtPasswordHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, +export const PureStoragePoliciesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PureStoragePoliciesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, - }, - }; - -export const PrivateCloudsRotateVcenterPasswordHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PrivateCloudsRotateVcenterPasswordHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", }, }, }, - }; + }, +}; -export const AddonsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ScriptExecutionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AddonsCreateOrUpdateHeaders", + className: "ScriptExecutionsCreateOrUpdateHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -3589,10 +4626,10 @@ export const AddonsCreateOrUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const AddonsDeleteHeaders: coreClient.CompositeMapper = { +export const ScriptExecutionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AddonsDeleteHeaders", + className: "ScriptExecutionsDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -3610,10 +4647,10 @@ export const AddonsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const AuthorizationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksCreateDhcpHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AuthorizationsCreateOrUpdateHeaders", + className: "WorkloadNetworksCreateDhcpHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -3625,10 +4662,10 @@ export const AuthorizationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const AuthorizationsDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksUpdateDhcpHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AuthorizationsDeleteHeaders", + className: "WorkloadNetworksUpdateDhcpHeaders", modelProperties: { location: { serializedName: "location", @@ -3646,25 +4683,10 @@ export const AuthorizationsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const CloudLinksCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudLinksCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const CloudLinksDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksDeleteDhcpHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudLinksDeleteHeaders", + className: "WorkloadNetworksDeleteDhcpHeaders", modelProperties: { location: { serializedName: "location", @@ -3682,10 +4704,10 @@ export const CloudLinksDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const ClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksCreateDnsServiceHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClustersCreateOrUpdateHeaders", + className: "WorkloadNetworksCreateDnsServiceHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -3697,10 +4719,10 @@ export const ClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const ClustersUpdateHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksUpdateDnsServiceHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClustersUpdateHeaders", + className: "WorkloadNetworksUpdateDnsServiceHeaders", modelProperties: { location: { serializedName: "location", @@ -3718,10 +4740,10 @@ export const ClustersUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const ClustersDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksDeleteDnsServiceHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClustersDeleteHeaders", + className: "WorkloadNetworksDeleteDnsServiceHeaders", modelProperties: { location: { serializedName: "location", @@ -3739,10 +4761,10 @@ export const ClustersDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const DatastoresCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksCreateDnsZoneHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoresCreateOrUpdateHeaders", + className: "WorkloadNetworksCreateDnsZoneHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -3754,10 +4776,10 @@ export const DatastoresCreateOrUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const DatastoresDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksUpdateDnsZoneHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoresDeleteHeaders", + className: "WorkloadNetworksUpdateDnsZoneHeaders", modelProperties: { location: { serializedName: "location", @@ -3775,26 +4797,10 @@ export const DatastoresDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const PlacementPoliciesCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PlacementPoliciesCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const PlacementPoliciesUpdateHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksDeleteDnsZoneHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PlacementPoliciesUpdateHeaders", + className: "WorkloadNetworksDeleteDnsZoneHeaders", modelProperties: { location: { serializedName: "location", @@ -3812,10 +4818,25 @@ export const PlacementPoliciesUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const PlacementPoliciesDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksCreatePortMirroringHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PlacementPoliciesDeleteHeaders", + className: "WorkloadNetworksCreatePortMirroringHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const WorkloadNetworksUpdatePortMirroringHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadNetworksUpdatePortMirroringHeaders", modelProperties: { location: { serializedName: "location", @@ -3833,48 +4854,46 @@ export const PlacementPoliciesDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const VirtualMachinesRestrictMovementHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "VirtualMachinesRestrictMovementHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const WorkloadNetworksDeletePortMirroringHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadNetworksDeletePortMirroringHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", }, }, }, - }; + }, +}; -export const GlobalReachConnectionsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GlobalReachConnectionsCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, +export const WorkloadNetworksCreatePublicIPHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadNetworksCreatePublicIPHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", }, }, }, - }; + }, +}; -export const GlobalReachConnectionsDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksDeletePublicIPHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GlobalReachConnectionsDeleteHeaders", + className: "WorkloadNetworksDeletePublicIPHeaders", modelProperties: { location: { serializedName: "location", @@ -3892,10 +4911,10 @@ export const GlobalReachConnectionsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const IscsiPathsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksCreateSegmentsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IscsiPathsCreateOrUpdateHeaders", + className: "WorkloadNetworksCreateSegmentsHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -3907,10 +4926,10 @@ export const IscsiPathsCreateOrUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const IscsiPathsDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksUpdateSegmentsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IscsiPathsDeleteHeaders", + className: "WorkloadNetworksUpdateSegmentsHeaders", modelProperties: { location: { serializedName: "location", @@ -3928,26 +4947,10 @@ export const IscsiPathsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const ScriptExecutionsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ScriptExecutionsCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const ScriptExecutionsDeleteHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksDeleteSegmentHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptExecutionsDeleteHeaders", + className: "WorkloadNetworksDeleteSegmentHeaders", modelProperties: { location: { serializedName: "location", @@ -3965,10 +4968,10 @@ export const ScriptExecutionsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const WorkloadNetworksCreateDhcpHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksCreateVMGroupHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadNetworksCreateDhcpHeaders", + className: "WorkloadNetworksCreateVMGroupHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -3980,10 +4983,10 @@ export const WorkloadNetworksCreateDhcpHeaders: coreClient.CompositeMapper = { }, }; -export const WorkloadNetworksUpdateDhcpHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksUpdateVMGroupHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadNetworksUpdateDhcpHeaders", + className: "WorkloadNetworksUpdateVMGroupHeaders", modelProperties: { location: { serializedName: "location", @@ -4001,10 +5004,10 @@ export const WorkloadNetworksUpdateDhcpHeaders: coreClient.CompositeMapper = { }, }; -export const WorkloadNetworksDeleteDhcpHeaders: coreClient.CompositeMapper = { +export const WorkloadNetworksDeleteVMGroupHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadNetworksDeleteDhcpHeaders", + className: "WorkloadNetworksDeleteVMGroupHeaders", modelProperties: { location: { serializedName: "location", @@ -4022,346 +5025,9 @@ export const WorkloadNetworksDeleteDhcpHeaders: coreClient.CompositeMapper = { }, }; -export const WorkloadNetworksCreateDnsServiceHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksCreateDnsServiceHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksUpdateDnsServiceHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksUpdateDnsServiceHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksDeleteDnsServiceHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksDeleteDnsServiceHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksCreateDnsZoneHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksCreateDnsZoneHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksUpdateDnsZoneHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksUpdateDnsZoneHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksDeleteDnsZoneHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksDeleteDnsZoneHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksCreatePortMirroringHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksCreatePortMirroringHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksUpdatePortMirroringHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksUpdatePortMirroringHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksDeletePortMirroringHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksDeletePortMirroringHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksCreatePublicIPHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksCreatePublicIPHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksDeletePublicIPHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksDeletePublicIPHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksCreateSegmentsHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksCreateSegmentsHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksUpdateSegmentsHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksUpdateSegmentsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksDeleteSegmentHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksDeleteSegmentHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksCreateVMGroupHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksCreateVMGroupHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksUpdateVMGroupHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksUpdateVMGroupHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const WorkloadNetworksDeleteVMGroupHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkloadNetworksDeleteVMGroupHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - export let discriminators = { AddonProperties: AddonProperties, + HostProperties: HostProperties, PlacementPolicyProperties: PlacementPolicyProperties, ScriptExecutionParameter: ScriptExecutionParameter, WorkloadNetworkDhcpEntity: WorkloadNetworkDhcpEntity, @@ -4369,6 +5035,8 @@ export let discriminators = { "AddonProperties.HCX": AddonHcxProperties, "AddonProperties.SRM": AddonSrmProperties, "AddonProperties.VR": AddonVrProperties, + "HostProperties.General": GeneralHostProperties, + "HostProperties.Specialized": SpecializedHostProperties, "PlacementPolicyProperties.VmHost": VmHostPlacementPolicyProperties, "PlacementPolicyProperties.VmVm": VmPlacementPolicyProperties, "ScriptExecutionParameter.Credential": PSCredentialExecutionParameter, diff --git a/sdk/avs/arm-avs/src/models/parameters.ts b/sdk/avs/arm-avs/src/models/parameters.ts index 93285fafa864..8ab629e0113e 100644 --- a/sdk/avs/arm-avs/src/models/parameters.ts +++ b/sdk/avs/arm-avs/src/models/parameters.ts @@ -27,6 +27,7 @@ import { GlobalReachConnection as GlobalReachConnectionMapper, HcxEnterpriseSite as HcxEnterpriseSiteMapper, IscsiPath as IscsiPathMapper, + PureStoragePolicy as PureStoragePolicyMapper, ScriptExecution as ScriptExecutionMapper, WorkloadNetworkDhcp as WorkloadNetworkDhcpMapper, WorkloadNetworkDnsService as WorkloadNetworkDnsServiceMapper, @@ -64,7 +65,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-09-01", + defaultValue: "2024-09-01", isConstant: true, serializedName: "api-version", type: { @@ -266,6 +267,20 @@ export const datastore: OperationParameter = { mapper: DatastoreMapper, }; +export const hostId: OperationURLParameter = { + parameterPath: "hostId", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$"), + }, + serializedName: "hostId", + required: true, + type: { + name: "String", + }, + }, +}; + export const placementPolicyName: OperationURLParameter = { parameterPath: "placementPolicyName", mapper: { @@ -352,6 +367,39 @@ export const resource: OperationParameter = { mapper: IscsiPathMapper, }; +export const provisionedNetworkName: OperationURLParameter = { + parameterPath: "provisionedNetworkName", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$"), + }, + serializedName: "provisionedNetworkName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const storagePolicyName: OperationURLParameter = { + parameterPath: "storagePolicyName", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$"), + }, + serializedName: "storagePolicyName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const resource1: OperationParameter = { + parameterPath: "resource", + mapper: PureStoragePolicyMapper, +}; + export const scriptExecutionName: OperationURLParameter = { parameterPath: "scriptExecutionName", mapper: { diff --git a/sdk/avs/arm-avs/src/operations/addons.ts b/sdk/avs/arm-avs/src/operations/addons.ts index c9966b179994..bfd608a3ae01 100644 --- a/sdk/avs/arm-avs/src/operations/addons.ts +++ b/sdk/avs/arm-avs/src/operations/addons.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { Addon, @@ -56,11 +52,7 @@ export class AddonsImpl implements Addons { privateCloudName: string, options?: AddonsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -72,12 +64,7 @@ export class AddonsImpl implements Addons { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -116,11 +103,7 @@ export class AddonsImpl implements Addons { privateCloudName: string, options?: AddonsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } @@ -176,10 +159,7 @@ export class AddonsImpl implements Addons { addon: Addon, options?: AddonsCreateOrUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AddonsCreateOrUpdateResponse - > + SimplePollerLike, AddonsCreateOrUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -191,8 +171,7 @@ export class AddonsImpl implements Addons { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -284,8 +263,7 @@ export class AddonsImpl implements Addons { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -339,12 +317,7 @@ export class AddonsImpl implements Addons { addonName: string, options?: AddonsDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - privateCloudName, - addonName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, privateCloudName, addonName, options); return poller.pollUntilDone(); } diff --git a/sdk/avs/arm-avs/src/operations/authorizations.ts b/sdk/avs/arm-avs/src/operations/authorizations.ts index fb756d82d970..26608dbec9cd 100644 --- a/sdk/avs/arm-avs/src/operations/authorizations.ts +++ b/sdk/avs/arm-avs/src/operations/authorizations.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { ExpressRouteAuthorization, @@ -56,11 +52,7 @@ export class AuthorizationsImpl implements Authorizations { privateCloudName: string, options?: AuthorizationsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -72,12 +64,7 @@ export class AuthorizationsImpl implements Authorizations { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -116,11 +103,7 @@ export class AuthorizationsImpl implements Authorizations { privateCloudName: string, options?: AuthorizationsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } @@ -191,8 +174,7 @@ export class AuthorizationsImpl implements Authorizations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -290,8 +272,7 @@ export class AuthorizationsImpl implements Authorizations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operations/cloudLinks.ts b/sdk/avs/arm-avs/src/operations/cloudLinks.ts index 3d4c4e432571..0382cbc6babf 100644 --- a/sdk/avs/arm-avs/src/operations/cloudLinks.ts +++ b/sdk/avs/arm-avs/src/operations/cloudLinks.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { CloudLink, @@ -56,11 +52,7 @@ export class CloudLinksImpl implements CloudLinks { privateCloudName: string, options?: CloudLinksListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -72,12 +64,7 @@ export class CloudLinksImpl implements CloudLinks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -116,11 +103,7 @@ export class CloudLinksImpl implements CloudLinks { privateCloudName: string, options?: CloudLinksListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } @@ -191,8 +174,7 @@ export class CloudLinksImpl implements CloudLinks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -290,8 +272,7 @@ export class CloudLinksImpl implements CloudLinks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operations/clusters.ts b/sdk/avs/arm-avs/src/operations/clusters.ts index fe1db15578d5..411381b76771 100644 --- a/sdk/avs/arm-avs/src/operations/clusters.ts +++ b/sdk/avs/arm-avs/src/operations/clusters.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { Cluster, @@ -61,11 +57,7 @@ export class ClustersImpl implements Clusters { privateCloudName: string, options?: ClustersListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -77,12 +69,7 @@ export class ClustersImpl implements Clusters { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -121,11 +108,7 @@ export class ClustersImpl implements Clusters { privateCloudName: string, options?: ClustersListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } @@ -181,10 +164,7 @@ export class ClustersImpl implements Clusters { cluster: Cluster, options?: ClustersCreateOrUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ClustersCreateOrUpdateResponse - > + SimplePollerLike, ClustersCreateOrUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -196,8 +176,7 @@ export class ClustersImpl implements Clusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -277,7 +256,7 @@ export class ClustersImpl implements Clusters { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster - * @param clusterUpdate The cluster properties to be updated. + * @param clusterUpdate The resource properties to be updated. * @param options The options parameters. */ async beginUpdate( @@ -286,12 +265,7 @@ export class ClustersImpl implements Clusters { clusterName: string, clusterUpdate: ClusterUpdate, options?: ClustersUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ClustersUpdateResponse - > - > { + ): Promise, ClustersUpdateResponse>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, @@ -302,8 +276,7 @@ export class ClustersImpl implements Clusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -358,7 +331,7 @@ export class ClustersImpl implements Clusters { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster - * @param clusterUpdate The cluster properties to be updated. + * @param clusterUpdate The resource properties to be updated. * @param options The options parameters. */ async beginUpdateAndWait( @@ -401,8 +374,7 @@ export class ClustersImpl implements Clusters { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operations/datastores.ts b/sdk/avs/arm-avs/src/operations/datastores.ts index 8062671d8a15..056a70eb46d3 100644 --- a/sdk/avs/arm-avs/src/operations/datastores.ts +++ b/sdk/avs/arm-avs/src/operations/datastores.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { Datastore, @@ -58,12 +54,7 @@ export class DatastoresImpl implements Datastores { clusterName: string, options?: DatastoresListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - clusterName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, clusterName, options); return { next() { return iter.next(); @@ -96,12 +87,7 @@ export class DatastoresImpl implements Datastores { let result: DatastoresListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - privateCloudName, - clusterName, - options, - ); + result = await this._list(resourceGroupName, privateCloudName, clusterName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -216,8 +202,7 @@ export class DatastoresImpl implements Datastores { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -321,8 +306,7 @@ export class DatastoresImpl implements Datastores { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operations/globalReachConnections.ts b/sdk/avs/arm-avs/src/operations/globalReachConnections.ts index 6ad6008a92c7..4c017fd9050b 100644 --- a/sdk/avs/arm-avs/src/operations/globalReachConnections.ts +++ b/sdk/avs/arm-avs/src/operations/globalReachConnections.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { GlobalReachConnection, @@ -56,11 +52,7 @@ export class GlobalReachConnectionsImpl implements GlobalReachConnections { privateCloudName: string, options?: GlobalReachConnectionsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -72,12 +64,7 @@ export class GlobalReachConnectionsImpl implements GlobalReachConnections { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -116,11 +103,7 @@ export class GlobalReachConnectionsImpl implements GlobalReachConnections { privateCloudName: string, options?: GlobalReachConnectionsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } @@ -196,8 +179,7 @@ export class GlobalReachConnectionsImpl implements GlobalReachConnections { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -295,8 +277,7 @@ export class GlobalReachConnectionsImpl implements GlobalReachConnections { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts b/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts index a6f010ac8186..9365df0bbb66 100644 --- a/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts +++ b/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts @@ -50,11 +50,7 @@ export class HcxEnterpriseSitesImpl implements HcxEnterpriseSites { privateCloudName: string, options?: HcxEnterpriseSitesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -66,12 +62,7 @@ export class HcxEnterpriseSitesImpl implements HcxEnterpriseSites { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -110,11 +101,7 @@ export class HcxEnterpriseSitesImpl implements HcxEnterpriseSites { privateCloudName: string, options?: HcxEnterpriseSitesListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } diff --git a/sdk/avs/arm-avs/src/operations/hosts.ts b/sdk/avs/arm-avs/src/operations/hosts.ts new file mode 100644 index 000000000000..9bbccf4a5a24 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/hosts.ts @@ -0,0 +1,252 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Hosts } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; +import { + Host, + HostsListNextOptionalParams, + HostsListOptionalParams, + HostsListResponse, + HostsGetOptionalParams, + HostsGetResponse, + HostsListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing Hosts operations. */ +export class HostsImpl implements Hosts { + private readonly client: AzureVMwareSolutionAPI; + + /** + * Initialize a new instance of the class Hosts class. + * @param client Reference to the service client + */ + constructor(client: AzureVMwareSolutionAPI) { + this.client = client; + } + + /** + * List Host resources by Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + options?: HostsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, privateCloudName, clusterName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + privateCloudName, + clusterName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + options?: HostsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: HostsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, privateCloudName, clusterName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + privateCloudName, + clusterName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + options?: HostsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + privateCloudName, + clusterName, + options, + )) { + yield* page; + } + } + + /** + * List Host resources by Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + options?: HostsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, clusterName, options }, + listOperationSpec, + ); + } + + /** + * Get a Host + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster + * @param hostId The host identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + hostId: string, + options?: HostsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, clusterName, hostId, options }, + getOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + nextLink: string, + options?: HostsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, clusterName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HostListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts/{hostId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Host, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + Parameters.hostId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HostListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/avs/arm-avs/src/operations/index.ts b/sdk/avs/arm-avs/src/operations/index.ts index ee1071d19a18..25933aaff966 100644 --- a/sdk/avs/arm-avs/src/operations/index.ts +++ b/sdk/avs/arm-avs/src/operations/index.ts @@ -9,16 +9,20 @@ export * from "./operations.js"; export * from "./locations.js"; export * from "./privateClouds.js"; +export * from "./skus.js"; export * from "./addons.js"; export * from "./authorizations.js"; export * from "./cloudLinks.js"; export * from "./clusters.js"; export * from "./datastores.js"; +export * from "./hosts.js"; export * from "./placementPolicies.js"; export * from "./virtualMachines.js"; export * from "./globalReachConnections.js"; export * from "./hcxEnterpriseSites.js"; export * from "./iscsiPaths.js"; +export * from "./provisionedNetworks.js"; +export * from "./pureStoragePolicies.js"; export * from "./scriptExecutions.js"; export * from "./scriptPackages.js"; export * from "./scriptCmdlets.js"; diff --git a/sdk/avs/arm-avs/src/operations/iscsiPaths.ts b/sdk/avs/arm-avs/src/operations/iscsiPaths.ts index 9e0665491830..aacb86e5461e 100644 --- a/sdk/avs/arm-avs/src/operations/iscsiPaths.ts +++ b/sdk/avs/arm-avs/src/operations/iscsiPaths.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { IscsiPath, @@ -56,11 +52,7 @@ export class IscsiPathsImpl implements IscsiPaths { privateCloudName: string, options?: IscsiPathsListByPrivateCloudOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByPrivateCloudPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listByPrivateCloudPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -91,11 +83,7 @@ export class IscsiPathsImpl implements IscsiPaths { let result: IscsiPathsListByPrivateCloudResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByPrivateCloud( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listByPrivateCloud(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -191,8 +179,7 @@ export class IscsiPathsImpl implements IscsiPaths { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -279,8 +266,7 @@ export class IscsiPathsImpl implements IscsiPaths { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -332,11 +318,7 @@ export class IscsiPathsImpl implements IscsiPaths { privateCloudName: string, options?: IscsiPathsDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - privateCloudName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, privateCloudName, options); return poller.pollUntilDone(); } diff --git a/sdk/avs/arm-avs/src/operations/locations.ts b/sdk/avs/arm-avs/src/operations/locations.ts index a0035bdab9fc..acf7a75a4e3d 100644 --- a/sdk/avs/arm-avs/src/operations/locations.ts +++ b/sdk/avs/arm-avs/src/operations/locations.ts @@ -75,11 +75,7 @@ const checkQuotaAvailabilityOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location], headerParameters: [Parameters.accept], serializer, }; @@ -96,11 +92,7 @@ const checkTrialAvailabilityOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.sku, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, diff --git a/sdk/avs/arm-avs/src/operations/operations.ts b/sdk/avs/arm-avs/src/operations/operations.ts index 0240c1740eb0..2478dcc18abc 100644 --- a/sdk/avs/arm-avs/src/operations/operations.ts +++ b/sdk/avs/arm-avs/src/operations/operations.ts @@ -38,9 +38,7 @@ export class OperationsImpl implements Operations { * List the operations for the provider * @param options The options parameters. */ - public list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -92,9 +90,7 @@ export class OperationsImpl implements Operations { * List the operations for the provider * @param options The options parameters. */ - private _list( - options?: OperationsListOptionalParams, - ): Promise { + private _list(options?: OperationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,10 +103,7 @@ export class OperationsImpl implements Operations { nextLink: string, options?: OperationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications diff --git a/sdk/avs/arm-avs/src/operations/placementPolicies.ts b/sdk/avs/arm-avs/src/operations/placementPolicies.ts index a2bd95b8306c..f34a58c29e25 100644 --- a/sdk/avs/arm-avs/src/operations/placementPolicies.ts +++ b/sdk/avs/arm-avs/src/operations/placementPolicies.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { PlacementPolicy, @@ -61,12 +57,7 @@ export class PlacementPoliciesImpl implements PlacementPolicies { clusterName: string, options?: PlacementPoliciesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - clusterName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, clusterName, options); return { next() { return iter.next(); @@ -99,12 +90,7 @@ export class PlacementPoliciesImpl implements PlacementPolicies { let result: PlacementPoliciesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - privateCloudName, - clusterName, - options, - ); + result = await this._list(resourceGroupName, privateCloudName, clusterName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -219,8 +205,7 @@ export class PlacementPoliciesImpl implements PlacementPolicies { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -305,7 +290,7 @@ export class PlacementPoliciesImpl implements PlacementPolicies { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param placementPolicyName Name of the placement policy. - * @param placementPolicyUpdate The placement policy properties to be updated. + * @param placementPolicyUpdate The resource properties to be updated. * @param options The options parameters. */ async beginUpdate( @@ -331,8 +316,7 @@ export class PlacementPoliciesImpl implements PlacementPolicies { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -389,7 +373,7 @@ export class PlacementPoliciesImpl implements PlacementPolicies { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param placementPolicyName Name of the placement policy. - * @param placementPolicyUpdate The placement policy properties to be updated. + * @param placementPolicyUpdate The resource properties to be updated. * @param options The options parameters. */ async beginUpdateAndWait( @@ -436,8 +420,7 @@ export class PlacementPoliciesImpl implements PlacementPolicies { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operations/privateClouds.ts b/sdk/avs/arm-avs/src/operations/privateClouds.ts index 0f7f53097ae8..6f2f683367d6 100644 --- a/sdk/avs/arm-avs/src/operations/privateClouds.ts +++ b/sdk/avs/arm-avs/src/operations/privateClouds.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { PrivateCloud, @@ -153,11 +149,7 @@ export class PrivateCloudsImpl implements PrivateClouds { yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -181,10 +173,7 @@ export class PrivateCloudsImpl implements PrivateClouds { private _listInSubscription( options?: PrivateCloudsListInSubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listInSubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listInSubscriptionOperationSpec); } /** @@ -196,10 +185,7 @@ export class PrivateCloudsImpl implements PrivateClouds { resourceGroupName: string, options?: PrivateCloudsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec); } /** @@ -247,8 +233,7 @@ export class PrivateCloudsImpl implements PrivateClouds { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -318,7 +303,7 @@ export class PrivateCloudsImpl implements PrivateClouds { * Update a PrivateCloud * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud - * @param privateCloudUpdate The private cloud properties to be updated. + * @param privateCloudUpdate The resource properties to be updated. * @param options The options parameters. */ async beginUpdate( @@ -327,10 +312,7 @@ export class PrivateCloudsImpl implements PrivateClouds { privateCloudUpdate: PrivateCloudUpdate, options?: PrivateCloudsUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - PrivateCloudsUpdateResponse - > + SimplePollerLike, PrivateCloudsUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -342,8 +324,7 @@ export class PrivateCloudsImpl implements PrivateClouds { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -396,7 +377,7 @@ export class PrivateCloudsImpl implements PrivateClouds { * Update a PrivateCloud * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud - * @param privateCloudUpdate The private cloud properties to be updated. + * @param privateCloudUpdate The resource properties to be updated. * @param options The options parameters. */ async beginUpdateAndWait( @@ -435,8 +416,7 @@ export class PrivateCloudsImpl implements PrivateClouds { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -488,11 +468,7 @@ export class PrivateCloudsImpl implements PrivateClouds { privateCloudName: string, options?: PrivateCloudsDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - privateCloudName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, privateCloudName, options); return poller.pollUntilDone(); } @@ -539,8 +515,7 @@ export class PrivateCloudsImpl implements PrivateClouds { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -595,11 +570,7 @@ export class PrivateCloudsImpl implements PrivateClouds { privateCloudName: string, options?: PrivateCloudsRotateNsxtPasswordOptionalParams, ): Promise { - const poller = await this.beginRotateNsxtPassword( - resourceGroupName, - privateCloudName, - options, - ); + const poller = await this.beginRotateNsxtPassword(resourceGroupName, privateCloudName, options); return poller.pollUntilDone(); } @@ -629,8 +600,7 @@ export class PrivateCloudsImpl implements PrivateClouds { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -756,11 +726,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -963,11 +929,7 @@ const listInSubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - ], + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/avs/arm-avs/src/operations/provisionedNetworks.ts b/sdk/avs/arm-avs/src/operations/provisionedNetworks.ts new file mode 100644 index 000000000000..5ebd61fa8bd7 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/provisionedNetworks.ts @@ -0,0 +1,227 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ProvisionedNetworks } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; +import { + ProvisionedNetwork, + ProvisionedNetworksListNextOptionalParams, + ProvisionedNetworksListOptionalParams, + ProvisionedNetworksListResponse, + ProvisionedNetworksGetOptionalParams, + ProvisionedNetworksGetResponse, + ProvisionedNetworksListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing ProvisionedNetworks operations. */ +export class ProvisionedNetworksImpl implements ProvisionedNetworks { + private readonly client: AzureVMwareSolutionAPI; + + /** + * Initialize a new instance of the class ProvisionedNetworks class. + * @param client Reference to the service client + */ + constructor(client: AzureVMwareSolutionAPI) { + this.client = client; + } + + /** + * List ProvisionedNetwork resources by PrivateCloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + privateCloudName: string, + options?: ProvisionedNetworksListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + privateCloudName: string, + options?: ProvisionedNetworksListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProvisionedNetworksListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, privateCloudName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + privateCloudName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + privateCloudName: string, + options?: ProvisionedNetworksListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { + yield* page; + } + } + + /** + * List ProvisionedNetwork resources by PrivateCloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + privateCloudName: string, + options?: ProvisionedNetworksListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, options }, + listOperationSpec, + ); + } + + /** + * Get a ProvisionedNetwork + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param provisionedNetworkName Name of the cloud link. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateCloudName: string, + provisionedNetworkName: string, + options?: ProvisionedNetworksGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, provisionedNetworkName, options }, + getOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + privateCloudName: string, + nextLink: string, + options?: ProvisionedNetworksListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/provisionedNetworks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProvisionedNetworkListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/provisionedNetworks/{provisionedNetworkName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProvisionedNetwork, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.provisionedNetworkName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProvisionedNetworkListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/avs/arm-avs/src/operations/pureStoragePolicies.ts b/sdk/avs/arm-avs/src/operations/pureStoragePolicies.ts new file mode 100644 index 000000000000..a555d2b0a1c6 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/pureStoragePolicies.ts @@ -0,0 +1,496 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper.js"; +import { PureStoragePolicies } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl.js"; +import { + PureStoragePolicy, + PureStoragePoliciesListNextOptionalParams, + PureStoragePoliciesListOptionalParams, + PureStoragePoliciesListResponse, + PureStoragePoliciesGetOptionalParams, + PureStoragePoliciesGetResponse, + PureStoragePoliciesCreateOrUpdateOptionalParams, + PureStoragePoliciesCreateOrUpdateResponse, + PureStoragePoliciesDeleteOptionalParams, + PureStoragePoliciesDeleteResponse, + PureStoragePoliciesListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing PureStoragePolicies operations. */ +export class PureStoragePoliciesImpl implements PureStoragePolicies { + private readonly client: AzureVMwareSolutionAPI; + + /** + * Initialize a new instance of the class PureStoragePolicies class. + * @param client Reference to the service client + */ + constructor(client: AzureVMwareSolutionAPI) { + this.client = client; + } + + /** + * List PureStoragePolicy resources by PrivateCloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + privateCloudName: string, + options?: PureStoragePoliciesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + privateCloudName: string, + options?: PureStoragePoliciesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PureStoragePoliciesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, privateCloudName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + privateCloudName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + privateCloudName: string, + options?: PureStoragePoliciesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { + yield* page; + } + } + + /** + * List PureStoragePolicy resources by PrivateCloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + privateCloudName: string, + options?: PureStoragePoliciesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, options }, + listOperationSpec, + ); + } + + /** + * Get a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + options?: PureStoragePoliciesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, storagePolicyName, options }, + getOperationSpec, + ); + } + + /** + * Create a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + resource: PureStoragePolicy, + options?: PureStoragePoliciesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PureStoragePoliciesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + privateCloudName, + storagePolicyName, + resource, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + PureStoragePoliciesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Create a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + resource: PureStoragePolicy, + options?: PureStoragePoliciesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + privateCloudName, + storagePolicyName, + resource, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Delete a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + options?: PureStoragePoliciesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PureStoragePoliciesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, privateCloudName, storagePolicyName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + PureStoragePoliciesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Delete a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + options?: PureStoragePoliciesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + privateCloudName, + storagePolicyName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + privateCloudName: string, + nextLink: string, + options?: PureStoragePoliciesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateCloudName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/pureStoragePolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PureStoragePolicyListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/pureStoragePolicies/{storagePolicyName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PureStoragePolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.storagePolicyName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/pureStoragePolicies/{storagePolicyName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PureStoragePolicy, + }, + 201: { + bodyMapper: Mappers.PureStoragePolicy, + }, + 202: { + bodyMapper: Mappers.PureStoragePolicy, + }, + 204: { + bodyMapper: Mappers.PureStoragePolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.resource1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.storagePolicyName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/pureStoragePolicies/{storagePolicyName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.PureStoragePoliciesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.PureStoragePoliciesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.PureStoragePoliciesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.PureStoragePoliciesDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.storagePolicyName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PureStoragePolicyListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/avs/arm-avs/src/operations/scriptCmdlets.ts b/sdk/avs/arm-avs/src/operations/scriptCmdlets.ts index 97d21490cf87..faa4a30fcd8f 100644 --- a/sdk/avs/arm-avs/src/operations/scriptCmdlets.ts +++ b/sdk/avs/arm-avs/src/operations/scriptCmdlets.ts @@ -87,12 +87,7 @@ export class ScriptCmdletsImpl implements ScriptCmdlets { let result: ScriptCmdletsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - privateCloudName, - scriptPackageName, - options, - ); + result = await this._list(resourceGroupName, privateCloudName, scriptPackageName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); diff --git a/sdk/avs/arm-avs/src/operations/scriptExecutions.ts b/sdk/avs/arm-avs/src/operations/scriptExecutions.ts index 42c27bdfdefa..3b0d32b23102 100644 --- a/sdk/avs/arm-avs/src/operations/scriptExecutions.ts +++ b/sdk/avs/arm-avs/src/operations/scriptExecutions.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { ScriptExecution, @@ -58,11 +54,7 @@ export class ScriptExecutionsImpl implements ScriptExecutions { privateCloudName: string, options?: ScriptExecutionsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -74,12 +66,7 @@ export class ScriptExecutionsImpl implements ScriptExecutions { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -118,11 +105,7 @@ export class ScriptExecutionsImpl implements ScriptExecutions { privateCloudName: string, options?: ScriptExecutionsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } @@ -193,8 +176,7 @@ export class ScriptExecutionsImpl implements ScriptExecutions { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -292,8 +274,7 @@ export class ScriptExecutionsImpl implements ScriptExecutions { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operations/scriptPackages.ts b/sdk/avs/arm-avs/src/operations/scriptPackages.ts index afed7877e995..aea1a583b507 100644 --- a/sdk/avs/arm-avs/src/operations/scriptPackages.ts +++ b/sdk/avs/arm-avs/src/operations/scriptPackages.ts @@ -47,11 +47,7 @@ export class ScriptPackagesImpl implements ScriptPackages { privateCloudName: string, options?: ScriptPackagesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -63,12 +59,7 @@ export class ScriptPackagesImpl implements ScriptPackages { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -107,11 +98,7 @@ export class ScriptPackagesImpl implements ScriptPackages { privateCloudName: string, options?: ScriptPackagesListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } diff --git a/sdk/avs/arm-avs/src/operations/skus.ts b/sdk/avs/arm-avs/src/operations/skus.ts new file mode 100644 index 000000000000..dcdb2f533f99 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/skus.ts @@ -0,0 +1,142 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Skus } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; +import { + ResourceSku, + SkusListNextOptionalParams, + SkusListOptionalParams, + SkusListResponse, + SkusListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing Skus operations. */ +export class SkusImpl implements Skus { + private readonly client: AzureVMwareSolutionAPI; + + /** + * Initialize a new instance of the class Skus class. + * @param client Reference to the service client + */ + constructor(client: AzureVMwareSolutionAPI) { + this.client = client; + } + + /** + * A list of SKUs. + * @param options The options parameters. + */ + public list(options?: SkusListOptionalParams): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: SkusListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: SkusListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: SkusListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * A list of SKUs. + * @param options The options parameters. + */ + private _list(options?: SkusListOptionalParams): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: SkusListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PagedResourceSku, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PagedResourceSku, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/avs/arm-avs/src/operations/virtualMachines.ts b/sdk/avs/arm-avs/src/operations/virtualMachines.ts index f7751e678ce5..e861cf125fc1 100644 --- a/sdk/avs/arm-avs/src/operations/virtualMachines.ts +++ b/sdk/avs/arm-avs/src/operations/virtualMachines.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { VirtualMachine, @@ -58,12 +54,7 @@ export class VirtualMachinesImpl implements VirtualMachines { clusterName: string, options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - clusterName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, clusterName, options); return { next() { return iter.next(); @@ -96,12 +87,7 @@ export class VirtualMachinesImpl implements VirtualMachines { let result: VirtualMachinesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - privateCloudName, - clusterName, - options, - ); + result = await this._list(resourceGroupName, privateCloudName, clusterName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -190,7 +176,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param virtualMachineId ID of the virtual machine. - * @param restrictMovement The body type of the operation request. + * @param restrictMovement The content of the action request * @param options The options parameters. */ async beginRestrictMovement( @@ -216,8 +202,7 @@ export class VirtualMachinesImpl implements VirtualMachines { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -274,7 +259,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param virtualMachineId ID of the virtual machine. - * @param restrictMovement The body type of the operation request. + * @param restrictMovement The content of the action request * @param options The options parameters. */ async beginRestrictMovementAndWait( diff --git a/sdk/avs/arm-avs/src/operations/workloadNetworks.ts b/sdk/avs/arm-avs/src/operations/workloadNetworks.ts index f49372a22dfa..ae2e9e2a29d3 100644 --- a/sdk/avs/arm-avs/src/operations/workloadNetworks.ts +++ b/sdk/avs/arm-avs/src/operations/workloadNetworks.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { WorkloadNetwork, @@ -149,11 +145,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -165,12 +157,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -209,11 +196,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - privateCloudName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, privateCloudName, options)) { yield* page; } } @@ -229,11 +212,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListDhcpOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listDhcpPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listDhcpPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -245,12 +224,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listDhcpPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listDhcpPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -264,11 +238,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListDhcpResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listDhcp( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listDhcp(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -313,11 +283,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListDnsServicesOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listDnsServicesPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listDnsServicesPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -348,11 +314,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListDnsServicesResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listDnsServices( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listDnsServices(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -397,11 +359,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListDnsZonesOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listDnsZonesPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listDnsZonesPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -413,12 +371,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listDnsZonesPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listDnsZonesPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -432,11 +385,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListDnsZonesResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listDnsZones( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listDnsZones(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -481,11 +430,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListGatewaysOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listGatewaysPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listGatewaysPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -497,12 +442,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listGatewaysPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listGatewaysPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -516,11 +456,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListGatewaysResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listGateways( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listGateways(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -565,11 +501,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListPortMirroringOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPortMirroringPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPortMirroringPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -600,11 +532,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListPortMirroringResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listPortMirroring( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listPortMirroring(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -649,11 +577,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListPublicIPsOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPublicIPsPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listPublicIPsPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -665,12 +589,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPublicIPsPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listPublicIPsPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -684,11 +603,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListPublicIPsResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listPublicIPs( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listPublicIPs(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -733,11 +648,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListSegmentsOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listSegmentsPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listSegmentsPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -749,12 +660,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listSegmentsPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listSegmentsPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -768,11 +674,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListSegmentsResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listSegments( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listSegments(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -817,11 +719,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListVirtualMachinesOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listVirtualMachinesPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listVirtualMachinesPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -852,11 +750,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListVirtualMachinesResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listVirtualMachines( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listVirtualMachines(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -901,11 +795,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { privateCloudName: string, options?: WorkloadNetworksListVMGroupsOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listVMGroupsPagingAll( - resourceGroupName, - privateCloudName, - options, - ); + const iter = this.listVMGroupsPagingAll(resourceGroupName, privateCloudName, options); return { next() { return iter.next(); @@ -917,12 +807,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listVMGroupsPagingPage( - resourceGroupName, - privateCloudName, - options, - settings, - ); + return this.listVMGroupsPagingPage(resourceGroupName, privateCloudName, options, settings); }, }; } @@ -936,11 +821,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { let result: WorkloadNetworksListVMGroupsResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listVMGroups( - resourceGroupName, - privateCloudName, - options, - ); + result = await this._listVMGroups(resourceGroupName, privateCloudName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -1074,8 +955,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1180,8 +1060,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1279,8 +1158,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1334,12 +1212,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { dhcpId: string, options?: WorkloadNetworksDeleteDhcpOptionalParams, ): Promise { - const poller = await this.beginDeleteDhcp( - resourceGroupName, - privateCloudName, - dhcpId, - options, - ); + const poller = await this.beginDeleteDhcp(resourceGroupName, privateCloudName, dhcpId, options); return poller.pollUntilDone(); } @@ -1409,8 +1282,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1515,8 +1387,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1614,8 +1485,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1744,8 +1614,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1850,8 +1719,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -1949,8 +1817,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2115,8 +1982,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2221,8 +2087,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2320,8 +2185,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2450,8 +2314,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2549,8 +2412,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2679,8 +2541,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2785,8 +2646,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -2884,8 +2744,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -3050,8 +2909,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -3156,8 +3014,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -3255,8 +3112,7 @@ export class WorkloadNetworksImpl implements WorkloadNetworks { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/addons.ts b/sdk/avs/arm-avs/src/operationsInterfaces/addons.ts index 646a8eeac056..f4ad91db9fe3 100644 --- a/sdk/avs/arm-avs/src/operationsInterfaces/addons.ts +++ b/sdk/avs/arm-avs/src/operationsInterfaces/addons.ts @@ -60,10 +60,7 @@ export interface Addons { addon: Addon, options?: AddonsCreateOrUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AddonsCreateOrUpdateResponse - > + SimplePollerLike, AddonsCreateOrUpdateResponse> >; /** * Create a Addon diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/clusters.ts b/sdk/avs/arm-avs/src/operationsInterfaces/clusters.ts index 6ce600c9a62d..4ba91f1f1497 100644 --- a/sdk/avs/arm-avs/src/operationsInterfaces/clusters.ts +++ b/sdk/avs/arm-avs/src/operationsInterfaces/clusters.ts @@ -65,10 +65,7 @@ export interface Clusters { cluster: Cluster, options?: ClustersCreateOrUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - ClustersCreateOrUpdateResponse - > + SimplePollerLike, ClustersCreateOrUpdateResponse> >; /** * Create a Cluster @@ -90,7 +87,7 @@ export interface Clusters { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster - * @param clusterUpdate The cluster properties to be updated. + * @param clusterUpdate The resource properties to be updated. * @param options The options parameters. */ beginUpdate( @@ -99,18 +96,13 @@ export interface Clusters { clusterName: string, clusterUpdate: ClusterUpdate, options?: ClustersUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ClustersUpdateResponse - > - >; + ): Promise, ClustersUpdateResponse>>; /** * Update a Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster - * @param clusterUpdate The cluster properties to be updated. + * @param clusterUpdate The resource properties to be updated. * @param options The options parameters. */ beginUpdateAndWait( diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/hosts.ts b/sdk/avs/arm-avs/src/operationsInterfaces/hosts.ts new file mode 100644 index 000000000000..9386628f74e9 --- /dev/null +++ b/sdk/avs/arm-avs/src/operationsInterfaces/hosts.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + Host, + HostsListOptionalParams, + HostsGetOptionalParams, + HostsGetResponse, +} from "../models/index.js"; + +/// +/** Interface representing a Hosts. */ +export interface Hosts { + /** + * List Host resources by Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster + * @param options The options parameters. + */ + list( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + options?: HostsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get a Host + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster + * @param hostId The host identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateCloudName: string, + clusterName: string, + hostId: string, + options?: HostsGetOptionalParams, + ): Promise; +} diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/index.ts b/sdk/avs/arm-avs/src/operationsInterfaces/index.ts index ee1071d19a18..25933aaff966 100644 --- a/sdk/avs/arm-avs/src/operationsInterfaces/index.ts +++ b/sdk/avs/arm-avs/src/operationsInterfaces/index.ts @@ -9,16 +9,20 @@ export * from "./operations.js"; export * from "./locations.js"; export * from "./privateClouds.js"; +export * from "./skus.js"; export * from "./addons.js"; export * from "./authorizations.js"; export * from "./cloudLinks.js"; export * from "./clusters.js"; export * from "./datastores.js"; +export * from "./hosts.js"; export * from "./placementPolicies.js"; export * from "./virtualMachines.js"; export * from "./globalReachConnections.js"; export * from "./hcxEnterpriseSites.js"; export * from "./iscsiPaths.js"; +export * from "./provisionedNetworks.js"; +export * from "./pureStoragePolicies.js"; export * from "./scriptExecutions.js"; export * from "./scriptPackages.js"; export * from "./scriptCmdlets.js"; diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/operations.ts b/sdk/avs/arm-avs/src/operationsInterfaces/operations.ts index 2c280c7eb723..a3957b6a87d0 100644 --- a/sdk/avs/arm-avs/src/operationsInterfaces/operations.ts +++ b/sdk/avs/arm-avs/src/operationsInterfaces/operations.ts @@ -16,7 +16,5 @@ export interface Operations { * List the operations for the provider * @param options The options parameters. */ - list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/placementPolicies.ts b/sdk/avs/arm-avs/src/operationsInterfaces/placementPolicies.ts index 17cc93473388..7c45327aa780 100644 --- a/sdk/avs/arm-avs/src/operationsInterfaces/placementPolicies.ts +++ b/sdk/avs/arm-avs/src/operationsInterfaces/placementPolicies.ts @@ -97,7 +97,7 @@ export interface PlacementPolicies { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param placementPolicyName Name of the placement policy. - * @param placementPolicyUpdate The placement policy properties to be updated. + * @param placementPolicyUpdate The resource properties to be updated. * @param options The options parameters. */ beginUpdate( @@ -119,7 +119,7 @@ export interface PlacementPolicies { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param placementPolicyName Name of the placement policy. - * @param placementPolicyUpdate The placement policy properties to be updated. + * @param placementPolicyUpdate The resource properties to be updated. * @param options The options parameters. */ beginUpdateAndWait( diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/privateClouds.ts b/sdk/avs/arm-avs/src/operationsInterfaces/privateClouds.ts index b02d090b6c5a..1f61163d53b8 100644 --- a/sdk/avs/arm-avs/src/operationsInterfaces/privateClouds.ts +++ b/sdk/avs/arm-avs/src/operationsInterfaces/privateClouds.ts @@ -93,7 +93,7 @@ export interface PrivateClouds { * Update a PrivateCloud * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud - * @param privateCloudUpdate The private cloud properties to be updated. + * @param privateCloudUpdate The resource properties to be updated. * @param options The options parameters. */ beginUpdate( @@ -102,16 +102,13 @@ export interface PrivateClouds { privateCloudUpdate: PrivateCloudUpdate, options?: PrivateCloudsUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - PrivateCloudsUpdateResponse - > + SimplePollerLike, PrivateCloudsUpdateResponse> >; /** * Update a PrivateCloud * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud - * @param privateCloudUpdate The private cloud properties to be updated. + * @param privateCloudUpdate The resource properties to be updated. * @param options The options parameters. */ beginUpdateAndWait( diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/provisionedNetworks.ts b/sdk/avs/arm-avs/src/operationsInterfaces/provisionedNetworks.ts new file mode 100644 index 000000000000..e5c628dd9f08 --- /dev/null +++ b/sdk/avs/arm-avs/src/operationsInterfaces/provisionedNetworks.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProvisionedNetwork, + ProvisionedNetworksListOptionalParams, + ProvisionedNetworksGetOptionalParams, + ProvisionedNetworksGetResponse, +} from "../models/index.js"; + +/// +/** Interface representing a ProvisionedNetworks. */ +export interface ProvisionedNetworks { + /** + * List ProvisionedNetwork resources by PrivateCloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The options parameters. + */ + list( + resourceGroupName: string, + privateCloudName: string, + options?: ProvisionedNetworksListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get a ProvisionedNetwork + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param provisionedNetworkName Name of the cloud link. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateCloudName: string, + provisionedNetworkName: string, + options?: ProvisionedNetworksGetOptionalParams, + ): Promise; +} diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/pureStoragePolicies.ts b/sdk/avs/arm-avs/src/operationsInterfaces/pureStoragePolicies.ts new file mode 100644 index 000000000000..8b951f007457 --- /dev/null +++ b/sdk/avs/arm-avs/src/operationsInterfaces/pureStoragePolicies.ts @@ -0,0 +1,115 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PureStoragePolicy, + PureStoragePoliciesListOptionalParams, + PureStoragePoliciesGetOptionalParams, + PureStoragePoliciesGetResponse, + PureStoragePoliciesCreateOrUpdateOptionalParams, + PureStoragePoliciesCreateOrUpdateResponse, + PureStoragePoliciesDeleteOptionalParams, + PureStoragePoliciesDeleteResponse, +} from "../models/index.js"; + +/// +/** Interface representing a PureStoragePolicies. */ +export interface PureStoragePolicies { + /** + * List PureStoragePolicy resources by PrivateCloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The options parameters. + */ + list( + resourceGroupName: string, + privateCloudName: string, + options?: PureStoragePoliciesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + options?: PureStoragePoliciesGetOptionalParams, + ): Promise; + /** + * Create a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + resource: PureStoragePolicy, + options?: PureStoragePoliciesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PureStoragePoliciesCreateOrUpdateResponse + > + >; + /** + * Create a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param resource Resource create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + resource: PureStoragePolicy, + options?: PureStoragePoliciesCreateOrUpdateOptionalParams, + ): Promise; + /** + * Delete a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + options?: PureStoragePoliciesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PureStoragePoliciesDeleteResponse + > + >; + /** + * Delete a PureStoragePolicy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param storagePolicyName Name of the storage policy. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + privateCloudName: string, + storagePolicyName: string, + options?: PureStoragePoliciesDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/skus.ts b/sdk/avs/arm-avs/src/operationsInterfaces/skus.ts new file mode 100644 index 000000000000..c9187bfb542f --- /dev/null +++ b/sdk/avs/arm-avs/src/operationsInterfaces/skus.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ResourceSku, SkusListOptionalParams } from "../models/index.js"; + +/// +/** Interface representing a Skus. */ +export interface Skus { + /** + * A list of SKUs. + * @param options The options parameters. + */ + list(options?: SkusListOptionalParams): PagedAsyncIterableIterator; +} diff --git a/sdk/avs/arm-avs/src/operationsInterfaces/virtualMachines.ts b/sdk/avs/arm-avs/src/operationsInterfaces/virtualMachines.ts index d1592a274401..588d7c2956f6 100644 --- a/sdk/avs/arm-avs/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/avs/arm-avs/src/operationsInterfaces/virtualMachines.ts @@ -55,7 +55,7 @@ export interface VirtualMachines { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param virtualMachineId ID of the virtual machine. - * @param restrictMovement The body type of the operation request. + * @param restrictMovement The content of the action request * @param options The options parameters. */ beginRestrictMovement( @@ -77,7 +77,7 @@ export interface VirtualMachines { * @param privateCloudName Name of the private cloud * @param clusterName Name of the cluster * @param virtualMachineId ID of the virtual machine. - * @param restrictMovement The body type of the operation request. + * @param restrictMovement The content of the action request * @param options The options parameters. */ beginRestrictMovementAndWait( diff --git a/sdk/avs/arm-avs/src/pagingHelper.ts b/sdk/avs/arm-avs/src/pagingHelper.ts index 205cccc26592..e362819bdfc4 100644 --- a/sdk/avs/arm-avs/src/pagingHelper.ts +++ b/sdk/avs/arm-avs/src/pagingHelper.ts @@ -26,10 +26,7 @@ export function getContinuationToken(page: unknown): string | undefined { return pageMap.get(page)?.continuationToken; } -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined, -): void { +export function setContinuationToken(page: unknown, continuationToken: string | undefined): void { if (typeof page !== "object" || page === null || !continuationToken) { return; } diff --git a/sdk/avs/arm-avs/test/sampleTest.spec.ts b/sdk/avs/arm-avs/test/sampleTest.spec.ts new file mode 100644 index 000000000000..90b3c8a868b4 --- /dev/null +++ b/sdk/avs/arm-avs/test/sampleTest.spec.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { Recorder, RecorderStartOptions } from "@azure-tools/test-recorder"; +import { afterEach, beforeEach, describe, it, assert } from "vitest"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async () => { + recorder = new Recorder(); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async () => { + assert(true); + }); +}); diff --git a/sdk/avs/arm-avs/test/snippets.spec.ts b/sdk/avs/arm-avs/test/snippets.spec.ts index 06734cd090d5..887e191b2f2e 100644 --- a/sdk/avs/arm-avs/test/snippets.spec.ts +++ b/sdk/avs/arm-avs/test/snippets.spec.ts @@ -1,5 +1,10 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ import { AzureVMwareSolutionAPI } from "../src/index.js"; import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; diff --git a/sdk/avs/arm-avs/tsconfig.browser.config.json b/sdk/avs/arm-avs/tsconfig.browser.config.json index b6586181d006..75871518e3a0 100644 --- a/sdk/avs/arm-avs/tsconfig.browser.config.json +++ b/sdk/avs/arm-avs/tsconfig.browser.config.json @@ -1,17 +1,3 @@ { - "extends": "./.tshy/build.json", - "include": [ - "./src/**/*.ts", - "./src/**/*.mts", - "./test/**/*.spec.ts", - "./test/**/*.mts" - ], - "exclude": [ - "./test/**/node/**/*.ts" - ], - "compilerOptions": { - "outDir": "./dist-test/browser", - "rootDir": ".", - "skipLibCheck": true - } + "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] } diff --git a/sdk/avs/arm-avs/tsconfig.json b/sdk/avs/arm-avs/tsconfig.json index 19ceb382b521..59ea83c046bf 100644 --- a/sdk/avs/arm-avs/tsconfig.json +++ b/sdk/avs/arm-avs/tsconfig.json @@ -3,11 +3,8 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } ] -} +} \ No newline at end of file diff --git a/sdk/avs/arm-avs/tsconfig.samples.json b/sdk/avs/arm-avs/tsconfig.samples.json index 14ec0221a2d2..4f72699b44c3 100644 --- a/sdk/avs/arm-avs/tsconfig.samples.json +++ b/sdk/avs/arm-avs/tsconfig.samples.json @@ -2,9 +2,7 @@ "extends": "../../../tsconfig.samples.base.json", "compilerOptions": { "paths": { - "@azure/arm-avs": [ - "./dist/esm" - ] + "@azure/arm-avs": ["./dist/esm"] } } } diff --git a/sdk/avs/arm-avs/tsconfig.test.json b/sdk/avs/arm-avs/tsconfig.test.json index 3c2b783a8c1b..290ca214aebc 100644 --- a/sdk/avs/arm-avs/tsconfig.test.json +++ b/sdk/avs/arm-avs/tsconfig.test.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.src.json", - "../../../tsconfig.test.base.json" - ] + "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] } diff --git a/sdk/avs/arm-avs/vitest.browser.config.ts b/sdk/avs/arm-avs/vitest.browser.config.ts index b48c61b2ef46..182729ab5ce9 100644 --- a/sdk/avs/arm-avs/vitest.browser.config.ts +++ b/sdk/avs/arm-avs/vitest.browser.config.ts @@ -9,9 +9,9 @@ export default mergeConfig( viteConfig, defineConfig({ test: { - include: [ - "dist-test/browser/test/**/*.spec.js", - ], + include: ["dist-test/browser/test/**/*.spec.js",], + testTimeout: 1200000, + hookTimeout: 1200000, }, }), ); diff --git a/sdk/avs/arm-avs/vitest.config.ts b/sdk/avs/arm-avs/vitest.config.ts index 2a4750c84292..40e031385dd8 100644 --- a/sdk/avs/arm-avs/vitest.config.ts +++ b/sdk/avs/arm-avs/vitest.config.ts @@ -1,3 +1,4 @@ + // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. @@ -8,8 +9,8 @@ export default mergeConfig( viteConfig, defineConfig({ test: { - hookTimeout: 1200000, testTimeout: 1200000, + hookTimeout: 1200000, }, }), );