Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-compute] Compute GalleryRP release 2023-07-03 #8256

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
803 changes: 428 additions & 375 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

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

## 21.5.0 (2024-02-01)

**Features**

## 21.4.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface GalleryArtifactVersionFullSource has a new optional parameter virtualMachineId


## 21.4.0 (2023-12-28)

**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": "4792bce7667477529991457890b4a6b670e70508",
"commit": "03bd1e12bba133b171cb8085d4b8dd26670ebb23",
"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"
}
18 changes: 4 additions & 14 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.4.1",
"version": "21.5.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^2.1.2",
"typescript": "~5.3.3",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
Expand All @@ -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"
}
1 change: 1 addition & 0 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,7 @@ export interface GalleryArtifactSource {
// @public
export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource {
communityGalleryImageId?: string;
virtualMachineId?: string;
}

// @public
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.4.1`;
const packageDetails = `azsdk-js-arm-compute/21.5.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
Loading