mirror of
https://github.com/allankoechke/azure-storage-cpplite.git
synced 2026-11-30 17:10:53 +00:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "storage_EXPORTS.h"
|
|
|
|
#include "common.h"
|
|
#include "http_base.h"
|
|
#include "storage_account.h"
|
|
#include "storage_request_base.h"
|
|
|
|
namespace azure { namespace storage_lite {
|
|
|
|
class list_containers_request_base : public blob_request_base
|
|
{
|
|
public:
|
|
virtual std::string prefix() const { return std::string(); }
|
|
virtual std::string marker() const { return std::string(); }
|
|
virtual int maxresults() const { return 0; }
|
|
virtual bool include_metadata() const { return false; }
|
|
|
|
AZURE_STORAGE_API void build_request(const storage_account &a, http_base &h) const override;
|
|
};
|
|
|
|
class list_containers_item
|
|
{
|
|
public:
|
|
std::string name;
|
|
std::string last_modified;
|
|
std::string etag;
|
|
lease_status status;
|
|
lease_state state;
|
|
lease_duration duration;
|
|
};
|
|
|
|
class list_constainers_segmented_response
|
|
{
|
|
public:
|
|
std::string ms_request_id;
|
|
std::vector<list_containers_item> containers;
|
|
std::string next_marker;
|
|
};
|
|
|
|
}} // azure::storage_lite
|
|
|