Skip to content

Commit

Permalink
feat: add support for AUTH functionality
Browse files Browse the repository at this point in the history
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
gcf-owl-bot[bot] authored and jskeet committed Mar 15, 2022
1 parent d88df51 commit bed04f2
Show file tree
Hide file tree
Showing 14 changed files with 2,812 additions and 899 deletions.
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}

0 comments on commit bed04f2

Please sign in to comment.