Skip to content

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#79)
Browse files Browse the repository at this point in the history
This PR is the result of manually running the following commands in order to pull in the latest changes from googleapis-gen which includes gapic generator version 0.46.3:

1. Download the latest docker image for owlbot-cli
```
docker pull gcr.io/repo-automation-bots/owlbot-cli:latest
```
2. Run the owlbot-cli to copy the generated client from googleapis/googleapis-gen
```
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/repo -w /repo gcr.io/repo-automation-bots/owlbot-cli:latest copy-code
```
3. Download the latest docker image for owlbot-python
```
docker pull gcr.io/repo-automation-bots/owlbot-python:latest
```
4. Run the post processor image
```
docker run --user $(id -u):$(id -g) --rm -v $(pwd):/repo -w /repo gcr.io/repo-automation-bots/owlbot-python:latest
```

Other features/fixes include: 

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
parthea authored Jun 8, 2021
1 parent de5df63 commit 0876aae
Show file tree
Hide file tree
Showing 36 changed files with 1,297 additions and 1,008 deletions.
36 changes: 18 additions & 18 deletions packages/google-analytics-data/google/analytics/data/__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,12 +14,13 @@
# limitations under the License.
#

from google.analytics.data_v1beta.services.beta_analytics_data.async_client import (
BetaAnalyticsDataAsyncClient,
)
from google.analytics.data_v1beta.services.beta_analytics_data.client import (
BetaAnalyticsDataClient,
)
from google.analytics.data_v1beta.services.beta_analytics_data.async_client import (
BetaAnalyticsDataAsyncClient,
)

from google.analytics.data_v1beta.types.analytics_data_api import (
BatchRunPivotReportsRequest,
)
Expand Down Expand Up @@ -57,10 +57,8 @@
from google.analytics.data_v1beta.types.data import FilterExpression
from google.analytics.data_v1beta.types.data import FilterExpressionList
from google.analytics.data_v1beta.types.data import Metric
from google.analytics.data_v1beta.types.data import MetricAggregation
from google.analytics.data_v1beta.types.data import MetricHeader
from google.analytics.data_v1beta.types.data import MetricMetadata
from google.analytics.data_v1beta.types.data import MetricType
from google.analytics.data_v1beta.types.data import MetricValue
from google.analytics.data_v1beta.types.data import NumericValue
from google.analytics.data_v1beta.types.data import OrderBy
Expand All @@ -71,14 +69,24 @@
from google.analytics.data_v1beta.types.data import QuotaStatus
from google.analytics.data_v1beta.types.data import ResponseMetaData
from google.analytics.data_v1beta.types.data import Row
from google.analytics.data_v1beta.types.data import MetricAggregation
from google.analytics.data_v1beta.types.data import MetricType

__all__ = (
"BetaAnalyticsDataClient",
"BetaAnalyticsDataAsyncClient",
"BatchRunPivotReportsRequest",
"BatchRunPivotReportsResponse",
"BatchRunReportsRequest",
"BatchRunReportsResponse",
"BetaAnalyticsDataAsyncClient",
"BetaAnalyticsDataClient",
"GetMetadataRequest",
"Metadata",
"RunPivotReportRequest",
"RunPivotReportResponse",
"RunRealtimeReportRequest",
"RunRealtimeReportResponse",
"RunReportRequest",
"RunReportResponse",
"Cohort",
"CohortReportSettings",
"CohortSpec",
Expand All @@ -92,13 +100,9 @@
"Filter",
"FilterExpression",
"FilterExpressionList",
"GetMetadataRequest",
"Metadata",
"Metric",
"MetricAggregation",
"MetricHeader",
"MetricMetadata",
"MetricType",
"MetricValue",
"NumericValue",
"OrderBy",
Expand All @@ -109,10 +113,6 @@
"QuotaStatus",
"ResponseMetaData",
"Row",
"RunPivotReportRequest",
"RunPivotReportResponse",
"RunRealtimeReportRequest",
"RunRealtimeReportResponse",
"RunReportRequest",
"RunReportResponse",
"MetricAggregation",
"MetricType",
)
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,6 +15,8 @@
#

from .services.alpha_analytics_data import AlphaAnalyticsDataClient
from .services.alpha_analytics_data import AlphaAnalyticsDataAsyncClient

from .types.analytics_data_api import BatchRunPivotReportsRequest
from .types.analytics_data_api import BatchRunPivotReportsResponse
from .types.analytics_data_api import BatchRunReportsRequest
Expand Down Expand Up @@ -43,10 +44,8 @@
from .types.data import FilterExpression
from .types.data import FilterExpressionList
from .types.data import Metric
from .types.data import MetricAggregation
from .types.data import MetricHeader
from .types.data import MetricMetadata
from .types.data import MetricType
from .types.data import MetricValue
from .types.data import NumericValue
from .types.data import OrderBy
Expand All @@ -57,9 +56,12 @@
from .types.data import QuotaStatus
from .types.data import ResponseMetaData
from .types.data import Row

from .types.data import MetricAggregation
from .types.data import MetricType

__all__ = (
"AlphaAnalyticsDataAsyncClient",
"AlphaAnalyticsDataClient",
"BatchRunPivotReportsRequest",
"BatchRunPivotReportsResponse",
"BatchRunReportsRequest",
Expand Down Expand Up @@ -101,5 +103,4 @@
"RunRealtimeReportResponse",
"RunReportRequest",
"RunReportResponse",
"AlphaAnalyticsDataClient",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.analytics.data_v1alpha",
"protoPackage": "google.analytics.data.v1alpha",
"schema": "1.0",
"services": {
"AlphaAnalyticsData": {
"clients": {
"grpc": {
"libraryClient": "AlphaAnalyticsDataClient",
"rpcs": {
"BatchRunPivotReports": {
"methods": [
"batch_run_pivot_reports"
]
},
"BatchRunReports": {
"methods": [
"batch_run_reports"
]
},
"GetMetadata": {
"methods": [
"get_metadata"
]
},
"RunPivotReport": {
"methods": [
"run_pivot_report"
]
},
"RunRealtimeReport": {
"methods": [
"run_realtime_report"
]
},
"RunReport": {
"methods": [
"run_report"
]
}
}
},
"grpc-async": {
"libraryClient": "AlphaAnalyticsDataAsyncClient",
"rpcs": {
"BatchRunPivotReports": {
"methods": [
"batch_run_pivot_reports"
]
},
"BatchRunReports": {
"methods": [
"batch_run_reports"
]
},
"GetMetadata": {
"methods": [
"get_metadata"
]
},
"RunPivotReport": {
"methods": [
"run_pivot_report"
]
},
"RunRealtimeReport": {
"methods": [
"run_realtime_report"
]
},
"RunReport": {
"methods": [
"run_report"
]
}
}
}
}
}
}
}
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 AlphaAnalyticsDataClient
from .async_client import AlphaAnalyticsDataAsyncClient

Expand Down
Loading

0 comments on commit 0876aae

Please sign in to comment.