Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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 @@ -16,7 +16,7 @@
class FeatureOperationsListResult extends Array {
/**
* Create a FeatureOperationsListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* @property {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class FeatureProperties {
/**
* Create a FeatureProperties.
* @member {string} [state] The registration state of the feature for the
* @property {string} [state] The registration state of the feature for the
* subscription.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
class FeatureResult {
/**
* Create a FeatureResult.
* @member {string} [name] The name of the feature.
* @member {object} [properties] Properties of the previewed feature.
* @member {string} [properties.state] The registration state of the feature
* for the subscription.
* @member {string} [id] The resource ID of the feature.
* @member {string} [type] The resource type of the feature.
* @property {string} [name] The name of the feature.
* @property {object} [properties] Properties of the previewed feature.
* @property {string} [properties.state] The registration state of the
* feature for the subscription.
* @property {string} [id] The resource ID of the feature.
* @property {string} [type] The resource type of the feature.
*/
constructor() {
}
Expand Down
105 changes: 46 additions & 59 deletions lib/services/resourceManagement/lib/feature/models/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,114 +1,101 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import { BaseResource } from 'ms-rest-azure';
import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';
import { BaseResource, CloudError } from "ms-rest-azure";
import * as moment from "moment";

export { BaseResource } from 'ms-rest-azure';
export { CloudError } from 'ms-rest-azure';
export {

BaseResource,
CloudError
};

/**
* @class
* Initializes a new instance of the FeatureProperties class.
* @constructor
* Information about feature.
*
* @member {string} [state] The registration state of the feature for the
* subscription.
*/
export interface FeatureProperties {
/**
* The registration state of the feature for the subscription.
*/
state?: string;
}

/**
* @class
* Initializes a new instance of the FeatureResult class.
* @constructor
* Previewed feature information.
*
* @member {string} [name] The name of the feature.
* @member {object} [properties] Properties of the previewed feature.
* @member {string} [properties.state] The registration state of the feature
* for the subscription.
* @member {string} [id] The resource ID of the feature.
* @member {string} [type] The resource type of the feature.
*/
export interface FeatureResult {
/**
* The name of the feature.
*/
name?: string;
/**
* Properties of the previewed feature.
*/
properties?: FeatureProperties;
/**
* The resource ID of the feature.
*/
id?: string;
/**
* The resource type of the feature.
*/
type?: string;
}

/**
* @class
* Initializes a new instance of the OperationDisplay class.
* @constructor
* The object that represents the operation.
*
* @member {string} [provider] Service provider: Microsoft.Features
* @member {string} [resource] Resource on which the operation is performed:
* Profile, endpoint, etc.
* @member {string} [operation] Operation type: Read, write, delete, etc.
*/
export interface OperationDisplay {
/**
* Service provider: Microsoft.Features
*/
provider?: string;
/**
* Resource on which the operation is performed: Profile, endpoint, etc.
*/
resource?: string;
/**
* Operation type: Read, write, delete, etc.
*/
operation?: string;
}

/**
* @class
* Initializes a new instance of the Operation class.
* @constructor
* Microsoft.Features operation
*
* @member {string} [name] Operation name: {provider}/{resource}/{operation}
* @member {object} [display] The object that represents the operation.
* @member {string} [display.provider] Service provider: Microsoft.Features
* @member {string} [display.resource] Resource on which the operation is
* performed: Profile, endpoint, etc.
* @member {string} [display.operation] Operation type: Read, write, delete,
* etc.
*/
export interface Operation {
/**
* Operation name: {provider}/{resource}/{operation}
*/
name?: string;
/**
* The object that represents the operation.
*/
display?: OperationDisplay;
}


/**
* @class
* Initializes a new instance of the OperationListResult class.
* @constructor
* Result of the request to list Microsoft.Features operations. It contains a
* list of operations and a URL link to get the next set of results.
*
* @member {string} [nextLink] URL to get the next set of operation list
* results if there are any.
* Result of the request to list Microsoft.Features operations. It contains a list of operations
* and a URL link to get the next set of results.
*/
export interface OperationListResult extends Array<Operation> {
/**
* URL to get the next set of operation list results if there are any.
*/
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the FeatureOperationsListResult class.
* @constructor
* List of previewed features.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
export interface FeatureOperationsListResult extends Array<FeatureResult> {
/**
* The URL to use for getting the next set of results.
*/
nextLink?: string;
}
13 changes: 7 additions & 6 deletions lib/services/resourceManagement/lib/feature/models/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
class Operation {
/**
* Create a Operation.
* @member {string} [name] Operation name: {provider}/{resource}/{operation}
* @member {object} [display] The object that represents the operation.
* @member {string} [display.provider] Service provider: Microsoft.Features
* @member {string} [display.resource] Resource on which the operation is
* @property {string} [name] Operation name:
* {provider}/{resource}/{operation}
* @property {object} [display] The object that represents the operation.
* @property {string} [display.provider] Service provider: Microsoft.Features
* @property {string} [display.resource] Resource on which the operation is
* performed: Profile, endpoint, etc.
* @member {string} [display.operation] Operation type: Read, write, delete,
* etc.
* @property {string} [display.operation] Operation type: Read, write,
* delete, etc.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
class OperationDisplay {
/**
* Create a OperationDisplay.
* @member {string} [provider] Service provider: Microsoft.Features
* @member {string} [resource] Resource on which the operation is performed:
* Profile, endpoint, etc.
* @member {string} [operation] Operation type: Read, write, delete, etc.
* @property {string} [provider] Service provider: Microsoft.Features
* @property {string} [resource] Resource on which the operation is
* performed: Profile, endpoint, etc.
* @property {string} [operation] Operation type: Read, write, delete, etc.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class OperationListResult extends Array {
/**
* Create a OperationListResult.
* @member {string} [nextLink] URL to get the next set of operation list
* @property {string} [nextLink] URL to get the next set of operation list
* results if there are any.
*/
constructor() {
Expand Down
Loading