-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [Memorystore for Redis Cluster] Added support for maintenance w…
…indow and rescheduling maintenance feat: [Memorystore for Redis Cluster] Added support for Backups and Backup Collections feat: [Memorystore for Redis Cluster] Added support for Multiple VPCs feat: [Memorystore for Redis Cluster] Added support for Cross Cluster Replication feat: [Memorystore for Redis Cluster] Added support for CMEK feat: New REQUIRED field `service_attachment` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` fix: Changed field behavior for an existing field `psc_connection_id` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` fix: Changed field behavior for an existing field `address` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` fix: Changed field behavior for an existing field `forwarding_rule` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` fix: Changed field behavior for an existing field `network` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` docs: A comment for enum value `NODE_TYPE_UNSPECIFIED` in enum `NodeType` is changed docs: A comment for field `name` in message `.google.cloud.redis.cluster.v1beta1.Cluster` is changed docs: A comment for field `shard_count` in message `.google.cloud.redis.cluster.v1beta1.Cluster` is changed docs: A comment for field `psc_configs` in message `.google.cloud.redis.cluster.v1beta1.Cluster` is changed docs: A comment for field `psc_connections` in message `.google.cloud.redis.cluster.v1beta1.Cluster` is changed docs: A comment for field `psc_connection_id` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` is changed docs: A comment for field `address` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` is changed docs: A comment for field `forwarding_rule` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` is changed docs: A comment for field `project_id` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` is changed docs: A comment for field `network` in message `.google.cloud.redis.cluster.v1beta1.PscConnection` is changed docs: A comment for enum value `ALWAYS` in enum `AppendFsync` is changed PiperOrigin-RevId: 716377231 Source-Link: googleapis/googleapis@d4c6826 Source-Link: googleapis/googleapis-gen@1c8cfa3 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUmVkaXMuQ2x1c3Rlci5WMS8uT3dsQm90LnlhbWwiLCJoIjoiMWM4Y2ZhMzk5NmY4NGY2MGEzMWY1Y2Y3NmE2ZmY5MDdmMDkyYTIzMiJ9
- Loading branch information
1 parent
d98513f
commit f27494e
Showing
51 changed files
with
22,348 additions
and
2,201 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
...Redis.Cluster.V1.GeneratedSnippets/CloudRedisClusterClient.BackupClusterAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright 2025 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START redis_v1_generated_CloudRedisCluster_BackupCluster_async_flattened] | ||
using Google.Cloud.Redis.Cluster.V1; | ||
using Google.LongRunning; | ||
using Google.Protobuf.WellKnownTypes; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedCloudRedisClusterClientSnippets | ||
{ | ||
/// <summary>Snippet for BackupClusterAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task BackupClusterAsync() | ||
{ | ||
// Create client | ||
CloudRedisClusterClient cloudRedisClusterClient = await CloudRedisClusterClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/clusters/[CLUSTER]"; | ||
// Make the request | ||
Operation<Cluster, Any> response = await cloudRedisClusterClient.BackupClusterAsync(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<Cluster, Any> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
Cluster result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<Cluster, Any> retrievedResponse = await cloudRedisClusterClient.PollOnceBackupClusterAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
Cluster retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedisCluster_BackupCluster_async_flattened] | ||
} |
67 changes: 67 additions & 0 deletions
67
....V1.GeneratedSnippets/CloudRedisClusterClient.BackupClusterRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright 2025 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START redis_v1_generated_CloudRedisCluster_BackupCluster_async] | ||
using Google.Cloud.Redis.Cluster.V1; | ||
using Google.LongRunning; | ||
using Google.Protobuf.WellKnownTypes; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedCloudRedisClusterClientSnippets | ||
{ | ||
/// <summary>Snippet for BackupClusterAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task BackupClusterRequestObjectAsync() | ||
{ | ||
// Create client | ||
CloudRedisClusterClient cloudRedisClusterClient = await CloudRedisClusterClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
BackupClusterRequest request = new BackupClusterRequest | ||
{ | ||
ClusterName = ClusterName.FromProjectLocationCluster("[PROJECT]", "[LOCATION]", "[CLUSTER]"), | ||
Ttl = new Duration(), | ||
BackupId = "", | ||
}; | ||
// Make the request | ||
Operation<Cluster, Any> response = await cloudRedisClusterClient.BackupClusterAsync(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<Cluster, Any> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
Cluster result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<Cluster, Any> retrievedResponse = await cloudRedisClusterClient.PollOnceBackupClusterAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
Cluster retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedisCluster_BackupCluster_async] | ||
} |
66 changes: 66 additions & 0 deletions
66
...uster.V1.GeneratedSnippets/CloudRedisClusterClient.BackupClusterRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Copyright 2025 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START redis_v1_generated_CloudRedisCluster_BackupCluster_sync] | ||
using Google.Cloud.Redis.Cluster.V1; | ||
using Google.LongRunning; | ||
using Google.Protobuf.WellKnownTypes; | ||
|
||
public sealed partial class GeneratedCloudRedisClusterClientSnippets | ||
{ | ||
/// <summary>Snippet for BackupCluster</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void BackupClusterRequestObject() | ||
{ | ||
// Create client | ||
CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.Create(); | ||
// Initialize request argument(s) | ||
BackupClusterRequest request = new BackupClusterRequest | ||
{ | ||
ClusterName = ClusterName.FromProjectLocationCluster("[PROJECT]", "[LOCATION]", "[CLUSTER]"), | ||
Ttl = new Duration(), | ||
BackupId = "", | ||
}; | ||
// Make the request | ||
Operation<Cluster, Any> response = cloudRedisClusterClient.BackupCluster(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<Cluster, Any> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
Cluster result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<Cluster, Any> retrievedResponse = cloudRedisClusterClient.PollOnceBackupCluster(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
Cluster retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedisCluster_BackupCluster_sync] | ||
} |
62 changes: 62 additions & 0 deletions
62
....V1.GeneratedSnippets/CloudRedisClusterClient.BackupClusterResourceNamesAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright 2025 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START redis_v1_generated_CloudRedisCluster_BackupCluster_async_flattened_resourceNames] | ||
using Google.Cloud.Redis.Cluster.V1; | ||
using Google.LongRunning; | ||
using Google.Protobuf.WellKnownTypes; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedCloudRedisClusterClientSnippets | ||
{ | ||
/// <summary>Snippet for BackupClusterAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task BackupClusterResourceNamesAsync() | ||
{ | ||
// Create client | ||
CloudRedisClusterClient cloudRedisClusterClient = await CloudRedisClusterClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
ClusterName name = ClusterName.FromProjectLocationCluster("[PROJECT]", "[LOCATION]", "[CLUSTER]"); | ||
// Make the request | ||
Operation<Cluster, Any> response = await cloudRedisClusterClient.BackupClusterAsync(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<Cluster, Any> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
Cluster result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<Cluster, Any> retrievedResponse = await cloudRedisClusterClient.PollOnceBackupClusterAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
Cluster retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedisCluster_BackupCluster_async_flattened_resourceNames] | ||
} |
61 changes: 61 additions & 0 deletions
61
...uster.V1.GeneratedSnippets/CloudRedisClusterClient.BackupClusterResourceNamesSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Copyright 2025 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START redis_v1_generated_CloudRedisCluster_BackupCluster_sync_flattened_resourceNames] | ||
using Google.Cloud.Redis.Cluster.V1; | ||
using Google.LongRunning; | ||
using Google.Protobuf.WellKnownTypes; | ||
|
||
public sealed partial class GeneratedCloudRedisClusterClientSnippets | ||
{ | ||
/// <summary>Snippet for BackupCluster</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void BackupClusterResourceNames() | ||
{ | ||
// Create client | ||
CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.Create(); | ||
// Initialize request argument(s) | ||
ClusterName name = ClusterName.FromProjectLocationCluster("[PROJECT]", "[LOCATION]", "[CLUSTER]"); | ||
// Make the request | ||
Operation<Cluster, Any> response = cloudRedisClusterClient.BackupCluster(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<Cluster, Any> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
Cluster result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<Cluster, Any> retrievedResponse = cloudRedisClusterClient.PollOnceBackupCluster(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
Cluster retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedisCluster_BackupCluster_sync_flattened_resourceNames] | ||
} |
61 changes: 61 additions & 0 deletions
61
...loud.Redis.Cluster.V1.GeneratedSnippets/CloudRedisClusterClient.BackupClusterSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Copyright 2025 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START redis_v1_generated_CloudRedisCluster_BackupCluster_sync_flattened] | ||
using Google.Cloud.Redis.Cluster.V1; | ||
using Google.LongRunning; | ||
using Google.Protobuf.WellKnownTypes; | ||
|
||
public sealed partial class GeneratedCloudRedisClusterClientSnippets | ||
{ | ||
/// <summary>Snippet for BackupCluster</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void BackupCluster() | ||
{ | ||
// Create client | ||
CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.Create(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/clusters/[CLUSTER]"; | ||
// Make the request | ||
Operation<Cluster, Any> response = cloudRedisClusterClient.BackupCluster(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<Cluster, Any> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
Cluster result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<Cluster, Any> retrievedResponse = cloudRedisClusterClient.PollOnceBackupCluster(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
Cluster retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedisCluster_BackupCluster_sync_flattened] | ||
} |
Oops, something went wrong.