Sha256: 9077988bf6dc995393e5530857949476a8d6ef9dface1bf7046bff19a9ae05e7
Contents?: true
Size: 668 Bytes
Versions: 4
Compression:
Stored size: 668 Bytes
Contents
require 'fog/huaweicloud/models/collection' require 'fog/container_infra/huaweicloud/models/cluster_template' module Fog module ContainerInfra class HuaweiCloud class ClusterTemplates < Fog::HuaweiCloud::Collection model Fog::ContainerInfra::HuaweiCloud::ClusterTemplate def all load_response(service.list_cluster_templates, 'clustertemplates') end def get(cluster_template_uuid_or_name) resource = service.get_cluster_template(cluster_template_uuid_or_name).body new(resource) rescue Fog::ContainerInfra::HuaweiCloud::NotFound nil end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems