Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: correct link in ListTasks documentation
PiperOrigin-RevId: 628409831 Source-Link: googleapis/googleapis@2802c22 Source-Link: googleapis/googleapis-gen@6f62105 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuTWFwcy5GbGVldEVuZ2luZS5EZWxpdmVyeS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNmY2MjEwNTY2MWRjMDE4ZDBmOTAyMDdlZDFhYWY4NTNlOWJhYTQ0YiJ9
- Loading branch information
1 parent
b44f916
commit 977c1d3
Showing
72 changed files
with
24,831 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
...V1.GeneratedSnippets/DeliveryServiceClient.BatchCreateTasksRequestObjectAsyncSnippet.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,54 @@ | ||
// 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! | ||
|
||
#pragma warning disable CS8981 | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START fleetengine_v1_generated_DeliveryService_BatchCreateTasks_async] | ||
using System.Threading.Tasks; | ||
using gmfdv = Google.Maps.FleetEngine.Delivery.V1; | ||
|
||
public sealed partial class GeneratedDeliveryServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for BatchCreateTasksAsync</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 BatchCreateTasksRequestObjectAsync() | ||
{ | ||
// Create client | ||
gmfdv::DeliveryServiceClient deliveryServiceClient = await gmfdv::DeliveryServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
gmfdv::BatchCreateTasksRequest request = new gmfdv::BatchCreateTasksRequest | ||
{ | ||
Header = new gmfdv::DeliveryRequestHeader(), | ||
ParentAsProviderName = gmfdv::ProviderName.FromProvider("[PROVIDER]"), | ||
Requests = | ||
{ | ||
new gmfdv::CreateTaskRequest(), | ||
}, | ||
}; | ||
// Make the request | ||
gmfdv::BatchCreateTasksResponse response = await deliveryServiceClient.BatchCreateTasksAsync(request); | ||
} | ||
} | ||
// [END fleetengine_v1_generated_DeliveryService_BatchCreateTasks_async] | ||
} |
51 changes: 51 additions & 0 deletions
51
...very.V1.GeneratedSnippets/DeliveryServiceClient.BatchCreateTasksRequestObjectSnippet.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,51 @@ | ||
// 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 fleetengine_v1_generated_DeliveryService_BatchCreateTasks_sync] | ||
using Google.Maps.FleetEngine.Delivery.V1; | ||
|
||
public sealed partial class GeneratedDeliveryServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for BatchCreateTasks</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 BatchCreateTasksRequestObject() | ||
{ | ||
// Create client | ||
DeliveryServiceClient deliveryServiceClient = DeliveryServiceClient.Create(); | ||
// Initialize request argument(s) | ||
BatchCreateTasksRequest request = new BatchCreateTasksRequest | ||
{ | ||
Header = new DeliveryRequestHeader(), | ||
ParentAsProviderName = ProviderName.FromProvider("[PROVIDER]"), | ||
Requests = | ||
{ | ||
new CreateTaskRequest(), | ||
}, | ||
}; | ||
// Make the request | ||
BatchCreateTasksResponse response = deliveryServiceClient.BatchCreateTasks(request); | ||
} | ||
} | ||
// [END fleetengine_v1_generated_DeliveryService_BatchCreateTasks_sync] | ||
} |
48 changes: 48 additions & 0 deletions
48
...elivery.V1.GeneratedSnippets/DeliveryServiceClient.CreateDeliveryVehicleAsyncSnippet.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,48 @@ | ||
// 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! | ||
|
||
#pragma warning disable CS8981 | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_async_flattened] | ||
using System.Threading.Tasks; | ||
using gmfdv = Google.Maps.FleetEngine.Delivery.V1; | ||
|
||
public sealed partial class GeneratedDeliveryServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateDeliveryVehicleAsync</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 CreateDeliveryVehicleAsync() | ||
{ | ||
// Create client | ||
gmfdv::DeliveryServiceClient deliveryServiceClient = await gmfdv::DeliveryServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = ""; | ||
gmfdv::DeliveryVehicle deliveryVehicle = new gmfdv::DeliveryVehicle(); | ||
string deliveryVehicleId = ""; | ||
// Make the request | ||
gmfdv::DeliveryVehicle response = await deliveryServiceClient.CreateDeliveryVehicleAsync(parent, deliveryVehicle, deliveryVehicleId); | ||
} | ||
} | ||
// [END fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_async_flattened] | ||
} |
52 changes: 52 additions & 0 deletions
52
...neratedSnippets/DeliveryServiceClient.CreateDeliveryVehicleRequestObjectAsyncSnippet.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,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! | ||
|
||
#pragma warning disable CS8981 | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_async] | ||
using System.Threading.Tasks; | ||
using gmfdv = Google.Maps.FleetEngine.Delivery.V1; | ||
|
||
public sealed partial class GeneratedDeliveryServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateDeliveryVehicleAsync</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 CreateDeliveryVehicleRequestObjectAsync() | ||
{ | ||
// Create client | ||
gmfdv::DeliveryServiceClient deliveryServiceClient = await gmfdv::DeliveryServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
gmfdv::CreateDeliveryVehicleRequest request = new gmfdv::CreateDeliveryVehicleRequest | ||
{ | ||
Header = new gmfdv::DeliveryRequestHeader(), | ||
Parent = "", | ||
DeliveryVehicleId = "", | ||
DeliveryVehicle = new gmfdv::DeliveryVehicle(), | ||
}; | ||
// Make the request | ||
gmfdv::DeliveryVehicle response = await deliveryServiceClient.CreateDeliveryVehicleAsync(request); | ||
} | ||
} | ||
// [END fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_async] | ||
} |
49 changes: 49 additions & 0 deletions
49
...V1.GeneratedSnippets/DeliveryServiceClient.CreateDeliveryVehicleRequestObjectSnippet.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,49 @@ | ||
// 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 fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_sync] | ||
using Google.Maps.FleetEngine.Delivery.V1; | ||
|
||
public sealed partial class GeneratedDeliveryServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateDeliveryVehicle</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 CreateDeliveryVehicleRequestObject() | ||
{ | ||
// Create client | ||
DeliveryServiceClient deliveryServiceClient = DeliveryServiceClient.Create(); | ||
// Initialize request argument(s) | ||
CreateDeliveryVehicleRequest request = new CreateDeliveryVehicleRequest | ||
{ | ||
Header = new DeliveryRequestHeader(), | ||
Parent = "", | ||
DeliveryVehicleId = "", | ||
DeliveryVehicle = new DeliveryVehicle(), | ||
}; | ||
// Make the request | ||
DeliveryVehicle response = deliveryServiceClient.CreateDeliveryVehicle(request); | ||
} | ||
} | ||
// [END fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_sync] | ||
} |
45 changes: 45 additions & 0 deletions
45
...ine.Delivery.V1.GeneratedSnippets/DeliveryServiceClient.CreateDeliveryVehicleSnippet.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,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 fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_sync_flattened] | ||
using Google.Maps.FleetEngine.Delivery.V1; | ||
|
||
public sealed partial class GeneratedDeliveryServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateDeliveryVehicle</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 CreateDeliveryVehicle() | ||
{ | ||
// Create client | ||
DeliveryServiceClient deliveryServiceClient = DeliveryServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string parent = ""; | ||
DeliveryVehicle deliveryVehicle = new DeliveryVehicle(); | ||
string deliveryVehicleId = ""; | ||
// Make the request | ||
DeliveryVehicle response = deliveryServiceClient.CreateDeliveryVehicle(parent, deliveryVehicle, deliveryVehicleId); | ||
} | ||
} | ||
// [END fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_sync_flattened] | ||
} |
48 changes: 48 additions & 0 deletions
48
...eetEngine.Delivery.V1.GeneratedSnippets/DeliveryServiceClient.CreateTaskAsyncSnippet.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,48 @@ | ||
// 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! | ||
|
||
#pragma warning disable CS8981 | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START fleetengine_v1_generated_DeliveryService_CreateTask_async_flattened] | ||
using System.Threading.Tasks; | ||
using gmfdv = Google.Maps.FleetEngine.Delivery.V1; | ||
|
||
public sealed partial class GeneratedDeliveryServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateTaskAsync</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 CreateTaskAsync() | ||
{ | ||
// Create client | ||
gmfdv::DeliveryServiceClient deliveryServiceClient = await gmfdv::DeliveryServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = ""; | ||
gmfdv::Task task = new gmfdv::Task(); | ||
string taskId = ""; | ||
// Make the request | ||
gmfdv::Task response = await deliveryServiceClient.CreateTaskAsync(parent, task, taskId); | ||
} | ||
} | ||
// [END fleetengine_v1_generated_DeliveryService_CreateTask_async_flattened] | ||
} |
Oops, something went wrong.