24 #ifndef GOOGLE_CLOUDBILLING_API_CLOUDBILLING_SERVICE_H_ 25 #define GOOGLE_CLOUDBILLING_API_CLOUDBILLING_SERVICE_H_ 28 #include "googleapis/base/integral_types.h" 29 #include "googleapis/base/macros.h" 30 #include "googleapis/client/service/client_service.h" 31 #include "googleapis/client/service/service_request_pager.h" 32 #include "googleapis/client/util/status.h" 33 #include "googleapis/client/util/uri_template.h" 35 #include "google/cloudbilling_api/billing_account.h" 36 #include "google/cloudbilling_api/list_billing_accounts_response.h" 37 #include "google/cloudbilling_api/list_project_billing_info_response.h" 38 #include "google/cloudbilling_api/list_services_response.h" 39 #include "google/cloudbilling_api/list_skus_response.h" 40 #include "google/cloudbilling_api/policy.h" 41 #include "google/cloudbilling_api/project_billing_info.h" 42 #include "google/cloudbilling_api/set_iam_policy_request.h" 43 #include "google/cloudbilling_api/test_iam_permissions_request.h" 44 #include "google/cloudbilling_api/test_iam_permissions_response.h" 79 class CloudbillingService;
89 :
public client::ClientServiceRequest {
113 const client::ClientService* service,
114 client::AuthorizationCredential* credential,
115 client::HttpRequest::HttpMethod method,
116 const StringPiece& uri_template);
128 _have_xgafv_ =
false;
129 client::ClearCppValueHelper(&xgafv_);
167 _have_access_token_ =
false;
168 client::ClearCppValueHelper(&access_token_);
186 _have_access_token_ =
true;
187 return &access_token_;
197 _have_access_token_ =
true;
198 access_token_ = value;
208 client::ClearCppValueHelper(&alt_);
217 const string&
get_alt()
const {
return alt_; }
246 _have_callback_ =
false;
247 client::ClearCppValueHelper(&callback_);
264 _have_callback_ =
true;
275 _have_callback_ =
true;
285 _have_fields_ =
false;
286 client::ClearCppValueHelper(&fields_);
303 _have_fields_ =
true;
315 _have_fields_ =
true;
326 client::ClearCppValueHelper(&key_);
335 const string&
get_key()
const {
return key_; }
366 _have_oauth_token_ =
false;
367 client::ClearCppValueHelper(&oauth_token_);
385 _have_oauth_token_ =
true;
386 return &oauth_token_;
396 _have_oauth_token_ =
true;
397 oauth_token_ = value;
406 _have_pretty_print_ =
false;
407 client::ClearCppValueHelper(&pretty_print_);
424 _have_pretty_print_ =
true;
425 pretty_print_ = value;
432 _have_quota_user_ =
false;
433 client::ClearCppValueHelper("a_user_);
451 _have_quota_user_ =
true;
464 _have_quota_user_ =
true;
474 _have_upload_type_ =
false;
475 client::ClearCppValueHelper(&upload_type_);
493 _have_upload_type_ =
true;
494 return &upload_type_;
505 _have_upload_type_ =
true;
506 upload_type_ = value;
515 _have_upload_protocol_ =
false;
516 client::ClearCppValueHelper(&upload_protocol_);
534 _have_upload_protocol_ =
true;
535 return &upload_protocol_;
545 _have_upload_protocol_ =
true;
546 upload_protocol_ = value;
559 virtual util::Status AppendVariable(
560 const StringPiece& variable_name,
561 const client::UriTemplateConfig& config,
569 virtual util::Status AppendOptionalQueryParameters(
string* target);
578 void AddJsonContentToRequest(
const client::JsonCppData *content);
582 string access_token_;
591 string upload_protocol_;
592 bool _have_xgafv_ : 1;
593 bool _have_access_token_ : 1;
595 bool _have_callback_ : 1;
596 bool _have_fields_ : 1;
598 bool _have_oauth_token_ : 1;
599 bool _have_pretty_print_ : 1;
600 bool _have_quota_user_ : 1;
601 bool _have_upload_type_ : 1;
602 bool _have_upload_protocol_ : 1;
633 client::AuthorizationCredential* _credential_,
653 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
687 client::AuthorizationCredential* _credential_,
688 const absl::string_view& name);
705 virtual util::Status AppendVariable(
706 const StringPiece& variable_name,
707 const client::UriTemplateConfig& config,
723 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
757 client::AuthorizationCredential* _credential_,
758 const absl::string_view& resource);
771 _have_options_requested_policy_version_ =
false;
772 client::ClearCppValueHelper(&options_requested_policy_version_);
799 _have_options_requested_policy_version_ =
true;
800 options_requested_policy_version_ = value;
812 virtual util::Status AppendVariable(
813 const StringPiece& variable_name,
814 const client::UriTemplateConfig& config,
822 virtual util::Status AppendOptionalQueryParameters(
string* target);
837 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
842 int32 options_requested_policy_version_;
843 bool _have_options_requested_policy_version_ : 1;
870 client::AuthorizationCredential* _credential_);
882 _have_filter_ =
false;
883 client::ClearCppValueHelper(&filter_);
900 _have_filter_ =
true;
916 _have_filter_ =
true;
926 _have_page_token_ =
false;
927 client::ClearCppValueHelper(&page_token_);
945 _have_page_token_ =
true;
959 _have_page_token_ =
true;
969 _have_page_size_ =
false;
970 client::ClearCppValueHelper(&page_size_);
989 _have_page_size_ =
true;
1002 virtual util::Status AppendVariable(
1003 const StringPiece& variable_name,
1004 const client::UriTemplateConfig& config,
1012 virtual util::Status AppendOptionalQueryParameters(
string* target);
1027 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1034 bool _have_filter_ : 1;
1035 bool _have_page_token_ : 1;
1036 bool _have_page_size_ : 1;
1040 typedef client::ServiceRequestPager<
1043 BillingAccountsResource_ListMethodPager;
1071 client::AuthorizationCredential* _credential_,
1072 const absl::string_view& name,
1085 _have_update_mask_ =
false;
1086 client::ClearCppValueHelper(&update_mask_);
1104 _have_update_mask_ =
true;
1105 return &update_mask_;
1116 _have_update_mask_ =
true;
1117 update_mask_ = value;
1129 virtual util::Status AppendVariable(
1130 const StringPiece& variable_name,
1131 const client::UriTemplateConfig& config,
1139 virtual util::Status AppendOptionalQueryParameters(
string* target);
1154 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1159 string update_mask_;
1160 bool _have_update_mask_ : 1;
string _content_;
1191 client::AuthorizationCredential* _credential_,
1192 const absl::string_view& resource,
1210 virtual util::Status AppendVariable(
1211 const StringPiece& variable_name,
1212 const client::UriTemplateConfig& config,
1228 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1232 string resource_;
string _content_;
1263 client::AuthorizationCredential* _credential_,
1264 const absl::string_view& resource,
1282 virtual util::Status AppendVariable(
1283 const StringPiece& variable_name,
1284 const client::UriTemplateConfig& config,
1300 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1304 string resource_;
string _content_;
1337 client::AuthorizationCredential* _credential_,
1338 const absl::string_view& name);
1350 _have_page_token_ =
false;
1351 client::ClearCppValueHelper(&page_token_);
1369 _have_page_token_ =
true;
1370 return &page_token_;
1383 _have_page_token_ =
true;
1384 page_token_ = value;
1393 _have_page_size_ =
false;
1394 client::ClearCppValueHelper(&page_size_);
1413 _have_page_size_ =
true;
1426 virtual util::Status AppendVariable(
1427 const StringPiece& variable_name,
1428 const client::UriTemplateConfig& config,
1436 virtual util::Status AppendOptionalQueryParameters(
string* target);
1451 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1458 bool _have_page_token_ : 1;
1459 bool _have_page_size_ : 1;
1463 typedef client::ServiceRequestPager<
1466 BillingAccountsResource_ProjectsResource_ListMethodPager;
1496 client::AuthorizationCredential* _credential_,
1497 const absl::string_view& name);
1514 virtual util::Status AppendVariable(
1515 const StringPiece& variable_name,
1516 const client::UriTemplateConfig& config,
1532 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1567 client::AuthorizationCredential* _credential_,
1568 const absl::string_view& name,
1586 virtual util::Status AppendVariable(
1587 const StringPiece& variable_name,
1588 const client::UriTemplateConfig& config,
1604 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1608 string name_;
string _content_;
1637 client::AuthorizationCredential* _credential_);
1649 _have_page_token_ =
false;
1650 client::ClearCppValueHelper(&page_token_);
1668 _have_page_token_ =
true;
1669 return &page_token_;
1682 _have_page_token_ =
true;
1683 page_token_ = value;
1692 _have_page_size_ =
false;
1693 client::ClearCppValueHelper(&page_size_);
1710 _have_page_size_ =
true;
1723 virtual util::Status AppendVariable(
1724 const StringPiece& variable_name,
1725 const client::UriTemplateConfig& config,
1733 virtual util::Status AppendOptionalQueryParameters(
string* target);
1748 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
1754 bool _have_page_token_ : 1;
1755 bool _have_page_size_ : 1;
1759 typedef client::ServiceRequestPager<
1762 ServicesResource_ListMethodPager;
1792 client::AuthorizationCredential* _credential_,
1793 const absl::string_view& parent);
1805 _have_currency_code_ =
false;
1806 client::ClearCppValueHelper(¤cy_code_);
1824 _have_currency_code_ =
true;
1825 return ¤cy_code_;
1838 _have_currency_code_ =
true;
1839 currency_code_ = value;
1848 _have_end_time_ =
false;
1849 client::ClearCppValueHelper(&end_time_);
1867 _have_end_time_ =
true;
1884 _have_end_time_ =
true;
1894 _have_page_token_ =
false;
1895 client::ClearCppValueHelper(&page_token_);
1913 _have_page_token_ =
true;
1914 return &page_token_;
1927 _have_page_token_ =
true;
1928 page_token_ = value;
1937 _have_start_time_ =
false;
1938 client::ClearCppValueHelper(&start_time_);
1956 _have_start_time_ =
true;
1957 return &start_time_;
1973 _have_start_time_ =
true;
1974 start_time_ = value;
1983 _have_page_size_ =
false;
1984 client::ClearCppValueHelper(&page_size_);
2001 _have_page_size_ =
true;
2014 virtual util::Status AppendVariable(
2015 const StringPiece& variable_name,
2016 const client::UriTemplateConfig& config,
2024 virtual util::Status AppendOptionalQueryParameters(
string* target);
2039 return CloudbillingServiceBaseRequest::ExecuteAndParseResponse(data);
2044 string currency_code_;
2049 bool _have_currency_code_ : 1;
2050 bool _have_end_time_ : 1;
2051 bool _have_page_token_ : 1;
2052 bool _have_start_time_ : 1;
2053 bool _have_page_size_ : 1;
2057 typedef client::ServiceRequestPager<
2060 ServicesResource_SkusResource_ListMethodPager;
2077 static const char googleapis_API_NAME[];
2082 static const char googleapis_API_VERSION[];
2087 static const char googleapis_API_GENERATOR[];
2145 BillingAccountsResource_ProjectsResource_ListMethod* NewListMethod(
2146 client::AuthorizationCredential* _credential_,
2147 const absl::string_view& name)
const;
2160 BillingAccountsResource_ProjectsResource_ListMethodPager* NewListMethodPager(
2161 client::AuthorizationCredential* _credential_,
2162 const absl::string_view& name)
const;
2190 client::AuthorizationCredential* _credential_,
2205 client::AuthorizationCredential* _credential_,
2206 const absl::string_view& name)
const;
2220 client::AuthorizationCredential* _credential_,
2221 const absl::string_view& resource)
const;
2231 BillingAccountsResource_ListMethod* NewListMethod(
2232 client::AuthorizationCredential* _credential_)
const;
2240 BillingAccountsResource_ListMethodPager* NewListMethodPager(
2241 client::AuthorizationCredential* _credential_)
const;
2255 client::AuthorizationCredential* _credential_,
2256 const absl::string_view& name,
2272 client::AuthorizationCredential* _credential_,
2273 const absl::string_view& resource,
2289 client::AuthorizationCredential* _credential_,
2290 const absl::string_view& resource,
2334 client::AuthorizationCredential* _credential_,
2335 const absl::string_view& name)
const;
2350 client::AuthorizationCredential* _credential_,
2351 const absl::string_view& name,
2413 ServicesResource_SkusResource_ListMethod* NewListMethod(
2414 client::AuthorizationCredential* _credential_,
2415 const absl::string_view& parent)
const;
2427 ServicesResource_SkusResource_ListMethodPager* NewListMethodPager(
2428 client::AuthorizationCredential* _credential_,
2429 const absl::string_view& parent)
const;
2455 ServicesResource_ListMethod* NewListMethod(
2456 client::AuthorizationCredential* _credential_)
const;
2464 ServicesResource_ListMethodPager* NewListMethodPager(
2465 client::AuthorizationCredential* _credential_)
const;
2495 return billing_accounts_;
2529 static const char CLOUD_PLATFORM[];
2576 #endif // GOOGLE_CLOUDBILLING_API_CLOUDBILLING_SERVICE_H_ const BillingAccountsResource & get_billing_accounts() const
Definition: cloudbilling_service.h:2494
Definition: cloudbilling_service.h:1176
void clear_options_requested_policy_version()
Definition: cloudbilling_service.h:770
Definition: cloudbilling_service.h:1323
bool get_pretty_print() const
Definition: cloudbilling_service.h:416
int32 get_page_size() const
Definition: cloudbilling_service.h:1993
util::Status ExecuteAndParseResponse(Policy *data)
Definition: cloudbilling_service.h:835
void set_update_mask(const string &value)
Definition: cloudbilling_service.h:1115
void clear_page_size()
Definition: cloudbilling_service.h:1691
const ProjectsResource & get_projects() const
Definition: cloudbilling_service.h:2504
const string & get_page_token() const
Definition: cloudbilling_service.h:1904
const string & get_end_time() const
Definition: cloudbilling_service.h:1858
void set_oauth_token(const string &value)
Definition: cloudbilling_service.h:395
const string & get_alt() const
Definition: cloudbilling_service.h:217
util::Status ExecuteAndParseResponse(ProjectBillingInfo *data)
Definition: cloudbilling_service.h:1530
const SkusResource & get_skus() const
Definition: cloudbilling_service.h:2441
void set_options_requested_policy_version(int32 value)
Definition: cloudbilling_service.h:798
Definition: set_iam_policy_request.h:52
void set_page_token(const string &value)
Definition: cloudbilling_service.h:958
void set_end_time(const string &value)
Definition: cloudbilling_service.h:1883
string * mutable_oauthToken()
Definition: cloudbilling_service.h:384
Definition: cloudbilling_service.h:2305
string * mutable_startTime()
Definition: cloudbilling_service.h:1955
Definition: test_iam_permissions_response.h:50
void clear_page_size()
Definition: cloudbilling_service.h:1392
void set_page_size(int32 value)
Definition: cloudbilling_service.h:1709
string * mutable_pageToken()
Definition: cloudbilling_service.h:944
const string & get_callback() const
Definition: cloudbilling_service.h:256
void set_xgafv(const string &value)
Definition: cloudbilling_service.h:156
void set_page_size(int32 value)
Definition: cloudbilling_service.h:988
const ServicesResource & get_services() const
Definition: cloudbilling_service.h:2514
int32 get_page_size() const
Definition: cloudbilling_service.h:1702
void clear_page_token()
Definition: cloudbilling_service.h:925
void clear_pretty_print()
Definition: cloudbilling_service.h:405
Definition: billing_account.h:51
void set_page_token(const string &value)
Definition: cloudbilling_service.h:1926
const string & get_update_mask() const
Definition: cloudbilling_service.h:1095
const string & get_page_token() const
Definition: cloudbilling_service.h:1360
const string & get_page_token() const
Definition: cloudbilling_service.h:936
Definition: cloudbilling_service.h:1626
Definition: test_iam_permissions_request.h:50
util::Status ExecuteAndParseResponse(ProjectBillingInfo *data)
Definition: cloudbilling_service.h:1602
Definition: cloudbilling_service.h:88
void set_page_size(int32 value)
Definition: cloudbilling_service.h:2000
void set_currency_code(const string &value)
Definition: cloudbilling_service.h:1837
void clear_start_time()
Definition: cloudbilling_service.h:1936
string * mutable_key()
Definition: cloudbilling_service.h:342
Definition: cloudbilling_service.h:1057
string * mutable_updateMask()
Definition: cloudbilling_service.h:1103
~ProjectsResource()
Definition: cloudbilling_service.h:2319
void set_page_token(const string &value)
Definition: cloudbilling_service.h:1681
Definition: list_skus_response.h:52
void clear_update_mask()
Definition: cloudbilling_service.h:1084
Definition: cloudbilling_service.h:1248
void set_access_token(const string &value)
Definition: cloudbilling_service.h:196
util::Status ExecuteAndParseResponse(ListSkusResponse *data)
Definition: cloudbilling_service.h:2037
void clear_currency_code()
Definition: cloudbilling_service.h:1804
void clear_page_token()
Definition: cloudbilling_service.h:1893
int32 get_page_size() const
Definition: cloudbilling_service.h:979
const string & get_xgafv() const
Definition: cloudbilling_service.h:138
util::Status ExecuteAndParseResponse(BillingAccount *data)
Definition: cloudbilling_service.h:721
void set_upload_protocol(const string &value)
Definition: cloudbilling_service.h:544
int32 get_page_size() const
Definition: cloudbilling_service.h:1403
Definition: cloudbilling_service.h:1482
void clear_page_size()
Definition: cloudbilling_service.h:968
void clear_page_size()
Definition: cloudbilling_service.h:1982
void clear_upload_protocol()
Definition: cloudbilling_service.h:514
Definition: cloudbilling_service.h:2386
void set_alt(const string &value)
Definition: cloudbilling_service.h:235
string * mutable_callback()
Definition: cloudbilling_service.h:263
Definition: cloudbilling_service.h:1779
void set_quota_user(const string &value)
Definition: cloudbilling_service.h:463
Definition: cloudbilling_service.h:673
Definition: list_services_response.h:52
void set_key(const string &value)
Definition: cloudbilling_service.h:355
string * mutable_uploadType()
Definition: cloudbilling_service.h:492
void clear_quota_user()
Definition: cloudbilling_service.h:431
const string & get_fields() const
Definition: cloudbilling_service.h:295
const string & get_access_token() const
Definition: cloudbilling_service.h:177
const string & get_upload_type() const
Definition: cloudbilling_service.h:484
string * mutable_pageToken()
Definition: cloudbilling_service.h:1667
Definition: cloudbilling_service.h:1552
const string & get_upload_protocol() const
Definition: cloudbilling_service.h:525
const string & get_filter() const
Definition: cloudbilling_service.h:892
void set_fields(const string &value)
Definition: cloudbilling_service.h:314
~SkusResource()
Definition: cloudbilling_service.h:2400
void set_page_token(const string &value)
Definition: cloudbilling_service.h:1382
util::Status ExecuteAndParseResponse(ListProjectBillingInfoResponse *data)
Definition: cloudbilling_service.h:1449
util::Status ExecuteAndParseResponse(TestIamPermissionsResponse *data)
Definition: cloudbilling_service.h:1298
Definition: cloudbilling_service.h:743
void clear_end_time()
Definition: cloudbilling_service.h:1847
void set_start_time(const string &value)
Definition: cloudbilling_service.h:1972
string * mutable_currencyCode()
Definition: cloudbilling_service.h:1823
const string & get_page_token() const
Definition: cloudbilling_service.h:1659
void clear_fields()
Definition: cloudbilling_service.h:284
util::Status ExecuteAndParseResponse(ListServicesResponse *data)
Definition: cloudbilling_service.h:1746
string *mutable_ $Xgafv()
Definition: cloudbilling_service.h:145
util::Status ExecuteAndParseResponse(BillingAccount *data)
Definition: cloudbilling_service.h:1152
void set_callback(const string &value)
Definition: cloudbilling_service.h:274
const string & get_currency_code() const
Definition: cloudbilling_service.h:1815
const string & get_quota_user() const
Definition: cloudbilling_service.h:442
Definition: cloudbilling_service.h:2116
~ServicesResource()
Definition: cloudbilling_service.h:2379
const string & get_start_time() const
Definition: cloudbilling_service.h:1947
Definition: cloudbilling_service.h:621
string * mutable_endTime()
Definition: cloudbilling_service.h:1866
string * mutable_quotaUser()
Definition: cloudbilling_service.h:450
void clear_alt()
Definition: cloudbilling_service.h:206
Definition: list_billing_accounts_response.h:52
void clear_page_token()
Definition: cloudbilling_service.h:1648
util::Status ExecuteAndParseResponse(BillingAccount *data)
Definition: cloudbilling_service.h:651
string * mutable_accessToken()
Definition: cloudbilling_service.h:185
Definition: project_billing_info.h:52
~BillingAccountsResource()
Definition: cloudbilling_service.h:2109
void clear_oauth_token()
Definition: cloudbilling_service.h:365
Definition: cloudbilling_service.h:2072
void clear_page_token()
Definition: cloudbilling_service.h:1349
void clear_key()
Definition: cloudbilling_service.h:324
string * mutable_filter()
Definition: cloudbilling_service.h:899
Definition: cloudbilling_service.h:2095
string * mutable_pageToken()
Definition: cloudbilling_service.h:1912
util::Status ExecuteAndParseResponse(ListBillingAccountsResponse *data)
Definition: cloudbilling_service.h:1025
void clear_filter()
Definition: cloudbilling_service.h:881
const ProjectsResource & get_projects() const
Definition: cloudbilling_service.h:2174
string * mutable_alt()
Definition: cloudbilling_service.h:224
const string & get_key() const
Definition: cloudbilling_service.h:335
string * mutable_pageToken()
Definition: cloudbilling_service.h:1368
string * mutable_uploadProtocol()
Definition: cloudbilling_service.h:533
string * mutable_fields()
Definition: cloudbilling_service.h:302
Definition: cloudbilling_service.h:859
int32 get_options_requested_policy_version() const
Definition: cloudbilling_service.h:782
Definition: cloudbilling_service.h:2365
void set_filter(const string &value)
Definition: cloudbilling_service.h:915
void set_upload_type(const string &value)
Definition: cloudbilling_service.h:504
void set_pretty_print(bool value)
Definition: cloudbilling_service.h:423
void clear_xgafv()
Definition: cloudbilling_service.h:127
~ProjectsResource()
Definition: cloudbilling_service.h:2130
void clear_access_token()
Definition: cloudbilling_service.h:166
Definition: cloudbilling_service.h:2524
void set_page_size(int32 value)
Definition: cloudbilling_service.h:1412
Definition: list_project_billing_info_response.h:52
Definition: aggregation_info.cc:42
void clear_upload_type()
Definition: cloudbilling_service.h:473
const string & get_oauth_token() const
Definition: cloudbilling_service.h:376
util::Status ExecuteAndParseResponse(Policy *data)
Definition: cloudbilling_service.h:1226
void clear_callback()
Definition: cloudbilling_service.h:245