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 value
NVIDIA_H100_80GB
is added to enum AcceleratorType
feat: A new enum `HarmSeverity` is added feat: A new field `probability_score` is added to message `.google.cloud.aiplatform.v1.SafetyRating` feat: A new field `severity` is added to message `.google.cloud.aiplatform.v1.SafetyRating` feat: A new field `severity_score` is added to message `.google.cloud.aiplatform.v1.SafetyRating` feat: A new value `BLOCKLIST` is added to enum `FinishReason` feat: A new value `PROHIBITED_CONTENT` is added to enum `FinishReason` feat: A new value `SPII` is added to enum `FinishReason` feat: A new field `grounding_metadata` is added to message `.google.cloud.aiplatform.v1.Candidate` feat: A new message `Segment` is added feat: A new message `GroundingAttribution` is added feat: A new message `GroundingMetadata` is added feat: A new field `display_name` is added to message `.google.cloud.aiplatform.v1.DatasetVersion` feat: A new field `metadata` is added to message `.google.cloud.aiplatform.v1.DatasetVersion` feat: A new field `project_number` is added to message `.google.cloud.aiplatform.v1.FeatureView` feat: A new message `SyncSummary` is added feat: A new field `sync_summary` is added to message `.google.cloud.aiplatform.v1.FeatureViewSync` feat: A new value `NOT_EQUAL` is added to enum `Operator` feat: A new message `BaseModelSource` is added feat: A new field `base_model_source` is added to message `.google.cloud.aiplatform.v1.Model` feat: A new message `ModelGardenSource` is added feat: A new message `GenieSource` is added feat: A new method `BatchDeletePipelineJobs` is added to service `PipelineService` feat: A new method `BatchCancelPipelineJobs` is added to service `PipelineService` feat: A new message `BatchCancelPipelineJobsOperationMetadata` is added feat: A new message `BatchDeletePipelineJobsRequest` is added feat: A new message `BatchDeletePipelineJobsResponse` is added feat: A new message `BatchCancelPipelineJobsRequest` is added feat: A new message `BatchCancelPipelineJobsResponse` is added feat: A new field `retrieval` is added to message `.google.cloud.aiplatform.v1.Tool` feat: A new field `google_search_retrieval` is added to message `.google.cloud.aiplatform.v1.Tool` feat: A new message `Retrieval` is added feat: A new message `VertexAISearch` is added feat: A new message `GoogleSearchRetrieval` is added docs: various documentation improvements PiperOrigin-RevId: 614723899 Source-Link: googleapis/googleapis@eebdbe4 Source-Link: googleapis/googleapis-gen@e9faa30 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiZTlmYWEzMGVkYjE4NWQyZjIyYWU4M2U0ZWI5NTQxNGY0MjE5NGViNyJ9
- Loading branch information
1 parent
0d79b04
commit 4c7dfcf
Showing
32 changed files
with
7,444 additions
and
379 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
...tform.V1.GeneratedSnippets/PipelineServiceClient.BatchCancelPipelineJobsAsyncSnippet.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,66 @@ | ||
// 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 aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened] | ||
using Google.Cloud.AIPlatform.V1; | ||
using Google.LongRunning; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedPipelineServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for BatchCancelPipelineJobsAsync</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 BatchCancelPipelineJobsAsync() | ||
{ | ||
// Create client | ||
PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]/locations/[LOCATION]"; | ||
IEnumerable<string> names = new string[] | ||
{ | ||
"projects/[PROJECT]/locations/[LOCATION]/pipelineJobs/[PIPELINE_JOB]", | ||
}; | ||
// Make the request | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = await pipelineServiceClient.BatchCancelPipelineJobsAsync(parent, names); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
BatchCancelPipelineJobsResponse 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<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = await pipelineServiceClient.PollOnceBatchCancelPipelineJobsAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened] | ||
} |
69 changes: 69 additions & 0 deletions
69
...ratedSnippets/PipelineServiceClient.BatchCancelPipelineJobsRequestObjectAsyncSnippet.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,69 @@ | ||
// 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 aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.AIPlatform.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedPipelineServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for BatchCancelPipelineJobsAsync</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 BatchCancelPipelineJobsRequestObjectAsync() | ||
{ | ||
// Create client | ||
PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
BatchCancelPipelineJobsRequest request = new BatchCancelPipelineJobsRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
PipelineJobNames = | ||
{ | ||
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"), | ||
}, | ||
}; | ||
// Make the request | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = await pipelineServiceClient.BatchCancelPipelineJobsAsync(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
BatchCancelPipelineJobsResponse 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<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = await pipelineServiceClient.PollOnceBatchCancelPipelineJobsAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async] | ||
} |
68 changes: 68 additions & 0 deletions
68
....GeneratedSnippets/PipelineServiceClient.BatchCancelPipelineJobsRequestObjectSnippet.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,68 @@ | ||
// 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 aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.AIPlatform.V1; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedPipelineServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for BatchCancelPipelineJobs</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 BatchCancelPipelineJobsRequestObject() | ||
{ | ||
// Create client | ||
PipelineServiceClient pipelineServiceClient = PipelineServiceClient.Create(); | ||
// Initialize request argument(s) | ||
BatchCancelPipelineJobsRequest request = new BatchCancelPipelineJobsRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
PipelineJobNames = | ||
{ | ||
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"), | ||
}, | ||
}; | ||
// Make the request | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = pipelineServiceClient.BatchCancelPipelineJobs(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
BatchCancelPipelineJobsResponse 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<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = pipelineServiceClient.PollOnceBatchCancelPipelineJobs(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync] | ||
} |
67 changes: 67 additions & 0 deletions
67
...ratedSnippets/PipelineServiceClient.BatchCancelPipelineJobsResourceNamesAsyncSnippet.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,67 @@ | ||
// 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 aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.AIPlatform.V1; | ||
using Google.LongRunning; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedPipelineServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for BatchCancelPipelineJobsAsync</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 BatchCancelPipelineJobsResourceNamesAsync() | ||
{ | ||
// Create client | ||
PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
IEnumerable<PipelineJobName> names = new PipelineJobName[] | ||
{ | ||
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"), | ||
}; | ||
// Make the request | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = await pipelineServiceClient.BatchCancelPipelineJobsAsync(parent, names); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
BatchCancelPipelineJobsResponse 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<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = await pipelineServiceClient.PollOnceBatchCancelPipelineJobsAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened_resourceNames] | ||
} |
66 changes: 66 additions & 0 deletions
66
....GeneratedSnippets/PipelineServiceClient.BatchCancelPipelineJobsResourceNamesSnippet.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,66 @@ | ||
// 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 aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.AIPlatform.V1; | ||
using Google.LongRunning; | ||
using System.Collections.Generic; | ||
|
||
public sealed partial class GeneratedPipelineServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for BatchCancelPipelineJobs</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 BatchCancelPipelineJobsResourceNames() | ||
{ | ||
// Create client | ||
PipelineServiceClient pipelineServiceClient = PipelineServiceClient.Create(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
IEnumerable<PipelineJobName> names = new PipelineJobName[] | ||
{ | ||
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"), | ||
}; | ||
// Make the request | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = pipelineServiceClient.BatchCancelPipelineJobs(parent, names); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
BatchCancelPipelineJobsResponse 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<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = pipelineServiceClient.PollOnceBatchCancelPipelineJobs(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync_flattened_resourceNames] | ||
} |
Oops, something went wrong.