redis: v1 add UpgradeInstance request

PiperOrigin-RevId: 319332818
This commit is contained in:
Google APIs 2020-07-01 18:24:23 -07:00 committed by Copybara-Service
parent a758393a3f
commit 76905ffe7e
2 changed files with 40 additions and 6 deletions

View File

@ -113,6 +113,20 @@ service CloudRedis {
};
}
// Upgrades Redis instance to the newer Redis version specified in the
// request.
rpc UpgradeInstance(UpgradeInstanceRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/instances/*}:upgrade"
body: "*"
};
option (google.api.method_signature) = "name,redis_version";
option (google.longrunning.operation_info) = {
response_type: "google.cloud.redis.v1.Instance"
metadata_type: "google.cloud.redis.v1.OperationMetadata"
};
}
// Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
//
// Redis may stop serving during this operation. Instance state will be
@ -235,11 +249,12 @@ message Instance {
// Not set.
CONNECT_MODE_UNSPECIFIED = 0;
// Connect via directly peering with memorystore redis hosted service.
// Connect via direct peering to the Memorystore for Redis hosted service.
DIRECT_PEERING = 1;
// Connect with google via private service access and share connection
// across google managed services.
// Connect your Memorystore for Redis instance using Private Service
// Access. Private services access provides an IP address range for multiple
// Google Cloud services, including Memorystore.
PRIVATE_SERVICE_ACCESS = 2;
}
@ -352,9 +367,8 @@ message Instance {
// operation.
string persistence_iam_identity = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
// Optional. The connect mode of Redis instance.
// If not provided, default one will be used.
// Current default: DIRECT_PEERING.
// Optional. The network connect mode of the Redis instance.
// If not provided, the connect mode defaults to DIRECT_PEERING.
ConnectMode connect_mode = 22 [(google.api.field_behavior) = OPTIONAL];
}
@ -462,6 +476,22 @@ message UpdateInstanceRequest {
Instance instance = 2 [(google.api.field_behavior) = REQUIRED];
}
// Request for [UpgradeInstance][google.cloud.redis.v1.CloudRedis.UpgradeInstance].
message UpgradeInstanceRequest {
// 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.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "redis.googleapis.com/Instance"
}
];
// Required. Specifies the target version of Redis software to upgrade to.
string redis_version = 2 [(google.api.field_behavior) = REQUIRED];
}
// Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
message DeleteInstanceRequest {
// Required. Redis instance resource name using the form:

View File

@ -10,6 +10,10 @@
"service": "google.cloud.redis.v1.CloudRedis",
"method": "GetInstance"
},
{
"service": "google.cloud.redis.v1.CloudRedis",
"method": "GetInstanceAuthString"
},
{
"service": "google.cloud.redis.v1.CloudRedis",
"method": "CreateInstance"