Skip to content

Commit

Permalink
feat: A new value NVIDIA_H100_80GB is added to enum AcceleratorType
Browse files Browse the repository at this point in the history
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
gcf-owl-bot[bot] authored and amanda-tarafa committed Mar 11, 2024
1 parent 0d79b04 commit 4c7dfcf
Show file tree
Hide file tree
Showing 32 changed files with 7,444 additions and 379 deletions.
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}

0 comments on commit 4c7dfcf

Please sign in to comment.