@@ -1382,6 +1382,24 @@ public CustomPlacementConfig clone() {
13821382 */
13831383 public static final class Encryption extends com .google .api .client .json .GenericJson {
13841384
1385+ /**
1386+ * If set, the new objects created in this bucket must comply with this enforcement config.
1387+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1388+ * the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
1389+ * The value may be {@code null}.
1390+ */
1391+ @ com .google .api .client .util .Key
1392+ private CustomerManagedEncryptionEnforcementConfig customerManagedEncryptionEnforcementConfig ;
1393+
1394+ /**
1395+ * If set, the new objects created in this bucket must comply with this enforcement config.
1396+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1397+ * the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1398+ * The value may be {@code null}.
1399+ */
1400+ @ com .google .api .client .util .Key
1401+ private CustomerSuppliedEncryptionEnforcementConfig customerSuppliedEncryptionEnforcementConfig ;
1402+
13851403 /**
13861404 * A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no
13871405 * encryption method is specified.
@@ -1390,6 +1408,57 @@ public static final class Encryption extends com.google.api.client.json.GenericJ
13901408 @ com .google .api .client .util .Key
13911409 private java .lang .String defaultKmsKeyName ;
13921410
1411+ /**
1412+ * If set, the new objects created in this bucket must comply with this enforcement config.
1413+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1414+ * the new objects are allowed to be encrypted with Google Managed Encryption type by default.
1415+ * The value may be {@code null}.
1416+ */
1417+ @ com .google .api .client .util .Key
1418+ private GoogleManagedEncryptionEnforcementConfig googleManagedEncryptionEnforcementConfig ;
1419+
1420+ /**
1421+ * If set, the new objects created in this bucket must comply with this enforcement config.
1422+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1423+ * the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
1424+ * @return value or {@code null} for none
1425+ */
1426+ public CustomerManagedEncryptionEnforcementConfig getCustomerManagedEncryptionEnforcementConfig () {
1427+ return customerManagedEncryptionEnforcementConfig ;
1428+ }
1429+
1430+ /**
1431+ * If set, the new objects created in this bucket must comply with this enforcement config.
1432+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1433+ * the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
1434+ * @param customerManagedEncryptionEnforcementConfig customerManagedEncryptionEnforcementConfig or {@code null} for none
1435+ */
1436+ public Encryption setCustomerManagedEncryptionEnforcementConfig (CustomerManagedEncryptionEnforcementConfig customerManagedEncryptionEnforcementConfig ) {
1437+ this .customerManagedEncryptionEnforcementConfig = customerManagedEncryptionEnforcementConfig ;
1438+ return this ;
1439+ }
1440+
1441+ /**
1442+ * If set, the new objects created in this bucket must comply with this enforcement config.
1443+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1444+ * the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1445+ * @return value or {@code null} for none
1446+ */
1447+ public CustomerSuppliedEncryptionEnforcementConfig getCustomerSuppliedEncryptionEnforcementConfig () {
1448+ return customerSuppliedEncryptionEnforcementConfig ;
1449+ }
1450+
1451+ /**
1452+ * If set, the new objects created in this bucket must comply with this enforcement config.
1453+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1454+ * the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1455+ * @param customerSuppliedEncryptionEnforcementConfig customerSuppliedEncryptionEnforcementConfig or {@code null} for none
1456+ */
1457+ public Encryption setCustomerSuppliedEncryptionEnforcementConfig (CustomerSuppliedEncryptionEnforcementConfig customerSuppliedEncryptionEnforcementConfig ) {
1458+ this .customerSuppliedEncryptionEnforcementConfig = customerSuppliedEncryptionEnforcementConfig ;
1459+ return this ;
1460+ }
1461+
13931462 /**
13941463 * A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no
13951464 * encryption method is specified.
@@ -1409,6 +1478,27 @@ public Encryption setDefaultKmsKeyName(java.lang.String defaultKmsKeyName) {
14091478 return this ;
14101479 }
14111480
1481+ /**
1482+ * If set, the new objects created in this bucket must comply with this enforcement config.
1483+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1484+ * the new objects are allowed to be encrypted with Google Managed Encryption type by default.
1485+ * @return value or {@code null} for none
1486+ */
1487+ public GoogleManagedEncryptionEnforcementConfig getGoogleManagedEncryptionEnforcementConfig () {
1488+ return googleManagedEncryptionEnforcementConfig ;
1489+ }
1490+
1491+ /**
1492+ * If set, the new objects created in this bucket must comply with this enforcement config.
1493+ * Changing this has no effect on existing objects; it applies to new objects only. If omitted,
1494+ * the new objects are allowed to be encrypted with Google Managed Encryption type by default.
1495+ * @param googleManagedEncryptionEnforcementConfig googleManagedEncryptionEnforcementConfig or {@code null} for none
1496+ */
1497+ public Encryption setGoogleManagedEncryptionEnforcementConfig (GoogleManagedEncryptionEnforcementConfig googleManagedEncryptionEnforcementConfig ) {
1498+ this .googleManagedEncryptionEnforcementConfig = googleManagedEncryptionEnforcementConfig ;
1499+ return this ;
1500+ }
1501+
14121502 @ Override
14131503 public Encryption set (String fieldName , Object value ) {
14141504 return (Encryption ) super .set (fieldName , value );
@@ -1419,6 +1509,213 @@ public Encryption clone() {
14191509 return (Encryption ) super .clone ();
14201510 }
14211511
1512+ /**
1513+ * If set, the new objects created in this bucket must comply with this enforcement config. Changing
1514+ * this has no effect on existing objects; it applies to new objects only. If omitted, the new
1515+ * objects are allowed to be encrypted with Customer Managed Encryption type by default.
1516+ */
1517+ public static final class CustomerManagedEncryptionEnforcementConfig extends com .google .api .client .json .GenericJson {
1518+
1519+ /**
1520+ * Server-determined value that indicates the time from which configuration was enforced and
1521+ * effective. This value is in RFC 3339 format.
1522+ * The value may be {@code null}.
1523+ */
1524+ @ com .google .api .client .util .Key
1525+ private com .google .api .client .util .DateTime effectiveTime ;
1526+
1527+ /**
1528+ * Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
1529+ * The value may be {@code null}.
1530+ */
1531+ @ com .google .api .client .util .Key
1532+ private java .lang .String restrictionMode ;
1533+
1534+ /**
1535+ * Server-determined value that indicates the time from which configuration was enforced and
1536+ * effective. This value is in RFC 3339 format.
1537+ * @return value or {@code null} for none
1538+ */
1539+ public com .google .api .client .util .DateTime getEffectiveTime () {
1540+ return effectiveTime ;
1541+ }
1542+
1543+ /**
1544+ * Server-determined value that indicates the time from which configuration was enforced and
1545+ * effective. This value is in RFC 3339 format.
1546+ * @param effectiveTime effectiveTime or {@code null} for none
1547+ */
1548+ public CustomerManagedEncryptionEnforcementConfig setEffectiveTime (com .google .api .client .util .DateTime effectiveTime ) {
1549+ this .effectiveTime = effectiveTime ;
1550+ return this ;
1551+ }
1552+
1553+ /**
1554+ * Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
1555+ * @return value or {@code null} for none
1556+ */
1557+ public java .lang .String getRestrictionMode () {
1558+ return restrictionMode ;
1559+ }
1560+
1561+ /**
1562+ * Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
1563+ * @param restrictionMode restrictionMode or {@code null} for none
1564+ */
1565+ public CustomerManagedEncryptionEnforcementConfig setRestrictionMode (java .lang .String restrictionMode ) {
1566+ this .restrictionMode = restrictionMode ;
1567+ return this ;
1568+ }
1569+
1570+ @ Override
1571+ public CustomerManagedEncryptionEnforcementConfig set (String fieldName , Object value ) {
1572+ return (CustomerManagedEncryptionEnforcementConfig ) super .set (fieldName , value );
1573+ }
1574+
1575+ @ Override
1576+ public CustomerManagedEncryptionEnforcementConfig clone () {
1577+ return (CustomerManagedEncryptionEnforcementConfig ) super .clone ();
1578+ }
1579+
1580+ }
1581+ /**
1582+ * If set, the new objects created in this bucket must comply with this enforcement config. Changing
1583+ * this has no effect on existing objects; it applies to new objects only. If omitted, the new
1584+ * objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1585+ */
1586+ public static final class CustomerSuppliedEncryptionEnforcementConfig extends com .google .api .client .json .GenericJson {
1587+
1588+ /**
1589+ * Server-determined value that indicates the time from which configuration was enforced and
1590+ * effective. This value is in RFC 3339 format.
1591+ * The value may be {@code null}.
1592+ */
1593+ @ com .google .api .client .util .Key
1594+ private com .google .api .client .util .DateTime effectiveTime ;
1595+
1596+ /**
1597+ * Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
1598+ * The value may be {@code null}.
1599+ */
1600+ @ com .google .api .client .util .Key
1601+ private java .lang .String restrictionMode ;
1602+
1603+ /**
1604+ * Server-determined value that indicates the time from which configuration was enforced and
1605+ * effective. This value is in RFC 3339 format.
1606+ * @return value or {@code null} for none
1607+ */
1608+ public com .google .api .client .util .DateTime getEffectiveTime () {
1609+ return effectiveTime ;
1610+ }
1611+
1612+ /**
1613+ * Server-determined value that indicates the time from which configuration was enforced and
1614+ * effective. This value is in RFC 3339 format.
1615+ * @param effectiveTime effectiveTime or {@code null} for none
1616+ */
1617+ public CustomerSuppliedEncryptionEnforcementConfig setEffectiveTime (com .google .api .client .util .DateTime effectiveTime ) {
1618+ this .effectiveTime = effectiveTime ;
1619+ return this ;
1620+ }
1621+
1622+ /**
1623+ * Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
1624+ * @return value or {@code null} for none
1625+ */
1626+ public java .lang .String getRestrictionMode () {
1627+ return restrictionMode ;
1628+ }
1629+
1630+ /**
1631+ * Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
1632+ * @param restrictionMode restrictionMode or {@code null} for none
1633+ */
1634+ public CustomerSuppliedEncryptionEnforcementConfig setRestrictionMode (java .lang .String restrictionMode ) {
1635+ this .restrictionMode = restrictionMode ;
1636+ return this ;
1637+ }
1638+
1639+ @ Override
1640+ public CustomerSuppliedEncryptionEnforcementConfig set (String fieldName , Object value ) {
1641+ return (CustomerSuppliedEncryptionEnforcementConfig ) super .set (fieldName , value );
1642+ }
1643+
1644+ @ Override
1645+ public CustomerSuppliedEncryptionEnforcementConfig clone () {
1646+ return (CustomerSuppliedEncryptionEnforcementConfig ) super .clone ();
1647+ }
1648+
1649+ }
1650+ /**
1651+ * If set, the new objects created in this bucket must comply with this enforcement config. Changing
1652+ * this has no effect on existing objects; it applies to new objects only. If omitted, the new
1653+ * objects are allowed to be encrypted with Google Managed Encryption type by default.
1654+ */
1655+ public static final class GoogleManagedEncryptionEnforcementConfig extends com .google .api .client .json .GenericJson {
1656+
1657+ /**
1658+ * Server-determined value that indicates the time from which configuration was enforced and
1659+ * effective. This value is in RFC 3339 format.
1660+ * The value may be {@code null}.
1661+ */
1662+ @ com .google .api .client .util .Key
1663+ private com .google .api .client .util .DateTime effectiveTime ;
1664+
1665+ /**
1666+ * Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
1667+ * The value may be {@code null}.
1668+ */
1669+ @ com .google .api .client .util .Key
1670+ private java .lang .String restrictionMode ;
1671+
1672+ /**
1673+ * Server-determined value that indicates the time from which configuration was enforced and
1674+ * effective. This value is in RFC 3339 format.
1675+ * @return value or {@code null} for none
1676+ */
1677+ public com .google .api .client .util .DateTime getEffectiveTime () {
1678+ return effectiveTime ;
1679+ }
1680+
1681+ /**
1682+ * Server-determined value that indicates the time from which configuration was enforced and
1683+ * effective. This value is in RFC 3339 format.
1684+ * @param effectiveTime effectiveTime or {@code null} for none
1685+ */
1686+ public GoogleManagedEncryptionEnforcementConfig setEffectiveTime (com .google .api .client .util .DateTime effectiveTime ) {
1687+ this .effectiveTime = effectiveTime ;
1688+ return this ;
1689+ }
1690+
1691+ /**
1692+ * Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
1693+ * @return value or {@code null} for none
1694+ */
1695+ public java .lang .String getRestrictionMode () {
1696+ return restrictionMode ;
1697+ }
1698+
1699+ /**
1700+ * Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
1701+ * @param restrictionMode restrictionMode or {@code null} for none
1702+ */
1703+ public GoogleManagedEncryptionEnforcementConfig setRestrictionMode (java .lang .String restrictionMode ) {
1704+ this .restrictionMode = restrictionMode ;
1705+ return this ;
1706+ }
1707+
1708+ @ Override
1709+ public GoogleManagedEncryptionEnforcementConfig set (String fieldName , Object value ) {
1710+ return (GoogleManagedEncryptionEnforcementConfig ) super .set (fieldName , value );
1711+ }
1712+
1713+ @ Override
1714+ public GoogleManagedEncryptionEnforcementConfig clone () {
1715+ return (GoogleManagedEncryptionEnforcementConfig ) super .clone ();
1716+ }
1717+
1718+ }
14221719 }
14231720
14241721 /**
0 commit comments