reseller  v1
reseller_service.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 //
15 //------------------------------------------------------------------------------
16 // This code was generated by google-apis-code-generator 1.5.1
17 // Build date: 2018-10-08 17:45:39 UTC
18 // on: 2020-01-30, 01:43:20 UTC
19 // C++ generator version: 0.1.4
20 //
21 // Changes to this file may cause incorrect behavior and will be lost if
22 // the code is regenerated.
23 //------------------------------------------------------------------------------
24 #ifndef GOOGLE_RESELLER_API_RESELLER_SERVICE_H_
25 #define GOOGLE_RESELLER_API_RESELLER_SERVICE_H_
26 
27 #include <string>
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"
34 
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"
43 
44 
45 namespace google_reseller_api {
46 using namespace googleapis;
77 class ResellerService;
78 
87  : public client::ClientServiceRequest {
88  public:
111  const client::ClientService* service,
112  client::AuthorizationCredential* credential,
113  client::HttpRequest::HttpMethod method,
114  const StringPiece& uri_template);
115 
119  virtual ~ResellerServiceBaseRequest();
120 
121 
125  void clear_alt() {
126  _have_alt_ = false;
127  client::ClearCppValueHelper(&alt_);
128  }
129 
130 
136  const string& get_alt() const { return alt_; }
137 
143  string* mutable_alt() {
144  _have_alt_ = true;
145  return &alt_;
146  }
147 
148 
154  void set_alt(const string& value) {
155  _have_alt_ = true;
156  alt_ = value;
157  }
158 
159 
160 
164  void clear_fields() {
165  _have_fields_ = false;
166  client::ClearCppValueHelper(&fields_);
167  }
168 
169 
175  const string& get_fields() const { return fields_; }
176 
182  string* mutable_fields() {
183  _have_fields_ = true;
184  return &fields_;
185  }
186 
187 
194  void set_fields(const string& value) {
195  _have_fields_ = true;
196  fields_ = value;
197  }
198 
199 
200 
204  void clear_key() {
205  _have_key_ = false;
206  client::ClearCppValueHelper(&key_);
207  }
208 
209 
215  const string& get_key() const { return key_; }
216 
222  string* mutable_key() {
223  _have_key_ = true;
224  return &key_;
225  }
226 
227 
235  void set_key(const string& value) {
236  _have_key_ = true;
237  key_ = value;
238  }
239 
240 
241 
246  _have_oauth_token_ = false;
247  client::ClearCppValueHelper(&oauth_token_);
248  }
249 
250 
256  const string& get_oauth_token() const { return oauth_token_; }
257 
264  string* mutable_oauthToken() {
265  _have_oauth_token_ = true;
266  return &oauth_token_;
267  }
268 
269 
275  void set_oauth_token(const string& value) {
276  _have_oauth_token_ = true;
277  oauth_token_ = value;
278  }
279 
280 
281 
286  _have_pretty_print_ = false;
287  client::ClearCppValueHelper(&pretty_print_);
288  }
289 
290 
296  bool get_pretty_print() const { return pretty_print_; }
297 
303  void set_pretty_print(bool value) {
304  _have_pretty_print_ = true;
305  pretty_print_ = value;
306  }
307 
312  _have_quota_user_ = false;
313  client::ClearCppValueHelper(&quota_user_);
314  }
315 
316 
322  const string& get_quota_user() const { return quota_user_; }
323 
330  string* mutable_quotaUser() {
331  _have_quota_user_ = true;
332  return &quota_user_;
333  }
334 
335 
342  void set_quota_user(const string& value) {
343  _have_quota_user_ = true;
344  quota_user_ = value;
345  }
346 
347 
348 
352  void clear_user_ip() {
353  _have_user_ip_ = false;
354  client::ClearCppValueHelper(&user_ip_);
355  }
356 
357 
363  const string& get_user_ip() const { return user_ip_; }
364 
370  string* mutable_userIp() {
371  _have_user_ip_ = true;
372  return &user_ip_;
373  }
374 
375 
382  void set_user_ip(const string& value) {
383  _have_user_ip_ = true;
384  user_ip_ = value;
385  }
386 
397  virtual util::Status AppendVariable(
398  const StringPiece& variable_name,
399  const client::UriTemplateConfig& config,
400  string* target);
401 
407  virtual util::Status AppendOptionalQueryParameters(string* target);
408 
409 
410  protected:
416  void AddJsonContentToRequest(const client::JsonCppData *content);
417 
418  private:
419  string alt_;
420  string fields_;
421  string key_;
422  string oauth_token_;
423  bool pretty_print_;
424  string quota_user_;
425  string user_ip_;
426  bool _have_alt_ : 1;
427  bool _have_fields_ : 1;
428  bool _have_key_ : 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;
433 
434  DISALLOW_COPY_AND_ASSIGN(ResellerServiceBaseRequest);
435 };
436 
437 
438 
453  public:
466  const ResellerService* _service_,
467  client::AuthorizationCredential* _credential_,
468  const absl::string_view& customer_id);
469 
473  virtual ~CustomersResource_GetMethod();
474 
475 
485  virtual util::Status AppendVariable(
486  const StringPiece& variable_name,
487  const client::UriTemplateConfig& config,
488  string* target);
489 
490 
502  Customer* data) {
503  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
504  }
505 
506  private:
507  string customer_id_;
508  DISALLOW_COPY_AND_ASSIGN(CustomersResource_GetMethod);
509 };
510 
524  public:
534  const ResellerService* _service_,
535  client::AuthorizationCredential* _credential_,
536  const Customer& _content_);
537 
542 
543 
549  _have_customer_auth_token_ = false;
550  client::ClearCppValueHelper(&customer_auth_token_);
551  }
552 
553 
559  const string& get_customer_auth_token() const { return customer_auth_token_; }
560 
568  _have_customer_auth_token_ = true;
569  return &customer_auth_token_;
570  }
571 
572 
583  void set_customer_auth_token(const string& value) {
584  _have_customer_auth_token_ = true;
585  customer_auth_token_ = value;
586  }
587 
597  virtual util::Status AppendVariable(
598  const StringPiece& variable_name,
599  const client::UriTemplateConfig& config,
600  string* target);
601 
607  virtual util::Status AppendOptionalQueryParameters(string* target);
608 
609 
621  Customer* data) {
622  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
623  }
624 
625  private:
626  string customer_auth_token_;
627  bool _have_customer_auth_token_ : 1; string _content_;
628  DISALLOW_COPY_AND_ASSIGN(CustomersResource_InsertMethod);
629 };
630 
644  public:
658  const ResellerService* _service_,
659  client::AuthorizationCredential* _credential_,
660  const absl::string_view& customer_id,
661  const Customer& _content_);
662 
667 
668 
678  virtual util::Status AppendVariable(
679  const StringPiece& variable_name,
680  const client::UriTemplateConfig& config,
681  string* target);
682 
683 
695  Customer* data) {
696  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
697  }
698 
699  private:
700  string customer_id_; string _content_;
701  DISALLOW_COPY_AND_ASSIGN(CustomersResource_PatchMethod);
702 };
703 
717  public:
731  const ResellerService* _service_,
732  client::AuthorizationCredential* _credential_,
733  const absl::string_view& customer_id,
734  const Customer& _content_);
735 
740 
741 
751  virtual util::Status AppendVariable(
752  const StringPiece& variable_name,
753  const client::UriTemplateConfig& config,
754  string* target);
755 
756 
768  Customer* data) {
769  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
770  }
771 
772  private:
773  string customer_id_; string _content_;
774  DISALLOW_COPY_AND_ASSIGN(CustomersResource_UpdateMethod);
775 };
776 
777 
778 
793  public:
802  const ResellerService* _service_,
803  client::AuthorizationCredential* _credential_);
804 
809 
822  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
823  }
824 
825  private:
826  DISALLOW_COPY_AND_ASSIGN(ResellernotifyResource_GetwatchdetailsMethod);
827 };
828 
842  public:
851  const ResellerService* _service_,
852  client::AuthorizationCredential* _credential_);
853 
858 
859 
865  _have_service_account_email_address_ = false;
866  client::ClearCppValueHelper(&service_account_email_address_);
867  }
868 
869 
875  const string& get_service_account_email_address() const { return service_account_email_address_; }
876 
884  _have_service_account_email_address_ = true;
885  return &service_account_email_address_;
886  }
887 
888 
895  void set_service_account_email_address(const string& value) {
896  _have_service_account_email_address_ = true;
897  service_account_email_address_ = value;
898  }
899 
909  virtual util::Status AppendVariable(
910  const StringPiece& variable_name,
911  const client::UriTemplateConfig& config,
912  string* target);
913 
919  virtual util::Status AppendOptionalQueryParameters(string* target);
920 
921 
933  ResellernotifyResource* data) {
934  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
935  }
936 
937  private:
938  string service_account_email_address_;
939  bool _have_service_account_email_address_ : 1;
940  DISALLOW_COPY_AND_ASSIGN(ResellernotifyResource_RegisterMethod);
941 };
942 
956  public:
965  const ResellerService* _service_,
966  client::AuthorizationCredential* _credential_);
967 
972 
973 
979  _have_service_account_email_address_ = false;
980  client::ClearCppValueHelper(&service_account_email_address_);
981  }
982 
983 
989  const string& get_service_account_email_address() const { return service_account_email_address_; }
990 
998  _have_service_account_email_address_ = true;
999  return &service_account_email_address_;
1000  }
1001 
1002 
1008  void set_service_account_email_address(const string& value) {
1009  _have_service_account_email_address_ = true;
1010  service_account_email_address_ = value;
1011  }
1012 
1022  virtual util::Status AppendVariable(
1023  const StringPiece& variable_name,
1024  const client::UriTemplateConfig& config,
1025  string* target);
1026 
1032  virtual util::Status AppendOptionalQueryParameters(string* target);
1033 
1034 
1046  ResellernotifyResource* data) {
1047  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1048  }
1049 
1050  private:
1051  string service_account_email_address_;
1052  bool _have_service_account_email_address_ : 1;
1053  DISALLOW_COPY_AND_ASSIGN(ResellernotifyResource_UnregisterMethod);
1054 };
1055 
1056 
1057 
1071  public:
1089  const ResellerService* _service_,
1090  client::AuthorizationCredential* _credential_,
1091  const absl::string_view& customer_id,
1092  const absl::string_view& subscription_id);
1093 
1098 
1099 
1109  virtual util::Status AppendVariable(
1110  const StringPiece& variable_name,
1111  const client::UriTemplateConfig& config,
1112  string* target);
1113 
1114 
1126  Subscription* data) {
1127  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1128  }
1129 
1130  private:
1131  string customer_id_;
1132  string subscription_id_;
1133  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_ActivateMethod);
1134 };
1135 
1149  public:
1168  const ResellerService* _service_,
1169  client::AuthorizationCredential* _credential_,
1170  const absl::string_view& customer_id,
1171  const absl::string_view& subscription_id,
1172  const ChangePlanRequest& _content_);
1173 
1178 
1179 
1189  virtual util::Status AppendVariable(
1190  const StringPiece& variable_name,
1191  const client::UriTemplateConfig& config,
1192  string* target);
1193 
1194 
1206  Subscription* data) {
1207  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1208  }
1209 
1210  private:
1211  string customer_id_;
1212  string subscription_id_; string _content_;
1213  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_ChangePlanMethod);
1214 };
1215 
1229  public:
1248  const ResellerService* _service_,
1249  client::AuthorizationCredential* _credential_,
1250  const absl::string_view& customer_id,
1251  const absl::string_view& subscription_id,
1252  const RenewalSettings& _content_);
1253 
1258 
1259 
1269  virtual util::Status AppendVariable(
1270  const StringPiece& variable_name,
1271  const client::UriTemplateConfig& config,
1272  string* target);
1273 
1274 
1286  Subscription* data) {
1287  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1288  }
1289 
1290  private:
1291  string customer_id_;
1292  string subscription_id_; string _content_;
1293  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_ChangeRenewalSettingsMethod);
1294 };
1295 
1309  public:
1328  const ResellerService* _service_,
1329  client::AuthorizationCredential* _credential_,
1330  const absl::string_view& customer_id,
1331  const absl::string_view& subscription_id,
1332  const Seats& _content_);
1333 
1338 
1339 
1349  virtual util::Status AppendVariable(
1350  const StringPiece& variable_name,
1351  const client::UriTemplateConfig& config,
1352  string* target);
1353 
1354 
1366  Subscription* data) {
1367  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1368  }
1369 
1370  private:
1371  string customer_id_;
1372  string subscription_id_; string _content_;
1373  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_ChangeSeatsMethod);
1374 };
1375 
1389  public:
1409  const ResellerService* _service_,
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);
1414 
1419 
1420 
1430  virtual util::Status AppendVariable(
1431  const StringPiece& variable_name,
1432  const client::UriTemplateConfig& config,
1433  string* target);
1434 
1440  virtual util::Status AppendOptionalQueryParameters(string* target);
1441 
1442 
1443  private:
1444  string customer_id_;
1445  string subscription_id_;
1446  string deletion_type_;
1447  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_DeleteMethod);
1448 };
1449 
1464  public:
1482  const ResellerService* _service_,
1483  client::AuthorizationCredential* _credential_,
1484  const absl::string_view& customer_id,
1485  const absl::string_view& subscription_id);
1486 
1491 
1492 
1502  virtual util::Status AppendVariable(
1503  const StringPiece& variable_name,
1504  const client::UriTemplateConfig& config,
1505  string* target);
1506 
1507 
1519  Subscription* data) {
1520  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1521  }
1522 
1523  private:
1524  string customer_id_;
1525  string subscription_id_;
1526  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_GetMethod);
1527 };
1528 
1542  public:
1556  const ResellerService* _service_,
1557  client::AuthorizationCredential* _credential_,
1558  const absl::string_view& customer_id,
1559  const Subscription& _content_);
1560 
1565 
1566 
1572  _have_customer_auth_token_ = false;
1573  client::ClearCppValueHelper(&customer_auth_token_);
1574  }
1575 
1576 
1582  const string& get_customer_auth_token() const { return customer_auth_token_; }
1583 
1591  _have_customer_auth_token_ = true;
1592  return &customer_auth_token_;
1593  }
1594 
1595 
1606  void set_customer_auth_token(const string& value) {
1607  _have_customer_auth_token_ = true;
1608  customer_auth_token_ = value;
1609  }
1610 
1620  virtual util::Status AppendVariable(
1621  const StringPiece& variable_name,
1622  const client::UriTemplateConfig& config,
1623  string* target);
1624 
1630  virtual util::Status AppendOptionalQueryParameters(string* target);
1631 
1632 
1644  Subscription* data) {
1645  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1646  }
1647 
1648  private:
1649  string customer_id_;
1650  string customer_auth_token_;
1651  bool _have_customer_auth_token_ : 1; string _content_;
1652  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_InsertMethod);
1653 };
1654 
1669  public:
1678  const ResellerService* _service_,
1679  client::AuthorizationCredential* _credential_);
1680 
1685 
1686 
1692  _have_customer_auth_token_ = false;
1693  client::ClearCppValueHelper(&customer_auth_token_);
1694  }
1695 
1696 
1702  const string& get_customer_auth_token() const { return customer_auth_token_; }
1703 
1711  _have_customer_auth_token_ = true;
1712  return &customer_auth_token_;
1713  }
1714 
1715 
1726  void set_customer_auth_token(const string& value) {
1727  _have_customer_auth_token_ = true;
1728  customer_auth_token_ = value;
1729  }
1730 
1731 
1732 
1737  _have_customer_id_ = false;
1738  client::ClearCppValueHelper(&customer_id_);
1739  }
1740 
1741 
1747  const string& get_customer_id() const { return customer_id_; }
1748 
1756  _have_customer_id_ = true;
1757  return &customer_id_;
1758  }
1759 
1760 
1770  void set_customer_id(const string& value) {
1771  _have_customer_id_ = true;
1772  customer_id_ = value;
1773  }
1774 
1775 
1776 
1782  _have_customer_name_prefix_ = false;
1783  client::ClearCppValueHelper(&customer_name_prefix_);
1784  }
1785 
1786 
1792  const string& get_customer_name_prefix() const { return customer_name_prefix_; }
1793 
1801  _have_customer_name_prefix_ = true;
1802  return &customer_name_prefix_;
1803  }
1804 
1805 
1818  void set_customer_name_prefix(const string& value) {
1819  _have_customer_name_prefix_ = true;
1820  customer_name_prefix_ = value;
1821  }
1822 
1823 
1824 
1829  _have_max_results_ = false;
1830  client::ClearCppValueHelper(&max_results_);
1831  }
1832 
1833 
1839  uint32 get_max_results() const { return max_results_; }
1840 
1848  void set_max_results(uint32 value) {
1849  _have_max_results_ = true;
1850  max_results_ = value;
1851  }
1852 
1857  _have_page_token_ = false;
1858  client::ClearCppValueHelper(&page_token_);
1859  }
1860 
1861 
1867  const string& get_page_token() const { return page_token_; }
1868 
1875  string* mutable_pageToken() {
1876  _have_page_token_ = true;
1877  return &page_token_;
1878  }
1879 
1880 
1886  void set_page_token(const string& value) {
1887  _have_page_token_ = true;
1888  page_token_ = value;
1889  }
1890 
1900  virtual util::Status AppendVariable(
1901  const StringPiece& variable_name,
1902  const client::UriTemplateConfig& config,
1903  string* target);
1904 
1910  virtual util::Status AppendOptionalQueryParameters(string* target);
1911 
1912 
1924  Subscriptions* data) {
1925  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
1926  }
1927 
1928  private:
1929  string customer_auth_token_;
1930  string customer_id_;
1931  string customer_name_prefix_;
1932  uint32 max_results_;
1933  string page_token_;
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;
1939  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_ListMethod);
1940 };
1941 
1942 typedef client::ServiceRequestPager<
1944  Subscriptions>
1945  SubscriptionsResource_ListMethodPager;
1946 
1960  public:
1978  const ResellerService* _service_,
1979  client::AuthorizationCredential* _credential_,
1980  const absl::string_view& customer_id,
1981  const absl::string_view& subscription_id);
1982 
1987 
1988 
1998  virtual util::Status AppendVariable(
1999  const StringPiece& variable_name,
2000  const client::UriTemplateConfig& config,
2001  string* target);
2002 
2003 
2015  Subscription* data) {
2016  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
2017  }
2018 
2019  private:
2020  string customer_id_;
2021  string subscription_id_;
2022  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_StartPaidServiceMethod);
2023 };
2024 
2038  public:
2056  const ResellerService* _service_,
2057  client::AuthorizationCredential* _credential_,
2058  const absl::string_view& customer_id,
2059  const absl::string_view& subscription_id);
2060 
2065 
2066 
2076  virtual util::Status AppendVariable(
2077  const StringPiece& variable_name,
2078  const client::UriTemplateConfig& config,
2079  string* target);
2080 
2081 
2093  Subscription* data) {
2094  return ResellerServiceBaseRequest::ExecuteAndParseResponse(data);
2095  }
2096 
2097  private:
2098  string customer_id_;
2099  string subscription_id_;
2100  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource_SuspendMethod);
2101 };
2102 
2103 
2104 
2113 class ResellerService : public client::ClientService {
2114  public:
2118  static const char googleapis_API_NAME[];
2119 
2123  static const char googleapis_API_VERSION[];
2124 
2128  static const char googleapis_API_GENERATOR[];
2129 
2130 
2137  public:
2145  explicit CustomersResource(ResellerService* service);
2146 
2151 
2152 
2166  CustomersResource_GetMethod* NewGetMethod(
2167  client::AuthorizationCredential* _credential_,
2168  const absl::string_view& customer_id) const;
2169 
2179  CustomersResource_InsertMethod* NewInsertMethod(
2180  client::AuthorizationCredential* _credential_,
2181  const Customer& _content_) const;
2182 
2197  CustomersResource_PatchMethod* NewPatchMethod(
2198  client::AuthorizationCredential* _credential_,
2199  const absl::string_view& customer_id,
2200  const Customer& _content_) const;
2201 
2216  CustomersResource_UpdateMethod* NewUpdateMethod(
2217  client::AuthorizationCredential* _credential_,
2218  const absl::string_view& customer_id,
2219  const Customer& _content_) const;
2220 
2221  private:
2222  ResellerService* service_;
2223 
2224  DISALLOW_COPY_AND_ASSIGN(CustomersResource);
2225  };
2226 
2233  public:
2241  explicit ResellernotifyResource(ResellerService* service);
2242 
2247 
2248 
2257  ResellernotifyResource_GetwatchdetailsMethod* NewGetwatchdetailsMethod(
2258  client::AuthorizationCredential* _credential_) const;
2259 
2268  ResellernotifyResource_RegisterMethod* NewRegisterMethod(
2269  client::AuthorizationCredential* _credential_) const;
2270 
2279  ResellernotifyResource_UnregisterMethod* NewUnregisterMethod(
2280  client::AuthorizationCredential* _credential_) const;
2281 
2282  private:
2283  ResellerService* service_;
2284 
2285  DISALLOW_COPY_AND_ASSIGN(ResellernotifyResource);
2286  };
2287 
2294  public:
2302  explicit SubscriptionsResource(ResellerService* service);
2303 
2308 
2309 
2329  SubscriptionsResource_ActivateMethod* NewActivateMethod(
2330  client::AuthorizationCredential* _credential_,
2331  const absl::string_view& customer_id,
2332  const absl::string_view& subscription_id) const;
2333 
2354  SubscriptionsResource_ChangePlanMethod* NewChangePlanMethod(
2355  client::AuthorizationCredential* _credential_,
2356  const absl::string_view& customer_id,
2357  const absl::string_view& subscription_id,
2358  const ChangePlanRequest& _content_) const;
2359 
2380  SubscriptionsResource_ChangeRenewalSettingsMethod* NewChangeRenewalSettingsMethod(
2381  client::AuthorizationCredential* _credential_,
2382  const absl::string_view& customer_id,
2383  const absl::string_view& subscription_id,
2384  const RenewalSettings& _content_) const;
2385 
2406  SubscriptionsResource_ChangeSeatsMethod* NewChangeSeatsMethod(
2407  client::AuthorizationCredential* _credential_,
2408  const absl::string_view& customer_id,
2409  const absl::string_view& subscription_id,
2410  const Seats& _content_) const;
2411 
2433  SubscriptionsResource_DeleteMethod* NewDeleteMethod(
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;
2438 
2458  SubscriptionsResource_GetMethod* NewGetMethod(
2459  client::AuthorizationCredential* _credential_,
2460  const absl::string_view& customer_id,
2461  const absl::string_view& subscription_id) const;
2462 
2477  SubscriptionsResource_InsertMethod* NewInsertMethod(
2478  client::AuthorizationCredential* _credential_,
2479  const absl::string_view& customer_id,
2480  const Subscription& _content_) const;
2481 
2490  SubscriptionsResource_ListMethod* NewListMethod(
2491  client::AuthorizationCredential* _credential_) const;
2492 
2499  SubscriptionsResource_ListMethodPager* NewListMethodPager(
2500  client::AuthorizationCredential* _credential_) const;
2501 
2521  SubscriptionsResource_StartPaidServiceMethod* NewStartPaidServiceMethod(
2522  client::AuthorizationCredential* _credential_,
2523  const absl::string_view& customer_id,
2524  const absl::string_view& subscription_id) const;
2525 
2545  SubscriptionsResource_SuspendMethod* NewSuspendMethod(
2546  client::AuthorizationCredential* _credential_,
2547  const absl::string_view& customer_id,
2548  const absl::string_view& subscription_id) const;
2549 
2550  private:
2551  ResellerService* service_;
2552 
2553  DISALLOW_COPY_AND_ASSIGN(SubscriptionsResource);
2554  };
2555 
2556 
2557 
2564  explicit ResellerService(client::HttpTransport* transport);
2565 
2569  virtual ~ResellerService();
2570 
2577  return customers_;
2578  }
2579 
2580 
2587  return resellernotify_;
2588  }
2589 
2590 
2597  return subscriptions_;
2598  }
2599 
2606  class SCOPES {
2607  public:
2611  static const char APPS_ORDER[];
2612 
2616  static const char APPS_ORDER_READONLY[];
2617 
2618  private:
2619  SCOPES(); // Never instantiated.
2620  ~SCOPES(); // Never instantiated.
2621  };
2622 
2623  private:
2624  CustomersResource customers_;
2625  ResellernotifyResource resellernotify_;
2626  SubscriptionsResource subscriptions_;
2627 
2628  DISALLOW_COPY_AND_ASSIGN(ResellerService);
2629 };
2630 
2631 
2662 } // namespace google_reseller_api
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
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
string * mutable_customerNamePrefix()
Definition: reseller_service.h:1800
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
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: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: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
Definition: seats.h:51
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
string * mutable_oauthToken()
Definition: reseller_service.h:264
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
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
util::Status ExecuteAndParseResponse(Subscription *data)
Definition: reseller_service.h:2014
Definition: reseller_service.h:2113
string * mutable_customerAuthToken()
Definition: reseller_service.h:1590
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
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