Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit ff2beb8

Browse files
authored
chore: upgrade gapic-generator-python to 0.46.3 (#79)
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
1 parent 72eaf4c commit ff2beb8

36 files changed

Lines changed: 1297 additions & 1008 deletions

google/analytics/data/__init__.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
1514
# limitations under the License.
1615
#
1716

18-
from google.analytics.data_v1beta.services.beta_analytics_data.async_client import (
19-
BetaAnalyticsDataAsyncClient,
20-
)
2117
from google.analytics.data_v1beta.services.beta_analytics_data.client import (
2218
BetaAnalyticsDataClient,
2319
)
20+
from google.analytics.data_v1beta.services.beta_analytics_data.async_client import (
21+
BetaAnalyticsDataAsyncClient,
22+
)
23+
2424
from google.analytics.data_v1beta.types.analytics_data_api import (
2525
BatchRunPivotReportsRequest,
2626
)
@@ -57,10 +57,8 @@
5757
from google.analytics.data_v1beta.types.data import FilterExpression
5858
from google.analytics.data_v1beta.types.data import FilterExpressionList
5959
from google.analytics.data_v1beta.types.data import Metric
60-
from google.analytics.data_v1beta.types.data import MetricAggregation
6160
from google.analytics.data_v1beta.types.data import MetricHeader
6261
from google.analytics.data_v1beta.types.data import MetricMetadata
63-
from google.analytics.data_v1beta.types.data import MetricType
6462
from google.analytics.data_v1beta.types.data import MetricValue
6563
from google.analytics.data_v1beta.types.data import NumericValue
6664
from google.analytics.data_v1beta.types.data import OrderBy
@@ -71,14 +69,24 @@
7169
from google.analytics.data_v1beta.types.data import QuotaStatus
7270
from google.analytics.data_v1beta.types.data import ResponseMetaData
7371
from google.analytics.data_v1beta.types.data import Row
72+
from google.analytics.data_v1beta.types.data import MetricAggregation
73+
from google.analytics.data_v1beta.types.data import MetricType
7474

7575
__all__ = (
76+
"BetaAnalyticsDataClient",
77+
"BetaAnalyticsDataAsyncClient",
7678
"BatchRunPivotReportsRequest",
7779
"BatchRunPivotReportsResponse",
7880
"BatchRunReportsRequest",
7981
"BatchRunReportsResponse",
80-
"BetaAnalyticsDataAsyncClient",
81-
"BetaAnalyticsDataClient",
82+
"GetMetadataRequest",
83+
"Metadata",
84+
"RunPivotReportRequest",
85+
"RunPivotReportResponse",
86+
"RunRealtimeReportRequest",
87+
"RunRealtimeReportResponse",
88+
"RunReportRequest",
89+
"RunReportResponse",
8290
"Cohort",
8391
"CohortReportSettings",
8492
"CohortSpec",
@@ -92,13 +100,9 @@
92100
"Filter",
93101
"FilterExpression",
94102
"FilterExpressionList",
95-
"GetMetadataRequest",
96-
"Metadata",
97103
"Metric",
98-
"MetricAggregation",
99104
"MetricHeader",
100105
"MetricMetadata",
101-
"MetricType",
102106
"MetricValue",
103107
"NumericValue",
104108
"OrderBy",
@@ -109,10 +113,6 @@
109113
"QuotaStatus",
110114
"ResponseMetaData",
111115
"Row",
112-
"RunPivotReportRequest",
113-
"RunPivotReportResponse",
114-
"RunRealtimeReportRequest",
115-
"RunRealtimeReportResponse",
116-
"RunReportRequest",
117-
"RunReportResponse",
116+
"MetricAggregation",
117+
"MetricType",
118118
)

google/analytics/data_v1alpha/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
1615
#
1716

1817
from .services.alpha_analytics_data import AlphaAnalyticsDataClient
18+
from .services.alpha_analytics_data import AlphaAnalyticsDataAsyncClient
19+
1920
from .types.analytics_data_api import BatchRunPivotReportsRequest
2021
from .types.analytics_data_api import BatchRunPivotReportsResponse
2122
from .types.analytics_data_api import BatchRunReportsRequest
@@ -43,10 +44,8 @@
4344
from .types.data import FilterExpression
4445
from .types.data import FilterExpressionList
4546
from .types.data import Metric
46-
from .types.data import MetricAggregation
4747
from .types.data import MetricHeader
4848
from .types.data import MetricMetadata
49-
from .types.data import MetricType
5049
from .types.data import MetricValue
5150
from .types.data import NumericValue
5251
from .types.data import OrderBy
@@ -57,9 +56,12 @@
5756
from .types.data import QuotaStatus
5857
from .types.data import ResponseMetaData
5958
from .types.data import Row
60-
59+
from .types.data import MetricAggregation
60+
from .types.data import MetricType
6161

6262
__all__ = (
63+
"AlphaAnalyticsDataAsyncClient",
64+
"AlphaAnalyticsDataClient",
6365
"BatchRunPivotReportsRequest",
6466
"BatchRunPivotReportsResponse",
6567
"BatchRunReportsRequest",
@@ -101,5 +103,4 @@
101103
"RunRealtimeReportResponse",
102104
"RunReportRequest",
103105
"RunReportResponse",
104-
"AlphaAnalyticsDataClient",
105106
)
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.analytics.data_v1alpha",
5+
"protoPackage": "google.analytics.data.v1alpha",
6+
"schema": "1.0",
7+
"services": {
8+
"AlphaAnalyticsData": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "AlphaAnalyticsDataClient",
12+
"rpcs": {
13+
"BatchRunPivotReports": {
14+
"methods": [
15+
"batch_run_pivot_reports"
16+
]
17+
},
18+
"BatchRunReports": {
19+
"methods": [
20+
"batch_run_reports"
21+
]
22+
},
23+
"GetMetadata": {
24+
"methods": [
25+
"get_metadata"
26+
]
27+
},
28+
"RunPivotReport": {
29+
"methods": [
30+
"run_pivot_report"
31+
]
32+
},
33+
"RunRealtimeReport": {
34+
"methods": [
35+
"run_realtime_report"
36+
]
37+
},
38+
"RunReport": {
39+
"methods": [
40+
"run_report"
41+
]
42+
}
43+
}
44+
},
45+
"grpc-async": {
46+
"libraryClient": "AlphaAnalyticsDataAsyncClient",
47+
"rpcs": {
48+
"BatchRunPivotReports": {
49+
"methods": [
50+
"batch_run_pivot_reports"
51+
]
52+
},
53+
"BatchRunReports": {
54+
"methods": [
55+
"batch_run_reports"
56+
]
57+
},
58+
"GetMetadata": {
59+
"methods": [
60+
"get_metadata"
61+
]
62+
},
63+
"RunPivotReport": {
64+
"methods": [
65+
"run_pivot_report"
66+
]
67+
},
68+
"RunRealtimeReport": {
69+
"methods": [
70+
"run_realtime_report"
71+
]
72+
},
73+
"RunReport": {
74+
"methods": [
75+
"run_report"
76+
]
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
83+
}

google/analytics/data_v1alpha/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

google/analytics/data_v1alpha/services/alpha_analytics_data/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import AlphaAnalyticsDataClient
1917
from .async_client import AlphaAnalyticsDataAsyncClient
2018

0 commit comments

Comments
 (0)