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