Skip to content
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
CodeGen from PR 29165 in Azure/azure-rest-api-specs
Merge c47598914662cd9df9c7f794b24d66959ac10c44 into db2f049580ad55549ce9a34635ab58bc5a27c814
  • Loading branch information
SDKAuto committed May 20, 2024
commit cf80dab87bb6032eb9cf44a50d519a4a68e75ec4
775 changes: 388 additions & 387 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

46 changes: 37 additions & 9 deletions sdk/support/arm-support/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
# Release History

## 4.0.0-beta.1 (2024-05-20)
Compared with version 3.0.0

**Features**

## 3.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added operation group LookUpResourceId
- Added operation group ProblemClassificationsNoSubscription
- Added operation group ServiceClassifications
- Added operation group ServiceClassificationsNoSubscription
- Added operation ProblemClassifications.classifyProblems
- Added Interface ClassificationService
- Added Interface LookUpResourceIdPostOptionalParams
- Added Interface LookUpResourceIdRequest
- Added Interface LookUpResourceIdResponse
- Added Interface ProblemClassificationsClassificationInput
- Added Interface ProblemClassificationsClassificationOutput
- Added Interface ProblemClassificationsClassificationResult
- Added Interface ProblemClassificationsClassifyProblemsOptionalParams
- Added Interface ProblemClassificationsNoSubscriptionClassifyProblemsOptionalParams
- Added Interface ServiceClassificationAnswer
- Added Interface ServiceClassificationOutput
- Added Interface ServiceClassificationRequest
- Added Interface ServiceClassificationsClassifyServicesOptionalParams
- Added Interface ServiceClassificationsNoSubscriptionClassifyServicesOptionalParams
- Added Type Alias LookUpResourceIdPostResponse
- Added Type Alias ProblemClassificationsClassifyProblemsResponse
- Added Type Alias ProblemClassificationsNoSubscriptionClassifyProblemsResponse
- Added Type Alias ServiceClassificationsClassifyServicesResponse
- Added Type Alias ServiceClassificationsNoSubscriptionClassifyServicesResponse
- Interface ProblemClassification has a new optional parameter metadata
- Interface ProblemClassification has a new optional parameter parentProblemClassification
- Interface Service has a new optional parameter metadata

### Other Changes
**Breaking Changes**

- Parameter body of interface MessageProperties is now required


## 3.0.0 (2024-04-16)

**Features**
Expand Down Expand Up @@ -162,4 +190,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.

To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).

To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/support/arm-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Microsoft Azure Support Resource Provider.

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

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/support/arm-support/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "15c4ed25135164c257da37731b3fa926a4f44d4a",
"commit": "d409622c9a7e5777cf2b14f94544b8a6c5b97e9e",
"readme": "specification/support/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\\support\\resource-manager\\readme.md --use=@autorest/typescript@6.0.20 --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/support/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.5",
"use": "@autorest/typescript@6.0.20"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.9",
"use": "@autorest/typescript@^6.0.12"
}
15 changes: 4 additions & 11 deletions sdk/support/arm-support/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 MicrosoftSupport.",
"version": "3.0.1",
"version": "4.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -40,6 +40,7 @@
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -105,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/support/arm-support",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-support?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/support/arm-support"
}
149 changes: 139 additions & 10 deletions sdk/support/arm-support/review/arm-support.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,23 @@ export interface CheckNameAvailabilityOutput {
readonly reason?: string;
}

// @public
export interface ClassificationService {
readonly displayName?: string;
resourceTypes?: string[];
readonly serviceId?: string;
}

// @public
export interface CommunicationDetails {
body: string;
body?: string;
readonly communicationDirection?: CommunicationDirection;
readonly communicationType?: CommunicationType;
readonly createdDate?: Date;
readonly id?: string;
readonly name?: string;
sender?: string;
subject: string;
subject?: string;
readonly type?: string;
}

Expand Down Expand Up @@ -463,9 +470,32 @@ export enum KnownUserConsent {
Yes = "Yes"
}

// @public
export interface LookUpResourceId {
post(lookUpResourceIdRequest: LookUpResourceIdRequest, options?: LookUpResourceIdPostOptionalParams): Promise<LookUpResourceIdPostResponse>;
}

// @public
export interface LookUpResourceIdPostOptionalParams extends coreClient.OperationOptions {
}

// @public
export type LookUpResourceIdPostResponse = LookUpResourceIdResponse;

// @public
export interface LookUpResourceIdRequest {
identifier?: string;
type?: "Microsoft.Support/supportTickets";
}

// @public
export interface LookUpResourceIdResponse {
resourceId?: string;
}

