UNPKG

@atomist/cortex

Version:

Atomist Cortex model TypeScript typings

229 lines (228 loc) 7.46 kB
"use strict"; /* * Copyright 2015-2017 Atomist Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); /** * Type SpinnakerStage * Generated class exposing Atomist Cortex. * Fluent builder style class for use in testing and query by example. */ var SpinnakerStage = (function () { function SpinnakerStage() { this._nodeName = "SpinnakerStage"; this._nodeTags = ["SpinnakerStage", "-dynamic"]; } /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ SpinnakerStage.prototype.nodeName = function () { return this._nodeName; }; /** * Implementation of GraphNode interface method. * For infrastructure, not user use */ SpinnakerStage.prototype.nodeTags = function () { return this._nodeTags; }; Object.defineProperty(SpinnakerStage.prototype, "endTime", { /** * endTime * * @property {string} endTime */ get: function () { if (this._endTime === undefined) { throw new Error("Please use the relevant builder method to set property [endTime] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withEndTime]"); } return this._endTime; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the endTime property */ SpinnakerStage.prototype.withEndTime = function (endTime_) { this._endTime = endTime_; return this; }; Object.defineProperty(SpinnakerStage.prototype, "id", { /** * id * * @property {string} id */ get: function () { if (this._id === undefined) { throw new Error("Please use the relevant builder method to set property [id] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withId]"); } return this._id; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the id property */ SpinnakerStage.prototype.withId = function (id_) { this._id = id_; return this; }; Object.defineProperty(SpinnakerStage.prototype, "name", { /** * name * * @property {string} name */ get: function () { if (this._name === undefined) { throw new Error("Please use the relevant builder method to set property [name] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withName]"); } return this._name; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the name property */ SpinnakerStage.prototype.withName = function (name_) { this._name = name_; return this; }; Object.defineProperty(SpinnakerStage.prototype, "pipeline", { /** * pipeline - SpinnakerStage -> SpinnakerPipeline * * @property {SpinnakerPipeline} pipeline */ get: function () { if (this._pipeline === undefined) { throw new Error("Please use the relevant builder method to set property [pipeline] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withPipeline]"); } return this._pipeline; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the pipeline property */ SpinnakerStage.prototype.withPipeline = function (pipeline_) { this._pipeline = pipeline_; return this; }; Object.defineProperty(SpinnakerStage.prototype, "refId", { /** * refId * * @property {string} refId */ get: function () { if (this._refId === undefined) { throw new Error("Please use the relevant builder method to set property [refId] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withRefId]"); } return this._refId; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the refId property */ SpinnakerStage.prototype.withRefId = function (refId_) { this._refId = refId_; return this; }; Object.defineProperty(SpinnakerStage.prototype, "startTime", { /** * startTime * * @property {string} startTime */ get: function () { if (this._startTime === undefined) { throw new Error("Please use the relevant builder method to set property [startTime] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withStartTime]"); } return this._startTime; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the startTime property */ SpinnakerStage.prototype.withStartTime = function (startTime_) { this._startTime = startTime_; return this; }; Object.defineProperty(SpinnakerStage.prototype, "status", { /** * status * * @property {string} status */ get: function () { if (this._status === undefined) { throw new Error("Please use the relevant builder method to set property [status] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withStatus]"); } return this._status; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the status property */ SpinnakerStage.prototype.withStatus = function (status_) { this._status = status_; return this; }; Object.defineProperty(SpinnakerStage.prototype, "type", { /** * type * * @property {string} type */ get: function () { if (this._type === undefined) { throw new Error("Please use the relevant builder method to set property [type] on stub " + "[SpinnakerStage] before accessing it. It's probably called [withType]"); } return this._type; }, enumerable: true, configurable: true }); /** * Fluent builder method to set the type property */ SpinnakerStage.prototype.withType = function (type_) { this._type = type_; return this; }; return SpinnakerStage; }()); exports.SpinnakerStage = SpinnakerStage;