Skip to content

Commit

Permalink
feat: add instance connect mode and upgrade instance method (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Feb 5, 2020
1 parent ad03e78 commit 999b1a7
Show file tree
Hide file tree
Showing 25 changed files with 1,111 additions and 433 deletions.
298 changes: 152 additions & 146 deletions Redis/metadata/V1/CloudRedis.php

Large diffs are not rendered by default.

300 changes: 159 additions & 141 deletions Redis/metadata/V1Beta1/CloudRedis.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Redis/src/V1/CloudRedisGrpcClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function __construct($hostname, $opts, $channel = null) {
* location (region) or all locations.
*
* The location should have the following format:
*
* * `projects/{project_id}/locations/{location_id}`
*
* If `location_id` is specified as `-` (wildcard), then all regions
Expand Down
2 changes: 2 additions & 0 deletions Redis/src/V1/FailoverInstanceRequest/DataProtectionMode.php

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

3 changes: 2 additions & 1 deletion Redis/src/V1/Gapic/CloudRedisGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ public function __construct(array $options = [])
* location (region) or all locations.
*
* The location should have the following format:
*
* * `projects/{project_id}/locations/{location_id}`
*
* If `location_id` is specified as `-` (wildcard), then all regions
Expand Down Expand Up @@ -671,7 +672,7 @@ public function createInstance($parent, $instanceId, $instance, array $optionalA
*
* @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in
* this field. The elements of the repeated paths field may only include these
* fields from [Instance][CloudRedis.Instance]:
* fields from [Instance][google.cloud.redis.v1.Instance]:
*
* * `displayName`
* * `labels`
Expand Down
118 changes: 78 additions & 40 deletions Redis/src/V1/Instance.php

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions Redis/src/V1/Instance/ConnectMode.php

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

16 changes: 16 additions & 0 deletions Redis/src/V1/Instance_ConnectMode.php

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

24 changes: 12 additions & 12 deletions Redis/src/V1/ListInstancesRequest.php

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

32 changes: 16 additions & 16 deletions Redis/src/V1/ListInstancesResponse.php

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

8 changes: 4 additions & 4 deletions Redis/src/V1/UpdateInstanceRequest.php

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

16 changes: 16 additions & 0 deletions Redis/src/V1beta1/CloudRedisGrpcClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function __construct($hostname, $opts, $channel = null) {
* location (region) or all locations.
*
* The location should have the following format:
*
* * `projects/{project_id}/locations/{location_id}`
*
* If `location_id` is specified as `-` (wildcard), then all regions
Expand Down Expand Up @@ -125,6 +126,21 @@ public function UpdateInstance(\Google\Cloud\Redis\V1beta1\UpdateInstanceRequest
$metadata, $options);
}

/**
* Upgrades Redis instance to the newer Redis version specified in the
* request.
* @param \Google\Cloud\Redis\V1beta1\UpgradeInstanceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
*/
public function UpgradeInstance(\Google\Cloud\Redis\V1beta1\UpgradeInstanceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.cloud.redis.v1beta1.CloudRedis/UpgradeInstance',
$argument,
['\Google\LongRunning\Operation', 'decode'],
$metadata, $options);
}

/**
* Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
*
Expand Down

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

0 comments on commit 999b1a7

Please sign in to comment.