24 #ifndef GOOGLE_RESELLER_API_RESELLER_SERVICE_H_ 25 #define GOOGLE_RESELLER_API_RESELLER_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/reseller_api/change_plan_request.h" 36 #include "google/reseller_api/customer.h" 37 #include "google/reseller_api/renewal_settings.h" 38 #include "google/reseller_api/resellernotify_getwatchdetails_response.h" 39 #include "google/reseller_api/resellernotify_resource.h" 40 #include "google/reseller_api/seats.h" 41 #include "google/reseller_api/subscription.h" 42 #include "google/reseller_api/subscriptions.h" 77 class ResellerService;
87 :
public client::ClientServiceRequest {
111 const client::ClientService* service,
112 client::AuthorizationCredential* credential,
113 client::HttpRequest::HttpMethod method,
114 const StringPiece& uri_template);
127 client::ClearCppValueHelper(&alt_);
136 const string&
get_alt()
const {
return alt_; }
165 _have_fields_ =
false;
166 client::ClearCppValueHelper(&fields_);
183 _have_fields_ =
true;
195 _have_fields_ =
true;
206 client::ClearCppValueHelper(&key_);
215 const string&
get_key()
const {
return key_; }
246 _have_oauth_token_ =
false;
247 client::ClearCppValueHelper(&oauth_token_);
265 _have_oauth_token_ =
true;
266 return &oauth_token_;
276 _have_oauth_token_ =
true;
277 oauth_token_ = value;
286 _have_pretty_print_ =
false;
287 client::ClearCppValueHelper(&pretty_print_);
304 _have_pretty_print_ =
true;
305 pretty_print_ = value;
312 _have_quota_user_ =
false;
313 client::ClearCppValueHelper("a_user_);
331 _have_quota_user_ =
true;
343 _have_quota_user_ =
true;
353 _have_user_ip_ =
false;
354 client::ClearCppValueHelper(&user_ip_);
371 _have_user_ip_ =
true;
383 _have_user_ip_ =
true;
397 virtual util::Status AppendVariable(
398 const StringPiece& variable_name,
399 const client::UriTemplateConfig& config,
407 virtual util::Status AppendOptionalQueryParameters(
string* target);
416 void AddJsonContentToRequest(
const client::JsonCppData *content);
427 bool _have_fields_ : 1;
429 bool _have_oauth_token_ : 1;
430 bool _have_pretty_print_ : 1;
431 bool _have_quota_user_ : 1;
432 bool _have_user_ip_ : 1;
467 client::AuthorizationCredential* _credential_,
468 const absl::string_view& customer_id);
485 virtual util::Status AppendVariable(
486 const StringPiece& variable_name,
487 const client::UriTemplateConfig& config,
503 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
535 client::AuthorizationCredential* _credential_,
549 _have_customer_auth_token_ =
false;
550 client::ClearCppValueHelper(&customer_auth_token_);
568 _have_customer_auth_token_ =
true;
569 return &customer_auth_token_;
584 _have_customer_auth_token_ =
true;
585 customer_auth_token_ = value;
597 virtual util::Status AppendVariable(
598 const StringPiece& variable_name,
599 const client::UriTemplateConfig& config,
607 virtual util::Status AppendOptionalQueryParameters(
string* target);
622 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
626 string customer_auth_token_;
627 bool _have_customer_auth_token_ : 1;
string _content_;
659 client::AuthorizationCredential* _credential_,
660 const absl::string_view& customer_id,
678 virtual util::Status AppendVariable(
679 const StringPiece& variable_name,
680 const client::UriTemplateConfig& config,
696 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
700 string customer_id_;
string _content_;
732 client::AuthorizationCredential* _credential_,
733 const absl::string_view& customer_id,
751 virtual util::Status AppendVariable(
752 const StringPiece& variable_name,
753 const client::UriTemplateConfig& config,
769 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
773 string customer_id_;
string _content_;
803 client::AuthorizationCredential* _credential_);
822 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
852 client::AuthorizationCredential* _credential_);
865 _have_service_account_email_address_ =
false;
866 client::ClearCppValueHelper(&service_account_email_address_);
884 _have_service_account_email_address_ =
true;
885 return &service_account_email_address_;
896 _have_service_account_email_address_ =
true;
897 service_account_email_address_ = value;
909 virtual util::Status AppendVariable(
910 const StringPiece& variable_name,
911 const client::UriTemplateConfig& config,
919 virtual util::Status AppendOptionalQueryParameters(
string* target);
934 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
938 string service_account_email_address_;
939 bool _have_service_account_email_address_ : 1;
966 client::AuthorizationCredential* _credential_);
979 _have_service_account_email_address_ =
false;
980 client::ClearCppValueHelper(&service_account_email_address_);
998 _have_service_account_email_address_ =
true;
999 return &service_account_email_address_;
1009 _have_service_account_email_address_ =
true;
1010 service_account_email_address_ = value;
1022 virtual util::Status AppendVariable(
1023 const StringPiece& variable_name,
1024 const client::UriTemplateConfig& config,
1032 virtual util::Status AppendOptionalQueryParameters(
string* target);
1047 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1051 string service_account_email_address_;
1052 bool _have_service_account_email_address_ : 1;
1090 client::AuthorizationCredential* _credential_,
1091 const absl::string_view& customer_id,
1092 const absl::string_view& subscription_id);
1109 virtual util::Status AppendVariable(
1110 const StringPiece& variable_name,
1111 const client::UriTemplateConfig& config,
1127 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1131 string customer_id_;
1132 string subscription_id_;
1169 client::AuthorizationCredential* _credential_,
1170 const absl::string_view& customer_id,
1171 const absl::string_view& subscription_id,
1189 virtual util::Status AppendVariable(
1190 const StringPiece& variable_name,
1191 const client::UriTemplateConfig& config,
1207 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1211 string customer_id_;
1212 string subscription_id_;
string _content_;
1249 client::AuthorizationCredential* _credential_,
1250 const absl::string_view& customer_id,
1251 const absl::string_view& subscription_id,
1269 virtual util::Status AppendVariable(
1270 const StringPiece& variable_name,
1271 const client::UriTemplateConfig& config,
1287 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1291 string customer_id_;
1292 string subscription_id_;
string _content_;
1329 client::AuthorizationCredential* _credential_,
1330 const absl::string_view& customer_id,
1331 const absl::string_view& subscription_id,
1332 const Seats& _content_);
1349 virtual util::Status AppendVariable(
1350 const StringPiece& variable_name,
1351 const client::UriTemplateConfig& config,
1367 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1371 string customer_id_;
1372 string subscription_id_;
string _content_;
1410 client::AuthorizationCredential* _credential_,
1411 const absl::string_view& customer_id,
1412 const absl::string_view& subscription_id,
1413 const absl::string_view& deletion_type);
1430 virtual util::Status AppendVariable(
1431 const StringPiece& variable_name,
1432 const client::UriTemplateConfig& config,
1440 virtual util::Status AppendOptionalQueryParameters(
string* target);
1444 string customer_id_;
1445 string subscription_id_;
1446 string deletion_type_;
1483 client::AuthorizationCredential* _credential_,
1484 const absl::string_view& customer_id,
1485 const absl::string_view& subscription_id);
1502 virtual util::Status AppendVariable(
1503 const StringPiece& variable_name,
1504 const client::UriTemplateConfig& config,
1520 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1524 string customer_id_;
1525 string subscription_id_;
1557 client::AuthorizationCredential* _credential_,
1558 const absl::string_view& customer_id,
1572 _have_customer_auth_token_ =
false;
1573 client::ClearCppValueHelper(&customer_auth_token_);
1591 _have_customer_auth_token_ =
true;
1592 return &customer_auth_token_;
1607 _have_customer_auth_token_ =
true;
1608 customer_auth_token_ = value;
1620 virtual util::Status AppendVariable(
1621 const StringPiece& variable_name,
1622 const client::UriTemplateConfig& config,
1630 virtual util::Status AppendOptionalQueryParameters(
string* target);
1645 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1649 string customer_id_;
1650 string customer_auth_token_;
1651 bool _have_customer_auth_token_ : 1;
string _content_;
1679 client::AuthorizationCredential* _credential_);
1692 _have_customer_auth_token_ =
false;
1693 client::ClearCppValueHelper(&customer_auth_token_);
1711 _have_customer_auth_token_ =
true;
1712 return &customer_auth_token_;
1727 _have_customer_auth_token_ =
true;
1728 customer_auth_token_ = value;
1737 _have_customer_id_ =
false;
1738 client::ClearCppValueHelper(&customer_id_);
1756 _have_customer_id_ =
true;
1757 return &customer_id_;
1771 _have_customer_id_ =
true;
1772 customer_id_ = value;
1782 _have_customer_name_prefix_ =
false;
1783 client::ClearCppValueHelper(&customer_name_prefix_);
1801 _have_customer_name_prefix_ =
true;
1802 return &customer_name_prefix_;
1819 _have_customer_name_prefix_ =
true;
1820 customer_name_prefix_ = value;
1829 _have_max_results_ =
false;
1830 client::ClearCppValueHelper(&max_results_);
1849 _have_max_results_ =
true;
1850 max_results_ = value;
1857 _have_page_token_ =
false;
1858 client::ClearCppValueHelper(&page_token_);
1876 _have_page_token_ =
true;
1877 return &page_token_;
1887 _have_page_token_ =
true;
1888 page_token_ = value;
1900 virtual util::Status AppendVariable(
1901 const StringPiece& variable_name,
1902 const client::UriTemplateConfig& config,
1910 virtual util::Status AppendOptionalQueryParameters(
string* target);
1925 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1929 string customer_auth_token_;
1930 string customer_id_;
1931 string customer_name_prefix_;
1932 uint32 max_results_;
1934 bool _have_customer_auth_token_ : 1;
1935 bool _have_customer_id_ : 1;
1936 bool _have_customer_name_prefix_ : 1;
1937 bool _have_max_results_ : 1;
1938 bool _have_page_token_ : 1;
1942 typedef client::ServiceRequestPager<
1945 SubscriptionsResource_ListMethodPager;
1979 client::AuthorizationCredential* _credential_,
1980 const absl::string_view& customer_id,
1981 const absl::string_view& subscription_id);
1998 virtual util::Status AppendVariable(
1999 const StringPiece& variable_name,
2000 const client::UriTemplateConfig& config,
2016 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
2020 string customer_id_;
2021 string subscription_id_;
2057 client::AuthorizationCredential* _credential_,
2058 const absl::string_view& customer_id,
2059 const absl::string_view& subscription_id);
2076 virtual util::Status AppendVariable(
2077 const StringPiece& variable_name,
2078 const client::UriTemplateConfig& config,
2094 return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
2098 string customer_id_;
2099 string subscription_id_;
2118 static const char googleapis_API_NAME[];
2123 static const char googleapis_API_VERSION[];
2128 static const char googleapis_API_GENERATOR[];
2167 client::AuthorizationCredential* _credential_,
2168 const absl::string_view& customer_id)
const;
2180 client::AuthorizationCredential* _credential_,
2198 client::AuthorizationCredential* _credential_,
2199 const absl::string_view& customer_id,
2217 client::AuthorizationCredential* _credential_,
2218 const absl::string_view& customer_id,
2258 client::AuthorizationCredential* _credential_)
const;
2269 client::AuthorizationCredential* _credential_)
const;
2280 client::AuthorizationCredential* _credential_)
const;
2330 client::AuthorizationCredential* _credential_,
2331 const absl::string_view& customer_id,
2332 const absl::string_view& subscription_id)
const;
2355 client::AuthorizationCredential* _credential_,
2356 const absl::string_view& customer_id,
2357 const absl::string_view& subscription_id,
2381 client::AuthorizationCredential* _credential_,
2382 const absl::string_view& customer_id,
2383 const absl::string_view& subscription_id,
2407 client::AuthorizationCredential* _credential_,
2408 const absl::string_view& customer_id,
2409 const absl::string_view& subscription_id,
2410 const Seats& _content_)
const;
2434 client::AuthorizationCredential* _credential_,
2435 const absl::string_view& customer_id,
2436 const absl::string_view& subscription_id,
2437 const absl::string_view& deletion_type)
const;
2459 client::AuthorizationCredential* _credential_,
2460 const absl::string_view& customer_id,
2461 const absl::string_view& subscription_id)
const;
2478 client::AuthorizationCredential* _credential_,
2479 const absl::string_view& customer_id,
2490 SubscriptionsResource_ListMethod* NewListMethod(
2491 client::AuthorizationCredential* _credential_)
const;
2499 SubscriptionsResource_ListMethodPager* NewListMethodPager(
2500 client::AuthorizationCredential* _credential_)
const;
2522 client::AuthorizationCredential* _credential_,
2523 const absl::string_view& customer_id,
2524 const absl::string_view& subscription_id)
const;
2546 client::AuthorizationCredential* _credential_,
2547 const absl::string_view& customer_id,
2548 const absl::string_view& subscription_id)
const;
2587 return resellernotify_;
2597 return subscriptions_;
2611 static const char APPS_ORDER[];
2616 static const char APPS_ORDER_READONLY[];
2663 #endif // GOOGLE_RESELLER_API_RESELLER_SERVICE_H_ util::Status ExecuteAndParseResponse(Customer *data)
Definition: reseller_service.h:620
Definition: address.cc:40
const string & get_service_account_email_address() const
Definition: reseller_service.h:875
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:1205
void set_oauth_token(const string &value)
Definition: reseller_service.h:275
Definition: renewal_settings.h:50
void set_customer_auth_token(const string &value)
Definition: reseller_service.h:583
const SubscriptionsResource & get_subscriptions() const
Definition: reseller_service.h:2596
string * mutable_fields()
Definition: reseller_service.h:182
void clear_key()
Definition: reseller_service.h:204
void clear_service_account_email_address()
Definition: reseller_service.h:864
void set_page_token(const string &value)
Definition: reseller_service.h:1886
const string & get_customer_id() const
Definition: reseller_service.h:1747
const string & get_page_token() const
Definition: reseller_service.h:1867
const string & get_service_account_email_address() const
Definition: reseller_service.h:989
Definition: resellernotify_getwatchdetails_response.h:50
void set_service_account_email_address(const string &value)
Definition: reseller_service.h:1008
~CustomersResource()
Definition: reseller_service.h:2150
const string & get_customer_auth_token() const
Definition: reseller_service.h:1702
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:2092
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:1125
void clear_user_ip()
Definition: reseller_service.h:352
uint32 get_max_results() const
Definition: reseller_service.h:1839
Definition: reseller_service.h:2232
util::Status ExecuteAndParseResponse(Customer *data)
Definition: reseller_service.h:694
void clear_oauth_token()
Definition: reseller_service.h:245
~SubscriptionsResource()
Definition: reseller_service.h:2307
string * mutable_serviceAccountEmailAddress()
Definition: reseller_service.h:883
Definition: customer.h:52
const string & get_customer_auth_token() const
Definition: reseller_service.h:559
Definition: change_plan_request.h:52
Definition: reseller_service.h:1308
string * mutable_customerNamePrefix()
Definition: reseller_service.h:1800
Definition: reseller_service.h:2293
Definition: reseller_service.h:1541
void set_alt(const string &value)
Definition: reseller_service.h:154
const string & get_key() const
Definition: reseller_service.h:215
util::Status ExecuteAndParseResponse(ResellernotifyResource *data)
Definition: reseller_service.h:932
void clear_customer_auth_token()
Definition: reseller_service.h:548
Definition: reseller_service.h:2136
void set_customer_name_prefix(const string &value)
Definition: reseller_service.h:1818
Definition: subscription.h:54
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:1518
void clear_customer_id()
Definition: reseller_service.h:1736
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:1365
const CustomersResource & get_customers() const
Definition: reseller_service.h:2576
void clear_fields()
Definition: reseller_service.h:164
void clear_customer_auth_token()
Definition: reseller_service.h:1691
Definition: reseller_service.h:716
Definition: reseller_service.h:86
const string & get_oauth_token() const
Definition: reseller_service.h:256
void clear_page_token()
Definition: reseller_service.h:1856
string * mutable_pageToken()
Definition: reseller_service.h:1875
void set_pretty_print(bool value)
Definition: reseller_service.h:303
void set_quota_user(const string &value)
Definition: reseller_service.h:342
Definition: reseller_service.h:523
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:1643
util::Status ExecuteAndParseResponse(ResellernotifyGetwatchdetailsResponse *data)
Definition: reseller_service.h:820
Definition: reseller_service.h:2037
Definition: reseller_service.h:1388
Definition: reseller_service.h:452
void set_customer_id(const string &value)
Definition: reseller_service.h:1770
void set_fields(const string &value)
Definition: reseller_service.h:194
Definition: resellernotify_resource.h:50
Definition: reseller_service.h:955
Definition: reseller_service.h:2606
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:1285
void set_customer_auth_token(const string &value)
Definition: reseller_service.h:1606
string * mutable_userIp()
Definition: reseller_service.h:370
util::Status ExecuteAndParseResponse(ResellernotifyResource *data)
Definition: reseller_service.h:1045
string * mutable_customerAuthToken()
Definition: reseller_service.h:1710
string * mutable_customerId()
Definition: reseller_service.h:1755
const string & get_user_ip() const
Definition: reseller_service.h:363
util::Status ExecuteAndParseResponse(Customer *data)
Definition: reseller_service.h:767
string * mutable_alt()
Definition: reseller_service.h:143
util::Status ExecuteAndParseResponse(Customer *data)
Definition: reseller_service.h:501
const string & get_alt() const
Definition: reseller_service.h:136
Definition: reseller_service.h:1959
string * mutable_oauthToken()
Definition: reseller_service.h:264
Definition: reseller_service.h:1228
void clear_pretty_print()
Definition: reseller_service.h:285
const string & get_fields() const
Definition: reseller_service.h:175
void clear_quota_user()
Definition: reseller_service.h:311
Definition: reseller_service.h:1070
void clear_alt()
Definition: reseller_service.h:125
void clear_max_results()
Definition: reseller_service.h:1828
Definition: reseller_service.h:643
string * mutable_key()
Definition: reseller_service.h:222
const ResellernotifyResource & get_resellernotify() const
Definition: reseller_service.h:2586
void set_key(const string &value)
Definition: reseller_service.h:235
const string & get_quota_user() const
Definition: reseller_service.h:322
Definition: reseller_service.h:1463
Definition: subscriptions.h:52
Definition: reseller_service.h:1668
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:2014
Definition: reseller_service.h:2113
string * mutable_customerAuthToken()
Definition: reseller_service.h:1590
Definition: reseller_service.h:841
void set_user_ip(const string &value)
Definition: reseller_service.h:382
string * mutable_customerAuthToken()
Definition: reseller_service.h:567
void clear_service_account_email_address()
Definition: reseller_service.h:978
void clear_customer_name_prefix()
Definition: reseller_service.h:1781
~ResellernotifyResource()
Definition: reseller_service.h:2246
void set_max_results(uint32 value)
Definition: reseller_service.h:1848
bool get_pretty_print() const
Definition: reseller_service.h:296
void set_customer_auth_token(const string &value)
Definition: reseller_service.h:1726
void clear_customer_auth_token()
Definition: reseller_service.h:1571
void set_service_account_email_address(const string &value)
Definition: reseller_service.h:895
const string & get_customer_auth_token() const
Definition: reseller_service.h:1582
util::Status ExecuteAndParseResponse(Subscriptions *data)
Definition: reseller_service.h:1923
Definition: reseller_service.h:792
Definition: reseller_service.h:1148
string * mutable_serviceAccountEmailAddress()
Definition: reseller_service.h:997
string * mutable_quotaUser()
Definition: reseller_service.h:330
const string & get_customer_name_prefix() const
Definition: reseller_service.h:1792