Skip to content

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] authored May 16, 2021
1 parent 3ab55ff commit cc0bce9
Show file tree
Hide file tree
Showing 31 changed files with 1,372 additions and 962 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CloudBilling
:members:
:inherited-members:


.. automodule:: google.cloud.billing_v1.services.cloud_billing.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
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 packages/google-cloud-billing/google/cloud/billing/__init__.py
Original file line number Diff line number Diff line change
@@ -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",
)
Original file line number Diff line number Diff line change
@@ -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",
)
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit cc0bce9

Please sign in to comment.