Skip to content

Commit

Permalink
CodeGen from PR 27518 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 74df0425758d87de13105fd0e69616ea21ec6df2 into c75671ae0a5d82d7d96fda75150478e8581408d8
  • Loading branch information
SDKAuto committed Jan 24, 2024
1 parent 0d606f3 commit 5213e50
Show file tree
Hide file tree
Showing 112 changed files with 13,768 additions and 13,882 deletions.
24 changes: 20 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Release History

## 21.4.0 (2024-01-24)

**Features**

## 21.3.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Type Alias ProvisionedBandwidthCopyOption
- Interface CreationData has a new optional parameter provisionedBandwidthCopySpeed
- Added Enum KnownProvisionedBandwidthCopyOption
- Enum KnownDiskSecurityTypes has a new value ConfidentialVMNonPersistedTPM


## 21.3.0 (2023-12-08)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Microsoft
Copyright (c) 2024 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "0373f0edc4414fd402603fac51d0df93f1f70507",
"commit": "d2f37c336eb7dd6bc3f8e66251a0444f5c6a3721",
"readme": "specification/compute/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\\compute\\resource-manager\\readme.md --use=@autorest/[email protected].13 --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/compute/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/[email protected]",
"use": "@autorest/[email protected].13"
"use": "@autorest/typescript@^6.0.12"
}
16 changes: 3 additions & 13 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "21.3.1",
"version": "21.4.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -45,7 +45,6 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"@azure/arm-network": "^32.2.0",
"ts-node": "^10.0.0"
},
"repository": {
Expand Down Expand Up @@ -79,7 +78,6 @@
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
Expand Down Expand Up @@ -108,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute"
}
11 changes: 11 additions & 0 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,7 @@ export interface CreationData {
imageReference?: ImageDiskReference;
logicalSectorSize?: number;
performancePlus?: boolean;
provisionedBandwidthCopySpeed?: ProvisionedBandwidthCopyOption;
securityDataUri?: string;
sourceResourceId?: string;
readonly sourceUniqueId?: string;
Expand Down Expand Up @@ -3282,6 +3283,7 @@ export enum KnownDiskEncryptionSetType {
export enum KnownDiskSecurityTypes {
ConfidentialVMDiskEncryptedWithCustomerKey = "ConfidentialVM_DiskEncryptedWithCustomerKey",
ConfidentialVMDiskEncryptedWithPlatformKey = "ConfidentialVM_DiskEncryptedWithPlatformKey",
ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM",
ConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey = "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey",
TrustedLaunch = "TrustedLaunch"
}
Expand Down Expand Up @@ -3578,6 +3580,12 @@ export enum KnownPrivateEndpointServiceConnectionStatus {
Rejected = "Rejected"
}

// @public
export enum KnownProvisionedBandwidthCopyOption {
Enhanced = "Enhanced",
None = "None"
}

// @public
export enum KnownProximityPlacementGroupType {
Standard = "Standard",
Expand Down Expand Up @@ -4485,6 +4493,9 @@ export interface PropertyUpdatesInProgress {
// @public
export type ProtocolTypes = "Http" | "Https";

// @public
export type ProvisionedBandwidthCopyOption = string;

// @public
export interface ProximityPlacementGroup extends Resource {
readonly availabilitySets?: SubResourceWithColocationStatus[];
Expand Down
55 changes: 26 additions & 29 deletions sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
CloudServiceRolesImpl,
CloudServicesImpl,
CloudServicesUpdateDomainImpl,
CloudServiceOperatingSystemsImpl
CloudServiceOperatingSystemsImpl,
} from "./operations";
import {
Operations,
Expand Down Expand Up @@ -109,7 +109,7 @@ import {
CloudServiceRoles,
CloudServices,
CloudServicesUpdateDomain,
CloudServiceOperatingSystems
CloudServiceOperatingSystems,
} from "./operationsInterfaces";
import { ComputeManagementClientOptionalParams } from "./models";

Expand All @@ -127,7 +127,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
constructor(
credentials: coreAuth.TokenCredential,
subscriptionId: string,
options?: ComputeManagementClientOptionalParams
options?: ComputeManagementClientOptionalParams,
) {
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
Expand All @@ -142,10 +142,10 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
}
const defaults: ComputeManagementClientOptionalParams = {
requestContentType: "application/json; charset=utf-8",
credential: credentials
credential: credentials,
};

const packageDetails = `azsdk-js-arm-compute/21.3.1`;
const packageDetails = `azsdk-js-arm-compute/21.4.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -155,20 +155,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
...defaults,
...options,
userAgentOptions: {
userAgentPrefix
userAgentPrefix,
},
endpoint:
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
};
super(optionsWithDefaults);

let bearerTokenAuthenticationPolicyFound: boolean = false;
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
options.pipeline.getOrderedPolicies();
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
(pipelinePolicy) =>
pipelinePolicy.name ===
coreRestPipeline.bearerTokenAuthenticationPolicyName
coreRestPipeline.bearerTokenAuthenticationPolicyName,
);
}
if (
Expand All @@ -178,7 +179,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
!bearerTokenAuthenticationPolicyFound
) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
Expand All @@ -188,9 +189,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
`${optionsWithDefaults.endpoint}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
coreClient.authorizeRequestOnClaimChallenge,
},
}),
);
}
// Parameter assignments
Expand All @@ -202,24 +203,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
this.usageOperations = new UsageOperationsImpl(this);
this.virtualMachineSizes = new VirtualMachineSizesImpl(this);
this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);
this.virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsImpl(
this
);
this.virtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesImpl(
this
);
this.virtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsImpl(
this
);
this.virtualMachineScaleSetExtensions =
new VirtualMachineScaleSetExtensionsImpl(this);
this.virtualMachineScaleSetRollingUpgrades =
new VirtualMachineScaleSetRollingUpgradesImpl(this);
this.virtualMachineScaleSetVMExtensions =
new VirtualMachineScaleSetVMExtensionsImpl(this);
this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);
this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);
this.virtualMachines = new VirtualMachinesImpl(this);
this.virtualMachineImages = new VirtualMachineImagesImpl(this);
this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(
this
this,
);
this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(
this
this,
);
this.availabilitySets = new AvailabilitySetsImpl(this);
this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);
Expand All @@ -233,9 +231,8 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
this.capacityReservations = new CapacityReservationsImpl(this);
this.logAnalytics = new LogAnalyticsImpl(this);
this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);
this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl(
this
);
this.virtualMachineScaleSetVMRunCommands =
new VirtualMachineScaleSetVMRunCommandsImpl(this);
this.disks = new DisksImpl(this);
this.diskAccesses = new DiskAccessesImpl(this);
this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);
Expand All @@ -254,14 +251,14 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
this.communityGalleries = new CommunityGalleriesImpl(this);
this.communityGalleryImages = new CommunityGalleryImagesImpl(this);
this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(
this
this,
);
this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);
this.cloudServiceRoles = new CloudServiceRolesImpl(this);
this.cloudServices = new CloudServicesImpl(this);
this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);
this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(
this
this,
);
}

Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/src/lroImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
sendInitialRequest: () => sendOperationFn(args, spec),
sendPollRequest: (
path: string,
options?: { abortSignal?: AbortSignalLike }
options?: { abortSignal?: AbortSignalLike },
) => {
const { requestBody, ...restSpec } = spec;
return sendOperationFn(args, {
...restSpec,
httpMethod: "GET",
path,
abortSignal: options?.abortSignal
abortSignal: options?.abortSignal,
});
}
},
};
}
Loading

0 comments on commit 5213e50

Please sign in to comment.