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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class CommunicationServiceManagementClient extends CommunicationServiceManagemen
// Operation groups
operations: operations.Operations;
communicationService: operations.CommunicationService;
operationStatuses: operations.OperationStatuses;

/**
* Initializes a new instance of the CommunicationServiceManagementClient class.
Expand All @@ -30,7 +29,6 @@ class CommunicationServiceManagementClient extends CommunicationServiceManagemen
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.communicationService = new operations.CommunicationService(this);
this.operationStatuses = new operations.OperationStatuses(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class CommunicationServiceManagementClientContext extends msRestAzure.Azu
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -51,10 +51,10 @@ export class CommunicationServiceManagementClientContext extends msRestAzure.Azu
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
182 changes: 59 additions & 123 deletions sdk/communication/arm-communication/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,101 +68,6 @@ export interface LinkedNotificationHub {
resourceId?: string;
}

/**
* The resource management error additional info.
*/
export interface ErrorAdditionalInfo {
/**
* The additional info type.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* The additional info.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly info?: any;
}

/**
* The error detail.
*/
export interface ErrorDetail {
/**
* The error code.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly code?: string;
/**
* The error message.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly message?: string;
/**
* The error target.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly target?: string;
/**
* The error details.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly details?: ErrorDetail[];
/**
* The error additional info.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly additionalInfo?: ErrorAdditionalInfo[];
}

/**
* Common error response for all Azure Resource Manager APIs to return error details for failed
* operations. (This also follows the OData error response format.).
* @summary Error response
*/
export interface ErrorResponse {
/**
* The error object.
*/
error?: ErrorDetail;
}

/**
* The current status of an async operation
*/
export interface OperationStatus {
/**
* Fully qualified ID for the operation status.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* Provisioning state of the resource. Possible values include: 'Succeeded', 'Failed',
* 'Canceled', 'Creating', 'Deleting', 'Moving'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly status?: Status;
/**
* The start time of the operation
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly startTime?: Date;
/**
* The end time of the operation
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly endTime?: Date;
/**
* Percent of the operation that is complete
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly percentComplete?: number;
/**
* The error object.
*/
error?: ErrorDetail;
}

/**
* Metadata pertaining to creation and last modification of the resource.
*/
Expand Down Expand Up @@ -371,6 +276,65 @@ export interface AzureEntityResource extends Resource {
readonly etag?: string;
}

/**
* The resource management error additional info.
*/
export interface ErrorAdditionalInfo {
/**
* The additional info type.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* The additional info.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly info?: any;
}

/**
* The error detail.
*/
export interface ErrorDetail {
/**
* The error code.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly code?: string;
/**
* The error message.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly message?: string;
/**
* The error target.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly target?: string;
/**
* The error details.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly details?: ErrorDetail[];
/**
* The error additional info.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly additionalInfo?: ErrorAdditionalInfo[];
}

/**
* Common error response for all Azure Resource Manager APIs to return error details for failed
* operations. (This also follows the OData error response format.).
* @summary Error response
*/
export interface ErrorResponse {
/**
* The error object.
*/
error?: ErrorDetail;
}

/**
* Localized display information for this particular operation.
*/
Expand Down Expand Up @@ -541,14 +505,6 @@ export interface CommunicationServiceResourceList extends Array<CommunicationSer
nextLink?: string;
}

/**
* Defines values for Status.
* Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Deleting', 'Moving'
* @readonly
* @enum {string}
*/
export type Status = 'Succeeded' | 'Failed' | 'Canceled' | 'Creating' | 'Deleting' | 'Moving';

/**
* Defines values for ProvisioningState.
* Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating',
Expand Down Expand Up @@ -869,23 +825,3 @@ export type CommunicationServiceListByResourceGroupNextResponse = CommunicationS
parsedBody: CommunicationServiceResourceList;
};
};

/**
* Contains response data for the get operation.
*/
export type OperationStatusesGetResponse = OperationStatus & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: OperationStatus;
};
};
Loading