Skip to content

Commit

Permalink
docs: correct link in ListTasks documentation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 628409831

Source-Link: googleapis/googleapis@2802c22

Source-Link: googleapis/googleapis-gen@6f62105
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuTWFwcy5GbGVldEVuZ2luZS5EZWxpdmVyeS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNmY2MjEwNTY2MWRjMDE4ZDBmOTAyMDdlZDFhYWY4NTNlOWJhYTQ0YiJ9
  • Loading branch information
gcf-owl-bot[bot] committed Apr 26, 2024
1 parent b44f916 commit 977c1d3
Show file tree
Hide file tree
Showing 72 changed files with 24,831 additions and 0 deletions.
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}

0 comments on commit 977c1d3

Please sign in to comment.