resources.proto 4.8 KB

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