/*
* 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');
/**
* Class representing a CodePushReleaseModification.
* @extends models['CodePushReleaseInfo']
*/
class CodePushReleaseModification extends models['CodePushReleaseInfo'] {
/**
* Create a CodePushReleaseModification.
*/
constructor() {
super();
}
/**
* Defines the metadata of CodePushReleaseModification
*
* @returns {object} metadata of CodePushReleaseModification
*
*/
mapper() {
return {
required: false,
serializedName: 'CodePushReleaseModification',
type: {
name: 'Composite',
className: 'CodePushReleaseModification',
modelProperties: {
targetBinaryRange: {
required: false,
serializedName: 'target_binary_range',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
isDisabled: {
required: false,
serializedName: 'is_disabled',
type: {
name: 'Boolean'
}
},
isMandatory: {
required: false,
serializedName: 'is_mandatory',
type: {
name: 'Boolean'
}
},
rollout: {
required: false,
serializedName: 'rollout',
constraints: {
InclusiveMaximum: 100,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
}
}
}
};
}
}
module.exports = CodePushReleaseModification;microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
lib/app-center-node-client/src/codepush/models/codePushReleaseModification.js
82lines · modepreview