Skip to content

Commit

Permalink
fix: extend timeouts for check consistency
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 717421943

Source-Link: googleapis/googleapis@07737e5

Source-Link: googleapis/googleapis-gen@c41ade9
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmlndGFibGUuQWRtaW4uVjIvLk93bEJvdC55YW1sIiwiaCI6ImM0MWFkZTllZjdhOTBhMWUzOGJkYTc4MTMyNDQ3YTRiN2U1MGMxMWQifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Jan 20, 2025
1 parent 26c2a9d commit 9755d46
Show file tree
Hide file tree
Showing 301 changed files with 93,226 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// 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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened]
using Google.Cloud.Bigtable.Admin.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedBigtableInstanceAdminClientSnippets
{
/// <summary>Snippet for CreateAppProfileAsync</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 CreateAppProfileAsync()
{
// Create client
BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/instances/[INSTANCE]";
string appProfileId = "";
AppProfile appProfile = new AppProfile();
// Make the request
AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(parent, appProfileId, appProfile);
}
}
// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// 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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async]
using Google.Cloud.Bigtable.Admin.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedBigtableInstanceAdminClientSnippets
{
/// <summary>Snippet for CreateAppProfileAsync</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 CreateAppProfileRequestObjectAsync()
{
// Create client
BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync();
// Initialize request argument(s)
CreateAppProfileRequest request = new CreateAppProfileRequest
{
ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
AppProfileId = "",
AppProfile = new AppProfile(),
IgnoreWarnings = false,
};
// Make the request
AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(request);
}
}
// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// 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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync]
using Google.Cloud.Bigtable.Admin.V2;

public sealed partial class GeneratedBigtableInstanceAdminClientSnippets
{
/// <summary>Snippet for CreateAppProfile</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 CreateAppProfileRequestObject()
{
// Create client
BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create();
// Initialize request argument(s)
CreateAppProfileRequest request = new CreateAppProfileRequest
{
ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
AppProfileId = "",
AppProfile = new AppProfile(),
IgnoreWarnings = false,
};
// Make the request
AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(request);
}
}
// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// 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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened_resourceNames]
using Google.Cloud.Bigtable.Admin.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedBigtableInstanceAdminClientSnippets
{
/// <summary>Snippet for CreateAppProfileAsync</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 CreateAppProfileResourceNamesAsync()
{
// Create client
BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
string appProfileId = "";
AppProfile appProfile = new AppProfile();
// Make the request
AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(parent, appProfileId, appProfile);
}
}
// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// 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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened_resourceNames]
using Google.Cloud.Bigtable.Admin.V2;

public sealed partial class GeneratedBigtableInstanceAdminClientSnippets
{
/// <summary>Snippet for CreateAppProfile</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 CreateAppProfileResourceNames()
{
// Create client
BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
string appProfileId = "";
AppProfile appProfile = new AppProfile();
// Make the request
AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(parent, appProfileId, appProfile);
}
}
// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// 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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened]
using Google.Cloud.Bigtable.Admin.V2;

public sealed partial class GeneratedBigtableInstanceAdminClientSnippets
{
/// <summary>Snippet for CreateAppProfile</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 CreateAppProfile()
{
// Create client
BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/instances/[INSTANCE]";
string appProfileId = "";
AppProfile appProfile = new AppProfile();
// Make the request
AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(parent, appProfileId, appProfile);
}
}
// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// 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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened]
using Google.Cloud.Bigtable.Admin.V2;
using Google.LongRunning;
using System.Threading.Tasks;

public sealed partial class GeneratedBigtableInstanceAdminClientSnippets
{
/// <summary>Snippet for CreateClusterAsync</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 CreateClusterAsync()
{
// Create client
BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/instances/[INSTANCE]";
string clusterId = "";
Cluster cluster = new Cluster();
// Make the request
Operation<Cluster, CreateClusterMetadata> response = await bigtableInstanceAdminClient.CreateClusterAsync(parent, clusterId, cluster);

// Poll until the returned long-running operation is complete
Operation<Cluster, CreateClusterMetadata> 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, CreateClusterMetadata> retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateClusterAsync(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 bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened]
}
Loading

0 comments on commit 9755d46

Please sign in to comment.