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

Commit

Permalink
[AutoPR notificationhubs/resource-manager] Add missing debugsend and …
Browse files Browse the repository at this point in the history
…patch operation for NotificationHub resource (#2977)

* Generated from 01edec5fd7a2a02c2d9855146656bfef4c7f423f

Add debugsend and NH patch operation

* Generated from 0238c4239dec40fef6679fd36f8498b82c6157c8

Fix build error due to missing parameterId

* Generated from 2f2ca999f5033c50ea6ad7ce9a493b9d1bd5c993

Fix more errors

* Generated from 3b57f480cb371a58ae1c0feb24e6a0270c671acd

Fix build errors due to mismatch parameters

* Generated from edb81a4b9052ef17263836b0b079b7204c6a33ce

Fix error with missing parameters value for DebugSend

* Generated from 3e947825fd1f50e39862de452aa599a4e4bc74b1

Change DebugSendResult from string to object

* Generated from 65b541d42b26f877d8ec658d93e103417c2db181

Fix DebugSend build errors
  • Loading branch information
AutorestCI authored Jun 13, 2018
1 parent f3f4799 commit f882556
Show file tree
Hide file tree
Showing 8 changed files with 2,117 additions and 444 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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 +76,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
@@ -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;
88 changes: 86 additions & 2 deletions lib/services/notificationHubsManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface Sku {
* @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 @@ -116,7 +116,7 @@ export interface CheckAvailabilityParameters {
readonly id?: string;
name: string;
readonly type?: string;
location: string;
location?: string;
tags?: { [propertyName: string]: string };
sku?: Sku;
isAvailiable?: boolean;
Expand Down Expand Up @@ -577,6 +577,74 @@ export interface NotificationHubCreateOrUpdateParameters extends Resource {
baiduCredential?: BaiduCredential;
}

/**
* @class
* Initializes a new instance of the NotificationHubPatchParameters class.
* @constructor
* Parameters supplied to the patch NotificationHub operation.
*
* @member {string} [notificationHubPatchParametersName] The NotificationHub
* name.
* @member {string} [registrationTtl] The RegistrationTtl of the created
* NotificationHub
* @member {array} [authorizationRules] The AuthorizationRules of the created
* NotificationHub
* @member {object} [apnsCredential] The ApnsCredential of the created
* NotificationHub
* @member {string} [apnsCredential.apnsCertificate] The APNS certificate.
* @member {string} [apnsCredential.certificateKey] The certificate key.
* @member {string} [apnsCredential.endpoint] The endpoint of this credential.
* @member {string} [apnsCredential.thumbprint] The Apns certificate Thumbprint
* @member {string} [apnsCredential.keyId] A 10-character key identifier (kid)
* key, obtained from your developer account
* @member {string} [apnsCredential.appName] The name of the application
* @member {string} [apnsCredential.appId] The issuer (iss) registered claim
* key, whose value is your 10-character Team ID, obtained from your developer
* account
* @member {string} [apnsCredential.token] Provider Authentication Token,
* obtained through your developer account
* @member {object} [wnsCredential] The WnsCredential of the created
* NotificationHub
* @member {string} [wnsCredential.packageSid] The package ID for this
* credential.
* @member {string} [wnsCredential.secretKey] The secret key.
* @member {string} [wnsCredential.windowsLiveEndpoint] The Windows Live
* endpoint.
* @member {object} [gcmCredential] The GcmCredential of the created
* NotificationHub
* @member {string} [gcmCredential.gcmEndpoint] The GCM endpoint.
* @member {string} [gcmCredential.googleApiKey] The Google API key.
* @member {object} [mpnsCredential] The MpnsCredential of the created
* NotificationHub
* @member {string} [mpnsCredential.mpnsCertificate] The MPNS certificate.
* @member {string} [mpnsCredential.certificateKey] The certificate key for
* this credential.
* @member {string} [mpnsCredential.thumbprint] The Mpns certificate Thumbprint
* @member {object} [admCredential] The AdmCredential of the created
* NotificationHub
* @member {string} [admCredential.clientId] The client identifier.
* @member {string} [admCredential.clientSecret] The credential secret access
* key.
* @member {string} [admCredential.authTokenUrl] The URL of the authorization
* token.
* @member {object} [baiduCredential] The BaiduCredential of the created
* NotificationHub
* @member {string} [baiduCredential.baiduApiKey] Baidu Api Key.
* @member {string} [baiduCredential.baiduEndPoint] Baidu Endpoint.
* @member {string} [baiduCredential.baiduSecretKey] Baidu Secret Key
*/
export interface NotificationHubPatchParameters extends Resource {
notificationHubPatchParametersName?: string;
registrationTtl?: string;
authorizationRules?: SharedAccessAuthorizationRuleProperties[];
apnsCredential?: ApnsCredential;
wnsCredential?: WnsCredential;
gcmCredential?: GcmCredential;
mpnsCredential?: MpnsCredential;
admCredential?: AdmCredential;
baiduCredential?: BaiduCredential;
}

/**
* @class
* Initializes a new instance of the NotificationHubResource class.
Expand Down Expand Up @@ -644,6 +712,22 @@ export interface NotificationHubResource extends Resource {
baiduCredential?: BaiduCredential;
}

/**
* @class
* Initializes a new instance of the DebugSendResponse class.
* @constructor
* Description of a NotificationHub Resource.
*
* @member {number} [success] successful send
* @member {number} [failure] send failure
* @member {object} [results] actual failure description
*/
export interface DebugSendResponse extends Resource {
success?: number;
failure?: number;
results?: any;
}

/**
* @class
* Initializes a new instance of the PnsCredentialsResource class.
Expand Down
2 changes: 2 additions & 0 deletions lib/services/notificationHubsManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ exports.MpnsCredential = require('./mpnsCredential');
exports.AdmCredential = require('./admCredential');
exports.BaiduCredential = require('./baiduCredential');
exports.NotificationHubCreateOrUpdateParameters = require('./notificationHubCreateOrUpdateParameters');
exports.NotificationHubPatchParameters = require('./notificationHubPatchParameters');
exports.NotificationHubResource = require('./notificationHubResource');
exports.DebugSendResponse = require('./debugSendResponse');
exports.PnsCredentialsResource = require('./pnsCredentialsResource');
exports.SubResource = require('./subResource');
exports.OperationListResult = require('./operationListResult');
Expand Down
Loading

0 comments on commit f882556

Please sign in to comment.