Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -222,7 +222,6 @@ async def create_budget(
information on the limits of the number of budgets you can
create.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -337,7 +336,6 @@ async def update_budget(
fields that are not exposed in this API will not be
changed by this method.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -469,7 +467,6 @@ async def get_budget(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -586,7 +583,6 @@ async def list_budgets(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -705,7 +701,6 @@ async def delete_budget(
r"""Deletes a budget. Returns successfully if already
deleted.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -441,7 +441,6 @@ def create_budget(
information on the limits of the number of budgets you can
create.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -556,7 +555,6 @@ def update_budget(
fields that are not exposed in this API will not be
changed by this method.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -678,7 +676,6 @@ def get_budget(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -785,7 +782,6 @@ def list_budgets(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down Expand Up @@ -894,7 +890,6 @@ def delete_budget(
r"""Deletes a budget. Returns successfully if already
deleted.


.. code-block:: python

from google.cloud.billing import budgets_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -249,5 +250,9 @@ def delete_budget(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("BudgetServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -384,5 +384,9 @@ def delete_budget(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("BudgetServiceGrpcTransport",)
2 changes: 1 addition & 1 deletion google/cloud/billing/budgets_v1/types/budget_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class Filter(proto.Message):
account, usage from the parent account will be included. If
the field is omitted, the report will include usage from the
parent account and all subaccounts, if they exist.
labels (Sequence[google.cloud.billing.budgets_v1.types.Filter.LabelsEntry]):
labels (Mapping[str, google.protobuf.struct_pb2.ListValue]):
Optional. A single label and value pair
specifying that usage from only this set of
labeled resources should be included in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -219,7 +219,6 @@ async def create_budget(
information on the limits of the number of budgets you can
create.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -303,7 +302,6 @@ async def update_budget(
fields that are not exposed in this API will not be
changed by this method.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -399,7 +397,6 @@ async def get_budget(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -494,7 +491,6 @@ async def list_budgets(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -590,7 +586,6 @@ async def delete_budget(
r"""Deletes a budget. Returns successfully if already
deleted.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -438,7 +438,6 @@ def create_budget(
information on the limits of the number of budgets you can
create.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -523,7 +522,6 @@ def update_budget(
fields that are not exposed in this API will not be
changed by this method.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -610,7 +608,6 @@ def get_budget(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -696,7 +693,6 @@ def list_budgets(
the return value, though they may have been set in the
Cloud Console.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down Expand Up @@ -783,7 +779,6 @@ def delete_budget(
r"""Deletes a budget. Returns successfully if already
deleted.


.. code-block:: python

from google.cloud.billing import budgets_v1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -249,5 +250,9 @@ def delete_budget(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("BudgetServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -384,5 +384,9 @@ def delete_budget(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("BudgetServiceGrpcTransport",)
2 changes: 1 addition & 1 deletion google/cloud/billing/budgets_v1beta1/types/budget_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class Filter(proto.Message):
account, usage from the parent account will be included. If
omitted, the report will include usage from the parent
account and all subaccounts, if they exist.
labels (Sequence[google.cloud.billing.budgets_v1beta1.types.Filter.LabelsEntry]):
labels (Mapping[str, google.protobuf.struct_pb2.ListValue]):
Optional. A single label and value pair specifying that
usage from only this set of labeled resources should be
included in the budget. If omitted, the report will include
Expand Down
Loading