@@ -56,6 +56,7 @@ class Google_Service_AndroidEnterprise extends Google_Service
5656 public function __construct (Google_Client $ client )
5757 {
5858 parent ::__construct ($ client );
59+ $ this ->rootUrl = 'https://www.googleapis.com/ ' ;
5960 $ this ->servicePath = 'androidenterprise/v1/ ' ;
6061 $ this ->version = 'v1 ' ;
6162 $ this ->serviceName = 'androidenterprise ' ;
@@ -753,7 +754,41 @@ public function __construct(Google_Client $client)
753754 'products ' ,
754755 array (
755756 'methods ' => array (
756- 'get ' => array (
757+ 'approve ' => array (
758+ 'path ' => 'enterprises/{enterpriseId}/products/{productId}/approve ' ,
759+ 'httpMethod ' => 'POST ' ,
760+ 'parameters ' => array (
761+ 'enterpriseId ' => array (
762+ 'location ' => 'path ' ,
763+ 'type ' => 'string ' ,
764+ 'required ' => true ,
765+ ),
766+ 'productId ' => array (
767+ 'location ' => 'path ' ,
768+ 'type ' => 'string ' ,
769+ 'required ' => true ,
770+ ),
771+ ),
772+ ),'generateApprovalUrl ' => array (
773+ 'path ' => 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl ' ,
774+ 'httpMethod ' => 'POST ' ,
775+ 'parameters ' => array (
776+ 'enterpriseId ' => array (
777+ 'location ' => 'path ' ,
778+ 'type ' => 'string ' ,
779+ 'required ' => true ,
780+ ),
781+ 'productId ' => array (
782+ 'location ' => 'path ' ,
783+ 'type ' => 'string ' ,
784+ 'required ' => true ,
785+ ),
786+ 'languageCode ' => array (
787+ 'location ' => 'query ' ,
788+ 'type ' => 'string ' ,
789+ ),
790+ ),
791+ ),'get ' => array (
757792 'path ' => 'enterprises/{enterpriseId}/products/{productId} ' ,
758793 'httpMethod ' => 'GET ' ,
759794 'parameters ' => array (
@@ -1641,6 +1676,43 @@ public function get($permissionId, $optParams = array())
16411676class Google_Service_AndroidEnterprise_Products_Resource extends Google_Service_Resource
16421677{
16431678
1679+ /**
1680+ * Approves the specified product (and the relevant app permissions, if any).
1681+ * (products.approve)
1682+ *
1683+ * @param string $enterpriseId The ID of the enterprise.
1684+ * @param string $productId The ID of the product.
1685+ * @param Google_ProductsApproveRequest $postBody
1686+ * @param array $optParams Optional parameters.
1687+ */
1688+ public function approve ($ enterpriseId , $ productId , Google_Service_AndroidEnterprise_ProductsApproveRequest $ postBody , $ optParams = array ())
1689+ {
1690+ $ params = array ('enterpriseId ' => $ enterpriseId , 'productId ' => $ productId , 'postBody ' => $ postBody );
1691+ $ params = array_merge ($ params , $ optParams );
1692+ return $ this ->call ('approve ' , array ($ params ));
1693+ }
1694+
1695+ /**
1696+ * Generates a URL that can be used to display an iframe to view the product's
1697+ * permissions (if any) and approve the product. This URL can be used to approve
1698+ * the product for a limited time (currently 1 hour) using the Products.approve
1699+ * call. (products.generateApprovalUrl)
1700+ *
1701+ * @param string $enterpriseId The ID of the enterprise.
1702+ * @param string $productId The ID of the product.
1703+ * @param array $optParams Optional parameters.
1704+ *
1705+ * @opt_param string languageCode The language code that will be used for
1706+ * permission names and descriptions in the returned iframe.
1707+ * @return Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse
1708+ */
1709+ public function generateApprovalUrl ($ enterpriseId , $ productId , $ optParams = array ())
1710+ {
1711+ $ params = array ('enterpriseId ' => $ enterpriseId , 'productId ' => $ productId );
1712+ $ params = array_merge ($ params , $ optParams );
1713+ return $ this ->call ('generateApprovalUrl ' , array ($ params ), "Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse " );
1714+ }
1715+
16441716 /**
16451717 * Retrieves details of a product for display to an enterprise admin.
16461718 * (products.get)
@@ -1938,6 +2010,58 @@ public function getValueString()
19382010 }
19392011}
19402012
2013+ class Google_Service_AndroidEnterprise_AppVersion extends Google_Model
2014+ {
2015+ protected $ internal_gapi_mappings = array (
2016+ );
2017+ public $ versionCode ;
2018+ public $ versionString ;
2019+
2020+
2021+ public function setVersionCode ($ versionCode )
2022+ {
2023+ $ this ->versionCode = $ versionCode ;
2024+ }
2025+ public function getVersionCode ()
2026+ {
2027+ return $ this ->versionCode ;
2028+ }
2029+ public function setVersionString ($ versionString )
2030+ {
2031+ $ this ->versionString = $ versionString ;
2032+ }
2033+ public function getVersionString ()
2034+ {
2035+ return $ this ->versionString ;
2036+ }
2037+ }
2038+
2039+ class Google_Service_AndroidEnterprise_ApprovalUrlInfo extends Google_Model
2040+ {
2041+ protected $ internal_gapi_mappings = array (
2042+ );
2043+ public $ approvalUrl ;
2044+ public $ kind ;
2045+
2046+
2047+ public function setApprovalUrl ($ approvalUrl )
2048+ {
2049+ $ this ->approvalUrl = $ approvalUrl ;
2050+ }
2051+ public function getApprovalUrl ()
2052+ {
2053+ return $ this ->approvalUrl ;
2054+ }
2055+ public function setKind ($ kind )
2056+ {
2057+ $ this ->kind = $ kind ;
2058+ }
2059+ public function getKind ()
2060+ {
2061+ return $ this ->kind ;
2062+ }
2063+ }
2064+
19412065class Google_Service_AndroidEnterprise_Collection extends Google_Collection
19422066{
19432067 protected $ collection_key = 'productId ' ;
@@ -2054,6 +2178,7 @@ class Google_Service_AndroidEnterprise_Device extends Google_Model
20542178 );
20552179 public $ androidId ;
20562180 public $ kind ;
2181+ public $ managementType ;
20572182
20582183
20592184 public function setAndroidId ($ androidId )
@@ -2072,6 +2197,14 @@ public function getKind()
20722197 {
20732198 return $ this ->kind ;
20742199 }
2200+ public function setManagementType ($ managementType )
2201+ {
2202+ $ this ->managementType = $ managementType ;
2203+ }
2204+ public function getManagementType ()
2205+ {
2206+ return $ this ->managementType ;
2207+ }
20752208}
20762209
20772210class Google_Service_AndroidEnterprise_DeviceState extends Google_Model
@@ -2523,19 +2656,32 @@ public function getPermissionId()
25232656 }
25242657}
25252658
2526- class Google_Service_AndroidEnterprise_Product extends Google_Model
2659+ class Google_Service_AndroidEnterprise_Product extends Google_Collection
25272660{
2661+ protected $ collection_key = 'appVersion ' ;
25282662 protected $ internal_gapi_mappings = array (
25292663 );
2664+ protected $ appVersionType = 'Google_Service_AndroidEnterprise_AppVersion ' ;
2665+ protected $ appVersionDataType = 'array ' ;
25302666 public $ authorName ;
25312667 public $ detailsUrl ;
2668+ public $ distributionChannel ;
25322669 public $ iconUrl ;
25332670 public $ kind ;
25342671 public $ productId ;
2672+ public $ requiresContainerApp ;
25352673 public $ title ;
25362674 public $ workDetailsUrl ;
25372675
25382676
2677+ public function setAppVersion ($ appVersion )
2678+ {
2679+ $ this ->appVersion = $ appVersion ;
2680+ }
2681+ public function getAppVersion ()
2682+ {
2683+ return $ this ->appVersion ;
2684+ }
25392685 public function setAuthorName ($ authorName )
25402686 {
25412687 $ this ->authorName = $ authorName ;
@@ -2552,6 +2698,14 @@ public function getDetailsUrl()
25522698 {
25532699 return $ this ->detailsUrl ;
25542700 }
2701+ public function setDistributionChannel ($ distributionChannel )
2702+ {
2703+ $ this ->distributionChannel = $ distributionChannel ;
2704+ }
2705+ public function getDistributionChannel ()
2706+ {
2707+ return $ this ->distributionChannel ;
2708+ }
25552709 public function setIconUrl ($ iconUrl )
25562710 {
25572711 $ this ->iconUrl = $ iconUrl ;
@@ -2576,6 +2730,14 @@ public function getProductId()
25762730 {
25772731 return $ this ->productId ;
25782732 }
2733+ public function setRequiresContainerApp ($ requiresContainerApp )
2734+ {
2735+ $ this ->requiresContainerApp = $ requiresContainerApp ;
2736+ }
2737+ public function getRequiresContainerApp ()
2738+ {
2739+ return $ this ->requiresContainerApp ;
2740+ }
25792741 public function setTitle ($ title )
25802742 {
25812743 $ this ->title = $ title ;
@@ -2657,6 +2819,41 @@ public function getProductId()
26572819 }
26582820}
26592821
2822+ class Google_Service_AndroidEnterprise_ProductsApproveRequest extends Google_Model
2823+ {
2824+ protected $ internal_gapi_mappings = array (
2825+ );
2826+ protected $ approvalUrlInfoType = 'Google_Service_AndroidEnterprise_ApprovalUrlInfo ' ;
2827+ protected $ approvalUrlInfoDataType = '' ;
2828+
2829+
2830+ public function setApprovalUrlInfo (Google_Service_AndroidEnterprise_ApprovalUrlInfo $ approvalUrlInfo )
2831+ {
2832+ $ this ->approvalUrlInfo = $ approvalUrlInfo ;
2833+ }
2834+ public function getApprovalUrlInfo ()
2835+ {
2836+ return $ this ->approvalUrlInfo ;
2837+ }
2838+ }
2839+
2840+ class Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse extends Google_Model
2841+ {
2842+ protected $ internal_gapi_mappings = array (
2843+ );
2844+ public $ url ;
2845+
2846+
2847+ public function setUrl ($ url )
2848+ {
2849+ $ this ->url = $ url ;
2850+ }
2851+ public function getUrl ()
2852+ {
2853+ return $ this ->url ;
2854+ }
2855+ }
2856+
26602857class Google_Service_AndroidEnterprise_User extends Google_Model
26612858{
26622859 protected $ internal_gapi_mappings = array (
0 commit comments