{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-marketplace-subscription-resource-arm-paginated-result-schema.json",
  "title": "MarketplaceSubscriptionResourceArmPaginatedResult",
  "description": "A paginated list of MarketplaceSubscription entities.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-marketplacesubscriptions-api-openapi.yml#/components/schemas/MarketplaceSubscriptionResourceArmPaginatedResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The MarketplaceSubscription items on this page",
      "items": {
        "$ref": "#/$defs/MarketplaceSubscription"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "MarketplacePlan": {
      "type": "object",
      "properties": {
        "offerId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifying name of the Offer of the Marketplace Plan.",
          "readOnly": true
        },
        "planId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifying name of the Plan of the Marketplace Plan.",
          "readOnly": true
        },
        "publisherId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifying name of the Publisher of the Marketplace Plan.",
          "readOnly": true
        }
      }
    },
    "MarketplaceSubscription": {
      "type": "object",
      "description": "Azure Resource Manager resource envelope.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/MarketplaceSubscriptionProperties",
          "description": "[Required] Additional attributes of the entity."
        }
      },
      "required": [
        "properties"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "MarketplaceSubscriptionProperties": {
      "type": "object",
      "properties": {
        "marketplacePlan": {
          "$ref": "#/$defs/MarketplacePlan",
          "description": "Marketplace Plan associated with the Marketplace Subscription.",
          "readOnly": true
        },
        "marketplaceSubscriptionStatus": {
          "$ref": "#/$defs/MarketplaceSubscriptionStatus",
          "description": "Current status of the Marketplace Subscription.",
          "readOnly": true
        },
        "modelId": {
          "type": "string",
          "description": "[Required] Target Marketplace Model ID to create a Marketplace Subscription for.",
          "minLength": 1,
          "pattern": "[a-zA-Z0-9_]"
        },
        "provisioningState": {
          "$ref": "#/$defs/MarketplaceSubscriptionProvisioningState",
          "description": "Provisioning State of the Marketplace Subscription.",
          "readOnly": true
        }
      },
      "required": [
        "modelId"
      ]
    },
    "MarketplaceSubscriptionProvisioningState": {
      "type": "string",
      "enum": [
        "Creating",
        "Deleting",
        "Succeeded",
        "Failed",
        "Updating",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "MarketplaceSubscriptionProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Creating",
            "value": "Creating",
            "description": "MarketplaceSubscription is being created."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "MarketplaceSubscription is being deleted."
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "MarketplaceSubscription is successfully provisioned."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "MarketplaceSubscription provisioning failed."
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "MarketplaceSubscription is being updated."
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          }
        ]
      },
      "readOnly": true
    },
    "MarketplaceSubscriptionStatus": {
      "type": "string",
      "enum": [
        "Subscribed",
        "Suspended",
        "Unsubscribed"
      ],
      "x-ms-enum": {
        "name": "MarketplaceSubscriptionStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Subscribed",
            "value": "Subscribed",
            "description": "The customer can now use the Marketplace Subscription's\nmodel and will be billed."
          },
          {
            "name": "Suspended",
            "value": "Suspended",
            "description": "The customer could not be billed for the Marketplace Subscription.\nThe customer will not be able to access the model."
          },
          {
            "name": "Unsubscribed",
            "value": "Unsubscribed",
            "description": "Marketplace Subscriptions reach this state in response to an explicit customer or CSP action.\nA Marketplace Subscription can also be canceled implicitly, as a result of nonpayment of dues,\nafter being in the Suspended state for some time."
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "type": "object",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    }
  }
}