{
  "resources": {
    "customerLicense": {
      "methods": {
        "get": {
          "id": "appsmarket.customerLicense.get",
          "path": "appsmarket/v2/customerLicense/{applicationId}/{customerId}",
          "flatPath": "appsmarket/v2/customerLicense/{applicationId}/{customerId}",
          "httpMethod": "GET",
          "parameters": {
            "applicationId": {
              "description": "The ID of the application.",
              "location": "path",
              "required": true,
              "type": "string"
            },
            "customerId": {
              "description": "The ID of the customer.",
              "location": "path",
              "required": true,
              "type": "string"
            }
          },
          "parameterOrder": [
            "applicationId",
            "customerId"
          ],
          "response": {
            "$ref": "CustomerLicense"
          },
          "scopes": [
            "https://www.googleapis.com/auth/appsmarketplace.license"
          ],
          "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)."
        }
      }
    },
    "userLicense": {
      "methods": {
        "get": {
          "id": "appsmarket.userLicense.get",
          "path": "appsmarket/v2/userLicense/{applicationId}/{userId}",
          "flatPath": "appsmarket/v2/userLicense/{applicationId}/{userId}",
          "httpMethod": "GET",
          "parameters": {
            "applicationId": {
              "description": "The ID of the application.",
              "location": "path",
              "required": true,
              "type": "string"
            },
            "userId": {
              "description": "The ID of the user.",
              "location": "path",
              "required": true,
              "type": "string"
            }
          },
          "parameterOrder": [
            "applicationId",
            "userId"
          ],
          "response": {
            "$ref": "UserLicense"
          },
          "scopes": [
            "https://www.googleapis.com/auth/appsmarketplace.license"
          ],
          "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)."
        }
      }
    }
  },
  "servicePath": "",
  "schemas": {
    "CustomerLicense": {
      "id": "CustomerLicense",
      "type": "object",
      "properties": {
        "kind": {
          "description": "The type of API resource. This is always `appsmarket#customerLicense`.",
          "type": "string"
        },
        "state": {
          "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.",
          "type": "string"
        },
        "applicationId": {
          "description": "The ID of the application corresponding to this license query.",
          "type": "string"
        },
        "editions": {
          "description": "(Deprecated)",
          "deprecated": true,
          "type": "array",
          "items": {
            "$ref": "Editions"
          }
        },
        "id": {
          "description": "The ID of the customer license.",
          "type": "string"
        },
        "customerId": {
          "description": "The domain name of the customer.",
          "type": "string"
        }
      }
    },
    "Editions": {
      "id": "Editions",
      "type": "object",
      "properties": {
        "editionId": {
          "description": "(Deprecated)",
          "deprecated": true,
          "type": "string"
        },
        "seatCount": {
          "description": "(Deprecated)",
          "deprecated": true,
          "type": "integer",
          "format": "int32"
        },
        "assignedSeats": {
          "description": "(Deprecated)",
          "deprecated": true,
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "UserLicense": {
      "id": "UserLicense",
      "type": "object",
      "properties": {
        "kind": {
          "description": "The type of API resource. This is always `appsmarket#userLicense`.",
          "type": "string"
        },
        "enabled": {
          "description": "The domain administrator has activated the application for this domain.",
          "type": "boolean"
        },
        "state": {
          "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.",
          "type": "string"
        },
        "editionId": {
          "description": "(Deprecated)",
          "deprecated": true,
          "type": "string"
        },
        "customerId": {
          "description": "The domain name of the user.",
          "type": "string"
        },
        "applicationId": {
          "description": "The ID of the application corresponding to the license query.",
          "type": "string"
        },
        "id": {
          "description": "The ID of the user license.",
          "type": "string"
        },
        "userId": {
          "description": "The email address of the user.",
          "type": "string"
        }
      }
    }
  },
  "version": "v2",
  "kind": "discovery#restDescription",
  "parameters": {
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "alt": {
      "type": "string",
      "description": "Data format for response.",
      "default": "json",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "location": "query"
    },
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "fields": {
      "type": "string",
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query"
    },
    "key": {
      "type": "string",
      "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.",
      "location": "query"
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "prettyPrint": {
      "type": "boolean",
      "description": "Returns response with indentations and line breaks.",
      "default": "true",
      "location": "query"
    },
    "quotaUser": {
      "type": "string",
      "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.",
      "location": "query"
    },
    "upload_protocol": {
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query"
    },
    "uploadType": {
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query"
    },
    "$.xgafv": {
      "type": "string",
      "description": "V1 error format.",
      "enum": [
        "1",
        "2"
      ],
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "location": "query"
    }
  },
  "rootUrl": "https://appsmarket.googleapis.com/",
  "ownerDomain": "google.com",
  "baseUrl": "https://appsmarket.googleapis.com/",
  "canonicalName": "G Suite Marketplace API",
  "ownerName": "Google",
  "fullyEncodeReservedExpansion": true,
  "batchPath": "batch",
  "title": "Google Workspace Marketplace API",
  "protocol": "rest",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "basePath": "",
  "version_module": true,
  "discoveryVersion": "v1",
  "id": "appsmarket:v2",
  "name": "appsmarket",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/appsmarketplace.license": {
          "description": "View your installed application's licensing information"
        }
      }
    }
  },
  "description": "Lets your Google Workspace Marketplace applications integrate with Google's installtion and licensing services. ",
  "revision": "20260330",
  "documentationLink": "https://developers.google.com/workspace/marketplace",
  "mtlsRootUrl": "https://appsmarket.mtls.googleapis.com/"
}
