forked from Azure-Samples/azure-ai-vision-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets.h
28 lines (23 loc) · 903 Bytes
/
secrets.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// Azure AI Vision SDK -- C++ Image Analysis Samples
//
class Secrets
{
public:
static const std::string EnvironmentVariableKey;
static const std::string EnvironmentVariableEndpoint;
static std::string GetKey();
static std::string GetEndpoint();
static bool LoadSecretsSucceeded(std::vector<std::string> args);
private:
static std::string key;
static std::string endpoint;
static bool LoadKeySucceeded(std::vector<std::string> args);
static bool LoadEndpointSucceeded(std::vector<std::string> args);
static bool IsValidEndpoint(std::string endpoint);
static bool IsValidKey(std::string key);
static std::string GetEnvironmentVariable(const std::string name);
};