Skip to content

Commit

Permalink
[mgmt] networkcloud release (Azure#33140)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored Feb 27, 2025
1 parent 278c109 commit b05b383
Show file tree
Hide file tree
Showing 402 changed files with 2,944 additions and 2,223 deletions.
6 changes: 3 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

145 changes: 136 additions & 9 deletions sdk/networkcloud/arm-networkcloud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,142 @@
# Release History

## 2.0.0-beta.2 (Unreleased)

## 1.1.0 (2025-02-20)
### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation group KubernetesClusterFeatures
- Added operation Clusters.beginContinueUpdateVersion
- Added operation Clusters.beginContinueUpdateVersionAndWait
- Added operation Clusters.beginScanRuntime
- Added operation Clusters.beginScanRuntimeAndWait
- Added Interface AdministratorConfigurationPatch
- Added Interface ClusterContinueUpdateVersionParameters
- Added Interface ClusterScanRuntimeParameters
- Added Interface ClustersContinueUpdateVersionHeaders
- Added Interface ClustersContinueUpdateVersionOptionalParams
- Added Interface ClusterSecretArchive
- Added Interface ClustersScanRuntimeHeaders
- Added Interface ClustersScanRuntimeOptionalParams
- Added Interface ClusterUpdateStrategy
- Added Interface CommandOutputSettings
- Added Interface IdentitySelector
- Added Interface KubernetesClusterFeature
- Added Interface KubernetesClusterFeatureList
- Added Interface KubernetesClusterFeaturePatchParameters
- Added Interface KubernetesClusterFeaturesCreateOrUpdateHeaders
- Added Interface KubernetesClusterFeaturesCreateOrUpdateOptionalParams
- Added Interface KubernetesClusterFeaturesDeleteHeaders
- Added Interface KubernetesClusterFeaturesDeleteOptionalParams
- Added Interface KubernetesClusterFeaturesGetOptionalParams
- Added Interface KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams
- Added Interface KubernetesClusterFeaturesListByKubernetesClusterOptionalParams
- Added Interface KubernetesClusterFeaturesUpdateHeaders
- Added Interface KubernetesClusterFeaturesUpdateOptionalParams
- Added Interface L2ServiceLoadBalancerConfiguration
- Added Interface ManagedServiceIdentity
- Added Interface NodePoolAdministratorConfigurationPatch
- Added Interface RuntimeProtectionConfiguration
- Added Interface RuntimeProtectionStatus
- Added Interface SecretArchiveReference
- Added Interface SecretRotationStatus
- Added Interface StringKeyValuePair
- Added Interface UserAssignedIdentity
- Added Type Alias AgentPoolsDeleteResponse
- Added Type Alias BareMetalMachineKeySetsDeleteResponse
- Added Type Alias BareMetalMachinesDeleteResponse
- Added Type Alias BmcKeySetsDeleteResponse
- Added Type Alias CloudServicesNetworksDeleteResponse
- Added Type Alias ClusterContinueUpdateVersionMachineGroupTargetingMode
- Added Type Alias ClusterManagersDeleteResponse
- Added Type Alias ClusterScanRuntimeParametersScanActivity
- Added Type Alias ClustersContinueUpdateVersionResponse
- Added Type Alias ClustersDeleteResponse
- Added Type Alias ClusterSecretArchiveEnabled
- Added Type Alias ClustersScanRuntimeResponse
- Added Type Alias ClusterUpdateStrategyType
- Added Type Alias ConsolesDeleteResponse
- Added Type Alias KubernetesClusterFeatureAvailabilityLifecycle
- Added Type Alias KubernetesClusterFeatureDetailedStatus
- Added Type Alias KubernetesClusterFeatureProvisioningState
- Added Type Alias KubernetesClusterFeatureRequired
- Added Type Alias KubernetesClusterFeaturesCreateOrUpdateResponse
- Added Type Alias KubernetesClusterFeaturesDeleteResponse
- Added Type Alias KubernetesClusterFeaturesGetResponse
- Added Type Alias KubernetesClusterFeaturesListByKubernetesClusterNextResponse
- Added Type Alias KubernetesClusterFeaturesListByKubernetesClusterResponse
- Added Type Alias KubernetesClusterFeaturesUpdateResponse
- Added Type Alias KubernetesClustersDeleteResponse
- Added Type Alias L2NetworksDeleteResponse
- Added Type Alias L3NetworksDeleteResponse
- Added Type Alias ManagedServiceIdentitySelectorType
- Added Type Alias ManagedServiceIdentityType
- Added Type Alias MetricsConfigurationsDeleteResponse
- Added Type Alias RacksDeleteResponse
- Added Type Alias RuntimeProtectionEnforcementLevel
- Added Type Alias StorageAppliancesDeleteResponse
- Added Type Alias TrunkedNetworksDeleteResponse
- Added Type Alias VirtualMachinesDeleteResponse
- Added Type Alias VolumesDeleteResponse
- Interface AgentPoolPatchParameters has a new optional parameter administratorConfiguration
- Interface AgentPoolsUpdateHeaders has a new optional parameter location
- Interface AgentPoolUpgradeSettings has a new optional parameter drainTimeout
- Interface AgentPoolUpgradeSettings has a new optional parameter maxUnavailable
- Interface BareMetalMachine has a new optional parameter machineClusterVersion
- Interface BareMetalMachine has a new optional parameter machineRoles
- Interface BareMetalMachine has a new optional parameter runtimeProtectionStatus
- Interface BareMetalMachine has a new optional parameter secretRotationStatus
- Interface BareMetalMachineKeySetsUpdateHeaders has a new optional parameter location
- Interface BareMetalMachinesUpdateHeaders has a new optional parameter location
- Interface BmcKeySetsUpdateHeaders has a new optional parameter location
- Interface CloudServicesNetworksUpdateHeaders has a new optional parameter location
- Interface Cluster has a new optional parameter commandOutputSettings
- Interface Cluster has a new optional parameter identity
- Interface Cluster has a new optional parameter runtimeProtectionConfiguration
- Interface Cluster has a new optional parameter secretArchive
- Interface Cluster has a new optional parameter updateStrategy
- Interface ClusterManager has a new optional parameter identity
- Interface ClusterManagerPatchParameters has a new optional parameter identity
- Interface ClusterPatchParameters has a new optional parameter commandOutputSettings
- Interface ClusterPatchParameters has a new optional parameter identity
- Interface ClusterPatchParameters has a new optional parameter runtimeProtectionConfiguration
- Interface ClusterPatchParameters has a new optional parameter secretArchive
- Interface ClusterPatchParameters has a new optional parameter updateStrategy
- Interface ClustersUpdateHeaders has a new optional parameter location
- Interface ConsolesUpdateHeaders has a new optional parameter location
- Interface ControlPlaneNodePatchConfiguration has a new optional parameter administratorConfiguration
- Interface KeySetUser has a new optional parameter userPrincipalName
- Interface KubernetesClusterPatchParameters has a new optional parameter administratorConfiguration
- Interface KubernetesClustersUpdateHeaders has a new optional parameter location
- Interface MetricsConfigurationsUpdateHeaders has a new optional parameter location
- Interface NetworkConfiguration has a new optional parameter l2ServiceLoadBalancerConfiguration
- Interface OperationStatusResult has a new optional parameter exitCode
- Interface OperationStatusResult has a new optional parameter outputHead
- Interface OperationStatusResult has a new optional parameter resultRef
- Interface OperationStatusResult has a new optional parameter resultUrl
- Interface RacksUpdateHeaders has a new optional parameter location
- Interface StorageAppliance has a new optional parameter manufacturer
- Interface StorageAppliance has a new optional parameter model
- Interface StorageAppliance has a new optional parameter secretRotationStatus
- Interface StorageAppliance has a new optional parameter version
- Interface StorageAppliancesUpdateHeaders has a new optional parameter location
- Interface VirtualMachinesUpdateHeaders has a new optional parameter location
- Added Enum KnownClusterContinueUpdateVersionMachineGroupTargetingMode
- Added Enum KnownClusterScanRuntimeParametersScanActivity
- Added Enum KnownClusterSecretArchiveEnabled
- Added Enum KnownClusterUpdateStrategyType
- Added Enum KnownKubernetesClusterFeatureAvailabilityLifecycle
- Added Enum KnownKubernetesClusterFeatureDetailedStatus
- Added Enum KnownKubernetesClusterFeatureProvisioningState
- Added Enum KnownKubernetesClusterFeatureRequired
- Added Enum KnownManagedServiceIdentitySelectorType
- Added Enum KnownManagedServiceIdentityType
- Added Enum KnownRuntimeProtectionEnforcementLevel
- Enum KnownClusterConnectionStatus has a new value Disconnected
- Enum KnownClusterDetailedStatus has a new value UpdatePaused
- Enum KnownRackSkuProvisioningState has a new value Canceled
- Enum KnownRackSkuProvisioningState has a new value Failed


## 2.0.0-beta.1 (2024-11-18)
Compared with version 1.0.0

Expand Down
4 changes: 2 additions & 2 deletions sdk/networkcloud/arm-networkcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Network Cloud APIs provide management of the Azure Operator Nexus compute re

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkcloud) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-networkcloud) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down Expand Up @@ -44,7 +44,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure NetworkCloud** 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).

