Skip to content

Commit 4c7dfcf

Browse files
gcf-owl-bot[bot]amanda-tarafa
authored andcommitted
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
1 parent 0d79b04 commit 4c7dfcf

32 files changed

+7444
-379
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.LongRunning;
22+
using System.Collections.Generic;
23+
using System.Threading.Tasks;
24+
25+
public sealed partial class GeneratedPipelineServiceClientSnippets
26+
{
27+
/// <summary>Snippet for BatchCancelPipelineJobsAsync</summary>
28+
/// <remarks>
29+
/// This snippet has been automatically generated and should be regarded as a code template only.
30+
/// It will require modifications to work:
31+
/// - It may require correct/in-range values for request initialization.
32+
/// - It may require specifying regional endpoints when creating the service client as shown in
33+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
34+
/// </remarks>
35+
public async Task BatchCancelPipelineJobsAsync()
36+
{
37+
// Create client
38+
PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync();
39+
// Initialize request argument(s)
40+
string parent = "projects/[PROJECT]/locations/[LOCATION]";
41+
IEnumerable<string> names = new string[]
42+
{
43+
"projects/[PROJECT]/locations/[LOCATION]/pipelineJobs/[PIPELINE_JOB]",
44+
};
45+
// Make the request
46+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = await pipelineServiceClient.BatchCancelPipelineJobsAsync(parent, names);
47+
48+
// Poll until the returned long-running operation is complete
49+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
50+
// Retrieve the operation result
51+
BatchCancelPipelineJobsResponse result = completedResponse.Result;
52+
53+
// Or get the name of the operation
54+
string operationName = response.Name;
55+
// This name can be stored, then the long-running operation retrieved later by name
56+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = await pipelineServiceClient.PollOnceBatchCancelPipelineJobsAsync(operationName);
57+
// Check if the retrieved long-running operation has completed
58+
if (retrievedResponse.IsCompleted)
59+
{
60+
// If it has completed, then access the result
61+
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result;
62+
}
63+
}
64+
}
65+
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened]
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async]
20+
using Google.Api.Gax.ResourceNames;
21+
using Google.Cloud.AIPlatform.V1;
22+
using Google.LongRunning;
23+
using System.Threading.Tasks;
24+
25+
public sealed partial class GeneratedPipelineServiceClientSnippets
26+
{
27+
/// <summary>Snippet for BatchCancelPipelineJobsAsync</summary>
28+
/// <remarks>
29+
/// This snippet has been automatically generated and should be regarded as a code template only.
30+
/// It will require modifications to work:
31+
/// - It may require correct/in-range values for request initialization.
32+
/// - It may require specifying regional endpoints when creating the service client as shown in
33+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
34+
/// </remarks>
35+
public async Task BatchCancelPipelineJobsRequestObjectAsync()
36+
{
37+
// Create client
38+
PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync();
39+
// Initialize request argument(s)
40+
BatchCancelPipelineJobsRequest request = new BatchCancelPipelineJobsRequest
41+
{
42+
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
43+
PipelineJobNames =
44+
{
45+
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"),
46+
},
47+
};
48+
// Make the request
49+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = await pipelineServiceClient.BatchCancelPipelineJobsAsync(request);
50+
51+
// Poll until the returned long-running operation is complete
52+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
53+
// Retrieve the operation result
54+
BatchCancelPipelineJobsResponse result = completedResponse.Result;
55+
56+
// Or get the name of the operation
57+
string operationName = response.Name;
58+
// This name can be stored, then the long-running operation retrieved later by name
59+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = await pipelineServiceClient.PollOnceBatchCancelPipelineJobsAsync(operationName);
60+
// Check if the retrieved long-running operation has completed
61+
if (retrievedResponse.IsCompleted)
62+
{
63+
// If it has completed, then access the result
64+
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result;
65+
}
66+
}
67+
}
68+
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async]
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync]
20+
using Google.Api.Gax.ResourceNames;
21+
using Google.Cloud.AIPlatform.V1;
22+
using Google.LongRunning;
23+
24+
public sealed partial class GeneratedPipelineServiceClientSnippets
25+
{
26+
/// <summary>Snippet for BatchCancelPipelineJobs</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public void BatchCancelPipelineJobsRequestObject()
35+
{
36+
// Create client
37+
PipelineServiceClient pipelineServiceClient = PipelineServiceClient.Create();
38+
// Initialize request argument(s)
39+
BatchCancelPipelineJobsRequest request = new BatchCancelPipelineJobsRequest
40+
{
41+
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
42+
PipelineJobNames =
43+
{
44+
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"),
45+
},
46+
};
47+
// Make the request
48+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = pipelineServiceClient.BatchCancelPipelineJobs(request);
49+
50+
// Poll until the returned long-running operation is complete
51+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = response.PollUntilCompleted();
52+
// Retrieve the operation result
53+
BatchCancelPipelineJobsResponse result = completedResponse.Result;
54+
55+
// Or get the name of the operation
56+
string operationName = response.Name;
57+
// This name can be stored, then the long-running operation retrieved later by name
58+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = pipelineServiceClient.PollOnceBatchCancelPipelineJobs(operationName);
59+
// Check if the retrieved long-running operation has completed
60+
if (retrievedResponse.IsCompleted)
61+
{
62+
// If it has completed, then access the result
63+
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result;
64+
}
65+
}
66+
}
67+
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync]
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened_resourceNames]
20+
using Google.Api.Gax.ResourceNames;
21+
using Google.Cloud.AIPlatform.V1;
22+
using Google.LongRunning;
23+
using System.Collections.Generic;
24+
using System.Threading.Tasks;
25+
26+
public sealed partial class GeneratedPipelineServiceClientSnippets
27+
{
28+
/// <summary>Snippet for BatchCancelPipelineJobsAsync</summary>
29+
/// <remarks>
30+
/// This snippet has been automatically generated and should be regarded as a code template only.
31+
/// It will require modifications to work:
32+
/// - It may require correct/in-range values for request initialization.
33+
/// - It may require specifying regional endpoints when creating the service client as shown in
34+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
35+
/// </remarks>
36+
public async Task BatchCancelPipelineJobsResourceNamesAsync()
37+
{
38+
// Create client
39+
PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync();
40+
// Initialize request argument(s)
41+
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
42+
IEnumerable<PipelineJobName> names = new PipelineJobName[]
43+
{
44+
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"),
45+
};
46+
// Make the request
47+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = await pipelineServiceClient.BatchCancelPipelineJobsAsync(parent, names);
48+
49+
// Poll until the returned long-running operation is complete
50+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
51+
// Retrieve the operation result
52+
BatchCancelPipelineJobsResponse result = completedResponse.Result;
53+
54+
// Or get the name of the operation
55+
string operationName = response.Name;
56+
// This name can be stored, then the long-running operation retrieved later by name
57+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = await pipelineServiceClient.PollOnceBatchCancelPipelineJobsAsync(operationName);
58+
// Check if the retrieved long-running operation has completed
59+
if (retrievedResponse.IsCompleted)
60+
{
61+
// If it has completed, then access the result
62+
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result;
63+
}
64+
}
65+
}
66+
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async_flattened_resourceNames]
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync_flattened_resourceNames]
20+
using Google.Api.Gax.ResourceNames;
21+
using Google.Cloud.AIPlatform.V1;
22+
using Google.LongRunning;
23+
using System.Collections.Generic;
24+
25+
public sealed partial class GeneratedPipelineServiceClientSnippets
26+
{
27+
/// <summary>Snippet for BatchCancelPipelineJobs</summary>
28+
/// <remarks>
29+
/// This snippet has been automatically generated and should be regarded as a code template only.
30+
/// It will require modifications to work:
31+
/// - It may require correct/in-range values for request initialization.
32+
/// - It may require specifying regional endpoints when creating the service client as shown in
33+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
34+
/// </remarks>
35+
public void BatchCancelPipelineJobsResourceNames()
36+
{
37+
// Create client
38+
PipelineServiceClient pipelineServiceClient = PipelineServiceClient.Create();
39+
// Initialize request argument(s)
40+
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
41+
IEnumerable<PipelineJobName> names = new PipelineJobName[]
42+
{
43+
PipelineJobName.FromProjectLocationPipelineJob("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"),
44+
};
45+
// Make the request
46+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> response = pipelineServiceClient.BatchCancelPipelineJobs(parent, names);
47+
48+
// Poll until the returned long-running operation is complete
49+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> completedResponse = response.PollUntilCompleted();
50+
// Retrieve the operation result
51+
BatchCancelPipelineJobsResponse result = completedResponse.Result;
52+
53+
// Or get the name of the operation
54+
string operationName = response.Name;
55+
// This name can be stored, then the long-running operation retrieved later by name
56+
Operation<BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> retrievedResponse = pipelineServiceClient.PollOnceBatchCancelPipelineJobs(operationName);
57+
// Check if the retrieved long-running operation has completed
58+
if (retrievedResponse.IsCompleted)
59+
{
60+
// If it has completed, then access the result
61+
BatchCancelPipelineJobsResponse retrievedResult = retrievedResponse.Result;
62+
}
63+
}
64+
}
65+
// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync_flattened_resourceNames]
66+
}

0 commit comments

Comments
 (0)