Skip to content

Commit 98cd830

Browse files
yoshi-automationsofisl
authored andcommitted
feat(redis): update the API
#### redis:v1beta1 The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.description - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.flatPath - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.httpMethod - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.id - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameterOrder - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.description - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.location - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.pattern - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.required - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.type - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.path - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.request.$ref - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.response.$ref - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.scopes - schemas.AvailabilityConfiguration.properties.automaticFailoverRoutingConfigured.description - schemas.AvailabilityConfiguration.properties.automaticFailoverRoutingConfigured.type - schemas.Cluster.properties.maintenancePolicy.$ref - schemas.Cluster.properties.maintenancePolicy.description - schemas.Cluster.properties.maintenanceSchedule.$ref - schemas.Cluster.properties.maintenanceSchedule.description - schemas.Cluster.properties.maintenanceSchedule.readOnly - schemas.ClusterMaintenancePolicy.description - schemas.ClusterMaintenancePolicy.id - schemas.ClusterMaintenancePolicy.properties.createTime.description - schemas.ClusterMaintenancePolicy.properties.createTime.format - schemas.ClusterMaintenancePolicy.properties.createTime.readOnly - schemas.ClusterMaintenancePolicy.properties.createTime.type - schemas.ClusterMaintenancePolicy.properties.updateTime.description - schemas.ClusterMaintenancePolicy.properties.updateTime.format - schemas.ClusterMaintenancePolicy.properties.updateTime.readOnly - schemas.ClusterMaintenancePolicy.properties.updateTime.type - schemas.ClusterMaintenancePolicy.properties.weeklyMaintenanceWindow.description - schemas.ClusterMaintenancePolicy.properties.weeklyMaintenanceWindow.items.$ref - schemas.ClusterMaintenancePolicy.properties.weeklyMaintenanceWindow.type - schemas.ClusterMaintenancePolicy.type - schemas.ClusterMaintenanceSchedule.description - schemas.ClusterMaintenanceSchedule.id - schemas.ClusterMaintenanceSchedule.properties.endTime.description - schemas.ClusterMaintenanceSchedule.properties.endTime.format - schemas.ClusterMaintenanceSchedule.properties.endTime.readOnly - schemas.ClusterMaintenanceSchedule.properties.endTime.type - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.description - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.format - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.readOnly - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.type - schemas.ClusterMaintenanceSchedule.properties.startTime.description - schemas.ClusterMaintenanceSchedule.properties.startTime.format - schemas.ClusterMaintenanceSchedule.properties.startTime.readOnly - schemas.ClusterMaintenanceSchedule.properties.startTime.type - schemas.ClusterMaintenanceSchedule.type - schemas.ClusterWeeklyMaintenanceWindow.description - schemas.ClusterWeeklyMaintenanceWindow.id - schemas.ClusterWeeklyMaintenanceWindow.properties.day.description - schemas.ClusterWeeklyMaintenanceWindow.properties.day.enum - schemas.ClusterWeeklyMaintenanceWindow.properties.day.enumDescriptions - schemas.ClusterWeeklyMaintenanceWindow.properties.day.type - schemas.ClusterWeeklyMaintenanceWindow.properties.duration.description - schemas.ClusterWeeklyMaintenanceWindow.properties.duration.format - schemas.ClusterWeeklyMaintenanceWindow.properties.duration.type - schemas.ClusterWeeklyMaintenanceWindow.properties.startTime.$ref - schemas.ClusterWeeklyMaintenanceWindow.properties.startTime.description - schemas.ClusterWeeklyMaintenanceWindow.type - schemas.RescheduleClusterMaintenanceRequest.description - schemas.RescheduleClusterMaintenanceRequest.id - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.description - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.enum - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.enumDescriptions - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.type - schemas.RescheduleClusterMaintenanceRequest.properties.scheduleTime.description - schemas.RescheduleClusterMaintenanceRequest.properties.scheduleTime.format - schemas.RescheduleClusterMaintenanceRequest.properties.scheduleTime.type - schemas.RescheduleClusterMaintenanceRequest.type The following keys were changed: - schemas.AOFConfig.properties.appendFsync.enumDescriptions #### redis:v1 The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.description - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.flatPath - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.httpMethod - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.id - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameterOrder - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.description - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.location - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.pattern - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.required - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.parameters.name.type - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.path - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.request.$ref - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.response.$ref - resources.projects.resources.locations.resources.clusters.methods.rescheduleClusterMaintenance.scopes - schemas.AvailabilityConfiguration.properties.automaticFailoverRoutingConfigured.description - schemas.AvailabilityConfiguration.properties.automaticFailoverRoutingConfigured.type - schemas.Cluster.properties.maintenancePolicy.$ref - schemas.Cluster.properties.maintenancePolicy.description - schemas.Cluster.properties.maintenanceSchedule.$ref - schemas.Cluster.properties.maintenanceSchedule.description - schemas.Cluster.properties.maintenanceSchedule.readOnly - schemas.ClusterMaintenancePolicy.description - schemas.ClusterMaintenancePolicy.id - schemas.ClusterMaintenancePolicy.properties.createTime.description - schemas.ClusterMaintenancePolicy.properties.createTime.format - schemas.ClusterMaintenancePolicy.properties.createTime.readOnly - schemas.ClusterMaintenancePolicy.properties.createTime.type - schemas.ClusterMaintenancePolicy.properties.updateTime.description - schemas.ClusterMaintenancePolicy.properties.updateTime.format - schemas.ClusterMaintenancePolicy.properties.updateTime.readOnly - schemas.ClusterMaintenancePolicy.properties.updateTime.type - schemas.ClusterMaintenancePolicy.properties.weeklyMaintenanceWindow.description - schemas.ClusterMaintenancePolicy.properties.weeklyMaintenanceWindow.items.$ref - schemas.ClusterMaintenancePolicy.properties.weeklyMaintenanceWindow.type - schemas.ClusterMaintenancePolicy.type - schemas.ClusterMaintenanceSchedule.description - schemas.ClusterMaintenanceSchedule.id - schemas.ClusterMaintenanceSchedule.properties.endTime.description - schemas.ClusterMaintenanceSchedule.properties.endTime.format - schemas.ClusterMaintenanceSchedule.properties.endTime.readOnly - schemas.ClusterMaintenanceSchedule.properties.endTime.type - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.description - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.format - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.readOnly - schemas.ClusterMaintenanceSchedule.properties.scheduleDeadlineTime.type - schemas.ClusterMaintenanceSchedule.properties.startTime.description - schemas.ClusterMaintenanceSchedule.properties.startTime.format - schemas.ClusterMaintenanceSchedule.properties.startTime.readOnly - schemas.ClusterMaintenanceSchedule.properties.startTime.type - schemas.ClusterMaintenanceSchedule.type - schemas.ClusterWeeklyMaintenanceWindow.description - schemas.ClusterWeeklyMaintenanceWindow.id - schemas.ClusterWeeklyMaintenanceWindow.properties.day.description - schemas.ClusterWeeklyMaintenanceWindow.properties.day.enum - schemas.ClusterWeeklyMaintenanceWindow.properties.day.enumDescriptions - schemas.ClusterWeeklyMaintenanceWindow.properties.day.type - schemas.ClusterWeeklyMaintenanceWindow.properties.duration.description - schemas.ClusterWeeklyMaintenanceWindow.properties.duration.format - schemas.ClusterWeeklyMaintenanceWindow.properties.duration.type - schemas.ClusterWeeklyMaintenanceWindow.properties.startTime.$ref - schemas.ClusterWeeklyMaintenanceWindow.properties.startTime.description - schemas.ClusterWeeklyMaintenanceWindow.type - schemas.RescheduleClusterMaintenanceRequest.description - schemas.RescheduleClusterMaintenanceRequest.id - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.description - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.enum - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.enumDescriptions - schemas.RescheduleClusterMaintenanceRequest.properties.rescheduleType.type - schemas.RescheduleClusterMaintenanceRequest.properties.scheduleTime.description - schemas.RescheduleClusterMaintenanceRequest.properties.scheduleTime.format - schemas.RescheduleClusterMaintenanceRequest.properties.scheduleTime.type - schemas.RescheduleClusterMaintenanceRequest.type The following keys were changed: - schemas.AOFConfig.properties.appendFsync.enumDescriptions
1 parent f26a373 commit 98cd830