Expand Down Expand Up @@ -108,6 +107,7 @@ 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/
Expand Down
10 changes: 5 additions & 5 deletions sdk/networkcloud/arm-networkcloud/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "297c3a012316e290e6a6ab737ec8944611554542",
"commit": "35ace1532807c025b39eb837a5198115e3488f61",
"readme": "specification/networkcloud/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\\networkcloud\\resource-manager\\readme.md --use=@autorest/typescript@6.0.28 --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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\networkcloud\\resource-manager\\readme.md --use=@autorest/typescript@6.0.34 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.15",
"use": "@autorest/typescript@6.0.28"
}
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.19",
"use": "@autorest/typescript@6.0.34"
}
2 changes: 1 addition & 1 deletion sdk/networkcloud/arm-networkcloud/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/networkcloud/arm-networkcloud",
"Tag": "js/networkcloud/arm-networkcloud_8692b651dd"
"Tag": "js/networkcloud/arm-networkcloud_e99c7a9b34"
}
21 changes: 7 additions & 14 deletions sdk/networkcloud/arm-networkcloud/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 NetworkCloud.",
"version": "2.0.0-beta.2",
"version": "1.1.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -16,14 +16,7 @@
"@azure/core-rest-pipeline": "^1.19.0",
"tslib": "^2.8.1"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic",
"cloud"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic", "cloud"],
"license": "MIT",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -33,15 +26,15 @@
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.6.0",
"@azure/identity": "^4.7.0",
"@azure/logger": "^1.1.4",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.5",
"@vitest/coverage-istanbul": "^3.0.5",
"@vitest/browser": "^3.0.6",
"@vitest/coverage-istanbul": "^3.0.6",
"dotenv": "^16.0.0",
"playwright": "^1.50.1",
"typescript": "~5.7.2",
"vitest": "^3.0.5"
"typescript": "~5.6.2",
"vitest": "^3.0.6"
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import type { AgentPool } from "@azure/arm-networkcloud";

