-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use gapic-generator-python 0.63.2 (#222)
* chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: googleapis/googleapis@55b9e1e Source-Link: googleapis/googleapis-gen@bf4e86b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
60294f6
commit 8a8dd75
Showing
43 changed files
with
4,354 additions
and
0 deletions.
There are no files selected for viewing
386 changes: 386 additions & 0 deletions
386
...rvation/google/cloud/bigquery_reservation_v1/services/reservation_service/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
406 changes: 406 additions & 0 deletions
406
...y-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
...ervation_generated_bigquery_reservation_v1_reservation_service_create_assignment_async.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for CreateAssignment | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateAssignment_async] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
async def sample_create_assignment(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.CreateAssignmentRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_assignment(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateAssignment_async] |
45 changes: 45 additions & 0 deletions
45
...servation_generated_bigquery_reservation_v1_reservation_service_create_assignment_sync.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for CreateAssignment | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateAssignment_sync] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
def sample_create_assignment(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.CreateAssignmentRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_assignment(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateAssignment_sync] |
45 changes: 45 additions & 0 deletions
45
...generated_bigquery_reservation_v1_reservation_service_create_capacity_commitment_async.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for CreateCapacityCommitment | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateCapacityCommitment_async] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
async def sample_create_capacity_commitment(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.CreateCapacityCommitmentRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_capacity_commitment(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateCapacityCommitment_async] |
45 changes: 45 additions & 0 deletions
45
..._generated_bigquery_reservation_v1_reservation_service_create_capacity_commitment_sync.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for CreateCapacityCommitment | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateCapacityCommitment_sync] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
def sample_create_capacity_commitment(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.CreateCapacityCommitmentRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_capacity_commitment(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateCapacityCommitment_sync] |
45 changes: 45 additions & 0 deletions
45
...rvation_generated_bigquery_reservation_v1_reservation_service_create_reservation_async.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for CreateReservation | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateReservation_async] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
async def sample_create_reservation(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.CreateReservationRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_reservation(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateReservation_async] |
45 changes: 45 additions & 0 deletions
45
...ervation_generated_bigquery_reservation_v1_reservation_service_create_reservation_sync.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for CreateReservation | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateReservation_sync] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
def sample_create_reservation(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.CreateReservationRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_reservation(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_CreateReservation_sync] |
43 changes: 43 additions & 0 deletions
43
...ervation_generated_bigquery_reservation_v1_reservation_service_delete_assignment_async.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for DeleteAssignment | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_DeleteAssignment_async] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
async def sample_delete_assignment(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.DeleteAssignmentRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
await client.delete_assignment(request=request) | ||
|
||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_DeleteAssignment_async] |
43 changes: 43 additions & 0 deletions
43
...servation_generated_bigquery_reservation_v1_reservation_service_delete_assignment_sync.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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 | ||
# | ||
# http://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! | ||
# | ||
# Snippet for DeleteAssignment | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-bigquery-reservation | ||
|
||
|
||
# [START bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_DeleteAssignment_sync] | ||
from google.cloud import bigquery_reservation_v1 | ||
|
||
|
||
def sample_delete_assignment(): | ||
# Create a client | ||
client = bigquery_reservation_v1.ReservationServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = bigquery_reservation_v1.DeleteAssignmentRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
client.delete_assignment(request=request) | ||
|
||
|
||
# [END bigqueryreservation_generated_bigquery_reservation_v1_ReservationService_DeleteAssignment_sync] |
Oops, something went wrong.