Skip to content

Commit

Permalink
feat: A new field dns_endpoint is added to message `.google.cloud.d…
Browse files Browse the repository at this point in the history
…eploy.v1.GkeCluster`

docs: A comment for field `internal_ip` in message `.google.cloud.deploy.v1.GkeCluster` is changed
docs: A comment for field `skaffold_version` in message `.google.cloud.deploy.v1.Release` is changed
docs: A comment for field `requested_cancellation` in message `.google.cloud.deploy.v1.OperationMetadata` is changed

PiperOrigin-RevId: 702047981

Source-Link: googleapis/googleapis@99a5e29

Source-Link: googleapis/googleapis-gen@2fdcaaf
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGVwbG95LlYxLy5Pd2xCb3QueWFtbCIsImgiOiIyZmRjYWFmZTVlMWViZDZmZTE5MjFjYmI1M2Y0MTQyNzA4NjQ2MmRmIn0=
  • Loading branch information
gcf-owl-bot[bot] committed Dec 2, 2024
1 parent cad74b5 commit bd38fcb
Show file tree
Hide file tree
Showing 285 changed files with 116,856 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AbandonRelease_async_flattened]
using Google.Cloud.Deploy.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AbandonReleaseAsync</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 AbandonReleaseAsync()
{
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(name);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AbandonRelease_async]
using Google.Cloud.Deploy.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AbandonReleaseAsync</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 AbandonReleaseRequestObjectAsync()
{
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
AbandonReleaseRequest request = new AbandonReleaseRequest
{
ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(request);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync]
using Google.Cloud.Deploy.V1;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AbandonRelease</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 AbandonReleaseRequestObject()
{
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
AbandonReleaseRequest request = new AbandonReleaseRequest
{
ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
AbandonReleaseResponse response = cloudDeployClient.AbandonRelease(request);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AbandonRelease_async_flattened_resourceNames]
using Google.Cloud.Deploy.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AbandonReleaseAsync</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 AbandonReleaseResourceNamesAsync()
{
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(name);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync_flattened_resourceNames]
using Google.Cloud.Deploy.V1;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AbandonRelease</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 AbandonReleaseResourceNames()
{
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
AbandonReleaseResponse response = cloudDeployClient.AbandonRelease(name);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync_flattened]
using Google.Cloud.Deploy.V1;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AbandonRelease</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 AbandonRelease()
{
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
AbandonReleaseResponse response = cloudDeployClient.AbandonRelease(name);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_async_flattened]
using Google.Cloud.Deploy.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AdvanceRolloutAsync</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 AdvanceRolloutAsync()
{
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
string phaseId = "";
// Make the request
AdvanceRolloutResponse response = await cloudDeployClient.AdvanceRolloutAsync(name, phaseId);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Copyright 2024 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 clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_async]
using Google.Cloud.Deploy.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudDeployClientSnippets
{
/// <summary>Snippet for AdvanceRolloutAsync</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 AdvanceRolloutRequestObjectAsync()
{
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
AdvanceRolloutRequest request = new AdvanceRolloutRequest
{
RolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
PhaseId = "",
OverrideDeployPolicyAsDeployPolicyNames =
{
DeployPolicyName.FromProjectLocationDeployPolicy("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]"),
},
};
// Make the request
AdvanceRolloutResponse response = await cloudDeployClient.AdvanceRolloutAsync(request);
}
}
// [END clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_async]
}
Loading

0 comments on commit bd38fcb

Please sign in to comment.