Skip to content

Commit

Permalink
feat(redis): update the API
Browse files Browse the repository at this point in the history
#### redis:v1beta1

The following keys were added:
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.description
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.flatPath
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.httpMethod
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.id
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.parameterOrder
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.parameters.name.description
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.parameters.name.location
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.parameters.name.pattern
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.parameters.name.required
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.parameters.name.type
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.path
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.request.$ref
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.response.$ref
- resources.projects.resources.locations.resources.instances.methods.rescheduleMaintenance.scopes
- schemas.Instance.properties.maintenancePolicy.$ref
- schemas.Instance.properties.maintenancePolicy.description
- schemas.Instance.properties.maintenanceSchedule.$ref
- schemas.Instance.properties.maintenanceSchedule.description
- schemas.Instance.properties.maintenanceSchedule.readOnly
- schemas.MaintenancePolicy.description
- schemas.MaintenancePolicy.id
- schemas.MaintenancePolicy.properties.createTime.description
- schemas.MaintenancePolicy.properties.createTime.format
- schemas.MaintenancePolicy.properties.createTime.readOnly
- schemas.MaintenancePolicy.properties.createTime.type
- schemas.MaintenancePolicy.properties.description.description
- schemas.MaintenancePolicy.properties.description.type
- schemas.MaintenancePolicy.properties.updateTime.description
- schemas.MaintenancePolicy.properties.updateTime.format
- schemas.MaintenancePolicy.properties.updateTime.readOnly
- schemas.MaintenancePolicy.properties.updateTime.type
- schemas.MaintenancePolicy.properties.weeklyMaintenanceWindow.description
- schemas.MaintenancePolicy.properties.weeklyMaintenanceWindow.items.$ref
- schemas.MaintenancePolicy.properties.weeklyMaintenanceWindow.type
- schemas.MaintenancePolicy.type
- schemas.MaintenanceSchedule.description
- schemas.MaintenanceSchedule.id
- schemas.MaintenanceSchedule.properties.canReschedule.description
- schemas.MaintenanceSchedule.properties.canReschedule.type
- schemas.MaintenanceSchedule.properties.endTime.description
- schemas.MaintenanceSchedule.properties.endTime.format
- schemas.MaintenanceSchedule.properties.endTime.readOnly
- schemas.MaintenanceSchedule.properties.endTime.type
- schemas.MaintenanceSchedule.properties.scheduleDeadlineTime.description
- schemas.MaintenanceSchedule.properties.scheduleDeadlineTime.format
- schemas.MaintenanceSchedule.properties.scheduleDeadlineTime.readOnly
- schemas.MaintenanceSchedule.properties.scheduleDeadlineTime.type
- schemas.MaintenanceSchedule.properties.startTime.description
- schemas.MaintenanceSchedule.properties.startTime.format
- schemas.MaintenanceSchedule.properties.startTime.readOnly
- schemas.MaintenanceSchedule.properties.startTime.type
- schemas.MaintenanceSchedule.type
- schemas.RescheduleMaintenanceRequest.description
- schemas.RescheduleMaintenanceRequest.id
- schemas.RescheduleMaintenanceRequest.properties.rescheduleType.description
- schemas.RescheduleMaintenanceRequest.properties.rescheduleType.enum
- schemas.RescheduleMaintenanceRequest.properties.rescheduleType.enumDescriptions
- schemas.RescheduleMaintenanceRequest.properties.rescheduleType.type
- schemas.RescheduleMaintenanceRequest.properties.scheduleTime.description
- schemas.RescheduleMaintenanceRequest.properties.scheduleTime.format
- schemas.RescheduleMaintenanceRequest.properties.scheduleTime.type
- schemas.RescheduleMaintenanceRequest.type
- schemas.TimeOfDay.description
- schemas.TimeOfDay.id
- schemas.TimeOfDay.properties.hours.description
- schemas.TimeOfDay.properties.hours.format
- schemas.TimeOfDay.properties.hours.type
- schemas.TimeOfDay.properties.minutes.description
- schemas.TimeOfDay.properties.minutes.format
- schemas.TimeOfDay.properties.minutes.type
- schemas.TimeOfDay.properties.nanos.description
- schemas.TimeOfDay.properties.nanos.format
- schemas.TimeOfDay.properties.nanos.type
- schemas.TimeOfDay.properties.seconds.description
- schemas.TimeOfDay.properties.seconds.format
- schemas.TimeOfDay.properties.seconds.type
- schemas.TimeOfDay.type
- schemas.WeeklyMaintenanceWindow.description
- schemas.WeeklyMaintenanceWindow.id
- schemas.WeeklyMaintenanceWindow.properties.day.description
- schemas.WeeklyMaintenanceWindow.properties.day.enum
- schemas.WeeklyMaintenanceWindow.properties.day.enumDescriptions
- schemas.WeeklyMaintenanceWindow.properties.day.type
- schemas.WeeklyMaintenanceWindow.properties.duration.description
- schemas.WeeklyMaintenanceWindow.properties.duration.format
- schemas.WeeklyMaintenanceWindow.properties.duration.readOnly
- schemas.WeeklyMaintenanceWindow.properties.duration.type
- schemas.WeeklyMaintenanceWindow.properties.startTime.$ref
- schemas.WeeklyMaintenanceWindow.properties.startTime.description
- schemas.WeeklyMaintenanceWindow.type
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent 6755126 commit f1803f1
Show file tree
Hide file tree
Showing 3 changed files with 461 additions and 3 deletions.
194 changes: 193 additions & 1 deletion discovery/redis-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"rescheduleMaintenance": {
"description": "Reschedule maintenance for a given instance in a given project and location.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:rescheduleMaintenance",
"httpMethod": "POST",
"id": "redis.projects.locations.instances.rescheduleMaintenance",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+name}:rescheduleMaintenance",
"request": {
"$ref": "RescheduleMaintenanceRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"upgrade": {
"description": "Upgrades Redis instance to the newer Redis version specified in the request.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgrade",
Expand Down Expand Up @@ -596,7 +624,7 @@
}
}
},
"revision": "20210422",
"revision": "20210513",
"rootUrl": "https://redis.googleapis.com/",
"schemas": {
"Empty": {
Expand Down Expand Up @@ -800,6 +828,15 @@
"description": "Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If alternative_location_id is also provided, it must be different from location_id.",
"type": "string"
},
"maintenancePolicy": {
"$ref": "MaintenancePolicy",
"description": "Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time."
},
"maintenanceSchedule": {
"$ref": "MaintenanceSchedule",
"description": "Output only. Date and time of upcoming maintenance events which have been scheduled.",
"readOnly": true
},
"memorySizeGb": {
"description": "Required. Redis memory size in GiB.",
"format": "int32",
Expand Down Expand Up @@ -1012,6 +1049,65 @@
},
"type": "object"
},
"MaintenancePolicy": {
"description": "Maintenance policy for an instance.",
"id": "MaintenancePolicy",
"properties": {
"createTime": {
"description": "Output only. The time when the policy was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"description": {
"description": "Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.",
"type": "string"
},
"updateTime": {
"description": "Output only. The time when the policy was last updated.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"weeklyMaintenanceWindow": {
"description": "Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one.",
"items": {
"$ref": "WeeklyMaintenanceWindow"
},
"type": "array"
}
},
"type": "object"
},
"MaintenanceSchedule": {
"description": "Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated.",
"id": "MaintenanceSchedule",
"properties": {
"canReschedule": {
"description": "If the scheduled maintenance can be rescheduled, default is true.",
"type": "boolean"
},
"endTime": {
"description": "Output only. The end time of any upcoming scheduled maintenance for this instance.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"scheduleDeadlineTime": {
"description": "Output only. The time deadline any schedule start time cannot go beyond, including reschedule.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"startTime": {
"description": "Output only. The start time of any upcoming scheduled maintenance for this instance.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
Expand Down Expand Up @@ -1058,6 +1154,34 @@
},
"type": "object"
},
"RescheduleMaintenanceRequest": {
"description": "Request for RescheduleMaintenance.",
"id": "RescheduleMaintenanceRequest",
"properties": {
"rescheduleType": {
"description": "Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.",
"enum": [
"RESCHEDULE_TYPE_UNSPECIFIED",
"IMMEDIATE",
"NEXT_AVAILABLE_WINDOW",
"SPECIFIC_TIME"
],
"enumDescriptions": [
"Not set.",
"If the user wants to schedule the maintenance to happen now.",
"If the user wants to use the existing maintenance policy to find the next available window.",
"If the user wants to reschedule the maintenance to a specific time."
],
"type": "string"
},
"scheduleTime": {
"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`.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
"id": "Status",
Expand Down Expand Up @@ -1085,6 +1209,33 @@
},
"type": "object"
},
"TimeOfDay": {
"description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.",
"id": "TimeOfDay",
"properties": {
"hours": {
"description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.",
"format": "int32",
"type": "integer"
},
"minutes": {
"description": "Minutes of hour of day. Must be from 0 to 59.",
"format": "int32",
"type": "integer"
},
"nanos": {
"description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.",
"format": "int32",
"type": "integer"
},
"seconds": {
"description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"TlsCertificate": {
"description": "TlsCertificate Resource",
"id": "TlsCertificate",
Expand Down Expand Up @@ -1126,6 +1277,47 @@
}
},
"type": "object"
},
"WeeklyMaintenanceWindow": {
"description": "Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.",
"id": "WeeklyMaintenanceWindow",
"properties": {
"day": {
"description": "Required. The day of week that maintenance updates occur.",
"enum": [
"DAY_OF_WEEK_UNSPECIFIED",
"MONDAY",
"TUESDAY",
"WEDNESDAY",
"THURSDAY",
"FRIDAY",
"SATURDAY",
"SUNDAY"
],
"enumDescriptions": [
"The day of the week is unspecified.",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
],
"type": "string"
},
"duration": {
"description": "Output only. Duration of the maintenance window. The current window is fixed at 3 hours.",
"format": "google-duration",
"readOnly": true,
"type": "string"
},
"startTime": {
"$ref": "TimeOfDay",
"description": "Required. Start time of the window in UTC time."
}
},
"type": "object"
}
},
"servicePath": "",
Expand Down
3 changes: 2 additions & 1 deletion src/apis/redis/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,8 @@ export namespace redis_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Instances$Getauthstring;
params =
{} as Params$Resource$Projects$Locations$Instances$Getauthstring;
options = {};
}

Expand Down
Loading

0 comments on commit f1803f1

Please sign in to comment.