Android-cuttlefish cvd tool
build_api_flags.h
Go to the documentation of this file.
1//
2// Copyright (C) 2023 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include <chrono>
19#include <cstddef>
20#include <string>
21#include <vector>
22
27
28namespace cuttlefish {
29
30inline constexpr char kDefaultApiKey[] = "";
31inline constexpr char kDefaultCredentialSource[] = "";
32inline constexpr char kDefaultProjectID[] = "";
33inline constexpr std::chrono::seconds kDefaultWaitRetryPeriod =
34 std::chrono::seconds(20);
35inline constexpr bool kDefaultEnableCaching = true;
36
38 std::vector<Flag> Flags();
39
40 std::string api_key = kDefaultApiKey;
49};
50
51} // namespace cuttlefish
Definition: alloc_utils.cpp:23
constexpr bool kDefaultEnableCaching
Definition: build_api_flags.h:35
constexpr char kDefaultApiKey[]
Definition: build_api_flags.h:30
constexpr std::chrono::seconds kDefaultWaitRetryPeriod
Definition: build_api_flags.h:33
constexpr char kAndroidBuildServiceUrl[]
Definition: android_build_api.h:38
constexpr char kDefaultProjectID[]
Definition: build_api_flags.h:32
constexpr char kDefaultCredentialSource[]
Definition: build_api_flags.h:31
constexpr std::size_t kDefaultCacheSizeGb
Definition: cache.h:26
Definition: build_api_flags.h:37
std::string credential_source
Definition: build_api_flags.h:42
std::size_t max_cache_size_gb
Definition: build_api_flags.h:47
std::chrono::seconds wait_retry_period
Definition: build_api_flags.h:44
std::string api_key
Definition: build_api_flags.h:40
CasDownloaderFlags cas_downloader_flags
Definition: build_api_flags.h:48
CredentialFlags credential_flags
Definition: build_api_flags.h:41
std::string api_base_url
Definition: build_api_flags.h:45
std::vector< Flag > Flags()
Definition: build_api_flags.cc:46
bool enable_caching
Definition: build_api_flags.h:46
std::string project_id
Definition: build_api_flags.h:43
Definition: cas_flags.h:36
Definition: credential_flags.h:29