Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Generated from 7168a53201579dfb220af64389495a2e83d6f5ef (#2896)
Browse files Browse the repository at this point in the history
Add suppressions for linting errors. Approved by Gaurav
  • Loading branch information
AutorestCI authored May 23, 2018
1 parent f335a83 commit f3f4799
Show file tree
Hide file tree
Showing 25 changed files with 1,289 additions and 495 deletions.
42 changes: 21 additions & 21 deletions lib/services/notificationHubsManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CheckAvailabilityResult extends models['Resource'] {
}
},
location: {
required: true,
required: false,
serializedName: 'location',
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* 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.
*/

'use strict';

/**
* Error reponse indicates NotificationHubs service is not able to process the
* incoming request. The reason is provided in the error message.
*
*/
class ErrorResponse {
/**
* Create a ErrorResponse.
* @member {string} [code] Error code.
* @member {string} [message] Error message indicating why the operation
* failed.
*/
constructor() {
}

/**
* Defines the metadata of ErrorResponse
*
* @returns {object} metadata of ErrorResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ErrorResponse',
type: {
name: 'Composite',
className: 'ErrorResponse',
modelProperties: {
code: {
required: false,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ErrorResponse;
138 changes: 118 additions & 20 deletions lib/services/notificationHubsManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,54 @@ export { CloudError } from 'ms-rest-azure';

/**
* @class
* Initializes a new instance of the CheckNameAvailabilityRequestParameters class.
* Initializes a new instance of the OperationDisplay class.
* @constructor
* Parameters supplied to the Check Name Availability for Namespace and
* NotificationHubs.
* The object that represents the operation.
*
* @member {string} name Resource name
* @member {string} [type] Resource type
* @member {string} [provider] Service provider: Microsoft.NotificationHubs
* @member {string} [resource] Resource on which the operation is performed:
* Invoice, etc.
* @member {string} [operation] Operation type: Read, write, delete, etc.
*/
export interface CheckNameAvailabilityRequestParameters {
name: string;
readonly type?: string;
export interface OperationDisplay {
readonly provider?: string;
readonly resource?: string;
readonly operation?: string;
}

/**
* @class
* Initializes a new instance of the Operation class.
* @constructor
* A NotificationHubs REST API 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.NotificationHubs
* @member {string} [display.resource] Resource on which the operation is
* performed: Invoice, etc.
* @member {string} [display.operation] Operation type: Read, write, delete,
* etc.
*/
export interface Operation {
readonly name?: string;
display?: OperationDisplay;
}

/**
* @class
* Initializes a new instance of the CheckNameAvailabilityResponse class.
* Initializes a new instance of the ErrorResponse class.
* @constructor
* @member {boolean} [nameAvailable] Checks if the namespace name is available
* @member {string} [reason] States the reason due to which the namespace name
* is not available
* @member {string} [message] The messsage returned when checking for namespace
* name availability
* Error reponse indicates NotificationHubs service is not able to process the
* incoming request. The reason is provided in the error message.
*
* @member {string} [code] Error code.
* @member {string} [message] Error message indicating why the operation
* failed.
*/
export interface CheckNameAvailabilityResponse {
nameAvailable?: boolean;
reason?: string;
export interface ErrorResponse {
code?: string;
message?: string;
}

Expand Down Expand Up @@ -107,7 +129,7 @@ export interface CheckAvailabilityParameters {
* @member {string} [id] Resource Id
* @member {string} [name] Resource name
* @member {string} [type] Resource type
* @member {string} location Resource location
* @member {string} [location] Resource location
* @member {object} [tags] Resource tags
* @member {object} [sku] The sku of the created namespace
* @member {string} [sku.name] Name of the notification hub sku. Possible
Expand All @@ -121,7 +143,7 @@ export interface Resource extends BaseResource {
readonly id?: string;
readonly name?: string;
readonly type?: string;
location: string;
location?: string;
tags?: { [propertyName: string]: string };
sku?: Sku;
}
Expand Down Expand Up @@ -153,9 +175,11 @@ export interface CheckAvailabilityResult extends Resource {
* Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth
* Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan
* WestNorth EuropeWest Europe
* @member {string} [metricId] Identifier for Azure Insights metrics
* @member {string} [status] Status of the namespace. It can be any of these
* values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
* @member {date} [createdAt] The time the namespace was created.
* @member {date} [updatedAt] The time the namespace was updated.
* @member {string} [serviceBusEndpoint] Endpoint you can use to perform
* NotificationHub operations.
* @member {string} [subscriptionId] The Id of the Azure subscription
Expand All @@ -165,20 +189,24 @@ export interface CheckAvailabilityResult extends Resource {
* enabled.
* @member {boolean} [critical] Whether or not the namespace is set as
* Critical.
* @member {string} [dataCenter] Data center for the namespace
* @member {string} [namespaceType] The namespace type. Possible values
* include: 'Messaging', 'NotificationHub'
*/
export interface NamespaceCreateOrUpdateParameters extends Resource {
namespaceCreateOrUpdateParametersName?: string;
provisioningState?: string;
region?: string;
readonly metricId?: string;
status?: string;
createdAt?: Date;
updatedAt?: Date;
serviceBusEndpoint?: string;
subscriptionId?: string;
scaleUnit?: string;
enabled?: boolean;
critical?: boolean;
dataCenter?: string;
namespaceType?: string;
}

Expand Down Expand Up @@ -215,9 +243,11 @@ export interface NamespacePatchParameters {
* Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth
* Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan
* WestNorth EuropeWest Europe
* @member {string} [metricId] Identifier for Azure Insights metrics
* @member {string} [status] Status of the namespace. It can be any of these
* values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
* @member {date} [createdAt] The time the namespace was created.
* @member {date} [updatedAt] The time the namespace was updated.
* @member {string} [serviceBusEndpoint] Endpoint you can use to perform
* NotificationHub operations.
* @member {string} [subscriptionId] The Id of the Azure subscription
Expand All @@ -227,20 +257,24 @@ export interface NamespacePatchParameters {
* enabled.
* @member {boolean} [critical] Whether or not the namespace is set as
* Critical.
* @member {string} [dataCenter] Data center for the namespace
* @member {string} [namespaceType] The namespace type. Possible values
* include: 'Messaging', 'NotificationHub'
*/
export interface NamespaceResource extends Resource {
namespaceResourceName?: string;
provisioningState?: string;
region?: string;
readonly metricId?: string;
status?: string;
createdAt?: Date;
updatedAt?: Date;
serviceBusEndpoint?: string;
subscriptionId?: string;
scaleUnit?: string;
enabled?: boolean;
critical?: boolean;
dataCenter?: string;
namespaceType?: string;
}

Expand All @@ -251,9 +285,27 @@ export interface NamespaceResource extends Resource {
* SharedAccessAuthorizationRule properties.
*
* @member {array} [rights] The rights associated with the rule.
* @member {string} [primaryKey] A base64-encoded 256-bit primary key for
* signing and validating the SAS token.
* @member {string} [secondaryKey] A base64-encoded 256-bit primary key for
* signing and validating the SAS token.
* @member {string} [keyName] A string that describes the authorization rule.
* @member {string} [claimType] A string that describes the claim type
* @member {string} [claimValue] A string that describes the claim value
* @member {string} [modifiedTime] The last modified time for this rule
* @member {string} [createdTime] The created time for this rule
* @member {number} [revision] The revision number for the rule
*/
export interface SharedAccessAuthorizationRuleProperties {
rights?: string[];
readonly primaryKey?: string;
readonly secondaryKey?: string;
readonly keyName?: string;
readonly claimType?: string;
readonly claimValue?: string;
readonly modifiedTime?: string;
readonly createdTime?: string;
readonly revision?: number;
}

/**
Expand All @@ -264,8 +316,22 @@ export interface SharedAccessAuthorizationRuleProperties {
*
* @member {object} properties Properties of the Namespace AuthorizationRules.
* @member {array} [properties.rights] The rights associated with the rule.
* @member {string} [properties.primaryKey] A base64-encoded 256-bit primary
* key for signing and validating the SAS token.
* @member {string} [properties.secondaryKey] A base64-encoded 256-bit primary
* key for signing and validating the SAS token.
* @member {string} [properties.keyName] A string that describes the
* authorization rule.
* @member {string} [properties.claimType] A string that describes the claim
* type
* @member {string} [properties.claimValue] A string that describes the claim
* value
* @member {string} [properties.modifiedTime] The last modified time for this
* rule
* @member {string} [properties.createdTime] The created time for this rule
* @member {number} [properties.revision] The revision number for the rule
*/
export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters extends Resource {
export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters {
properties: SharedAccessAuthorizationRuleProperties;
}

Expand All @@ -276,9 +342,27 @@ export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters extends R
* Description of a Namespace AuthorizationRules.
*
* @member {array} [rights] The rights associated with the rule.
* @member {string} [primaryKey] A base64-encoded 256-bit primary key for
* signing and validating the SAS token.
* @member {string} [secondaryKey] A base64-encoded 256-bit primary key for
* signing and validating the SAS token.
* @member {string} [keyName] A string that describes the authorization rule.
* @member {string} [claimType] A string that describes the claim type
* @member {string} [claimValue] A string that describes the claim value
* @member {string} [modifiedTime] The last modified time for this rule
* @member {string} [createdTime] The created time for this rule
* @member {number} [revision] The revision number for the rule
*/
export interface SharedAccessAuthorizationRuleResource extends Resource {
rights?: string[];
readonly primaryKey?: string;
readonly secondaryKey?: string;
readonly keyName?: string;
readonly claimType?: string;
readonly claimValue?: string;
readonly modifiedTime?: string;
readonly createdTime?: string;
readonly revision?: number;
}

/**
Expand Down Expand Up @@ -630,6 +714,20 @@ export interface SubResource extends BaseResource {
}


/**
* @class
* Initializes a new instance of the OperationListResult class.
* @constructor
* Result of the request to list NotificationHubs 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.
*/
export interface OperationListResult extends Array<Operation> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the NamespaceListResult class.
Expand Down
Loading

0 comments on commit f3f4799

Please sign in to comment.