@@ -1666,6 +1666,148 @@ public UpdateLabelCopyMode set(String parameterName, Object value) {
1666
1666
return (UpdateLabelCopyMode ) super .set (parameterName , value );
1667
1667
}
1668
1668
}
1669
+ /**
1670
+ * Updates a Label's EabledAppSettings. Enabling a Label in a Workspace Application allows it to be
1671
+ * used in that application. This change is not revisioned, does not require publishing, and takes
1672
+ * effect immediately.
1673
+ *
1674
+ * Create a request for the method "labels.updateLabelEnabledAppSettings".
1675
+ *
1676
+ * This request holds the parameters needed by the drivelabels server. After setting any optional
1677
+ * parameters, call the {@link UpdateLabelEnabledAppSettings#execute()} method to invoke the remote
1678
+ * operation.
1679
+ *
1680
+ * @param name Required. The resource name of the Label to update. The resource name of the Label to update.
1681
+ * @param content the {@link com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest}
1682
+ * @return the request
1683
+ */
1684
+ public UpdateLabelEnabledAppSettings updateLabelEnabledAppSettings (java .lang .String name , com .google .api .services .drivelabels .v2 .model .GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest content ) throws java .io .IOException {
1685
+ UpdateLabelEnabledAppSettings result = new UpdateLabelEnabledAppSettings (name , content );
1686
+ initialize (result );
1687
+ return result ;
1688
+ }
1689
+
1690
+ public class UpdateLabelEnabledAppSettings extends DriveLabelsRequest <com .google .api .services .drivelabels .v2 .model .GoogleAppsDriveLabelsV2Label > {
1691
+
1692
+ private static final String REST_PATH = "v2/{+name}:updateLabelEnabledAppSettings" ;
1693
+
1694
+ private final java .util .regex .Pattern NAME_PATTERN =
1695
+ java .util .regex .Pattern .compile ("^labels/[^/]+$" );
1696
+
1697
+ /**
1698
+ * Updates a Label's EabledAppSettings. Enabling a Label in a Workspace Application allows it to
1699
+ * be used in that application. This change is not revisioned, does not require publishing, and
1700
+ * takes effect immediately.
1701
+ *
1702
+ * Create a request for the method "labels.updateLabelEnabledAppSettings".
1703
+ *
1704
+ * This request holds the parameters needed by the the drivelabels server. After setting any
1705
+ * optional parameters, call the {@link UpdateLabelEnabledAppSettings#execute()} method to invoke
1706
+ * the remote operation. <p> {@link UpdateLabelEnabledAppSettings#initialize(com.google.api.client
1707
+ * .googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
1708
+ * immediately after invoking the constructor. </p>
1709
+ *
1710
+ * @param name Required. The resource name of the Label to update. The resource name of the Label to update.
1711
+ * @param content the {@link com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest}
1712
+ * @since 1.13
1713
+ */
1714
+ protected UpdateLabelEnabledAppSettings (java .lang .String name , com .google .api .services .drivelabels .v2 .model .GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest content ) {
1715
+ super (DriveLabels .this , "POST" , REST_PATH , content , com .google .api .services .drivelabels .v2 .model .GoogleAppsDriveLabelsV2Label .class );
1716
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1717
+ if (!getSuppressPatternChecks ()) {
1718
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1719
+ "Parameter name must conform to the pattern " +
1720
+ "^labels/[^/]+$" );
1721
+ }
1722
+ }
1723
+
1724
+ @ Override
1725
+ public UpdateLabelEnabledAppSettings set$Xgafv (java .lang .String $Xgafv ) {
1726
+ return (UpdateLabelEnabledAppSettings ) super .set$Xgafv ($Xgafv );
1727
+ }
1728
+
1729
+ @ Override
1730
+ public UpdateLabelEnabledAppSettings setAccessToken (java .lang .String accessToken ) {
1731
+ return (UpdateLabelEnabledAppSettings ) super .setAccessToken (accessToken );
1732
+ }
1733
+
1734
+ @ Override
1735
+ public UpdateLabelEnabledAppSettings setAlt (java .lang .String alt ) {
1736
+ return (UpdateLabelEnabledAppSettings ) super .setAlt (alt );
1737
+ }
1738
+
1739
+ @ Override
1740
+ public UpdateLabelEnabledAppSettings setCallback (java .lang .String callback ) {
1741
+ return (UpdateLabelEnabledAppSettings ) super .setCallback (callback );
1742
+ }
1743
+
1744
+ @ Override
1745
+ public UpdateLabelEnabledAppSettings setFields (java .lang .String fields ) {
1746
+ return (UpdateLabelEnabledAppSettings ) super .setFields (fields );
1747
+ }
1748
+
1749
+ @ Override
1750
+ public UpdateLabelEnabledAppSettings setKey (java .lang .String key ) {
1751
+ return (UpdateLabelEnabledAppSettings ) super .setKey (key );
1752
+ }
1753
+
1754
+ @ Override
1755
+ public UpdateLabelEnabledAppSettings setOauthToken (java .lang .String oauthToken ) {
1756
+ return (UpdateLabelEnabledAppSettings ) super .setOauthToken (oauthToken );
1757
+ }
1758
+
1759
+ @ Override
1760
+ public UpdateLabelEnabledAppSettings setPrettyPrint (java .lang .Boolean prettyPrint ) {
1761
+ return (UpdateLabelEnabledAppSettings ) super .setPrettyPrint (prettyPrint );
1762
+ }
1763
+
1764
+ @ Override
1765
+ public UpdateLabelEnabledAppSettings setQuotaUser (java .lang .String quotaUser ) {
1766
+ return (UpdateLabelEnabledAppSettings ) super .setQuotaUser (quotaUser );
1767
+ }
1768
+
1769
+ @ Override
1770
+ public UpdateLabelEnabledAppSettings setUploadType (java .lang .String uploadType ) {
1771
+ return (UpdateLabelEnabledAppSettings ) super .setUploadType (uploadType );
1772
+ }
1773
+
1774
+ @ Override
1775
+ public UpdateLabelEnabledAppSettings setUploadProtocol (java .lang .String uploadProtocol ) {
1776
+ return (UpdateLabelEnabledAppSettings ) super .setUploadProtocol (uploadProtocol );
1777
+ }
1778
+
1779
+ /**
1780
+ * Required. The resource name of the Label to update. The resource name of the Label to
1781
+ * update.
1782
+ */
1783
+ @ com .google .api .client .util .Key
1784
+ private java .lang .String name ;
1785
+
1786
+ /** Required. The resource name of the Label to update. The resource name of the Label to update.
1787
+ */
1788
+ public java .lang .String getName () {
1789
+ return name ;
1790
+ }
1791
+
1792
+ /**
1793
+ * Required. The resource name of the Label to update. The resource name of the Label to
1794
+ * update.
1795
+ */
1796
+ public UpdateLabelEnabledAppSettings setName (java .lang .String name ) {
1797
+ if (!getSuppressPatternChecks ()) {
1798
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1799
+ "Parameter name must conform to the pattern " +
1800
+ "^labels/[^/]+$" );
1801
+ }
1802
+ this .name = name ;
1803
+ return this ;
1804
+ }
1805
+
1806
+ @ Override
1807
+ public UpdateLabelEnabledAppSettings set (String parameterName , Object value ) {
1808
+ return (UpdateLabelEnabledAppSettings ) super .set (parameterName , value );
1809
+ }
1810
+ }
1669
1811
/**
1670
1812
* Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new
1671
1813
* Label Permission is created, otherwise the existing permission is updated. Permissions affect the
0 commit comments