@atomist/cortex
Version:
Atomist Cortex model TypeScript typings
91 lines (90 loc) • 2.98 kB
JavaScript
/*
* 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 K8Cluster
* Generated class exposing Atomist Cortex.
* Fluent builder style class for use in testing and query by example.
*/
var K8Cluster = (function () {
function K8Cluster() {
this._nodeName = "K8Cluster";
this._nodeTags = ["K8Cluster", "-dynamic"];
}
/**
* Implementation of GraphNode interface method.
* For infrastructure, not user use
*/
K8Cluster.prototype.nodeName = function () {
return this._nodeName;
};
/**
* Implementation of GraphNode interface method.
* For infrastructure, not user use
*/
K8Cluster.prototype.nodeTags = function () {
return this._nodeTags;
};
Object.defineProperty(K8Cluster.prototype, "availabilityZone", {
/**
* availabilityZone
*
* @property {string} availabilityZone
*/
get: function () {
if (this._availabilityZone === undefined) {
throw new Error("Please use the relevant builder method to set property [availabilityZone] on stub " +
"[K8Cluster] before accessing it. It's probably called [withAvailabilityZone]");
}
return this._availabilityZone;
},
enumerable: true,
configurable: true
});
/**
* Fluent builder method to set the availabilityZone property
*/
K8Cluster.prototype.withAvailabilityZone = function (availabilityZone_) {
this._availabilityZone = availabilityZone_;
return this;
};
Object.defineProperty(K8Cluster.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 " +
"[K8Cluster] before accessing it. It's probably called [withName]");
}
return this._name;
},
enumerable: true,
configurable: true
});
/**
* Fluent builder method to set the name property
*/
K8Cluster.prototype.withName = function (name_) {
this._name = name_;
return this;
};
return K8Cluster;
}());
exports.K8Cluster = K8Cluster;
;