Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.1 (#186)
Browse files Browse the repository at this point in the history
- [x] Regenerate this pull request now.

docs: add autogenerated code snippets
PiperOrigin-RevId: 426256923

Source-Link: googleapis/googleapis@9ebabfa

Source-Link: googleapis/googleapis-gen@a881752
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTg4MTc1MjYzZTYwYTFkNDVkM2E0NDc4NDg2NTJiMGY2NzBiMmNiOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Feb 4, 2022
1 parent d6215a6 commit de83791
Show file tree
Hide file tree
Showing 17 changed files with 1,520 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,25 @@ async def run_report(
Dimensions break down metrics across some common
criteria, such as country or event name.
.. code-block::
from google.analytics import data_v1beta
def sample_run_report():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.RunReportRequest(
)
# Make the request
response = client.run_report(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.RunReportRequest, dict]):
The request object. The request to generate a report.
Expand Down Expand Up @@ -273,6 +292,25 @@ async def run_pivot_report(
in a pivot. Multiple pivots can be specified to further
dissect your data.
.. code-block::
from google.analytics import data_v1beta
def sample_run_pivot_report():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.RunPivotReportRequest(
)
# Make the request
response = client.run_pivot_report(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.RunPivotReportRequest, dict]):
The request object. The request to generate a pivot
Expand Down Expand Up @@ -323,6 +361,25 @@ async def batch_run_reports(
r"""Returns multiple reports in a batch. All reports must
be for the same GA4 Property.
.. code-block::
from google.analytics import data_v1beta
def sample_batch_run_reports():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.BatchRunReportsRequest(
)
# Make the request
response = client.batch_run_reports(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.BatchRunReportsRequest, dict]):
The request object. The batch request containing
Expand Down Expand Up @@ -373,6 +430,25 @@ async def batch_run_pivot_reports(
r"""Returns multiple pivot reports in a batch. All
reports must be for the same GA4 Property.
.. code-block::
from google.analytics import data_v1beta
def sample_batch_run_pivot_reports():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.BatchRunPivotReportsRequest(
)
# Make the request
response = client.batch_run_pivot_reports(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.BatchRunPivotReportsRequest, dict]):
The request object. The batch request containing
Expand Down Expand Up @@ -433,6 +509,26 @@ async def get_metadata(
metadata are dimensions and metrics applicable to any property
such as ``country`` and ``totalUsers``.
.. code-block::
from google.analytics import data_v1beta
def sample_get_metadata():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.GetMetadataRequest(
name="name_value",
)
# Make the request
response = client.get_metadata(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.GetMetadataRequest, dict]):
The request object. Request for a property's dimension
Expand Down Expand Up @@ -516,6 +612,25 @@ async def run_realtime_report(
property. These reports show events and usage from the
last 30 minutes.
.. code-block::
from google.analytics import data_v1beta
def sample_run_realtime_report():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.RunRealtimeReportRequest(
)
# Make the request
response = client.run_realtime_report(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.RunRealtimeReportRequest, dict]):
The request object. The request to generate a realtime
Expand Down Expand Up @@ -575,6 +690,25 @@ async def check_compatibility(
compatibility rules. This method checks compatibility
for Core reports.
.. code-block::
from google.analytics import data_v1beta
def sample_check_compatibility():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.CheckCompatibilityRequest(
)
# Make the request
response = client.check_compatibility(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.CheckCompatibilityRequest, dict]):
The request object. The request for compatibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,26 @@ def run_report(
Dimensions break down metrics across some common
criteria, such as country or event name.
.. code-block::
from google.analytics import data_v1beta
def sample_run_report():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.RunReportRequest(
)
# Make the request
response = client.run_report(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.RunReportRequest, dict]):
The request object. The request to generate a report.
Expand Down Expand Up @@ -468,6 +488,26 @@ def run_pivot_report(
in a pivot. Multiple pivots can be specified to further
dissect your data.
.. code-block::
from google.analytics import data_v1beta
def sample_run_pivot_report():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.RunPivotReportRequest(
)
# Make the request
response = client.run_pivot_report(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.RunPivotReportRequest, dict]):
The request object. The request to generate a pivot
Expand Down Expand Up @@ -519,6 +559,26 @@ def batch_run_reports(
r"""Returns multiple reports in a batch. All reports must
be for the same GA4 Property.
.. code-block::
from google.analytics import data_v1beta
def sample_batch_run_reports():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.BatchRunReportsRequest(
)
# Make the request
response = client.batch_run_reports(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.BatchRunReportsRequest, dict]):
The request object. The batch request containing
Expand Down Expand Up @@ -570,6 +630,26 @@ def batch_run_pivot_reports(
r"""Returns multiple pivot reports in a batch. All
reports must be for the same GA4 Property.
.. code-block::
from google.analytics import data_v1beta
def sample_batch_run_pivot_reports():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.BatchRunPivotReportsRequest(
)
# Make the request
response = client.batch_run_pivot_reports(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.BatchRunPivotReportsRequest, dict]):
The request object. The batch request containing
Expand Down Expand Up @@ -631,6 +711,27 @@ def get_metadata(
metadata are dimensions and metrics applicable to any property
such as ``country`` and ``totalUsers``.
.. code-block::
from google.analytics import data_v1beta
def sample_get_metadata():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.GetMetadataRequest(
name="name_value",
)
# Make the request
response = client.get_metadata(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.GetMetadataRequest, dict]):
The request object. Request for a property's dimension
Expand Down Expand Up @@ -714,6 +815,26 @@ def run_realtime_report(
property. These reports show events and usage from the
last 30 minutes.
.. code-block::
from google.analytics import data_v1beta
def sample_run_realtime_report():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.RunRealtimeReportRequest(
)
# Make the request
response = client.run_realtime_report(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.RunRealtimeReportRequest, dict]):
The request object. The request to generate a realtime
Expand Down Expand Up @@ -774,6 +895,26 @@ def check_compatibility(
compatibility rules. This method checks compatibility
for Core reports.
.. code-block::
from google.analytics import data_v1beta
def sample_check_compatibility():
# Create a client
client = data_v1beta.BetaAnalyticsDataClient()
# Initialize request argument(s)
request = data_v1beta.CheckCompatibilityRequest(
)
# Make the request
response = client.check_compatibility(request=request)
# Handle response
print(response)
Args:
request (Union[google.analytics.data_v1beta.types.CheckCompatibilityRequest, dict]):
The request object. The request for compatibility
Expand Down
Loading

0 comments on commit de83791

Please sign in to comment.