import type { AgentPool} from "@azure/arm-networkcloud";
import { NetworkCloud } from "@azure/arm-networkcloud";
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand All @@ -14,12 +15,14 @@ import "dotenv/config";
* This sample demonstrates how to Create a new Kubernetes cluster agent pool or update the properties of the existing one.
*
* @summary Create a new Kubernetes cluster agent pool or update the properties of the existing one.
* x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Create.json
* x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2024-07-01/examples/AgentPools_Create.json
*/
async function createOrUpdateKubernetesClusterAgentPool(): Promise<void> {
const subscriptionId =
process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000";
const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName";
process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] ||
"123e4567-e89b-12d3-a456-426655440000";
const resourceGroupName =
process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName";
const kubernetesClusterName = "kubernetesClusterName";
const agentPoolName = "agentPoolName";
const agentPoolParameters: AgentPool = {
Expand Down Expand Up @@ -67,9 +70,9 @@ async function createOrUpdateKubernetesClusterAgentPool(): Promise<void> {
location: "location",
mode: "System",
tags: { key1: "myvalue1", key2: "myvalue2" },
taints: [{ key: "kubernetes.taint", value: "true" }],
taints: [{ key: "kubernetes.taint", value: "true:NoSchedule" }],
upgradeSettings: { maxSurge: "1" },
vmSkuName: "NC_XXXX",
vmSkuName: "NC_P46_224_v1",
};
const credential = new DefaultAzureCredential();
const client = new NetworkCloud(credential, subscriptionId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 { NetworkCloud } from "@azure/arm-networkcloud";
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand All @@ -13,12 +14,14 @@ import "dotenv/config";
* This sample demonstrates how to Delete the provided Kubernetes cluster agent pool.
*
* @summary Delete the provided Kubernetes cluster agent pool.
* x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Delete.json
* x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2024-07-01/examples/AgentPools_Delete.json
*/
async function deleteKubernetesClusterAgentPool(): Promise<void> {
const subscriptionId =
process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000";
const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName";
process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] ||
"123e4567-e89b-12d3-a456-426655440000";
const resourceGroupName =
process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName";
const kubernetesClusterName = "kubernetesClusterName";
const agentPoolName = "agentPoolName";
const credential = new DefaultAzureCredential();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 { NetworkCloud } from "@azure/arm-networkcloud";
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand All @@ -13,12 +14,14 @@ import "dotenv/config";
* This sample demonstrates how to Get properties of the provided Kubernetes cluster agent pool.
*
* @summary Get properties of the provided Kubernetes cluster agent pool.
* x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Get.json
* x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2024-07-01/examples/AgentPools_Get.json
*/
async function getKubernetesClusterAgentPool(): Promise<void> {
const subscriptionId =
process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000";
const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName";
process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] ||
"123e4567-e89b-12d3-a456-426655440000";
const resourceGroupName =
process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName";
const kubernetesClusterName = "kubernetesClusterName";
const agentPoolName = "agentPoolName";
const credential = new DefaultAzureCredential();
Expand Down
Loading

0 comments on commit b05b383

Please sign in to comment.