-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for AUTH functionality
feat: add support for TLS functionality feat: add secondary_ip_range field PiperOrigin-RevId: 434816216 Source-Link: googleapis/googleapis@7cef847 Source-Link: googleapis/googleapis-gen@b4cef4c Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUmVkaXMuVjEvLk93bEJvdC55YW1sIiwiaCI6ImI0Y2VmNGNhYmJlZDgzYjE5NGNkYzA3YWQ4NDdlOTdmZGIyMzNiM2MifQ==
- Loading branch information
1 parent
d88df51
commit bed04f2
Showing
14 changed files
with
2,812 additions
and
899 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
....Cloud.Redis.V1.GeneratedSnippets/CloudRedisClient.GetInstanceAuthStringAsyncSnippet.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,41 @@ | ||
// Copyright 2022 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 Google.Cloud.Redis.V1.Snippets | ||
{ | ||
// [START redis_v1_generated_CloudRedis_GetInstanceAuthString_async_flattened] | ||
using Google.Cloud.Redis.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedCloudRedisClientSnippets | ||
{ | ||
/// <summary>Snippet for GetInstanceAuthStringAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task GetInstanceAuthStringAsync() | ||
{ | ||
// Create client | ||
CloudRedisClient cloudRedisClient = await CloudRedisClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; | ||
// Make the request | ||
InstanceAuthString response = await cloudRedisClient.GetInstanceAuthStringAsync(name); | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedis_GetInstanceAuthString_async_flattened] | ||
} |
44 changes: 44 additions & 0 deletions
44
...V1.GeneratedSnippets/CloudRedisClient.GetInstanceAuthStringRequestObjectAsyncSnippet.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,44 @@ | ||
// Copyright 2022 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 Google.Cloud.Redis.V1.Snippets | ||
{ | ||
// [START redis_v1_generated_CloudRedis_GetInstanceAuthString_async] | ||
using Google.Cloud.Redis.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedCloudRedisClientSnippets | ||
{ | ||
/// <summary>Snippet for GetInstanceAuthStringAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task GetInstanceAuthStringRequestObjectAsync() | ||
{ | ||
// Create client | ||
CloudRedisClient cloudRedisClient = await CloudRedisClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
GetInstanceAuthStringRequest request = new GetInstanceAuthStringRequest | ||
{ | ||
InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), | ||
}; | ||
// Make the request | ||
InstanceAuthString response = await cloudRedisClient.GetInstanceAuthStringAsync(request); | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedis_GetInstanceAuthString_async] | ||
} |
43 changes: 43 additions & 0 deletions
43
...edis.V1.GeneratedSnippets/CloudRedisClient.GetInstanceAuthStringRequestObjectSnippet.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,43 @@ | ||
// Copyright 2022 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 Google.Cloud.Redis.V1.Snippets | ||
{ | ||
// [START redis_v1_generated_CloudRedis_GetInstanceAuthString_sync] | ||
using Google.Cloud.Redis.V1; | ||
|
||
public sealed partial class GeneratedCloudRedisClientSnippets | ||
{ | ||
/// <summary>Snippet for GetInstanceAuthString</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void GetInstanceAuthStringRequestObject() | ||
{ | ||
// Create client | ||
CloudRedisClient cloudRedisClient = CloudRedisClient.Create(); | ||
// Initialize request argument(s) | ||
GetInstanceAuthStringRequest request = new GetInstanceAuthStringRequest | ||
{ | ||
InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), | ||
}; | ||
// Make the request | ||
InstanceAuthString response = cloudRedisClient.GetInstanceAuthString(request); | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedis_GetInstanceAuthString_sync] | ||
} |
41 changes: 41 additions & 0 deletions
41
...V1.GeneratedSnippets/CloudRedisClient.GetInstanceAuthStringResourceNamesAsyncSnippet.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,41 @@ | ||
// Copyright 2022 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 Google.Cloud.Redis.V1.Snippets | ||
{ | ||
// [START redis_v1_generated_CloudRedis_GetInstanceAuthString_async_flattened_resourceNames] | ||
using Google.Cloud.Redis.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedCloudRedisClientSnippets | ||
{ | ||
/// <summary>Snippet for GetInstanceAuthStringAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task GetInstanceAuthStringResourceNamesAsync() | ||
{ | ||
// Create client | ||
CloudRedisClient cloudRedisClient = await CloudRedisClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); | ||
// Make the request | ||
InstanceAuthString response = await cloudRedisClient.GetInstanceAuthStringAsync(name); | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedis_GetInstanceAuthString_async_flattened_resourceNames] | ||
} |
40 changes: 40 additions & 0 deletions
40
...edis.V1.GeneratedSnippets/CloudRedisClient.GetInstanceAuthStringResourceNamesSnippet.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,40 @@ | ||
// Copyright 2022 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 Google.Cloud.Redis.V1.Snippets | ||
{ | ||
// [START redis_v1_generated_CloudRedis_GetInstanceAuthString_sync_flattened_resourceNames] | ||
using Google.Cloud.Redis.V1; | ||
|
||
public sealed partial class GeneratedCloudRedisClientSnippets | ||
{ | ||
/// <summary>Snippet for GetInstanceAuthString</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void GetInstanceAuthStringResourceNames() | ||
{ | ||
// Create client | ||
CloudRedisClient cloudRedisClient = CloudRedisClient.Create(); | ||
// Initialize request argument(s) | ||
InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); | ||
// Make the request | ||
InstanceAuthString response = cloudRedisClient.GetInstanceAuthString(name); | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedis_GetInstanceAuthString_sync_flattened_resourceNames] | ||
} |
40 changes: 40 additions & 0 deletions
40
...oogle.Cloud.Redis.V1.GeneratedSnippets/CloudRedisClient.GetInstanceAuthStringSnippet.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,40 @@ | ||
// Copyright 2022 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 Google.Cloud.Redis.V1.Snippets | ||
{ | ||
// [START redis_v1_generated_CloudRedis_GetInstanceAuthString_sync_flattened] | ||
using Google.Cloud.Redis.V1; | ||
|
||
public sealed partial class GeneratedCloudRedisClientSnippets | ||
{ | ||
/// <summary>Snippet for GetInstanceAuthString</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void GetInstanceAuthString() | ||
{ | ||
// Create client | ||
CloudRedisClient cloudRedisClient = CloudRedisClient.Create(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; | ||
// Make the request | ||
InstanceAuthString response = cloudRedisClient.GetInstanceAuthString(name); | ||
} | ||
} | ||
// [END redis_v1_generated_CloudRedis_GetInstanceAuthString_sync_flattened] | ||
} |
Oops, something went wrong.