Skip to content

Commit

Permalink
docs: cleanup and clarifications
Browse files Browse the repository at this point in the history
feat: add UpdateAssignment method
feat: add "concurrency" and "multi_region_auxiliary" in reservation
feat: add preferred table.

PiperOrigin-RevId: 440912466

Source-Link: googleapis/googleapis@7ab53ca

Source-Link: googleapis/googleapis-gen@116cf4d
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmlnUXVlcnkuUmVzZXJ2YXRpb24uVjEvLk93bEJvdC55YW1sIiwiaCI6IjExNmNmNGQ1N2NhZDVjNDU3YzA3MGU3MTY1M2E0OGVlMmMyNmFkZTIifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Apr 12, 2022
1 parent 4bc260c commit 9b9e9d1
Show file tree
Hide file tree
Showing 11 changed files with 1,918 additions and 430 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2022 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 Google.Cloud.BigQuery.Reservation.V1.Snippets
{
// [START bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_async_flattened]
using Google.Cloud.BigQuery.Reservation.V1;
using Google.Protobuf.WellKnownTypes;
using System.Threading.Tasks;

public sealed partial class GeneratedReservationServiceClientSnippets
{
/// <summary>Snippet for UpdateAssignmentAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task UpdateAssignmentAsync()
{
// Create client
ReservationServiceClient reservationServiceClient = await ReservationServiceClient.CreateAsync();
// Initialize request argument(s)
Assignment assignment = new Assignment();
FieldMask updateMask = new FieldMask();
// Make the request
Assignment response = await reservationServiceClient.UpdateAssignmentAsync(assignment, updateMask);
}
}
// [END bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2022 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 Google.Cloud.BigQuery.Reservation.V1.Snippets
{
// [START bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_async]
using Google.Cloud.BigQuery.Reservation.V1;
using Google.Protobuf.WellKnownTypes;
using System.Threading.Tasks;

public sealed partial class GeneratedReservationServiceClientSnippets
{
/// <summary>Snippet for UpdateAssignmentAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task UpdateAssignmentRequestObjectAsync()
{
// Create client
ReservationServiceClient reservationServiceClient = await ReservationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAssignmentRequest request = new UpdateAssignmentRequest
{
Assignment = new Assignment(),
UpdateMask = new FieldMask(),
};
// Make the request
Assignment response = await reservationServiceClient.UpdateAssignmentAsync(request);
}
}
// [END bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2022 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 Google.Cloud.BigQuery.Reservation.V1.Snippets
{
// [START bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_sync]
using Google.Cloud.BigQuery.Reservation.V1;
using Google.Protobuf.WellKnownTypes;

public sealed partial class GeneratedReservationServiceClientSnippets
{
/// <summary>Snippet for UpdateAssignment</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void UpdateAssignmentRequestObject()
{
// Create client
ReservationServiceClient reservationServiceClient = ReservationServiceClient.Create();
// Initialize request argument(s)
UpdateAssignmentRequest request = new UpdateAssignmentRequest
{
Assignment = new Assignment(),
UpdateMask = new FieldMask(),
};
// Make the request
Assignment response = reservationServiceClient.UpdateAssignment(request);
}
}
// [END bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright 2022 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 Google.Cloud.BigQuery.Reservation.V1.Snippets
{
// [START bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_sync_flattened]
using Google.Cloud.BigQuery.Reservation.V1;
using Google.Protobuf.WellKnownTypes;

public sealed partial class GeneratedReservationServiceClientSnippets
{
/// <summary>Snippet for UpdateAssignment</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void UpdateAssignment()
{
// Create client
ReservationServiceClient reservationServiceClient = ReservationServiceClient.Create();
// Initialize request argument(s)
Assignment assignment = new Assignment();
FieldMask updateMask = new FieldMask();
// Make the request
Assignment response = reservationServiceClient.UpdateAssignment(assignment, updateMask);
}
}
// [END bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_sync_flattened]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2689,6 +2689,110 @@
},
"origin": "API_DEFINITION"
},
{
"regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_sync",
"title": "UpdateAssignmentRequestObject",
"description": "Snippet for UpdateAssignment",
"file": "ReservationServiceClient.UpdateAssignmentRequestObjectSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "UpdateAssignment",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient.UpdateAssignment",
"resultType": "Google.Cloud.BigQuery.Reservation.V1.Assignment",
"client": {
"shortName": "ReservationServiceClient",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient"
},
"method": {
"shortName": "UpdateAssignment",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment",
"service": {
"shortName": "ReservationService",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService"
}
}
},
"canonical": true,
"origin": "API_DEFINITION"
},
{
"regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_async",
"title": "UpdateAssignmentRequestObjectAsync",
"description": "Snippet for UpdateAssignmentAsync",
"file": "ReservationServiceClient.UpdateAssignmentRequestObjectAsyncSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "UpdateAssignmentAsync",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient.UpdateAssignmentAsync",
"async": true,
"resultType": "System.Threading.Tasks.Task<Google.Cloud.BigQuery.Reservation.V1.Assignment>",
"client": {
"shortName": "ReservationServiceClient",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient"
},
"method": {
"shortName": "UpdateAssignment",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment",
"service": {
"shortName": "ReservationService",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService"
}
}
},
"canonical": true,
"origin": "API_DEFINITION"
},
{
"regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_sync_flattened",
"title": "UpdateAssignment",
"description": "Snippet for UpdateAssignment",
"file": "ReservationServiceClient.UpdateAssignmentSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "UpdateAssignment",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient.UpdateAssignment",
"resultType": "Google.Cloud.BigQuery.Reservation.V1.Assignment",
"client": {
"shortName": "ReservationServiceClient",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient"
},
"method": {
"shortName": "UpdateAssignment",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment",
"service": {
"shortName": "ReservationService",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService"
}
}
},
"origin": "API_DEFINITION"
},
{
"regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_async_flattened",
"title": "UpdateAssignmentAsync",
"description": "Snippet for UpdateAssignmentAsync",
"file": "ReservationServiceClient.UpdateAssignmentAsyncSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "UpdateAssignmentAsync",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient.UpdateAssignmentAsync",
"async": true,
"resultType": "System.Threading.Tasks.Task<Google.Cloud.BigQuery.Reservation.V1.Assignment>",
"client": {
"shortName": "ReservationServiceClient",
"fullName": "Google.Cloud.BigQuery.Reservation.V1.ReservationServiceClient"
},
"method": {
"shortName": "UpdateAssignment",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment",
"service": {
"shortName": "ReservationService",
"fullName": "google.cloud.bigquery.reservation.v1.ReservationService"
}
}
},
"origin": "API_DEFINITION"
},
{
"regionTag": "bigqueryreservation_v1_generated_ReservationService_GetBiReservation_sync",
"title": "GetBiReservationRequestObject",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,70 @@ public async Task MoveAssignmentResourceNamesAsync()
// End snippet
}

