class ResourceQuotaSpec
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.
Contact Info: <kenneth.evensen@redhat.com> and <lester@redhat.com>
Attributes
configmaps[RW]
persistentvolumeclaims[RW]
pods[RW]
replicationcontrollers[RW]
resourcequotas[RW]
secrets[RW]
services[RW]
Public Class Methods
new()
click to toggle source
# File lib/base/v1/api/ResourceQuotaSpec.rb, line 33 def initialize @pods = nil @replicationcontrollers = nil @resourcequotas = nil @services = nil @secrets = nil @configmaps = nil @persistentvolumeclaims = nil @name = nil end
Public Instance Methods
get_hash()
click to toggle source
# File lib/base/v1/api/ResourceQuotaSpec.rb, line 44 def get_hash quota_hash = Hash.new unless @pods.nil? quota_hash[:pods] = @pods.to_s end unless @replicationcontrollers.nil? quota_hash[:replicationcontrollers] = @replicationcontrollers.to_s end unless @services.nil? quota_hash[:services] = @services.to_s end unless @configmaps.nil? quota_hash[:configmaps] = @configmaps.to_s end unless @persistentvolumeclaims.nil? quota_hash[:persistentvolumeclaims] = @persistentvolumeclaims.to_s end unless @resourcequotas.nil? quota_hash[:resourcequotas] = @resourcequotas.to_s end unless @secrets.nil? quota_hash[:secrets] = @secrets.to_s end hard_hash = {'hard' => quota_hash} return hard_hash end