<filename>plugins/office365_admin/komand_office365_admin/actions/get_subscribed_skus/schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json


class Component:
    DESCRIPTION = "Gets a list of commercial subscriptions that an organization has acquired"


class Input:
    pass

class Output:
    SKU_ITEM = "sku_item"
    

class GetSubscribedSkusInput(komand.Input):
    schema = json.loads("""
   {}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class GetSubscribedSkusOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "sku_item": {
      "type": "array",
      "title": "SKU Item",
      "description": "Information about a given SKU",
      "items": {
        "$ref": "#/definitions/skuItem"
      },
      "order": 1
    }
  },
  "required": [
    "sku_item"
  ],
  "definitions": {
    "serviceItem": {
      "type": "object",
      "title": "serviceItem",
      "properties": {
        "appliesTo": {
          "type": "string",
          "title": "Applies To",
          "description": "Entity SKU applies to",
          "order": 3
        },
        "servicePlanId": {
          "type": "string",
          "title": "Service Plan ID",
          "description": "Service plan ID",
          "order": 1
        },
        "servicePlanName": {
          "type": "string",
          "title": "Service Plan Name",
          "description": "Service plan name",
          "order": 2
        }
      },
      "required": [
        "appliesTo",
        "servicePlanId",
        "servicePlanName"
      ]
    },
    "skuItem": {
      "type": "object",
      "title": "skuItem",
      "properties": {
        "appliesTo": {
          "type": "string",
          "title": "appliesTo",
          "description": "Entity SKU applies to",
          "order": 6
        },
        "capabilityStatus": {
          "type": "string",
          "title": "Capability Status",
          "description": "Availability of SKU",
          "order": 1
        },
        "consumedUnits": {
          "type": "integer",
          "title": "Consumed Units",
          "description": "Consumed units",
          "order": 2
        },
        "id": {
          "type": "string",
          "title": "ID",
          "description": "SKU team ID",
          "order": 3
        },
        "servicePlans": {
          "type": "array",
          "title": "Service Plans",
          "description": "List of service plans",
          "items": {
            "$ref": "#/definitions/serviceItem"
          },
          "order": 7
        },
        "skuId": {
          "type": "string",
          "title": "SKU ID",
          "description": "SKU ID",
          "order": 4
        },
        "skuPartNumber": {
          "type": "string",
          "title": "SKU Part Number",
          "description": "SKU part number",
          "order": 5
        }
      },
      "required": [
        "appliesTo",
        "capabilityStatus",
        "servicePlans",
        "skuId",
        "skuPartNumber"
      ],
      "definitions": {
        "serviceItem": {
          "type": "object",
          "title": "serviceItem",
          "properties": {
            "appliesTo": {
              "type": "string",
              "title": "Applies To",
              "description": "Entity SKU applies to",
              "order": 3
            },
            "servicePlanId": {
              "type": "string",
              "title": "Service Plan ID",
              "description": "Service plan ID",
              "order": 1
            },
            "servicePlanName": {
              "type": "string",
              "title": "Service Plan Name",
              "description": "Service plan name",
              "order": 2
            }
          },
          "required": [
            "appliesTo",
            "servicePlanId",
            "servicePlanName"
          ]
        }
      }
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)

<filename>plugins/office365_admin/komand_office365_admin/actions/get_subscribed_skus/schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json


class Component:
    DESCRIPTION = "Gets a list of commercial subscriptions that an organization has acquired"


class Input:
    pass

class Output:
    SKU_ITEM = "sku_item"
    

class GetSubscribedSkusInput(komand.Input):
    schema = json.loads("""
   {}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class GetSubscribedSkusOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "sku_item": {
      "type": "array",
      "title": "SKU Item",
      "description": "Information about a given SKU",
      "items": {
        "$ref": "#/definitions/skuItem"
      },
      "order": 1
    }
  },
  "required": [
    "sku_item"
  ],
  "definitions": {
    "serviceItem": {
      "type": "object",
      "title": "serviceItem",
      "properties": {
        "appliesTo": {
          "type": "string",
          "title": "Applies To",
          "description": "Entity SKU applies to",
          "order": 3
        },
        "servicePlanId": {
          "type": "string",
          "title": "Service Plan ID",
          "description": "Service plan ID",
          "order": 1
        },
        "servicePlanName": {
          "type": "string",
          "title": "Service Plan Name",
          "description": "Service plan name",
          "order": 2
        }
      },
      "required": [
        "appliesTo",
        "servicePlanId",
        "servicePlanName"
      ]
    },
    "skuItem": {
      "type": "object",
      "title": "skuItem",
      "properties": {
        "appliesTo": {
          "type": "string",
          "title": "appliesTo",
          "description": "Entity SKU applies to",
          "order": 6
        },
        "capabilityStatus": {
          "type": "string",
          "title": "Capability Status",
          "description": "Availability of SKU",
          "order": 1
        },
        "consumedUnits": {
          "type": "integer",
          "title": "Consumed Units",
          "description": "Consumed units",
          "order": 2
        },
        "id": {
          "type": "string",
          "title": "ID",
          "description": "SKU team ID",
          "order": 3
        },
        "servicePlans": {
          "type": "array",
          "title": "Service Plans",
          "description": "List of service plans",
          "items": {
            "$ref": "#/definitions/serviceItem"
          },
          "order": 7
        },
        "skuId": {
          "type": "string",
          "title": "SKU ID",
          "description": "SKU ID",
          "order": 4
        },
        "skuPartNumber": {
          "type": "string",
          "title": "SKU Part Number",
          "description": "SKU part number",
          "order": 5
        }
      },
      "required": [
        "appliesTo",
        "capabilityStatus",
        "servicePlans",
        "skuId",
        "skuPartNumber"
      ],
      "definitions": {
        "serviceItem": {
          "type": "object",
          "title": "serviceItem",
          "properties": {
            "appliesTo": {
              "type": "string",
              "title": "Applies To",
              "description": "Entity SKU applies to",
              "order": 3
            },
            "servicePlanId": {
              "type": "string",
              "title": "Service Plan ID",
              "description": "Service plan ID",
              "order": 1
            },
            "servicePlanName": {
              "type": "string",
              "title": "Service Plan Name",
              "description": "Service plan name",
              "order": 2
            }
          },
          "required": [
            "appliesTo",
            "servicePlanId",
            "servicePlanName"
          ]
        }
      }
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)

# GENERATED BY KOMAND SDK - DO NOT EDIT {} {   "type": "object",   "title": "Variables",   "properties": {     "sku_item": {       "type": "array",       "title": "SKU Item",       "description": "Information about a given SKU",       "items": {         "$ref": "#/definitions/skuItem"       },       "order": 1     }   },   "required": [     "sku_item"   ],   "definitions": {     "serviceItem": {       "type": "object",       "title": "serviceItem",       "properties": {         "appliesTo": {           "type": "string",           "title": "Applies To",           "description": "Entity SKU applies to",           "order": 3         },         "servicePlanId": {           "type": "string",           "title": "Service Plan ID",           "description": "Service plan ID",           "order": 1         },         "servicePlanName": {           "type": "string",           "title": "Service Plan Name",           "description": "Service plan name",           "order": 2         }       },       "required": [         "appliesTo",         "servicePlanId",         "servicePlanName"       ]     },     "skuItem": {       "type": "object",       "title": "skuItem",       "properties": {         "appliesTo": {           "type": "string",           "title": "appliesTo",           "description": "Entity SKU applies to",           "order": 6         },         "capabilityStatus": {           "type": "string",           "title": "Capability Status",           "description": "Availability of SKU",           "order": 1         },         "consumedUnits": {           "type": "integer",           "title": "Consumed Units",           "description": "Consumed units",           "order": 2         },         "id": {           "type": "string",           "title": "ID",           "description": "SKU team ID",           "order": 3         },         "servicePlans": {           "type": "array",           "title": "Service Plans",           "description": "List of service plans",           "items": {             "$ref": "#/definitions/serviceItem"           },           "order": 7         },         "skuId": {           "type": "string",           "title": "SKU ID",           "description": "SKU ID",           "order": 4         },         "skuPartNumber": {           "type": "string",           "title": "SKU Part Number",           "description": "SKU part number",           "order": 5         }       },       "required": [         "appliesTo",         "capabilityStatus",         "servicePlans",         "skuId",         "skuPartNumber"       ],       "definitions": {         "serviceItem": {           "type": "object",           "title": "serviceItem",           "properties": {             "appliesTo": {               "type": "string",               "title": "Applies To",               "description": "Entity SKU applies to",               "order": 3             },             "servicePlanId": {               "type": "string",               "title": "Service Plan ID",               "description": "Service plan ID",               "order": 1             },             "servicePlanName": {               "type": "string",               "title": "Service Plan Name",               "description": "Service plan name",               "order": 2             }           },           "required": [             "appliesTo",             "servicePlanId",             "servicePlanName"           ]         }       }     }   } }