-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
4bc260c
commit 9b9e9d1
Showing
11 changed files
with
1,918 additions
and
430 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...servation.V1.GeneratedSnippets/ReservationServiceClient.UpdateAssignmentAsyncSnippet.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,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] | ||
} |
46 changes: 46 additions & 0 deletions
46
...GeneratedSnippets/ReservationServiceClient.UpdateAssignmentRequestObjectAsyncSnippet.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,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] | ||
} |
45 changes: 45 additions & 0 deletions
45
...n.V1.GeneratedSnippets/ReservationServiceClient.UpdateAssignmentRequestObjectSnippet.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 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] | ||
} |
42 changes: 42 additions & 0 deletions
42
...ry.Reservation.V1.GeneratedSnippets/ReservationServiceClient.UpdateAssignmentSnippet.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,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] | ||
} |
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
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
Oops, something went wrong.