class Fog::ContainerInfra::HuaweiCloud::Bays

Public Instance Methods

all() click to toggle source
# File lib/fog/container_infra/huaweicloud/models/bays.rb, line 10
def all
  load_response(service.list_bays, "bays")
end
get(bay_uuid_or_name) click to toggle source
# File lib/fog/container_infra/huaweicloud/models/bays.rb, line 14
def get(bay_uuid_or_name)
  resource = service.get_bay(bay_uuid_or_name).body
  new(resource)
rescue Fog::ContainerInfra::HuaweiCloud::NotFound
  nil
end