Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.1 (#173)
Browse files Browse the repository at this point in the history
- [x] Regenerate this pull request now.

docs: add autogenerated code snippets
PiperOrigin-RevId: 426256923

Source-Link: googleapis/googleapis@9ebabfa

Source-Link: googleapis/googleapis-gen@a881752
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTg4MTc1MjYzZTYwYTFkNDVkM2E0NDc4NDg2NTJiMGY2NzBiMmNiOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Feb 11, 2022
1 parent 535ef2d commit 1079168
Show file tree
Hide file tree
Showing 26 changed files with 2,156 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,26 @@ async def create_budget(
information on the limits of the number of budgets you can
create.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_create_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.CreateBudgetRequest(
parent="parent_value",
)
# Make the request
response = client.create_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.CreateBudgetRequest, dict]):
The request object. Request for CreateBudget
Expand Down Expand Up @@ -312,6 +332,25 @@ async def update_budget(
fields that are not exposed in this API will not be
changed by this method.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_update_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.UpdateBudgetRequest(
)
# Make the request
response = client.update_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.UpdateBudgetRequest, dict]):
The request object. Request for UpdateBudget
Expand Down Expand Up @@ -420,6 +459,26 @@ async def get_budget(
the return value, though they may have been set in the
Cloud Console.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_get_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.GetBudgetRequest(
name="name_value",
)
# Make the request
response = client.get_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.GetBudgetRequest, dict]):
The request object. Request for GetBudget
Expand Down Expand Up @@ -512,6 +571,25 @@ async def list_budgets(
the return value, though they may have been set in the
Cloud Console.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_list_budgets():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.ListBudgetsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_budgets(request=request)
for response in page_result:
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.ListBudgetsRequest, dict]):
The request object. Request for ListBudgets
Expand Down Expand Up @@ -602,6 +680,23 @@ async def delete_budget(
r"""Deletes a budget. Returns successfully if already
deleted.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_delete_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.DeleteBudgetRequest(
name="name_value",
)
# Make the request
response = client.delete_budget(request=request)
Args:
request (Union[google.cloud.billing.budgets_v1.types.DeleteBudgetRequest, dict]):
The request object. Request for DeleteBudget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,27 @@ def create_budget(
information on the limits of the number of budgets you can
create.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_create_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.CreateBudgetRequest(
parent="parent_value",
)
# Make the request
response = client.create_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.CreateBudgetRequest, dict]):
The request object. Request for CreateBudget
Expand Down Expand Up @@ -506,6 +527,26 @@ def update_budget(
fields that are not exposed in this API will not be
changed by this method.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_update_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.UpdateBudgetRequest(
)
# Make the request
response = client.update_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.UpdateBudgetRequest, dict]):
The request object. Request for UpdateBudget
Expand Down Expand Up @@ -604,6 +645,27 @@ def get_budget(
the return value, though they may have been set in the
Cloud Console.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_get_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.GetBudgetRequest(
name="name_value",
)
# Make the request
response = client.get_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.GetBudgetRequest, dict]):
The request object. Request for GetBudget
Expand Down Expand Up @@ -686,6 +748,26 @@ def list_budgets(
the return value, though they may have been set in the
Cloud Console.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_list_budgets():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.ListBudgetsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_budgets(request=request)
for response in page_result:
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1.types.ListBudgetsRequest, dict]):
The request object. Request for ListBudgets
Expand Down Expand Up @@ -766,6 +848,24 @@ def delete_budget(
r"""Deletes a budget. Returns successfully if already
deleted.
.. code-block::
from google.cloud.billing import budgets_v1
def sample_delete_budget():
# Create a client
client = budgets_v1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1.DeleteBudgetRequest(
name="name_value",
)
# Make the request
response = client.delete_budget(request=request)
Args:
request (Union[google.cloud.billing.budgets_v1.types.DeleteBudgetRequest, dict]):
The request object. Request for DeleteBudget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,26 @@ async def create_budget(
and limits</a> for more information on the limits of the
number of budgets you can create.
.. code-block::
from google.cloud.billing import budgets_v1beta1
def sample_create_budget():
# Create a client
client = budgets_v1beta1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1beta1.CreateBudgetRequest(
parent="parent_value",
)
# Make the request
response = client.create_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1beta1.types.CreateBudgetRequest, dict]):
The request object. Request for CreateBudget
Expand Down Expand Up @@ -278,6 +298,25 @@ async def update_budget(
fields that are not exposed in this API will not be
changed by this method.
.. code-block::
from google.cloud.billing import budgets_v1beta1
def sample_update_budget():
# Create a client
client = budgets_v1beta1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1beta1.UpdateBudgetRequest(
)
# Make the request
response = client.update_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1beta1.types.UpdateBudgetRequest, dict]):
The request object. Request for UpdateBudget
Expand Down Expand Up @@ -350,6 +389,26 @@ async def get_budget(
the return value, though they may have been set in the
Cloud Console.
.. code-block::
from google.cloud.billing import budgets_v1beta1
def sample_get_budget():
# Create a client
client = budgets_v1beta1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1beta1.GetBudgetRequest(
name="name_value",
)
# Make the request
response = client.get_budget(request=request)
# Handle response
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1beta1.types.GetBudgetRequest, dict]):
The request object. Request for GetBudget
Expand Down Expand Up @@ -420,6 +479,25 @@ async def list_budgets(
the return value, though they may have been set in the
Cloud Console.
.. code-block::
from google.cloud.billing import budgets_v1beta1
def sample_list_budgets():
# Create a client
client = budgets_v1beta1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1beta1.ListBudgetsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_budgets(request=request)
for response in page_result:
print(response)
Args:
request (Union[google.cloud.billing.budgets_v1beta1.types.ListBudgetsRequest, dict]):
The request object. Request for ListBudgets
Expand Down Expand Up @@ -487,6 +565,23 @@ async def delete_budget(
r"""Deletes a budget. Returns successfully if already
deleted.
.. code-block::
from google.cloud.billing import budgets_v1beta1
def sample_delete_budget():
# Create a client
client = budgets_v1beta1.BudgetServiceClient()
# Initialize request argument(s)
request = budgets_v1beta1.DeleteBudgetRequest(
name="name_value",
)
# Make the request
response = client.delete_budget(request=request)
Args:
request (Union[google.cloud.billing.budgets_v1beta1.types.DeleteBudgetRequest, dict]):
The request object. Request for DeleteBudget
Expand Down
Loading

0 comments on commit 1079168

Please sign in to comment.