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
4 changes: 2 additions & 2 deletions .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163
# created: 2022-04-06T10:30:21.687684602Z
digest: sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416
# created: 2022-04-20T23:42:53.970438194Z
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
37 changes: 20 additions & 17 deletions google/cloud/billing/budgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,30 @@
# limitations under the License.
#

from google.cloud.billing.budgets_v1.services.budget_service.async_client import (
BudgetServiceAsyncClient,
)
from google.cloud.billing.budgets_v1.services.budget_service.client import (
BudgetServiceClient,
)
from google.cloud.billing.budgets_v1.services.budget_service.async_client import (
BudgetServiceAsyncClient,
from google.cloud.billing.budgets_v1.types.budget_model import (
Budget,
BudgetAmount,
CalendarPeriod,
CustomPeriod,
Filter,
LastPeriodAmount,
NotificationsRule,
ThresholdRule,
)
from google.cloud.billing.budgets_v1.types.budget_service import (
CreateBudgetRequest,
DeleteBudgetRequest,
GetBudgetRequest,
ListBudgetsRequest,
ListBudgetsResponse,
UpdateBudgetRequest,
)

from google.cloud.billing.budgets_v1.types.budget_model import Budget
from google.cloud.billing.budgets_v1.types.budget_model import BudgetAmount
from google.cloud.billing.budgets_v1.types.budget_model import CustomPeriod
from google.cloud.billing.budgets_v1.types.budget_model import Filter
from google.cloud.billing.budgets_v1.types.budget_model import LastPeriodAmount
from google.cloud.billing.budgets_v1.types.budget_model import NotificationsRule
from google.cloud.billing.budgets_v1.types.budget_model import ThresholdRule
from google.cloud.billing.budgets_v1.types.budget_model import CalendarPeriod
from google.cloud.billing.budgets_v1.types.budget_service import CreateBudgetRequest
from google.cloud.billing.budgets_v1.types.budget_service import DeleteBudgetRequest
from google.cloud.billing.budgets_v1.types.budget_service import GetBudgetRequest
from google.cloud.billing.budgets_v1.types.budget_service import ListBudgetsRequest
from google.cloud.billing.budgets_v1.types.budget_service import ListBudgetsResponse
from google.cloud.billing.budgets_v1.types.budget_service import UpdateBudgetRequest

__all__ = (
"BudgetServiceClient",
Expand Down
36 changes: 19 additions & 17 deletions google/cloud/billing/budgets_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@
# limitations under the License.
#

from .services.budget_service import BudgetServiceClient
from .services.budget_service import BudgetServiceAsyncClient

from .types.budget_model import Budget
from .types.budget_model import BudgetAmount
from .types.budget_model import CustomPeriod
from .types.budget_model import Filter
from .types.budget_model import LastPeriodAmount
from .types.budget_model import NotificationsRule
from .types.budget_model import ThresholdRule
from .types.budget_model import CalendarPeriod
from .types.budget_service import CreateBudgetRequest
from .types.budget_service import DeleteBudgetRequest
from .types.budget_service import GetBudgetRequest
from .types.budget_service import ListBudgetsRequest
from .types.budget_service import ListBudgetsResponse
from .types.budget_service import UpdateBudgetRequest
from .services.budget_service import BudgetServiceAsyncClient, BudgetServiceClient
from .types.budget_model import (
Budget,
BudgetAmount,
CalendarPeriod,
CustomPeriod,
Filter,
LastPeriodAmount,
NotificationsRule,
ThresholdRule,
)
from .types.budget_service import (
CreateBudgetRequest,
DeleteBudgetRequest,
GetBudgetRequest,
ListBudgetsRequest,
ListBudgetsResponse,
UpdateBudgetRequest,
)

__all__ = (
"BudgetServiceAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import BudgetServiceClient
from .async_client import BudgetServiceAsyncClient
from .client import BudgetServiceClient

__all__ = (
"BudgetServiceClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,28 @@
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core.client_options import ClientOptions
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.billing.budgets_v1.services.budget_service import pagers
from google.cloud.billing.budgets_v1.types import budget_model
from google.cloud.billing.budgets_v1.types import budget_service
from google.protobuf import field_mask_pb2 # type: ignore
from .transports.base import BudgetServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import BudgetServiceGrpcAsyncIOTransport

from google.cloud.billing.budgets_v1.services.budget_service import pagers
from google.cloud.billing.budgets_v1.types import budget_model, budget_service

from .client import BudgetServiceClient
from .transports.base import DEFAULT_CLIENT_INFO, BudgetServiceTransport
from .transports.grpc_asyncio import BudgetServiceGrpcAsyncIOTransport


class BudgetServiceAsyncClient:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,29 @@
import os
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.auth.transport import mtls # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.billing.budgets_v1.services.budget_service import pagers
from google.cloud.billing.budgets_v1.types import budget_model
from google.cloud.billing.budgets_v1.types import budget_service
from google.protobuf import field_mask_pb2 # type: ignore
from .transports.base import BudgetServiceTransport, DEFAULT_CLIENT_INFO

from google.cloud.billing.budgets_v1.services.budget_service import pagers
from google.cloud.billing.budgets_v1.types import budget_model, budget_service

from .transports.base import DEFAULT_CLIENT_INFO, BudgetServiceTransport
from .transports.grpc import BudgetServiceGrpcTransport
from .transports.grpc_asyncio import BudgetServiceGrpcAsyncIOTransport

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@
AsyncIterator,
Awaitable,
Callable,
Iterator,
Optional,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.billing.budgets_v1.types import budget_model
from google.cloud.billing.budgets_v1.types import budget_service
from google.cloud.billing.budgets_v1.types import budget_model, budget_service


class ListBudgetsPager:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .grpc import BudgetServiceGrpcTransport
from .grpc_asyncio import BudgetServiceGrpcAsyncIOTransport


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[BudgetServiceTransport]]
_transport_registry["grpc"] = BudgetServiceGrpcTransport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@
#
import abc
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
import pkg_resources

import google.auth # type: ignore
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

from google.cloud.billing.budgets_v1.types import budget_model
from google.cloud.billing.budgets_v1.types import budget_service
from google.protobuf import empty_pb2 # type: ignore
import pkg_resources

from google.cloud.billing.budgets_v1.types import budget_model, budget_service

try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import grpc_helpers
from google.api_core import gapic_v1
from google.api_core import gapic_v1, grpc_helpers
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.protobuf import empty_pb2 # type: ignore
import grpc # type: ignore

from google.cloud.billing.budgets_v1.types import budget_model
from google.cloud.billing.budgets_v1.types import budget_service
from google.protobuf import empty_pb2 # type: ignore
from .base import BudgetServiceTransport, DEFAULT_CLIENT_INFO
from google.cloud.billing.budgets_v1.types import budget_model, budget_service

from .base import DEFAULT_CLIENT_INFO, BudgetServiceTransport


class BudgetServiceGrpcTransport(BudgetServiceTransport):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.api_core import gapic_v1, grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.protobuf import empty_pb2 # type: ignore
import grpc # type: ignore
from grpc.experimental import aio # type: ignore

from google.cloud.billing.budgets_v1.types import budget_model
from google.cloud.billing.budgets_v1.types import budget_service
from google.protobuf import empty_pb2 # type: ignore
from .base import BudgetServiceTransport, DEFAULT_CLIENT_INFO
from google.cloud.billing.budgets_v1.types import budget_model, budget_service

from .base import DEFAULT_CLIENT_INFO, BudgetServiceTransport
from .grpc import BudgetServiceGrpcTransport


Expand Down
2 changes: 1 addition & 1 deletion google/cloud/billing/budgets_v1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
from .budget_model import (
Budget,
BudgetAmount,
CalendarPeriod,
CustomPeriod,
Filter,
LastPeriodAmount,
NotificationsRule,
ThresholdRule,
CalendarPeriod,
)
from .budget_service import (
CreateBudgetRequest,
Expand Down
4 changes: 1 addition & 3 deletions google/cloud/billing/budgets_v1/types/budget_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import proto # type: ignore

from google.protobuf import struct_pb2 # type: ignore
from google.type import date_pb2 # type: ignore
from google.type import money_pb2 # type: ignore

import proto # type: ignore

__protobuf__ = proto.module(
package="google.cloud.billing.budgets.v1",
Expand Down
3 changes: 1 addition & 2 deletions google/cloud/billing/budgets_v1/types/budget_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.protobuf import field_mask_pb2 # type: ignore
import proto # type: ignore

from google.cloud.billing.budgets_v1.types import budget_model
from google.protobuf import field_mask_pb2 # type: ignore


__protobuf__ = proto.module(
package="google.cloud.billing.budgets.v1",
Expand Down
36 changes: 19 additions & 17 deletions google/cloud/billing/budgets_v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@
# limitations under the License.
#

from .services.budget_service import BudgetServiceClient
from .services.budget_service import BudgetServiceAsyncClient

from .types.budget_model import AllUpdatesRule
from .types.budget_model import Budget
from .types.budget_model import BudgetAmount
from .types.budget_model import CustomPeriod
from .types.budget_model import Filter
from .types.budget_model import LastPeriodAmount
from .types.budget_model import ThresholdRule
from .types.budget_model import CalendarPeriod
from .types.budget_service import CreateBudgetRequest
from .types.budget_service import DeleteBudgetRequest
from .types.budget_service import GetBudgetRequest
from .types.budget_service import ListBudgetsRequest
from .types.budget_service import ListBudgetsResponse
from .types.budget_service import UpdateBudgetRequest
from .services.budget_service import BudgetServiceAsyncClient, BudgetServiceClient
from .types.budget_model import (
AllUpdatesRule,
Budget,
BudgetAmount,
CalendarPeriod,
CustomPeriod,
Filter,
LastPeriodAmount,
ThresholdRule,
)
from .types.budget_service import (
CreateBudgetRequest,
DeleteBudgetRequest,
GetBudgetRequest,
ListBudgetsRequest,
ListBudgetsResponse,
UpdateBudgetRequest,
)

__all__ = (
"BudgetServiceAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import BudgetServiceClient
from .async_client import BudgetServiceAsyncClient
from .client import BudgetServiceClient

__all__ = (
"BudgetServiceClient",
Expand Down
Loading