Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#73)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 16, 2021
1 parent 434b404 commit a2a6aaf
Show file tree
Hide file tree
Showing 31 changed files with 1,372 additions and 962 deletions.
1 change: 0 additions & 1 deletion docs/billing_v1/cloud_billing.rst
Expand Up @@ -5,7 +5,6 @@ CloudBilling
:members:
:inherited-members:


.. automodule:: google.cloud.billing_v1.services.cloud_billing.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/billing_v1/cloud_catalog.rst
Expand Up @@ -5,7 +5,6 @@ CloudCatalog
:members:
:inherited-members:


.. automodule:: google.cloud.billing_v1.services.cloud_catalog.pagers
:members:
:inherited-members:
22 changes: 11 additions & 11 deletions google/cloud/billing/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,14 +14,15 @@
# limitations under the License.
#

from google.cloud.billing_v1.services.cloud_billing.client import CloudBillingClient
from google.cloud.billing_v1.services.cloud_billing.async_client import (
CloudBillingAsyncClient,
)
from google.cloud.billing_v1.services.cloud_billing.client import CloudBillingClient
from google.cloud.billing_v1.services.cloud_catalog.client import CloudCatalogClient
from google.cloud.billing_v1.services.cloud_catalog.async_client import (
CloudCatalogAsyncClient,
)
from google.cloud.billing_v1.services.cloud_catalog.client import CloudCatalogClient

from google.cloud.billing_v1.types.cloud_billing import BillingAccount
from google.cloud.billing_v1.types.cloud_billing import CreateBillingAccountRequest
from google.cloud.billing_v1.types.cloud_billing import GetBillingAccountRequest
Expand All @@ -46,29 +46,29 @@
from google.cloud.billing_v1.types.cloud_catalog import Sku

__all__ = (
"AggregationInfo",
"BillingAccount",
"Category",
"CloudBillingAsyncClient",
"CloudBillingClient",
"CloudCatalogAsyncClient",
"CloudBillingAsyncClient",
"CloudCatalogClient",
"CloudCatalogAsyncClient",
"BillingAccount",
"CreateBillingAccountRequest",
"GetBillingAccountRequest",
"GetProjectBillingInfoRequest",
"ListBillingAccountsRequest",
"ListBillingAccountsResponse",
"ListProjectBillingInfoRequest",
"ListProjectBillingInfoResponse",
"ProjectBillingInfo",
"UpdateBillingAccountRequest",
"UpdateProjectBillingInfoRequest",
"AggregationInfo",
"Category",
"ListServicesRequest",
"ListServicesResponse",
"ListSkusRequest",
"ListSkusResponse",
"PricingExpression",
"PricingInfo",
"ProjectBillingInfo",
"Service",
"Sku",
"UpdateBillingAccountRequest",
"UpdateProjectBillingInfoRequest",
)
9 changes: 6 additions & 3 deletions google/cloud/billing_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,7 +15,10 @@
#

from .services.cloud_billing import CloudBillingClient
from .services.cloud_billing import CloudBillingAsyncClient
from .services.cloud_catalog import CloudCatalogClient
from .services.cloud_catalog import CloudCatalogAsyncClient

from .types.cloud_billing import BillingAccount
from .types.cloud_billing import CreateBillingAccountRequest
from .types.cloud_billing import GetBillingAccountRequest
Expand All @@ -39,12 +41,14 @@
from .types.cloud_catalog import Service
from .types.cloud_catalog import Sku


__all__ = (
"CloudBillingAsyncClient",
"CloudCatalogAsyncClient",
"AggregationInfo",
"BillingAccount",
"Category",
"CloudBillingClient",
"CloudCatalogClient",
"CreateBillingAccountRequest",
"GetBillingAccountRequest",
"GetProjectBillingInfoRequest",
Expand All @@ -63,5 +67,4 @@
"Sku",
"UpdateBillingAccountRequest",
"UpdateProjectBillingInfoRequest",
"CloudCatalogClient",
)
157 changes: 157 additions & 0 deletions google/cloud/billing_v1/gapic_metadata.json
@@ -0,0 +1,157 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.billing_v1",
"protoPackage": "google.cloud.billing.v1",
"schema": "1.0",
"services": {
"CloudBilling": {
"clients": {
"grpc": {
"libraryClient": "CloudBillingClient",
"rpcs": {
"CreateBillingAccount": {
"methods": [
"create_billing_account"
]
},
"GetBillingAccount": {
"methods": [
"get_billing_account"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetProjectBillingInfo": {
"methods": [
"get_project_billing_info"
]
},
"ListBillingAccounts": {
"methods": [
"list_billing_accounts"
]
},
"ListProjectBillingInfo": {
"methods": [
"list_project_billing_info"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateBillingAccount": {
"methods": [
"update_billing_account"
]
},
"UpdateProjectBillingInfo": {
"methods": [
"update_project_billing_info"
]
}
}
},
"grpc-async": {
"libraryClient": "CloudBillingAsyncClient",
"rpcs": {
"CreateBillingAccount": {
"methods": [
"create_billing_account"
]
},
"GetBillingAccount": {
"methods": [
"get_billing_account"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetProjectBillingInfo": {
"methods": [
"get_project_billing_info"
]
},
"ListBillingAccounts": {
"methods": [
"list_billing_accounts"
]
},
"ListProjectBillingInfo": {
"methods": [
"list_project_billing_info"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateBillingAccount": {
"methods": [
"update_billing_account"
]
},
"UpdateProjectBillingInfo": {
"methods": [
"update_project_billing_info"
]
}
}
}
}
},
"CloudCatalog": {
"clients": {
"grpc": {
"libraryClient": "CloudCatalogClient",
"rpcs": {
"ListServices": {
"methods": [
"list_services"
]
},
"ListSkus": {
"methods": [
"list_skus"
]
}
}
},
"grpc-async": {
"libraryClient": "CloudCatalogAsyncClient",
"rpcs": {
"ListServices": {
"methods": [
"list_services"
]
},
"ListSkus": {
"methods": [
"list_skus"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/billing_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 0 additions & 2 deletions google/cloud/billing_v1/services/cloud_billing/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import CloudBillingClient
from .async_client import CloudBillingAsyncClient

Expand Down

0 comments on commit a2a6aaf

Please sign in to comment.