| 1 |
{ |
| 2 |
"auth": { |
| 3 |
"oauth2": { |
| 4 |
"scopes": { |
| 5 |
"https://www.googleapis.com/auth/appsmarketplace.license": { |
| 6 |
"description": "View your installed application's licensing information" |
| 7 |
} |
| 8 |
} |
| 9 |
} |
| 10 |
}, |
| 11 |
"basePath": "", |
| 12 |
"baseUrl": "https://appsmarket.googleapis.com/", |
| 13 |
"batchPath": "batch", |
| 14 |
"canonicalName": "G Suite Marketplace API", |
| 15 |
"description": "Lets your Google Workspace Marketplace applications integrate with Google's installtion and licensing services. ", |
| 16 |
"discoveryVersion": "v1", |
| 17 |
"documentationLink": "https://developers.google.com/workspace/marketplace", |
| 18 |
"fullyEncodeReservedExpansion": true, |
| 19 |
"icons": { |
| 20 |
"x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 21 |
"x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 22 |
}, |
| 23 |
"id": "appsmarket:v2", |
| 24 |
"kind": "discovery#restDescription", |
| 25 |
"mtlsRootUrl": "https://appsmarket.mtls.googleapis.com/", |
| 26 |
"name": "appsmarket", |
| 27 |
"ownerDomain": "google.com", |
| 28 |
"ownerName": "Google", |
| 29 |
"parameters": { |
| 30 |
"$.xgafv": { |
| 31 |
"description": "V1 error format.", |
| 32 |
"enum": [ |
| 33 |
"1", |
| 34 |
"2" |
| 35 |
], |
| 36 |
"enumDescriptions": [ |
| 37 |
"v1 error format", |
| 38 |
"v2 error format" |
| 39 |
], |
| 40 |
"location": "query", |
| 41 |
"type": "string" |
| 42 |
}, |
| 43 |
"access_token": { |
| 44 |
"description": "OAuth access token.", |
| 45 |
"location": "query", |
| 46 |
"type": "string" |
| 47 |
}, |
| 48 |
"alt": { |
| 49 |
"default": "json", |
| 50 |
"description": "Data format for response.", |
| 51 |
"enum": [ |
| 52 |
"json", |
| 53 |
"media", |
| 54 |
"proto" |
| 55 |
], |
| 56 |
"enumDescriptions": [ |
| 57 |
"Responses with Content-Type of application/json", |
| 58 |
"Media download with context-dependent Content-Type", |
| 59 |
"Responses with Content-Type of application/x-protobuf" |
| 60 |
], |
| 61 |
"location": "query", |
| 62 |
"type": "string" |
| 63 |
}, |
| 64 |
"callback": { |
| 65 |
"description": "JSONP", |
| 66 |
"location": "query", |
| 67 |
"type": "string" |
| 68 |
}, |
| 69 |
"fields": { |
| 70 |
"description": "Selector specifying which fields to include in a partial response.", |
| 71 |
"location": "query", |
| 72 |
"type": "string" |
| 73 |
}, |
| 74 |
"key": { |
| 75 |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| 76 |
"location": "query", |
| 77 |
"type": "string" |
| 78 |
}, |
| 79 |
"oauth_token": { |
| 80 |
"description": "OAuth 2.0 token for the current user.", |
| 81 |
"location": "query", |
| 82 |
"type": "string" |
| 83 |
}, |
| 84 |
"prettyPrint": { |
| 85 |
"default": "true", |
| 86 |
"description": "Returns response with indentations and line breaks.", |
| 87 |
"location": "query", |
| 88 |
"type": "boolean" |
| 89 |
}, |
| 90 |
"quotaUser": { |
| 91 |
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
| 92 |
"location": "query", |
| 93 |
"type": "string" |
| 94 |
}, |
| 95 |
"uploadType": { |
| 96 |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| 97 |
"location": "query", |
| 98 |
"type": "string" |
| 99 |
}, |
| 100 |
"upload_protocol": { |
| 101 |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
| 102 |
"location": "query", |
| 103 |
"type": "string" |
| 104 |
} |
| 105 |
}, |
| 106 |
"protocol": "rest", |
| 107 |
"resources": { |
| 108 |
"customerLicense": { |
| 109 |
"methods": { |
| 110 |
"get": { |
| 111 |
"description": "Gets the customer's licensing status to determine if they have access to a given app. For more information, see [Getting app installation and licensing details](https://developers.google.com/workspace/marketplace/example-calls-marketplace-api).", |
| 112 |
"flatPath": "appsmarket/v2/customerLicense/{applicationId}/{customerId}", |
| 113 |
"httpMethod": "GET", |
| 114 |
"id": "appsmarket.customerLicense.get", |
| 115 |
"parameterOrder": [ |
| 116 |
"applicationId", |
| 117 |
"customerId" |
| 118 |
], |
| 119 |
"parameters": { |
| 120 |
"applicationId": { |
| 121 |
"description": "The ID of the application.", |
| 122 |
"location": "path", |
| 123 |
"required": true, |
| 124 |
"type": "string" |
| 125 |
}, |
| 126 |
"customerId": { |
| 127 |
"description": "The ID of the customer.", |
| 128 |
"location": "path", |
| 129 |
"required": true, |
| 130 |
"type": "string" |
| 131 |
} |
| 132 |
}, |
| 133 |
"path": "appsmarket/v2/customerLicense/{applicationId}/{customerId}", |
| 134 |
"response": { |
| 135 |
"$ref": "CustomerLicense" |
| 136 |
}, |
| 137 |
"scopes": [ |
| 138 |
"https://www.googleapis.com/auth/appsmarketplace.license" |
| 139 |
] |
| 140 |
} |
| 141 |
} |
| 142 |
}, |
| 143 |
"userLicense": { |
| 144 |
"methods": { |
| 145 |
"get": { |
| 146 |
"description": "Gets the user's licensing status to determine if they have permission to use a given app. For more information, see [Getting app installation and licensing details](https://developers.google.com/workspace/marketplace/example-calls-marketplace-api).", |
| 147 |
"flatPath": "appsmarket/v2/userLicense/{applicationId}/{userId}", |
| 148 |
"httpMethod": "GET", |
| 149 |
"id": "appsmarket.userLicense.get", |
| 150 |
"parameterOrder": [ |
| 151 |
"applicationId", |
| 152 |
"userId" |
| 153 |
], |
| 154 |
"parameters": { |
| 155 |
"applicationId": { |
| 156 |
"description": "The ID of the application.", |
| 157 |
"location": "path", |
| 158 |
"required": true, |
| 159 |
"type": "string" |
| 160 |
}, |
| 161 |
"userId": { |
| 162 |
"description": "The ID of the user.", |
| 163 |
"location": "path", |
| 164 |
"required": true, |
| 165 |
"type": "string" |
| 166 |
} |
| 167 |
}, |
| 168 |
"path": "appsmarket/v2/userLicense/{applicationId}/{userId}", |
| 169 |
"response": { |
| 170 |
"$ref": "UserLicense" |
| 171 |
}, |
| 172 |
"scopes": [ |
| 173 |
"https://www.googleapis.com/auth/appsmarketplace.license" |
| 174 |
] |
| 175 |
} |
| 176 |
} |
| 177 |
} |
| 178 |
}, |
| 179 |
"revision": "20260209", |
| 180 |
"rootUrl": "https://appsmarket.googleapis.com/", |
| 181 |
"schemas": { |
| 182 |
"CustomerLicense": { |
| 183 |
"id": "CustomerLicense", |
| 184 |
"properties": { |
| 185 |
"applicationId": { |
| 186 |
"description": "The ID of the application corresponding to this license query.", |
| 187 |
"type": "string" |
| 188 |
}, |
| 189 |
"customerId": { |
| 190 |
"description": "The domain name of the customer.", |
| 191 |
"type": "string" |
| 192 |
}, |
| 193 |
"editions": { |
| 194 |
"deprecated": true, |
| 195 |
"description": "(Deprecated)", |
| 196 |
"items": { |
| 197 |
"$ref": "Editions" |
| 198 |
}, |
| 199 |
"type": "array" |
| 200 |
}, |
| 201 |
"id": { |
| 202 |
"description": "The ID of the customer license.", |
| 203 |
"type": "string" |
| 204 |
}, |
| 205 |
"kind": { |
| 206 |
"description": "The type of API resource. This is always `appsmarket#customerLicense`.", |
| 207 |
"type": "string" |
| 208 |
}, |
| 209 |
"state": { |
| 210 |
"description": "The customer's license status. One of: - `ACTIVE`: The customer has a valid license. - `UNLICENSED`: There is no license. Either this customer has never installed your application or has deleted it.", |
| 211 |
"type": "string" |
| 212 |
} |
| 213 |
}, |
| 214 |
"type": "object" |
| 215 |
}, |
| 216 |
"Editions": { |
| 217 |
"id": "Editions", |
| 218 |
"properties": { |
| 219 |
"assignedSeats": { |
| 220 |
"deprecated": true, |
| 221 |
"description": "(Deprecated)", |
| 222 |
"format": "int32", |
| 223 |
"type": "integer" |
| 224 |
}, |
| 225 |
"editionId": { |
| 226 |
"deprecated": true, |
| 227 |
"description": "(Deprecated)", |
| 228 |
"type": "string" |
| 229 |
}, |
| 230 |
"seatCount": { |
| 231 |
"deprecated": true, |
| 232 |
"description": "(Deprecated)", |
| 233 |
"format": "int32", |
| 234 |
"type": "integer" |
| 235 |
} |
| 236 |
}, |
| 237 |
"type": "object" |
| 238 |
}, |
| 239 |
"UserLicense": { |
| 240 |
"id": "UserLicense", |
| 241 |
"properties": { |
| 242 |
"applicationId": { |
| 243 |
"description": "The ID of the application corresponding to the license query.", |
| 244 |
"type": "string" |
| 245 |
}, |
| 246 |
"customerId": { |
| 247 |
"description": "The domain name of the user.", |
| 248 |
"type": "string" |
| 249 |
}, |
| 250 |
"editionId": { |
| 251 |
"deprecated": true, |
| 252 |
"description": "(Deprecated)", |
| 253 |
"type": "string" |
| 254 |
}, |
| 255 |
"enabled": { |
| 256 |
"description": "The domain administrator has activated the application for this domain.", |
| 257 |
"type": "boolean" |
| 258 |
}, |
| 259 |
"id": { |
| 260 |
"description": "The ID of the user license.", |
| 261 |
"type": "string" |
| 262 |
}, |
| 263 |
"kind": { |
| 264 |
"description": "The type of API resource. This is always `appsmarket#userLicense`.", |
| 265 |
"type": "string" |
| 266 |
}, |
| 267 |
"state": { |
| 268 |
"description": "The user's licensing status. One of: - `ACTIVE`: The user has a valid license and should be permitted to use the application. - `UNLICENSED`: The administrator of this user's domain never assigned a seat for the application to this user. - `EXPIRED`: The administrator assigned a seat to this user, but the license is expired.", |
| 269 |
"type": "string" |
| 270 |
}, |
| 271 |
"userId": { |
| 272 |
"description": "The email address of the user.", |
| 273 |
"type": "string" |
| 274 |
} |
| 275 |
}, |
| 276 |
"type": "object" |
| 277 |
} |
| 278 |
}, |
| 279 |
"servicePath": "", |
| 280 |
"title": "Google Workspace Marketplace API", |
| 281 |
"version": "v2", |
| 282 |
"version_module": true |
| 283 |
} |