// @public
export interface MessageProperties {
body?: string;
body: string;
readonly communicationDirection?: CommunicationDirection;
readonly contentType?: TranscriptContentType;
readonly createdDate?: Date;
Expand Down Expand Up @@ -497,10 +527,18 @@ export class MicrosoftSupport extends coreClient.ServiceClient {
// (undocumented)
fileWorkspacesNoSubscription: FileWorkspacesNoSubscription;
// (undocumented)
lookUpResourceId: LookUpResourceId;
// (undocumented)
operations: Operations;
// (undocumented)
problemClassifications: ProblemClassifications;
// (undocumented)
problemClassificationsNoSubscription: ProblemClassificationsNoSubscription;
// (undocumented)
serviceClassifications: ServiceClassifications;
// (undocumented)
serviceClassificationsNoSubscription: ServiceClassificationsNoSubscription;
// (undocumented)
services: Services;
// (undocumented)
subscriptionId?: string;
Expand Down Expand Up @@ -555,17 +593,52 @@ export type PreferredContactMethod = string;
export interface ProblemClassification {
displayName?: string;
readonly id?: string;
readonly metadata?: {
[propertyName: string]: string;
};
readonly name?: string;
parentProblemClassification?: ProblemClassification;
secondaryConsentEnabled?: SecondaryConsentEnabled[];
readonly type?: string;
}

// @public
export interface ProblemClassifications {
classifyProblems(problemServiceName: string, problemClassificationsClassificationInput: ProblemClassificationsClassificationInput, options?: ProblemClassificationsClassifyProblemsOptionalParams): Promise<ProblemClassificationsClassifyProblemsResponse>;
get(serviceName: string, problemClassificationName: string, options?: ProblemClassificationsGetOptionalParams): Promise<ProblemClassificationsGetResponse>;
list(serviceName: string, options?: ProblemClassificationsListOptionalParams): PagedAsyncIterableIterator<ProblemClassification>;
}

// @public
export interface ProblemClassificationsClassificationInput {
issueSummary: string;
resourceId?: string;
}

// @public
export interface ProblemClassificationsClassificationOutput {
problemClassificationResults?: ProblemClassificationsClassificationResult[];
}

// @public
export interface ProblemClassificationsClassificationResult {
readonly description?: string;
readonly displayName?: string;
readonly problemClassificationId?: string;
readonly problemId?: string;
resourceTypes?: string[];
readonly serviceId?: string;
readonly serviceIdRelatedServiceId?: string;
readonly title?: string;
}

// @public
export interface ProblemClassificationsClassifyProblemsOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ProblemClassificationsClassifyProblemsResponse = ProblemClassificationsClassificationOutput;

// @public
export interface ProblemClassificationsGetOptionalParams extends coreClient.OperationOptions {
}
Expand All @@ -585,6 +658,18 @@ export interface ProblemClassificationsListResult {
value?: ProblemClassification[];
}

// @public
export interface ProblemClassificationsNoSubscription {
classifyProblems(problemServiceName: string, problemClassificationsClassificationInput: ProblemClassificationsClassificationInput, options?: ProblemClassificationsNoSubscriptionClassifyProblemsOptionalParams): Promise<ProblemClassificationsNoSubscriptionClassifyProblemsResponse>;
}

// @public
export interface ProblemClassificationsNoSubscriptionClassifyProblemsOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ProblemClassificationsNoSubscriptionClassifyProblemsResponse = ProblemClassificationsClassificationOutput;

// @public
export interface ProxyResource extends Resource {
}
Expand Down Expand Up @@ -626,11 +711,55 @@ export interface SecondaryConsentEnabled {
export interface Service {
displayName?: string;
readonly id?: string;
readonly metadata?: {
[propertyName: string]: string;
};
readonly name?: string;
resourceTypes?: string[];
readonly type?: string;
}

// @public
export interface ServiceClassificationAnswer extends ClassificationService {
childService?: ClassificationService;
}

// @public
export interface ServiceClassificationOutput {
serviceClassificationResults?: ServiceClassificationAnswer[];
}

// @public
export interface ServiceClassificationRequest {
additionalContext?: string;
issueSummary?: string;
resourceId?: string;
}

// @public
export interface ServiceClassifications {
classifyServices(serviceClassificationRequest: ServiceClassificationRequest, options?: ServiceClassificationsClassifyServicesOptionalParams): Promise<ServiceClassificationsClassifyServicesResponse>;
}

// @public
export interface ServiceClassificationsClassifyServicesOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ServiceClassificationsClassifyServicesResponse = ServiceClassificationOutput;

// @public
export interface ServiceClassificationsNoSubscription {
classifyServices(serviceClassificationRequest: ServiceClassificationRequest, options?: ServiceClassificationsNoSubscriptionClassifyServicesOptionalParams): Promise<ServiceClassificationsNoSubscriptionClassifyServicesResponse>;
}

// @public
export interface ServiceClassificationsNoSubscriptionClassifyServicesOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ServiceClassificationsNoSubscriptionClassifyServicesResponse = ServiceClassificationOutput;

// @public
export interface ServiceLevelAgreement {
readonly expirationTime?: Date;
Expand Down Expand Up @@ -676,35 +805,35 @@ export interface SupportEngineer {

// @public
export interface SupportTicketDetails {
advancedDiagnosticConsent: Consent;
contactDetails: ContactProfile;
advancedDiagnosticConsent?: Consent;
contactDetails?: ContactProfile;
readonly createdDate?: Date;
description: string;
description?: string;
enrollmentId?: string;
fileWorkspaceName?: string;
readonly id?: string;
readonly isTemporaryTicket?: IsTemporaryTicket;
readonly modifiedDate?: Date;
readonly name?: string;
readonly problemClassificationDisplayName?: string;
problemClassificationId: string;
problemClassificationId?: string;
problemScopingQuestions?: string;
problemStartTime?: Date;
quotaTicketDetails?: QuotaTicketDetails;
require24X7Response?: boolean;
secondaryConsent?: SecondaryConsent[];
readonly serviceDisplayName?: string;
serviceId: string;
serviceId?: string;
serviceLevelAgreement?: ServiceLevelAgreement;
severity: SeverityLevel;
severity?: SeverityLevel;
readonly status?: string;
supportEngineer?: SupportEngineer;
readonly supportPlanDisplayName?: string;
supportPlanId?: string;
readonly supportPlanType?: string;
supportTicketId?: string;
technicalTicketDetails?: TechnicalTicketDetails;
title: string;
title?: string;
readonly type?: string;
}

Expand Down
Loading