UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

112 lines (106 loc) 3.01 kB
/* * 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'); /** * Apple certificate non-secret details * * @extends models['AppleConnectionNonSecretResponse'] */ class AppleCertificateNonSecretDetailsResponse extends models['AppleConnectionNonSecretResponse'] { /** * Create a AppleCertificateNonSecretDetailsResponse. * @property {object} data apple certificate non-secret details * @property {string} [data.displayName] The display name (CN) of the * certificate * @property {string} [data.certificateValidityStartDate] The date-time from * which the certificate is valid * @property {string} [data.certificateValidityEndDate] The date-time till * which the certificate is valid */ constructor() { super(); } /** * Defines the metadata of AppleCertificateNonSecretDetailsResponse * * @returns {object} metadata of AppleCertificateNonSecretDetailsResponse * */ mapper() { return { required: false, serializedName: 'AppleCertificateNonSecretDetailsResponse', type: { name: 'Composite', polymorphicDiscriminator: { serializedName: 'serviceType', clientName: 'serviceType' }, uberParent: 'SharedConnectionResponse', className: 'AppleCertificateNonSecretDetailsResponse', modelProperties: { id: { required: true, serializedName: 'id', type: { name: 'String' } }, displayName: { required: false, serializedName: 'displayName', type: { name: 'String' } }, credentialType: { required: true, serializedName: 'credentialType', type: { name: 'String' } }, isValid: { required: false, serializedName: 'isValid', type: { name: 'Boolean' } }, is2FA: { required: false, serializedName: 'is2FA', type: { name: 'Boolean' } }, serviceType: { required: true, serializedName: 'serviceType', isPolymorphicDiscriminator: true, type: { name: 'String' } }, data: { required: true, serializedName: 'data', type: { name: 'Composite', className: 'AppleCertificateNonSecretDetails' } } } } }; } } module.exports = AppleCertificateNonSecretDetailsResponse;