/// <summary>Snippet for UpdateAssignment</summary>
public void UpdateAssignmentRequestObject()
{
// Snippet: UpdateAssignment(UpdateAssignmentRequest, CallSettings)
// Create client
ReservationServiceClient reservationServiceClient = ReservationServiceClient.Create();
// Initialize request argument(s)
UpdateAssignmentRequest request = new UpdateAssignmentRequest
{
Assignment = new Assignment(),
UpdateMask = new FieldMask(),
};
// Make the request
Assignment response = reservationServiceClient.UpdateAssignment(request);
// End snippet
}

/// <summary>Snippet for UpdateAssignmentAsync</summary>
public async Task UpdateAssignmentRequestObjectAsync()
{
// Snippet: UpdateAssignmentAsync(UpdateAssignmentRequest, CallSettings)
// Additional: UpdateAssignmentAsync(UpdateAssignmentRequest, CancellationToken)
// Create client
ReservationServiceClient reservationServiceClient = await ReservationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAssignmentRequest request = new UpdateAssignmentRequest
{
Assignment = new Assignment(),
UpdateMask = new FieldMask(),
};
// Make the request
Assignment response = await reservationServiceClient.UpdateAssignmentAsync(request);
// End snippet
}

/// <summary>Snippet for UpdateAssignment</summary>
public void UpdateAssignment()
{
// Snippet: UpdateAssignment(Assignment, FieldMask, CallSettings)
// Create client
ReservationServiceClient reservationServiceClient = ReservationServiceClient.Create();
// Initialize request argument(s)
Assignment assignment = new Assignment();
FieldMask updateMask = new FieldMask();
// Make the request
Assignment response = reservationServiceClient.UpdateAssignment(assignment, updateMask);
// End snippet
}

/// <summary>Snippet for UpdateAssignmentAsync</summary>
public async Task UpdateAssignmentAsync()
{
// Snippet: UpdateAssignmentAsync(Assignment, FieldMask, CallSettings)
// Additional: UpdateAssignmentAsync(Assignment, FieldMask, CancellationToken)
// Create client
ReservationServiceClient reservationServiceClient = await ReservationServiceClient.CreateAsync();
// Initialize request argument(s)
Assignment assignment = new Assignment();
FieldMask updateMask = new FieldMask();
// Make the request
Assignment response = await reservationServiceClient.UpdateAssignmentAsync(assignment, updateMask);
// End snippet
}

/// <summary>Snippet for GetBiReservation</summary>
public void GetBiReservationRequestObject()
{
Expand Down
Loading

0 comments on commit 9b9e9d1

Please sign in to comment.