Skip to content

Commit

Permalink
changes without context (#411)
Browse files Browse the repository at this point in the history
autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.
  • Loading branch information
yoshi-automation authored Jul 10, 2020
1 parent daec153 commit 9a6564c
Show file tree
Hide file tree
Showing 8 changed files with 788 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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];
}

Expand Down Expand Up @@ -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:
Expand Down
117 changes: 117 additions & 0 deletions packages/google-cloud-redis/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a6564c

Please sign in to comment.