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

[AutoPR] notificationhubs/resource-manager #4289

Closed
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
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 @@ -20,7 +20,7 @@ class ApnsCredential {
* @member {string} [apnsCertificate] The APNS certificate.
* @member {string} [certificateKey] The certificate key.
* @member {string} [endpoint] The endpoint of this credential.
* @member {string} [thumbprint] The Apns certificate Thumbprint
* @member {string} [thumbprint] The APNS certificate Thumbprint
* @member {string} [keyId] A 10-character key identifier (kid) key, obtained
* from your developer account
* @member {string} [appName] The name of the application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Parameters supplied to the Check Name Availability for Namespace and
* NotificationHubs.
Expand All @@ -23,7 +21,7 @@ class 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 Down Expand Up @@ -76,7 +74,7 @@ class CheckAvailabilityParameters {
}
},
location: {
required: true,
required: false,
serializedName: 'location',
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* Description of a CheckAvailibility resource.
* Description of a CheckAvailability resource.
*
* @extends models['Resource']
*/
Expand Down 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,125 @@
/*
* 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';

const models = require('./index');

/**
* Description of a NotificationHub Resource.
*
* @extends models['Resource']
*/
class DebugSendResponse extends models['Resource'] {
/**
* Create a DebugSendResponse.
* @member {number} [success] successful send
* @member {number} [failure] send failure
* @member {object} [results] actual failure description
*/
constructor() {
super();
}

/**
* Defines the metadata of DebugSendResponse
*
* @returns {object} metadata of DebugSendResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'DebugSendResponse',
type: {
name: 'Composite',
className: 'DebugSendResponse',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
location: {
required: false,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
sku: {
required: false,
serializedName: 'sku',
type: {
name: 'Composite',
className: 'Sku'
}
},
success: {
required: false,
serializedName: 'properties.success',
type: {
name: 'Number'
}
},
failure: {
required: false,
serializedName: 'properties.failure',
type: {
name: 'Number'
}
},
results: {
required: false,
serializedName: 'properties.results',
type: {
name: 'Object'
}
}
}
}
};
}
}

module.exports = DebugSendResponse;
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 response 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;
Loading