From f6e478954c8781395828bf24ccab2a95e0cfe1df Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 3 Sep 2014 21:28:25 +0300 Subject: Added iOS diagnostics initiation --- gsxws/diagnostics.py | 14 +++++++++++++- gsxws/products.yaml | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'gsxws') diff --git a/gsxws/diagnostics.py b/gsxws/diagnostics.py index 5131432..eadb874 100644 --- a/gsxws/diagnostics.py +++ b/gsxws/diagnostics.py @@ -1,11 +1,23 @@ # -*- coding: utf-8 -*- -from core import GsxObject +from core import GsxObject, GsxError class Diagnostics(GsxObject): _namespace = "glob:" + def initiate(self): + """ + The Initiate iOS Diagnostic API allows users to initiate Diagnostic Request for iOS Device. + Then it sends the diagnostic URL (diags://) as an email or SMS + to the email address or phone number based on the information provided in the request. + The ticket is generated within GSX system. + """ + self._submit("initiateRequestData", "InitiateIOSDiagnostic", + "initiateResponseData") + + return self._req.objects.ticketNumber + def fetch(self): """ The Fetch Repair Diagnostics API allows the service providers/depot/carriers diff --git a/gsxws/products.yaml b/gsxws/products.yaml index c46bcfc..2c0d68d 100644 --- a/gsxws/products.yaml +++ b/gsxws/products.yaml @@ -16,7 +16,7 @@ DISPLAYS: - "Cinema Display (30-inch DVI Early 2007)" - "LED Cinema Display (24-inch)" - "LED Cinema Display (27-inch)" - - "Thunderbolt Display (27-inch)" + - "Apple Thunderbolt Display (27-inch)" IMAC: name: iMac -- cgit v1.2.3