@@ -1805,6 +1805,188 @@ public Enroll set(String parameterName, Object value) {
18051805 return (Enroll ) super .set (parameterName , value );
18061806 }
18071807 }
1808+ /**
1809+ * Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts
1810+ * enterprise to a managed Google domain. **Note:** This feature is not generally available.
1811+ *
1812+ * Create a request for the method "enterprises.generateEnterpriseUpgradeUrl".
1813+ *
1814+ * This request holds the parameters needed by the androidenterprise server. After setting any
1815+ * optional parameters, call the {@link GenerateEnterpriseUpgradeUrl#execute()} method to invoke the
1816+ * remote operation.
1817+ *
1818+ * @param enterpriseId Required. The ID of the enterprise.
1819+ * @return the request
1820+ */
1821+ public GenerateEnterpriseUpgradeUrl generateEnterpriseUpgradeUrl (java .lang .String enterpriseId ) throws java .io .IOException {
1822+ GenerateEnterpriseUpgradeUrl result = new GenerateEnterpriseUpgradeUrl (enterpriseId );
1823+ initialize (result );
1824+ return result ;
1825+ }
1826+
1827+ public class GenerateEnterpriseUpgradeUrl extends AndroidEnterpriseRequest <com .google .api .services .androidenterprise .model .GenerateEnterpriseUpgradeUrlResponse > {
1828+
1829+ private static final String REST_PATH = "androidenterprise/v1/enterprises/{enterpriseId}/generateEnterpriseUpgradeUrl" ;
1830+
1831+ /**
1832+ * Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts
1833+ * enterprise to a managed Google domain. **Note:** This feature is not generally available.
1834+ *
1835+ * Create a request for the method "enterprises.generateEnterpriseUpgradeUrl".
1836+ *
1837+ * This request holds the parameters needed by the the androidenterprise server. After setting
1838+ * any optional parameters, call the {@link GenerateEnterpriseUpgradeUrl#execute()} method to
1839+ * invoke the remote operation. <p> {@link GenerateEnterpriseUpgradeUrl#initialize(com.google.api.
1840+ * client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this
1841+ * instance immediately after invoking the constructor. </p>
1842+ *
1843+ * @param enterpriseId Required. The ID of the enterprise.
1844+ * @since 1.13
1845+ */
1846+ protected GenerateEnterpriseUpgradeUrl (java .lang .String enterpriseId ) {
1847+ super (AndroidEnterprise .this , "POST" , REST_PATH , null , com .google .api .services .androidenterprise .model .GenerateEnterpriseUpgradeUrlResponse .class );
1848+ this .enterpriseId = com .google .api .client .util .Preconditions .checkNotNull (enterpriseId , "Required parameter enterpriseId must be specified." );
1849+ }
1850+
1851+ @ Override
1852+ public GenerateEnterpriseUpgradeUrl set$Xgafv (java .lang .String $Xgafv ) {
1853+ return (GenerateEnterpriseUpgradeUrl ) super .set$Xgafv ($Xgafv );
1854+ }
1855+
1856+ @ Override
1857+ public GenerateEnterpriseUpgradeUrl setAccessToken (java .lang .String accessToken ) {
1858+ return (GenerateEnterpriseUpgradeUrl ) super .setAccessToken (accessToken );
1859+ }
1860+
1861+ @ Override
1862+ public GenerateEnterpriseUpgradeUrl setAlt (java .lang .String alt ) {
1863+ return (GenerateEnterpriseUpgradeUrl ) super .setAlt (alt );
1864+ }
1865+
1866+ @ Override
1867+ public GenerateEnterpriseUpgradeUrl setCallback (java .lang .String callback ) {
1868+ return (GenerateEnterpriseUpgradeUrl ) super .setCallback (callback );
1869+ }
1870+
1871+ @ Override
1872+ public GenerateEnterpriseUpgradeUrl setFields (java .lang .String fields ) {
1873+ return (GenerateEnterpriseUpgradeUrl ) super .setFields (fields );
1874+ }
1875+
1876+ @ Override
1877+ public GenerateEnterpriseUpgradeUrl setKey (java .lang .String key ) {
1878+ return (GenerateEnterpriseUpgradeUrl ) super .setKey (key );
1879+ }
1880+
1881+ @ Override
1882+ public GenerateEnterpriseUpgradeUrl setOauthToken (java .lang .String oauthToken ) {
1883+ return (GenerateEnterpriseUpgradeUrl ) super .setOauthToken (oauthToken );
1884+ }
1885+
1886+ @ Override
1887+ public GenerateEnterpriseUpgradeUrl setPrettyPrint (java .lang .Boolean prettyPrint ) {
1888+ return (GenerateEnterpriseUpgradeUrl ) super .setPrettyPrint (prettyPrint );
1889+ }
1890+
1891+ @ Override
1892+ public GenerateEnterpriseUpgradeUrl setQuotaUser (java .lang .String quotaUser ) {
1893+ return (GenerateEnterpriseUpgradeUrl ) super .setQuotaUser (quotaUser );
1894+ }
1895+
1896+ @ Override
1897+ public GenerateEnterpriseUpgradeUrl setUploadType (java .lang .String uploadType ) {
1898+ return (GenerateEnterpriseUpgradeUrl ) super .setUploadType (uploadType );
1899+ }
1900+
1901+ @ Override
1902+ public GenerateEnterpriseUpgradeUrl setUploadProtocol (java .lang .String uploadProtocol ) {
1903+ return (GenerateEnterpriseUpgradeUrl ) super .setUploadProtocol (uploadProtocol );
1904+ }
1905+
1906+ /** Required. The ID of the enterprise. */
1907+ @ com .google .api .client .util .Key
1908+ private java .lang .String enterpriseId ;
1909+
1910+ /** Required. The ID of the enterprise.
1911+ */
1912+ public java .lang .String getEnterpriseId () {
1913+ return enterpriseId ;
1914+ }
1915+
1916+ /** Required. The ID of the enterprise. */
1917+ public GenerateEnterpriseUpgradeUrl setEnterpriseId (java .lang .String enterpriseId ) {
1918+ this .enterpriseId = enterpriseId ;
1919+ return this ;
1920+ }
1921+
1922+ /**
1923+ * Optional. Email address used to prefill the admin field of the enterprise signup form as
1924+ * part of the upgrade process. This value is a hint only and can be altered by the user.
1925+ * Personal email addresses are not allowed. If `allowedDomains` is non-empty then this must
1926+ * belong to one of the `allowedDomains`.
1927+ */
1928+ @ com .google .api .client .util .Key
1929+ private java .lang .String adminEmail ;
1930+
1931+ /** Optional. Email address used to prefill the admin field of the enterprise signup form as part of
1932+ the upgrade process. This value is a hint only and can be altered by the user. Personal email
1933+ addresses are not allowed. If `allowedDomains` is non-empty then this must belong to one of the
1934+ `allowedDomains`.
1935+ */
1936+ public java .lang .String getAdminEmail () {
1937+ return adminEmail ;
1938+ }
1939+
1940+ /**
1941+ * Optional. Email address used to prefill the admin field of the enterprise signup form as
1942+ * part of the upgrade process. This value is a hint only and can be altered by the user.
1943+ * Personal email addresses are not allowed. If `allowedDomains` is non-empty then this must
1944+ * belong to one of the `allowedDomains`.
1945+ */
1946+ public GenerateEnterpriseUpgradeUrl setAdminEmail (java .lang .String adminEmail ) {
1947+ this .adminEmail = adminEmail ;
1948+ return this ;
1949+ }
1950+
1951+ /**
1952+ * Optional. A list of domains that are permitted for the admin email. The IT admin cannot
1953+ * enter an email address with a domain name that is not in this list. Subdomains of domains
1954+ * in this list are not allowed but can be allowed by adding a second entry which has `*.`
1955+ * prefixed to the domain name (e.g. *.example.com). If the field is not present or is an
1956+ * empty list then the IT admin is free to use any valid domain name. Personal email domains
1957+ * are not allowed.
1958+ */
1959+ @ com .google .api .client .util .Key
1960+ private java .util .List <java .lang .String > allowedDomains ;
1961+
1962+ /** Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an
1963+ email address with a domain name that is not in this list. Subdomains of domains in this list are
1964+ not allowed but can be allowed by adding a second entry which has `*.` prefixed to the domain name
1965+ (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to
1966+ use any valid domain name. Personal email domains are not allowed.
1967+ */
1968+ public java .util .List <java .lang .String > getAllowedDomains () {
1969+ return allowedDomains ;
1970+ }
1971+
1972+ /**
1973+ * Optional. A list of domains that are permitted for the admin email. The IT admin cannot
1974+ * enter an email address with a domain name that is not in this list. Subdomains of domains
1975+ * in this list are not allowed but can be allowed by adding a second entry which has `*.`
1976+ * prefixed to the domain name (e.g. *.example.com). If the field is not present or is an
1977+ * empty list then the IT admin is free to use any valid domain name. Personal email domains
1978+ * are not allowed.
1979+ */
1980+ public GenerateEnterpriseUpgradeUrl setAllowedDomains (java .util .List <java .lang .String > allowedDomains ) {
1981+ this .allowedDomains = allowedDomains ;
1982+ return this ;
1983+ }
1984+
1985+ @ Override
1986+ public GenerateEnterpriseUpgradeUrl set (String parameterName , Object value ) {
1987+ return (GenerateEnterpriseUpgradeUrl ) super .set (parameterName , value );
1988+ }
1989+ }
18081990 /**
18091991 * Generates a sign-up URL.
18101992 *
0 commit comments