File tree

4 files changed

+677
-4
lines changed

4 files changed

+677
-4
lines changed

discovery/redis-v1.json

Lines changed: 160 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,34 @@
371371
"scopes": [
372372
"https://www.googleapis.com/auth/cloud-platform"
373373
]
374+
},
375+
"rescheduleClusterMaintenance": {
376+
"description": "Reschedules upcoming maintenance event.",
377+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:rescheduleClusterMaintenance",
378+
"httpMethod": "POST",
379+
"id": "redis.projects.locations.clusters.rescheduleClusterMaintenance",
380+
"parameterOrder": [
381+
"name"
382+
],
383+
"parameters": {
384+
"name": {
385+
"description": "Required. Redis Cluster instance resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a GCP region.",
386+
"location": "path",
387+
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
388+
"required": true,
389+
"type": "string"
390+
}
391+
},
392+
"path": "v1/{+name}:rescheduleClusterMaintenance",
393+
"request": {
394+
"$ref": "RescheduleClusterMaintenanceRequest"
395+
},
396+
"response": {
397+
"$ref": "Operation"
398+
},
399+
"scopes": [
400+
"https://www.googleapis.com/auth/cloud-platform"
401+
]
374402
}
375403
}
376404
},
@@ -821,7 +849,7 @@
821849
}
822850
}
823851
},
824-
"revision": "20240812",
852+
"revision": "20240822",
825853
"rootUrl": "https://redis.googleapis.com/",
826854
"schemas": {
827855
"AOFConfig": {
@@ -840,7 +868,7 @@
840868
"Not set. Default: EVERYSEC",
841869
"Never fsync. Normally Linux will flush data every 30 seconds with this configuration, but it's up to the kernel's exact tuning.",
842870
"fsync every second. Fast enough, and you may lose 1 second of data if there is a disaster",
843-
"fsync every time new commands are appended to the AOF. It has the best data loss protection at the cost of performance"
871+
"fsync every time new write commands are appended to the AOF. It has the best data loss protection at the cost of performance"
844872
],
845873
"type": "string"
846874
}
@@ -851,6 +879,10 @@
851879
"description": "Configuration for availability of database instance",
852880
"id": "AvailabilityConfiguration",
853881
"properties": {
882+
"automaticFailoverRoutingConfigured": {
883+
"description": "Checks for existence of (multi-cluster) routing configuration that allows automatic failover to a different zone/region in case of an outage. Applicable to Bigtable resources.",
884+
"type": "boolean"
885+
},
854886
"availabilityType": {
855887
"description": "Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available).",
856888
"enum": [
@@ -1003,6 +1035,15 @@
10031035
"readOnly": true,
10041036
"type": "array"
10051037
},
1038+
"maintenancePolicy": {
1039+
"$ref": "ClusterMaintenancePolicy",
1040+
"description": "Optional. ClusterMaintenancePolicy determines when to allow or deny updates."
1041+
},
1042+
"maintenanceSchedule": {
1043+
"$ref": "ClusterMaintenanceSchedule",
1044+
"description": "Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule.",
1045+
"readOnly": true
1046+
},
10061047
"name": {
10071048
"description": "Required. Identifier. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`",
10081049
"type": "string"
@@ -1123,6 +1164,57 @@
11231164
},
11241165
"type": "object"
11251166
},
1167+
"ClusterMaintenancePolicy": {
1168+
"description": "Maintenance policy per cluster.",
1169+
"id": "ClusterMaintenancePolicy",
1170+
"properties": {
1171+
"createTime": {
1172+
"description": "Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned.",
1173+
"format": "google-datetime",
1174+
"readOnly": true,
1175+
"type": "string"
1176+
},
1177+
"updateTime": {
1178+
"description": "Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated.",
1179+
"format": "google-datetime",
1180+
"readOnly": true,
1181+
"type": "string"
1182+
},
1183+
"weeklyMaintenanceWindow": {
1184+
"description": "Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_window is expected to be one.",
1185+
"items": {
1186+
"$ref": "ClusterWeeklyMaintenanceWindow"
1187+
},
1188+
"type": "array"
1189+
}
1190+
},
1191+
"type": "object"
1192+
},
1193+
"ClusterMaintenanceSchedule": {
1194+
"description": "Upcoming maitenance schedule.",
1195+
"id": "ClusterMaintenanceSchedule",
1196+
"properties": {
1197+
"endTime": {
1198+
"description": "Output only. The end time of any upcoming scheduled maintenance for this instance.",
1199+
"format": "google-datetime",
1200+
"readOnly": true,
1201+
"type": "string"
1202+
},
1203+
"scheduleDeadlineTime": {
1204+
"description": "Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.",
1205+
"format": "google-datetime",
1206+
"readOnly": true,
1207+
"type": "string"
1208+
},
1209+
"startTime": {
1210+
"description": "Output only. The start time of any upcoming scheduled maintenance for this instance.",
1211+
"format": "google-datetime",
1212+
"readOnly": true,
1213+
"type": "string"
1214+
}
1215+
},
1216+
"type": "object"
1217+
},
11261218
"ClusterPersistenceConfig": {
11271219
"description": "Configuration of the persistence functionality.",
11281220
"id": "ClusterPersistenceConfig",
@@ -1154,6 +1246,46 @@
11541246
},
11551247
"type": "object"
11561248
},
1249+
"ClusterWeeklyMaintenanceWindow": {
1250+
"description": "Time window specified for weekly operations.",
1251+
"id": "ClusterWeeklyMaintenanceWindow",
1252+
"properties": {
1253+
"day": {
1254+
"description": "Allows to define schedule that runs specified day of the week.",
1255+
"enum": [
1256+
"DAY_OF_WEEK_UNSPECIFIED",
1257+
"MONDAY",
1258+
"TUESDAY",
1259+
"WEDNESDAY",
1260+
"THURSDAY",
1261+
"FRIDAY",
1262+
"SATURDAY",
1263+
"SUNDAY"
1264+
],
1265+
"enumDescriptions": [
1266+
"The day of the week is unspecified.",
1267+
"Monday",
1268+
"Tuesday",
1269+
"Wednesday",
1270+
"Thursday",
1271+
"Friday",
1272+
"Saturday",
1273+
"Sunday"
1274+
],
1275+
"type": "string"
1276+
},
1277+
"duration": {
1278+
"description": "Duration of the time window.",
1279+
"format": "google-duration",
1280+
"type": "string"
1281+
},
1282+
"startTime": {
1283+
"$ref": "TimeOfDay",
1284+
"description": "Start time of the window in UTC."
1285+
}
1286+
},
1287+
"type": "object"
1288+
},
11571289
"Compliance": {
11581290
"description": "Contains compliance information about a security standard indicating unmet recommendations.",
11591291
"id": "Compliance",
@@ -3351,6 +3483,32 @@
33513483
},
33523484
"type": "object"
33533485
},
3486+
"RescheduleClusterMaintenanceRequest": {
3487+
"description": "Request for rescheduling a cluster maintenance.",
3488+
"id": "RescheduleClusterMaintenanceRequest",
3489+
"properties": {
3490+
"rescheduleType": {
3491+
"description": "Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.",
3492+
"enum": [
3493+
"RESCHEDULE_TYPE_UNSPECIFIED",
3494+
"IMMEDIATE",
3495+
"SPECIFIC_TIME"
3496+
],
3497+
"enumDescriptions": [
3498+
"Not set.",
3499+
"If the user wants to schedule the maintenance to happen now.",
3500+
"If the user wants to reschedule the maintenance to a specific time."
3501+
],
3502+
"type": "string"
3503+
},
3504+
"scheduleTime": {
3505+
"description": "Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`.",
3506+
"format": "google-datetime",
3507+
"type": "string"
3508+
}
3509+
},
3510+
"type": "object"
3511+
},
33543512
"RescheduleMaintenanceRequest": {
33553513
"description": "Request for RescheduleMaintenance.",
33563514
"id": "RescheduleMaintenanceRequest",

0 commit comments

Comments
 (0)