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

[ReleasePR @azure/arm-support] [Hub Generated] Review request for Microsoft.Support to add version preview/2021-06-01-preview #12600

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
9 changes: 4 additions & 5 deletions sdk/support/arm-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-support

### How to use

#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
#### nodejs - client creation and list operations as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { MicrosoftSupport, MicrosoftSupportModels, MicrosoftSupportMappers } from "@azure/arm-support";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { MicrosoftSupport } = require("@azure/arm-support");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/support/arm-support/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
5 changes: 2 additions & 3 deletions sdk/support/arm-support/src/microsoftSupport.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
5 changes: 2 additions & 3 deletions sdk/support/arm-support/src/microsoftSupportContext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
4 changes: 2 additions & 2 deletions sdk/support/arm-support/src/models/communicationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
44 changes: 40 additions & 4 deletions sdk/support/arm-support/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -310,8 +310,9 @@ export interface SupportTicketDetails extends BaseResource {
/**
* A value that indicates the urgency of the case, which in turn determines the response time
* according to the service level agreement of the technical support plan you have with Azure.
* Note: 'Highest critical impact' severity is reserved only for our Premium customers. Possible
* values include: 'minimal', 'moderate', 'critical', 'highestcriticalimpact'
* Note: 'Highest critical impact', also known as the 'Emergency - Severe impact' level in the
* Azure portal is reserved only for our Premium customers. Possible values include: 'minimal',
* 'moderate', 'critical', 'highestcriticalimpact'
*/
severity: SeverityLevel;
/**
Expand Down Expand Up @@ -569,6 +570,24 @@ export interface SupportTicketsListOptionalParams extends msRest.RequestOptionsB
filter?: string;
}

/**
* Optional Parameters.
*/
export interface SupportTicketsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The number of values to return in the collection. Default is 25 and max is 100.
*/
top?: number;
/**
* The filter to apply on the operation. We support 'odata v4.0' filter semantics. [Learn
* more](https://docs.microsoft.com/odata/concepts/queryoptions-overview). _Status_ filter can
* only be used with Equals ('eq') operator. For _CreatedDate_ filter, the supported operators
* are Greater Than ('gt') and Greater Than or Equals ('ge'). When using both filters, combine
* them using the logical 'AND'.
*/
filter?: string;
}

/**
* Optional Parameters.
*/
Expand All @@ -586,6 +605,23 @@ export interface CommunicationsListOptionalParams extends msRest.RequestOptionsB
filter?: string;
}

/**
* Optional Parameters.
*/
export interface CommunicationsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The number of values to return in the collection. Default is 10 and max is 10.
*/
top?: number;
/**
* The filter to apply on the operation. You can filter by communicationType and createdDate
* properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater
* Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType
* and CreatedDate filters by Logical And ('and') operator.
*/
filter?: string;
}

