resources.proto 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of 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,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package ccc.hosted.marketplace.v2;
  16. option go_package = "google.golang.org/genproto/googleapis/ccc/hosted/marketplace/v2;marketplace";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "ResourcesProto";
  19. option java_package = "com.google.ccc.hosted.marketplace.v2";
  20. option php_namespace = "Google\\Apps\\Market\\V2";
  21. message CustomerLicense {
  22. message Editions {
  23. // (Deprecated)
  24. string edition_id = 405 [deprecated = true];
  25. // (Deprecated)
  26. int32 seat_count = 406 [deprecated = true];
  27. // (Deprecated)
  28. int32 assigned_seats = 409 [deprecated = true];
  29. }
  30. // The type of API resource. This is always appsmarket#customerLicense.
  31. string kind = 1;
  32. // The customer's license status. One of:
  33. //
  34. // - `ACTIVE`: The customer has a valid license.
  35. // - `UNLICENSED`: There is no license: either this customer has never
  36. // installed your application, or else has deleted it.
  37. string state = 2;
  38. // The ID of the application corresponding to this license query.
  39. string application_id = 3;
  40. // (Deprecated)
  41. repeated Editions editions = 4 [deprecated = true];
  42. // The ID of the customer license.
  43. string id = 101;
  44. // The domain name of the customer.
  45. string customer_id = 102;
  46. }
  47. message LicenseNotification {
  48. message Deletes {
  49. string kind = 1;
  50. // (Deprecated)
  51. string edition_id = 901 [deprecated = true];
  52. }
  53. message Expiries {
  54. string kind = 1;
  55. // (Deprecated)
  56. string edition_id = 701 [deprecated = true];
  57. }
  58. message Provisions {
  59. string kind = 1;
  60. // (Deprecated)
  61. string edition_id = 601 [deprecated = true];
  62. // The number of seats that were provisioned.
  63. int64 seat_count = 602;
  64. }
  65. message Reassignments {
  66. string kind = 1;
  67. // The email address of the reassigned user.
  68. string user_id = 801;
  69. string type = 802;
  70. // (Deprecated)
  71. string edition_id = 803 [deprecated = true];
  72. }
  73. // The ID of the license notification.
  74. string id = 1;
  75. // The ID of the application according to this notification.
  76. string application_id = 2;
  77. // The time the event occurred, measuring in milliseconds since the UNIX
  78. // epoch.
  79. int64 timestamp = 3;
  80. // The domain name of the customer corresponding to this notification.
  81. string customer_id = 4;
  82. // The type of API resource. This is always appsmarket#licenseNotification.
  83. string kind = 5;
  84. // The list of provisioning notifications.
  85. repeated Provisions provisions = 6;
  86. // The list of expiry notifications.
  87. repeated Expiries expiries = 7;
  88. // The list of reassignment notifications.
  89. repeated Reassignments reassignments = 8;
  90. // The list of deletion notifications.
  91. repeated Deletes deletes = 9;
  92. }
  93. message LicenseNotificationList {
  94. string kind = 1;
  95. // The list of notifications. One or more of:
  96. //
  97. // - `provisions`: A new license of the application has been provisioned.
  98. // - `expiries`: A license of the application has expired.
  99. // - `deletions`: An application has been deleted from a domain.
  100. // - `reassignments`: An administrator has assigned or revoked a seat license
  101. // for the application on the provided domain.
  102. repeated LicenseNotification notifications = 1007;
  103. // The token used to continue querying for notifications after the final
  104. // notification in the current result set.
  105. string next_page_token = 100602;
  106. }
  107. message UserLicense {
  108. // The type of API resource. This is always appsmarket#userLicense.
  109. string kind = 1;
  110. // The domain administrator has activated the application for this domain.
  111. bool enabled = 2;
  112. // The user's licensing status. One of:
  113. //
  114. // - `ACTIVE`: The user has a valid license and should be permitted to use the
  115. // application.
  116. // - `UNLICENSED`: The administrator of this user's domain never assigned a
  117. // seat for the application to this user.
  118. // - `EXPIRED`: The administrator assigned a seat to this user, but the
  119. // license is expired.
  120. string state = 3;
  121. // (Deprecated)
  122. string edition_id = 4 [deprecated = true];
  123. // The domain name of the user.
  124. string customer_id = 5;
  125. // The ID of the application corresponding to the license query.
  126. string application_id = 6;
  127. // The ID of user license.
  128. string id = 101;
  129. // The email address of the user.
  130. string user_id = 102;
  131. }