Skip to content
Draft
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
16 changes: 8 additions & 8 deletions common/config/rush/pnpm-lock.yaml

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

16 changes: 3 additions & 13 deletions sdk/operationsmanagement/arm-operations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# Release History

## 4.0.0-beta.3 (2022-03-15)

## 4.0.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 4.0.0-beta.2 (2021-12-21)

The package of @azure/arm-operations is using our next generation design principles since version 4.0.0-beta.2, which contains breaking changes.
The package of @azure/arm-operations is using our next generation design principles since version 4.0.0-beta.3, which contains breaking changes.

To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).

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

Copyright (c) 2021 Microsoft
Copyright (c) 2022 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
7 changes: 4 additions & 3 deletions sdk/operationsmanagement/arm-operations/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf",
"commit": "85895d09ef5f5f4371e0acacda20ca560dd20cbf",
"readme": "specification/operationsmanagement/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/operationsmanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/operationsmanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20211217.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.1.2",
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/operationsmanagement/arm-operations/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-operations.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
6 changes: 3 additions & 3 deletions sdk/operationsmanagement/arm-operations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"types": "./types/arm-operations.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
Expand Down Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export interface ManagementAssociationPropertiesList {

// @public
export interface ManagementAssociations {
createOrUpdate(resourceGroupName: string, managementAssociationName: string, parameters: ManagementAssociation, options?: ManagementAssociationsCreateOrUpdateOptionalParams): Promise<ManagementAssociationsCreateOrUpdateResponse>;
delete(resourceGroupName: string, managementAssociationName: string, options?: ManagementAssociationsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, managementAssociationName: string, options?: ManagementAssociationsGetOptionalParams): Promise<ManagementAssociationsGetResponse>;
createOrUpdate(resourceGroupName: string, providerName: string, resourceType: string, resourceName: string, managementAssociationName: string, parameters: ManagementAssociation, options?: ManagementAssociationsCreateOrUpdateOptionalParams): Promise<ManagementAssociationsCreateOrUpdateResponse>;
delete(resourceGroupName: string, providerName: string, resourceType: string, resourceName: string, managementAssociationName: string, options?: ManagementAssociationsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, providerName: string, resourceType: string, resourceName: string, managementAssociationName: string, options?: ManagementAssociationsGetOptionalParams): Promise<ManagementAssociationsGetResponse>;
listBySubscription(options?: ManagementAssociationsListBySubscriptionOptionalParams): Promise<ManagementAssociationsListBySubscriptionResponse>;
}

Expand Down Expand Up @@ -169,7 +169,7 @@ export type OperationsListResponse = OperationListResult;
export class OperationsManagementClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, providerName: string, resourceType: string, resourceName: string, options?: OperationsManagementClientOptionalParams);
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: OperationsManagementClientOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
Expand All @@ -179,12 +179,6 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
// (undocumented)
operations: Operations;
// (undocumented)
providerName: string;
// (undocumented)
resourceName: string;
// (undocumented)
resourceType: string;
// (undocumented)
solutions: Solutions;
// (undocumented)
subscriptionId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,52 +50,92 @@ export class ManagementAssociationsImpl implements ManagementAssociations {
/**
* Creates or updates the ManagementAssociation.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param providerName Provider name for the parent resource.
* @param resourceType Resource type for the parent resource
* @param resourceName Parent resource name.
* @param managementAssociationName User ManagementAssociation Name.
* @param parameters The parameters required to create ManagementAssociation extension.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
providerName: string,
resourceType: string,
resourceName: string,
managementAssociationName: string,
parameters: ManagementAssociation,
options?: ManagementAssociationsCreateOrUpdateOptionalParams
): Promise<ManagementAssociationsCreateOrUpdateResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, managementAssociationName, parameters, options },
{
resourceGroupName,
providerName,
resourceType,
resourceName,
managementAssociationName,
parameters,
options
},
createOrUpdateOperationSpec
);
}

/**
* Deletes the ManagementAssociation in the subscription.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param providerName Provider name for the parent resource.
* @param resourceType Resource type for the parent resource
* @param resourceName Parent resource name.
* @param managementAssociationName User ManagementAssociation Name.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
providerName: string,
resourceType: string,
resourceName: string,
managementAssociationName: string,
options?: ManagementAssociationsDeleteOptionalParams
): Promise<void> {
return this.client.sendOperationRequest(
{ resourceGroupName, managementAssociationName, options },
{
resourceGroupName,
providerName,
resourceType,
resourceName,
managementAssociationName,
options
},
deleteOperationSpec
);
}

/**
* Retrieves the user ManagementAssociation.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param providerName Provider name for the parent resource.
* @param resourceType Resource type for the parent resource
* @param resourceName Parent resource name.
* @param managementAssociationName User ManagementAssociation Name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
providerName: string,
resourceType: string,
resourceName: string,
managementAssociationName: string,
options?: ManagementAssociationsGetOptionalParams
): Promise<ManagementAssociationsGetResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, managementAssociationName, options },
{
resourceGroupName,
providerName,
resourceType,
resourceName,
managementAssociationName,
options
},
getOperationSpec
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,53 @@ export interface ManagementAssociations {
/**
* Creates or updates the ManagementAssociation.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param providerName Provider name for the parent resource.
* @param resourceType Resource type for the parent resource
* @param resourceName Parent resource name.
* @param managementAssociationName User ManagementAssociation Name.
* @param parameters The parameters required to create ManagementAssociation extension.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
providerName: string,
resourceType: string,
resourceName: string,
managementAssociationName: string,
parameters: ManagementAssociation,
options?: ManagementAssociationsCreateOrUpdateOptionalParams
): Promise<ManagementAssociationsCreateOrUpdateResponse>;
/**
* Deletes the ManagementAssociation in the subscription.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param providerName Provider name for the parent resource.
* @param resourceType Resource type for the parent resource
* @param resourceName Parent resource name.
* @param managementAssociationName User ManagementAssociation Name.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
providerName: string,
resourceType: string,
resourceName: string,
managementAssociationName: string,
options?: ManagementAssociationsDeleteOptionalParams
): Promise<void>;
/**
* Retrieves the user ManagementAssociation.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param providerName Provider name for the parent resource.
* @param resourceType Resource type for the parent resource
* @param resourceName Parent resource name.
* @param managementAssociationName User ManagementAssociation Name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
providerName: string,
resourceType: string,
resourceName: string,
managementAssociationName: string,
options?: ManagementAssociationsGetOptionalParams
): Promise<ManagementAssociationsGetResponse>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,17 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
$host: string;
subscriptionId: string;
apiVersion: string;
providerName: string;
resourceType: string;
resourceName: string;

/**
* Initializes a new instance of the OperationsManagementClient class.
* @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
* subscription. The subscription ID forms part of the URI for every service call.
* @param providerName Provider name for the parent resource.
* @param resourceType Resource type for the parent resource
* @param resourceName Parent resource name.
* @param options The parameter options
*/
constructor(
credentials: coreAuth.TokenCredential,
subscriptionId: string,
providerName: string,
resourceType: string,
resourceName: string,
options?: OperationsManagementClientOptionalParams
) {
if (credentials === undefined) {
Expand All @@ -54,15 +45,6 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
if (subscriptionId === undefined) {
throw new Error("'subscriptionId' cannot be null");
}
if (providerName === undefined) {
throw new Error("'providerName' cannot be null");
}
if (resourceType === undefined) {
throw new Error("'resourceType' cannot be null");
}
if (resourceName === undefined) {
throw new Error("'resourceName' cannot be null");
}

// Initializing default values for options
if (!options) {
Expand All @@ -73,7 +55,7 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-operations/4.0.0-beta.2`;
const packageDetails = `azsdk-js-arm-operations/4.0.0-beta.3`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -93,9 +75,6 @@ export class OperationsManagementClient extends coreClient.ServiceClient {
super(optionsWithDefaults);
// Parameter assignments
this.subscriptionId = subscriptionId;
this.providerName = providerName;
this.resourceType = resourceType;
this.resourceName = resourceName;

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
Expand Down
Loading