| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0d1bd87 commit a9accfd
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ | |||
| 17 | 17 | from distutils import util | |
| 18 | 18 | import os | |
| 19 | 19 | import re | |
| 20 | - from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union | ||
| 20 | + from typing import Dict, Optional, Sequence, Tuple, Type, Union | ||
| 21 | 21 | import pkg_resources | |
| 22 | 22 | ||
| 23 | 23 | from google.api_core import client_options as client_options_lib # type: ignore | |
@@ -349,7 +349,7 @@ def __init__( | |||
| 349 | 349 | ||
| 350 | 350 | def run_report( | |
| 351 | 351 | self, | |
| 352 | - request: analytics_data_api.RunReportRequest = None, | ||
| 352 | + request: Union[analytics_data_api.RunReportRequest, dict] = None, | ||
| 353 | 353 | *, | |
| 354 | 354 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 355 | 355 | timeout: float = None, | |
@@ -366,7 +366,7 @@ def run_report( | |||
| 366 | 366 | criteria, such as country or event name. | |
| 367 | 367 | ||
| 368 | 368 | Args: | |
| 369 | - request (google.analytics.data_v1alpha.types.RunReportRequest): | ||
| 369 | + request (Union[google.analytics.data_v1alpha.types.RunReportRequest, dict]): | ||
| 370 | 370 | The request object. The request to generate a report. | |
| 371 | 371 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
| 372 | 372 | should be retried. | |
@@ -400,7 +400,7 @@ def run_report( | |||
| 400 | 400 | ||
| 401 | 401 | def run_pivot_report( | |
| 402 | 402 | self, | |
| 403 | - request: analytics_data_api.RunPivotReportRequest = None, | ||
| 403 | + request: Union[analytics_data_api.RunPivotReportRequest, dict] = None, | ||
| 404 | 404 | *, | |
| 405 | 405 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 406 | 406 | timeout: float = None, | |
@@ -414,7 +414,7 @@ def run_pivot_report( | |||
| 414 | 414 | dissect your data. | |
| 415 | 415 | ||
| 416 | 416 | Args: | |
| 417 | - request (google.analytics.data_v1alpha.types.RunPivotReportRequest): | ||
| 417 | + request (Union[google.analytics.data_v1alpha.types.RunPivotReportRequest, dict]): | ||
| 418 | 418 | The request object. The request to generate a pivot | |
| 419 | 419 | report. | |
| 420 | 420 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
@@ -449,7 +449,7 @@ def run_pivot_report( | |||
| 449 | 449 | ||
| 450 | 450 | def batch_run_reports( | |
| 451 | 451 | self, | |
| 452 | - request: analytics_data_api.BatchRunReportsRequest = None, | ||
| 452 | + request: Union[analytics_data_api.BatchRunReportsRequest, dict] = None, | ||
| 453 | 453 | *, | |
| 454 | 454 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 455 | 455 | timeout: float = None, | |
@@ -459,7 +459,7 @@ def batch_run_reports( | |||
| 459 | 459 | be for the same Entity. | |
| 460 | 460 | ||
| 461 | 461 | Args: | |
| 462 | - request (google.analytics.data_v1alpha.types.BatchRunReportsRequest): | ||
| 462 | + request (Union[google.analytics.data_v1alpha.types.BatchRunReportsRequest, dict]): | ||
| 463 | 463 | The request object. The batch request containing | |
| 464 | 464 | multiple report requests. | |
| 465 | 465 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
@@ -494,7 +494,7 @@ def batch_run_reports( | |||
| 494 | 494 | ||
| 495 | 495 | def batch_run_pivot_reports( | |
| 496 | 496 | self, | |
| 497 | - request: analytics_data_api.BatchRunPivotReportsRequest = None, | ||
| 497 | + request: Union[analytics_data_api.BatchRunPivotReportsRequest, dict] = None, | ||
| 498 | 498 | *, | |
| 499 | 499 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 500 | 500 | timeout: float = None, | |
@@ -504,7 +504,7 @@ def batch_run_pivot_reports( | |||
| 504 | 504 | reports must be for the same Entity. | |
| 505 | 505 | ||
| 506 | 506 | Args: | |
| 507 | - request (google.analytics.data_v1alpha.types.BatchRunPivotReportsRequest): | ||
| 507 | + request (Union[google.analytics.data_v1alpha.types.BatchRunPivotReportsRequest, dict]): | ||
| 508 | 508 | The request object. The batch request containing | |
| 509 | 509 | multiple pivot report requests. | |
| 510 | 510 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
@@ -539,7 +539,7 @@ def batch_run_pivot_reports( | |||
| 539 | 539 | ||
| 540 | 540 | def get_metadata( | |
| 541 | 541 | self, | |
| 542 | - request: analytics_data_api.GetMetadataRequest = None, | ||
| 542 | + request: Union[analytics_data_api.GetMetadataRequest, dict] = None, | ||
| 543 | 543 | *, | |
| 544 | 544 | name: str = None, | |
| 545 | 545 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
@@ -559,7 +559,7 @@ def get_metadata( | |||
| 559 | 559 | such as ``country`` and ``totalUsers``. | |
| 560 | 560 | ||
| 561 | 561 | Args: | |
| 562 | - request (google.analytics.data_v1alpha.types.GetMetadataRequest): | ||
| 562 | + request (Union[google.analytics.data_v1alpha.types.GetMetadataRequest, dict]): | ||
| 563 | 563 | The request object. Request for a property's dimension | |
| 564 | 564 | and metric metadata. | |
| 565 | 565 | name (str): | |
@@ -630,7 +630,7 @@ def get_metadata( | |||
| 630 | 630 | ||
| 631 | 631 | def run_realtime_report( | |
| 632 | 632 | self, | |
| 633 | - request: analytics_data_api.RunRealtimeReportRequest = None, | ||
| 633 | + request: Union[analytics_data_api.RunRealtimeReportRequest, dict] = None, | ||
| 634 | 634 | *, | |
| 635 | 635 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 636 | 636 | timeout: float = None, | |
@@ -642,7 +642,7 @@ def run_realtime_report( | |||
| 642 | 642 | last 30 minutes. | |
| 643 | 643 | ||
| 644 | 644 | Args: | |
| 645 | - request (google.analytics.data_v1alpha.types.RunRealtimeReportRequest): | ||
| 645 | + request (Union[google.analytics.data_v1alpha.types.RunRealtimeReportRequest, dict]): | ||
| 646 | 646 | The request object. The request to generate a realtime | |
| 647 | 647 | report. | |
| 648 | 648 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -118,7 +118,7 @@ def __init__( | |||
| 118 | 118 | **scopes_kwargs, quota_project_id=quota_project_id | |
| 119 | 119 | ) | |
| 120 | 120 | ||
| 121 | - # If the credentials is service account credentials, then always try to use self signed JWT. | ||
| 121 | + # If the credentials are service account credentials, then always try to use self signed JWT. | ||
| 122 | 122 | if ( | |
| 123 | 123 | always_use_jwt_access | |
| 124 | 124 | and isinstance(credentials, service_account.Credentials) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,16 +80,16 @@ def __init__( | |||
| 80 | 80 | api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. | |
| 81 | 81 | If provided, it overrides the ``host`` argument and tries to create | |
| 82 | 82 | a mutual TLS channel with client SSL credentials from | |
| 83 | - ``client_cert_source`` or applicatin default SSL credentials. | ||
| 83 | + ``client_cert_source`` or application default SSL credentials. | ||
| 84 | 84 | client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 85 | 85 | Deprecated. A callback to provide client SSL certificate bytes and | |
| 86 | 86 | private key bytes, both in PEM format. It is ignored if | |
| 87 | 87 | ``api_mtls_endpoint`` is None. | |
| 88 | 88 | ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials | |
| 89 | - for grpc channel. It is ignored if ``channel`` is provided. | ||
| 89 | + for the grpc channel. It is ignored if ``channel`` is provided. | ||
| 90 | 90 | client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 91 | 91 | A callback to provide client certificate bytes and private key bytes, | |
| 92 | - both in PEM format. It is used to configure mutual TLS channel. It is | ||
| 92 | + both in PEM format. It is used to configure a mutual TLS channel. It is | ||
| 93 | 93 | ignored if ``channel`` or ``ssl_channel_credentials`` is provided. | |
| 94 | 94 | quota_project_id (Optional[str]): An optional project to use for billing | |
| 95 | 95 | and quota. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -127,16 +127,16 @@ def __init__( | |||
| 127 | 127 | api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. | |
| 128 | 128 | If provided, it overrides the ``host`` argument and tries to create | |
| 129 | 129 | a mutual TLS channel with client SSL credentials from | |
| 130 | - ``client_cert_source`` or applicatin default SSL credentials. | ||
| 130 | + ``client_cert_source`` or application default SSL credentials. | ||
| 131 | 131 | client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 132 | 132 | Deprecated. A callback to provide client SSL certificate bytes and | |
| 133 | 133 | private key bytes, both in PEM format. It is ignored if | |
| 134 | 134 | ``api_mtls_endpoint`` is None. | |
| 135 | 135 | ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials | |
| 136 | - for grpc channel. It is ignored if ``channel`` is provided. | ||
| 136 | + for the grpc channel. It is ignored if ``channel`` is provided. | ||
| 137 | 137 | client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 138 | 138 | A callback to provide client certificate bytes and private key bytes, | |
| 139 | - both in PEM format. It is used to configure mutual TLS channel. It is | ||
| 139 | + both in PEM format. It is used to configure a mutual TLS channel. It is | ||
| 140 | 140 | ignored if ``channel`` or ``ssl_channel_credentials`` is provided. | |
| 141 | 141 | quota_project_id (Optional[str]): An optional project to use for billing | |
| 142 | 142 | and quota. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ | |||
| 17 | 17 | from distutils import util | |
| 18 | 18 | import os | |
| 19 | 19 | import re | |
| 20 | - from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union | ||
| 20 | + from typing import Dict, Optional, Sequence, Tuple, Type, Union | ||
| 21 | 21 | import pkg_resources | |
| 22 | 22 | ||
| 23 | 23 | from google.api_core import client_options as client_options_lib # type: ignore | |
@@ -349,7 +349,7 @@ def __init__( | |||
| 349 | 349 | ||
| 350 | 350 | def run_report( | |
| 351 | 351 | self, | |
| 352 | - request: analytics_data_api.RunReportRequest = None, | ||
| 352 | + request: Union[analytics_data_api.RunReportRequest, dict] = None, | ||
| 353 | 353 | *, | |
| 354 | 354 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 355 | 355 | timeout: float = None, | |
@@ -366,7 +366,7 @@ def run_report( | |||
| 366 | 366 | criteria, such as country or event name. | |
| 367 | 367 | ||
| 368 | 368 | Args: | |
| 369 | - request (google.analytics.data_v1beta.types.RunReportRequest): | ||
| 369 | + request (Union[google.analytics.data_v1beta.types.RunReportRequest, dict]): | ||
| 370 | 370 | The request object. The request to generate a report. | |
| 371 | 371 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
| 372 | 372 | should be retried. | |
@@ -406,7 +406,7 @@ def run_report( | |||
| 406 | 406 | ||
| 407 | 407 | def run_pivot_report( | |
| 408 | 408 | self, | |
| 409 | - request: analytics_data_api.RunPivotReportRequest = None, | ||
| 409 | + request: Union[analytics_data_api.RunPivotReportRequest, dict] = None, | ||
| 410 | 410 | *, | |
| 411 | 411 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 412 | 412 | timeout: float = None, | |
@@ -420,7 +420,7 @@ def run_pivot_report( | |||
| 420 | 420 | dissect your data. | |
| 421 | 421 | ||
| 422 | 422 | Args: | |
| 423 | - request (google.analytics.data_v1beta.types.RunPivotReportRequest): | ||
| 423 | + request (Union[google.analytics.data_v1beta.types.RunPivotReportRequest, dict]): | ||
| 424 | 424 | The request object. The request to generate a pivot | |
| 425 | 425 | report. | |
| 426 | 426 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
@@ -461,7 +461,7 @@ def run_pivot_report( | |||
| 461 | 461 | ||
| 462 | 462 | def batch_run_reports( | |
| 463 | 463 | self, | |
| 464 | - request: analytics_data_api.BatchRunReportsRequest = None, | ||
| 464 | + request: Union[analytics_data_api.BatchRunReportsRequest, dict] = None, | ||
| 465 | 465 | *, | |
| 466 | 466 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 467 | 467 | timeout: float = None, | |
@@ -471,7 +471,7 @@ def batch_run_reports( | |||
| 471 | 471 | be for the same GA4 Property. | |
| 472 | 472 | ||
| 473 | 473 | Args: | |
| 474 | - request (google.analytics.data_v1beta.types.BatchRunReportsRequest): | ||
| 474 | + request (Union[google.analytics.data_v1beta.types.BatchRunReportsRequest, dict]): | ||
| 475 | 475 | The request object. The batch request containing | |
| 476 | 476 | multiple report requests. | |
| 477 | 477 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
@@ -512,7 +512,7 @@ def batch_run_reports( | |||
| 512 | 512 | ||
| 513 | 513 | def batch_run_pivot_reports( | |
| 514 | 514 | self, | |
| 515 | - request: analytics_data_api.BatchRunPivotReportsRequest = None, | ||
| 515 | + request: Union[analytics_data_api.BatchRunPivotReportsRequest, dict] = None, | ||
| 516 | 516 | *, | |
| 517 | 517 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 518 | 518 | timeout: float = None, | |
@@ -522,7 +522,7 @@ def batch_run_pivot_reports( | |||
| 522 | 522 | reports must be for the same GA4 Property. | |
| 523 | 523 | ||
| 524 | 524 | Args: | |
| 525 | - request (google.analytics.data_v1beta.types.BatchRunPivotReportsRequest): | ||
| 525 | + request (Union[google.analytics.data_v1beta.types.BatchRunPivotReportsRequest, dict]): | ||
| 526 | 526 | The request object. The batch request containing | |
| 527 | 527 | multiple pivot report requests. | |
| 528 | 528 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
@@ -563,7 +563,7 @@ def batch_run_pivot_reports( | |||
| 563 | 563 | ||
| 564 | 564 | def get_metadata( | |
| 565 | 565 | self, | |
| 566 | - request: analytics_data_api.GetMetadataRequest = None, | ||
| 566 | + request: Union[analytics_data_api.GetMetadataRequest, dict] = None, | ||
| 567 | 567 | *, | |
| 568 | 568 | name: str = None, | |
| 569 | 569 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
@@ -583,7 +583,7 @@ def get_metadata( | |||
| 583 | 583 | such as ``country`` and ``totalUsers``. | |
| 584 | 584 | ||
| 585 | 585 | Args: | |
| 586 | - request (google.analytics.data_v1beta.types.GetMetadataRequest): | ||
| 586 | + request (Union[google.analytics.data_v1beta.types.GetMetadataRequest, dict]): | ||
| 587 | 587 | The request object. Request for a property's dimension | |
| 588 | 588 | and metric metadata. | |
| 589 | 589 | name (str): | |
@@ -654,7 +654,7 @@ def get_metadata( | |||
| 654 | 654 | ||
| 655 | 655 | def run_realtime_report( | |
| 656 | 656 | self, | |
| 657 | - request: analytics_data_api.RunRealtimeReportRequest = None, | ||
| 657 | + request: Union[analytics_data_api.RunRealtimeReportRequest, dict] = None, | ||
| 658 | 658 | *, | |
| 659 | 659 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 660 | 660 | timeout: float = None, | |
@@ -666,7 +666,7 @@ def run_realtime_report( | |||
| 666 | 666 | last 30 minutes. | |
| 667 | 667 | ||
| 668 | 668 | Args: | |
| 669 | - request (google.analytics.data_v1beta.types.RunRealtimeReportRequest): | ||
| 669 | + request (Union[google.analytics.data_v1beta.types.RunRealtimeReportRequest, dict]): | ||
| 670 | 670 | The request object. The request to generate a realtime | |
| 671 | 671 | report. | |
| 672 | 672 | retry (google.api_core.retry.Retry): Designation of what errors, if any, | |
@@ -707,7 +707,7 @@ def run_realtime_report( | |||
| 707 | 707 | ||
| 708 | 708 | def check_compatibility( | |
| 709 | 709 | self, | |
| 710 | - request: analytics_data_api.CheckCompatibilityRequest = None, | ||
| 710 | + request: Union[analytics_data_api.CheckCompatibilityRequest, dict] = None, | ||
| 711 | 711 | *, | |
| 712 | 712 | retry: retries.Retry = gapic_v1.method.DEFAULT, | |
| 713 | 713 | timeout: float = None, | |
@@ -726,7 +726,7 @@ def check_compatibility( | |||
| 726 | 726 | for Core reports. | |
| 727 | 727 | ||
| 728 | 728 | Args: | |
| 729 | - request (google.analytics.data_v1beta.types.CheckCompatibilityRequest): | ||
| 729 | + request (Union[google.analytics.data_v1beta.types.CheckCompatibilityRequest, dict]): | ||
| 730 | 730 | The request object. The request for compatibility | |
| 731 | 731 | information for a report's dimensions and metrics. Check | |
| 732 | 732 | compatibility provides a preview of the compatibility of | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -118,7 +118,7 @@ def __init__( | |||
| 118 | 118 | **scopes_kwargs, quota_project_id=quota_project_id | |
| 119 | 119 | ) | |
| 120 | 120 | ||
| 121 | - # If the credentials is service account credentials, then always try to use self signed JWT. | ||
| 121 | + # If the credentials are service account credentials, then always try to use self signed JWT. | ||
| 122 | 122 | if ( | |
| 123 | 123 | always_use_jwt_access | |
| 124 | 124 | and isinstance(credentials, service_account.Credentials) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,16 +80,16 @@ def __init__( | |||
| 80 | 80 | api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. | |
| 81 | 81 | If provided, it overrides the ``host`` argument and tries to create | |
| 82 | 82 | a mutual TLS channel with client SSL credentials from | |
| 83 | - ``client_cert_source`` or applicatin default SSL credentials. | ||
| 83 | + ``client_cert_source`` or application default SSL credentials. | ||
| 84 | 84 | client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 85 | 85 | Deprecated. A callback to provide client SSL certificate bytes and | |
| 86 | 86 | private key bytes, both in PEM format. It is ignored if | |
| 87 | 87 | ``api_mtls_endpoint`` is None. | |
| 88 | 88 | ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials | |
| 89 | - for grpc channel. It is ignored if ``channel`` is provided. | ||
| 89 | + for the grpc channel. It is ignored if ``channel`` is provided. | ||
| 90 | 90 | client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 91 | 91 | A callback to provide client certificate bytes and private key bytes, | |
| 92 | - both in PEM format. It is used to configure mutual TLS channel. It is | ||
| 92 | + both in PEM format. It is used to configure a mutual TLS channel. It is | ||
| 93 | 93 | ignored if ``channel`` or ``ssl_channel_credentials`` is provided. | |
| 94 | 94 | quota_project_id (Optional[str]): An optional project to use for billing | |
| 95 | 95 | and quota. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -127,16 +127,16 @@ def __init__( | |||
| 127 | 127 | api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. | |
| 128 | 128 | If provided, it overrides the ``host`` argument and tries to create | |
| 129 | 129 | a mutual TLS channel with client SSL credentials from | |
| 130 | - ``client_cert_source`` or applicatin default SSL credentials. | ||
| 130 | + ``client_cert_source`` or application default SSL credentials. | ||
| 131 | 131 | client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 132 | 132 | Deprecated. A callback to provide client SSL certificate bytes and | |
| 133 | 133 | private key bytes, both in PEM format. It is ignored if | |
| 134 | 134 | ``api_mtls_endpoint`` is None. | |
| 135 | 135 | ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials | |
| 136 | - for grpc channel. It is ignored if ``channel`` is provided. | ||
| 136 | + for the grpc channel. It is ignored if ``channel`` is provided. | ||
| 137 | 137 | client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): | |
| 138 | 138 | A callback to provide client certificate bytes and private key bytes, | |
| 139 | - both in PEM format. It is used to configure mutual TLS channel. It is | ||
| 139 | + both in PEM format. It is used to configure a mutual TLS channel. It is | ||
| 140 | 140 | ignored if ``channel`` or ``ssl_channel_credentials`` is provided. | |
| 141 | 141 | quota_project_id (Optional[str]): An optional project to use for billing | |
| 142 | 142 | and quota. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments