-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: A new method
CheckUpgrade
is added to service Environments
feat: A new field `satisfies_pzi` is added to message `.google.cloud.orchestration.airflow.service.v1.Environment` feat: A new message `CheckUpgradeRequest` is added feat: A new field `airflow_metadata_retention_config` is added to message `.google.cloud.orchestration.airflow.service.v1.DataRetentionConfig` feat: A new message `AirflowMetadataRetentionPolicyConfig` is added docs: A comment for field `maintenance_window` in message `.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig` is changed docs: A comment for message `WorkloadsConfig` is changed docs: A comment for field `storage_mode` in message `.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig` is changed PiperOrigin-RevId: 673766368 Source-Link: googleapis/googleapis@0f44538 Source-Link: googleapis/googleapis-gen@802f7c8 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuT3JjaGVzdHJhdGlvbi5BaXJmbG93LlNlcnZpY2UuVjEvLk93bEJvdC55YW1sIiwiaCI6IjgwMmY3YzhjZGY4ODc1MjdlOTlmYTljMGQ3NzRhZGZkMzNhMTZmZmUifQ==
- Loading branch information
1 parent
dabdcad
commit a8d79de
Showing
8 changed files
with
1,337 additions
and
188 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
...ervice.V1.GeneratedSnippets/EnvironmentsClient.CheckUpgradeRequestObjectAsyncSnippet.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,65 @@ | ||
// 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 composer_v1_generated_Environments_CheckUpgrade_async] | ||
using Google.Cloud.Orchestration.Airflow.Service.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedEnvironmentsClientSnippets | ||
{ | ||
/// <summary>Snippet for CheckUpgradeAsync</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 CheckUpgradeRequestObjectAsync() | ||
{ | ||
// Create client | ||
EnvironmentsClient environmentsClient = await EnvironmentsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
CheckUpgradeRequest request = new CheckUpgradeRequest | ||
{ | ||
Environment = "", | ||
ImageVersion = "", | ||
}; | ||
// Make the request | ||
Operation<CheckUpgradeResponse, OperationMetadata> response = await environmentsClient.CheckUpgradeAsync(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<CheckUpgradeResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
CheckUpgradeResponse 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<CheckUpgradeResponse, OperationMetadata> retrievedResponse = await environmentsClient.PollOnceCheckUpgradeAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
CheckUpgradeResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END composer_v1_generated_Environments_CheckUpgrade_async] | ||
} |
64 changes: 64 additions & 0 deletions
64
...low.Service.V1.GeneratedSnippets/EnvironmentsClient.CheckUpgradeRequestObjectSnippet.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,64 @@ | ||
// 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 composer_v1_generated_Environments_CheckUpgrade_sync] | ||
using Google.Cloud.Orchestration.Airflow.Service.V1; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedEnvironmentsClientSnippets | ||
{ | ||
/// <summary>Snippet for CheckUpgrade</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 CheckUpgradeRequestObject() | ||
{ | ||
// Create client | ||
EnvironmentsClient environmentsClient = EnvironmentsClient.Create(); | ||
// Initialize request argument(s) | ||
CheckUpgradeRequest request = new CheckUpgradeRequest | ||
{ | ||
Environment = "", | ||
ImageVersion = "", | ||
}; | ||
// Make the request | ||
Operation<CheckUpgradeResponse, OperationMetadata> response = environmentsClient.CheckUpgrade(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<CheckUpgradeResponse, OperationMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
CheckUpgradeResponse 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<CheckUpgradeResponse, OperationMetadata> retrievedResponse = environmentsClient.PollOnceCheckUpgrade(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
CheckUpgradeResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END composer_v1_generated_Environments_CheckUpgrade_sync] | ||
} |
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
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
Oops, something went wrong.