53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
#pragma once
|
|||
|
|
|
||
|
|
// DataPlatform: one object holding every typed service of the data package
|
||
|
|
// over a shared client and project context.
|
||
|
|
|
||
|
|
#include <memory>
|
||
|
|
|
||
|
|
#include "google/data/bigquery.h"
|
||
|
|
#include "google/data/bigtable_admin.h"
|
||
|
|
#include "google/data/dataplex.h"
|
||
|
|
#include "google/data/datastore.h"
|
||
|
|
#include "google/data/dlp.h"
|
||
|
|
#include "google/data/firestore.h"
|
||
|
|
#include "google/data/kms.h"
|
||
|
|
#include "google/data/pubsub.h"
|
||
|
|
#include "google/data/secret_manager.h"
|
||
|
|
#include "google/data/signed_url.h"
|
||
|
|
#include "google/data/spanner.h"
|
||
|
|
#include "google/data/storage.h"
|
||
|
|
#include "google/data/storage_media.h"
|
||
|
|
|
||
|
|
namespace molo::google::data {
|
||
|
|
|
||
|
|
class DataPlatform {
|
||
|
|
public:
|
||
|
|
DataPlatform(std::shared_ptr<GoogleClient> client, CloudContext context)
|
||
|
|
: bigquery(client, context),
|
||
|
|
storage(client, context),
|
||
|
|
pubsub(client, context),
|
||
|
|
firestore(client, context),
|
||
|
|
spanner(client, context),
|
||
|
|
bigtable(client, context),
|
||
|
|
secrets(client, context),
|
||
|
|
dataplex(client, context),
|
||
|
|
dlp(client, context),
|
||
|
|
kms(client, context),
|
||
|
|
datastore(client, context) {}
|
||
|
|
|
||
|
|
BigQuery bigquery;
|
||
|
|
Storage storage;
|
||
|
|
PubSub pubsub;
|
||
|
|
Firestore firestore;
|
||
|
|
Spanner spanner;
|
||
|
|
BigtableAdmin bigtable;
|
||
|
|
SecretManager secrets;
|
||
|
|
Dataplex dataplex;
|
||
|
|
Dlp dlp;
|
||
|
|
Kms kms;
|
||
|
|
Datastore datastore;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace molo::google::data
|