/**
* An interface representing MicrosoftSupportOptions.
*/
Expand Down
4 changes: 2 additions & 2 deletions sdk/support/arm-support/src/models/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/support/arm-support/src/models/operationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
5 changes: 2 additions & 3 deletions sdk/support/arm-support/src/models/parameters.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/support/arm-support/src/models/servicesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/support/arm-support/src/models/supportTicketsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
24 changes: 14 additions & 10 deletions sdk/support/arm-support/src/operations/communications.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down Expand Up @@ -65,8 +64,8 @@ export class Communications {
* also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the
* $filter parameter. The only type of communication supported today is _Web_. Output will be a
* paged result with _nextLink_, using which you can retrieve the next set of Communication
* results. <br/><br/>Support ticket data is available for 12 months after ticket creation. If a
* ticket was created more than 12 months ago, a request for data might cause an error.
* results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a
* ticket was created more than 18 months ago, a request for data might cause an error.
* @param supportTicketName Support ticket name.
* @param [options] The optional parameters
* @returns Promise<Models.CommunicationsListResponse>
Expand Down Expand Up @@ -163,13 +162,13 @@ export class Communications {
* also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the
* $filter parameter. The only type of communication supported today is _Web_. Output will be a
* paged result with _nextLink_, using which you can retrieve the next set of Communication
* results. <br/><br/>Support ticket data is available for 12 months after ticket creation. If a
* ticket was created more than 12 months ago, a request for data might cause an error.
* results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a
* ticket was created more than 18 months ago, a request for data might cause an error.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise<Models.CommunicationsListNextResponse>
*/
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.CommunicationsListNextResponse>;
listNext(nextPageLink: string, options?: Models.CommunicationsListNextOptionalParams): Promise<Models.CommunicationsListNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
Expand All @@ -180,8 +179,8 @@ export class Communications {
* @param options The optional parameters
* @param callback The callback
*/
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommunicationsListResult>): void;
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommunicationsListResult>, callback?: msRest.ServiceCallback<Models.CommunicationsListResult>): Promise<Models.CommunicationsListNextResponse> {
listNext(nextPageLink: string, options: Models.CommunicationsListNextOptionalParams, callback: msRest.ServiceCallback<Models.CommunicationsListResult>): void;
listNext(nextPageLink: string, options?: Models.CommunicationsListNextOptionalParams | msRest.ServiceCallback<Models.CommunicationsListResult>, callback?: msRest.ServiceCallback<Models.CommunicationsListResult>): Promise<Models.CommunicationsListNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
Expand Down Expand Up @@ -316,6 +315,11 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.top,
Parameters.filter,
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
Expand Down
5 changes: 2 additions & 3 deletions sdk/support/arm-support/src/operations/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
5 changes: 2 additions & 3 deletions sdk/support/arm-support/src/operations/operations.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
5 changes: 2 additions & 3 deletions sdk/support/arm-support/src/operations/services.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
28 changes: 16 additions & 12 deletions sdk/support/arm-support/src/operations/supportTickets.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down Expand Up @@ -60,8 +59,8 @@ export class SupportTickets {
* Lists all the support tickets for an Azure subscription. You can also filter the support tickets
* by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with
* _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support
* ticket data is available for 12 months after ticket creation. If a ticket was created more than
* 12 months ago, a request for data might cause an error.
* ticket data is available for 18 months after ticket creation. If a ticket was created more than
* 18 months ago, a request for data might cause an error.
* @param [options] The optional parameters
* @returns Promise<Models.SupportTicketsListResponse>
*/
Expand All @@ -85,8 +84,8 @@ export class SupportTickets {
}

/**
* Get ticket details for an Azure subscription. Support ticket data is available for 12 months
* after ticket creation. If a ticket was created more than 12 months ago, a request for data might
* Get ticket details for an Azure subscription. Support ticket data is available for 18 months
* after ticket creation. If a ticket was created more than 18 months ago, a request for data might
* cause an error.
* @param supportTicketName Support ticket name.
* @param [options] The optional parameters
Expand Down Expand Up @@ -220,13 +219,13 @@ export class SupportTickets {
* Lists all the support tickets for an Azure subscription. You can also filter the support tickets
* by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with
* _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support
* ticket data is available for 12 months after ticket creation. If a ticket was created more than
* 12 months ago, a request for data might cause an error.
* ticket data is available for 18 months after ticket creation. If a ticket was created more than
* 18 months ago, a request for data might cause an error.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise<Models.SupportTicketsListNextResponse>
*/
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SupportTicketsListNextResponse>;
listNext(nextPageLink: string, options?: Models.SupportTicketsListNextOptionalParams): Promise<Models.SupportTicketsListNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
Expand All @@ -237,8 +236,8 @@ export class SupportTickets {
* @param options The optional parameters
* @param callback The callback
*/
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SupportTicketsListResult>): void;
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SupportTicketsListResult>, callback?: msRest.ServiceCallback<Models.SupportTicketsListResult>): Promise<Models.SupportTicketsListNextResponse> {
listNext(nextPageLink: string, options: Models.SupportTicketsListNextOptionalParams, callback: msRest.ServiceCallback<Models.SupportTicketsListResult>): void;
listNext(nextPageLink: string, options?: Models.SupportTicketsListNextOptionalParams | msRest.ServiceCallback<Models.SupportTicketsListResult>, callback?: msRest.ServiceCallback<Models.SupportTicketsListResult>): Promise<Models.SupportTicketsListNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
Expand Down Expand Up @@ -400,6 +399,11 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.top,
Parameters.filter,
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
Expand Down