@@ -1592,232 +1592,6 @@ X-Xss-Protection: 0
15921592
15931593---
15941594
1595- PATCH https://memorystore.googleapis.com/v1/projects/${projectId}/locations/us-central1/instances/memorystore-${uniqueId}?%24alt=json%3Benum-encoding%3Dint&updateMask=endpoints
1596- Content-Type: application/json
1597- User-Agent: kcc/${kccVersion} (+https://github.com/GoogleCloudPlatform/k8s-config-connector) kcc/controller-manager/${kccVersion}
1598- X-Goog-Request-Params: instance.name=projects%2F${projectId}%2Flocations%2Fus-central1%2Finstances%2Fmemorystore-${uniqueId}
1599-
1600- {
1601- "authorizationMode": 2,
1602- "automatedBackupConfig": {
1603- "automatedBackupMode": 2,
1604- "fixedFrequencySchedule": {
1605- "startTime": {
1606- "hours": 3
1607- }
1608- },
1609- "retention": "432000s"
1610- },
1611- "deletionProtectionEnabled": false,
1612- "endpoints": [
1613- {
1614- "connections": [
1615- {
1616- "pscAutoConnection": {
1617- "network": "projects/${projectId}/global/networks/${networkID}",
1618- "projectId": "${projectId}"
1619- }
1620- }
1621- ]
1622- }
1623- ],
1624- "engineConfigs": {
1625- "maxclients": "10000",
1626- "maxmemory-policy": "volatile-ttl"
1627- },
1628- "engineVersion": "VALKEY_7_2",
1629- "kmsKey": "projects/${projectId}/locations/us-central1/keyRings/keyring-${uniqueId}/cryptoKeys/key-${uniqueId}",
1630- "labels": {
1631- "keyx": "valx"
1632- },
1633- "maintenancePolicy": {
1634- "weeklyMaintenanceWindow": [
1635- {
1636- "day": 3,
1637- "startTime": {
1638- "hours": 6
1639- }
1640- }
1641- ]
1642- },
1643- "mode": 2,
1644- "name": "projects/${projectId}/locations/us-central1/instances/memorystore-${uniqueId}",
1645- "nodeType": 4,
1646- "persistenceConfig": {
1647- "mode": 2,
1648- "rdbConfig": {
1649- "rdbSnapshotPeriod": 1,
1650- "rdbSnapshotStartTime": "2029-10-02T15:01:23Z"
1651- }
1652- },
1653- "replicaCount": 1,
1654- "shardCount": 12,
1655- "transitEncryptionMode": 2,
1656- "zoneDistributionConfig": {
1657- "mode": 2,
1658- "zone": "us-central1-b"
1659- }
1660- }
1661-
1662- 200 OK
1663- Content-Type: application/json; charset=UTF-8
1664- Server: ESF
1665- Vary: Origin
1666- Vary: X-Origin
1667- Vary: Referer
1668- X-Content-Type-Options: nosniff
1669- X-Frame-Options: SAMEORIGIN
1670- X-Xss-Protection: 0
1671-
1672- {
1673- "metadata": {
1674- "@type": "type.googleapis.com/google.cloud.memorystore.v1.OperationMetadata",
1675- "apiVersion": "v1",
1676- "createTime": "2024-04-01T12:34:56.123456Z",
1677- "target": "projects/${projectId}/locations/us-central1/instances/memorystore-${uniqueId}",
1678- "verb": "update"
1679- },
1680- "name": "projects/${projectId}/locations/us-central1/operations/${operationID}"
1681- }
1682-
1683- ---
1684-
1685- GET https://memorystore.googleapis.com/v1/projects/${projectId}/locations/us-central1/operations/${operationID}
1686- Content-Type: application/json
1687- User-Agent: kcc/${kccVersion} (+https://github.com/GoogleCloudPlatform/k8s-config-connector) kcc/controller-manager/${kccVersion}
1688- X-Goog-Request-Params: name=projects%2F${projectId}%2Flocations%2Fus-central1%2Foperations%2F${operationID}
1689-
1690- 200 OK
1691- Content-Type: application/json; charset=UTF-8
1692- Server: ESF
1693- Vary: Origin
1694- Vary: X-Origin
1695- Vary: Referer
1696- X-Content-Type-Options: nosniff
1697- X-Frame-Options: SAMEORIGIN
1698- X-Xss-Protection: 0
1699-
1700- {
1701- "done": true,
1702- "metadata": {
1703- "@type": "type.googleapis.com/google.cloud.memorystore.v1.OperationMetadata",
1704- "apiVersion": "v1",
1705- "createTime": "2024-04-01T12:34:56.123456Z",
1706- "endTime": "2024-04-01T12:34:56.123456Z",
1707- "target": "projects/${projectId}/locations/us-central1/instances/memorystore-${uniqueId}",
1708- "verb": "update"
1709- },
1710- "name": "projects/${projectId}/locations/us-central1/operations/${operationID}",
1711- "response": {
1712- "@type": "type.googleapis.com/google.cloud.memorystore.v1.Instance",
1713- "authorizationMode": "IAM_AUTH",
1714- "automatedBackupConfig": {
1715- "automatedBackupMode": "ENABLED",
1716- "fixedFrequencySchedule": {
1717- "startTime": {
1718- "hours": 3
1719- }
1720- },
1721- "retention": "432000s"
1722- },
1723- "availableMaintenanceVersions": [
1724- "MEMORYSTORE_20260313_01_02",
1725- "MEMORYSTORE_20260313_01_03"
1726- ],
1727- "createTime": "2024-04-01T12:34:56.123456Z",
1728- "deletionProtectionEnabled": false,
1729- "effectiveMaintenanceVersion": "MEMORYSTORE_20260313_01_02",
1730- "encryptionInfo": {
1731- "encryptionType": "CUSTOMER_MANAGED_ENCRYPTION",
1732- "kmsKeyPrimaryState": "ENABLED",
1733- "kmsKeyVersions": [
1734- "projects/${projectId}/locations/us-central1/keyRings/keyring-${uniqueId}/cryptoKeys/key-${uniqueId}/cryptoKeyVersions/1"
1735- ]
1736- },
1737- "endpoints": [
1738- {
1739- "connections": [
1740- {
1741- "pscAutoConnection": {
1742- "connectionType": "CONNECTION_TYPE_DISCOVERY",
1743- "forwardingRule": "https://www.googleapis.com/compute/v1/projects/${projectId}/regions/us-central1/forwardingRules/${forwardingRule}",
1744- "ipAddress": "${ipAddress}",
1745- "network": "projects/${projectId}/global/networks/${networkID}",
1746- "port": 6379,
1747- "projectId": "${projectId}",
1748- "pscConnectionId": "${pscConnectionId}",
1749- "serviceAttachment": "projects/${pscProjectNumber}/regions/us-central1/serviceAttachments/${pscServiceAttachment}"
1750- }
1751- },
1752- {
1753- "pscAutoConnection": {
1754- "forwardingRule": "https://www.googleapis.com/compute/v1/projects/${projectId}/regions/us-central1/forwardingRules/${forwardingRule}",
1755- "ipAddress": "${ipAddress}-2",
1756- "network": "projects/${projectId}/global/networks/${networkID}",
1757- "projectId": "${projectId}",
1758- "pscConnectionId": "${pscConnectionId}",
1759- "serviceAttachment": "projects/${pscProjectNumber}/regions/us-central1/serviceAttachments/${pscServiceAttachment}-2"
1760- }
1761- }
1762- ]
1763- }
1764- ],
1765- "engineConfigs": {
1766- "maxmemory-policy": "volatile-ttl"
1767- },
1768- "engineVersion": "VALKEY_7_2",
1769- "kmsKey": "projects/${projectId}/locations/us-central1/keyRings/keyring-${uniqueId}/cryptoKeys/key-${uniqueId}",
1770- "labels": {
1771- "key1": "val1",
1772- "key2": "val2"
1773- },
1774- "maintenancePolicy": {
1775- "weeklyMaintenanceWindow": [
1776- {
1777- "day": "MONDAY",
1778- "startTime": {
1779- "hours": 5
1780- }
1781- }
1782- ]
1783- },
1784- "maintenanceVersion": "MEMORYSTORE_20260313_01_02",
1785- "mode": "CLUSTER",
1786- "name": "projects/${projectId}/locations/us-central1/instances/memorystore-${uniqueId}",
1787- "nodeConfig": {
1788- "sizeGb": 6.5
1789- },
1790- "nodeType": "STANDARD_SMALL",
1791- "persistenceConfig": {
1792- "aofConfig": {
1793- "appendFsync": "EVERY_SEC"
1794- },
1795- "mode": "AOF"
1796- },
1797- "pscAttachmentDetails": [
1798- {
1799- "connectionType": "CONNECTION_TYPE_DISCOVERY",
1800- "serviceAttachment": "projects/${pscProjectNumber}/regions/us-central1/serviceAttachments/${pscServiceAttachment}"
1801- },
1802- {
1803- "serviceAttachment": "projects/${pscProjectNumber}/regions/us-central1/serviceAttachments/${pscServiceAttachment}-2"
1804- }
1805- ],
1806- "replicaCount": 2,
1807- "shardCount": 6,
1808- "state": "ACTIVE",
1809- "transitEncryptionMode": "SERVER_AUTHENTICATION",
1810- "uid": "111111111111111111111",
1811- "updateTime": "2024-04-01T12:34:56.123456Z",
1812- "zoneDistributionConfig": {
1813- "mode": "SINGLE_ZONE",
1814- "zone": "us-central1-b"
1815- }
1816- }
1817- }
1818-
1819- ---
1820-
18211595PATCH https://memorystore.googleapis.com/v1/projects/${projectId}/locations/us-central1/instances/memorystore-${uniqueId}?%24alt=json%3Benum-encoding%3Dint&updateMask=engineConfigs
18221596Content-Type: application/json
18231597User-Agent: kcc/${kccVersion} (+https://github.com/GoogleCloudPlatform/k8s-config-connector) kcc/controller-manager/${kccVersion}
0 commit comments