diff --git a/describe.py b/describe.py index 3236cafb869..a24233027fe 100644 --- a/describe.py +++ b/describe.py @@ -169,7 +169,7 @@ def safe_version(version): - """Create a safe version of the verion string. + """Create a safe version of the version string. Needed so that we can distinguish between versions and sub-collections in URIs. I.e. we don't want diff --git a/docs/oauth-server.md b/docs/oauth-server.md index f5709673ef7..50d73c800af 100644 --- a/docs/oauth-server.md +++ b/docs/oauth-server.md @@ -8,7 +8,7 @@ If you have a G Suite domain—if you use [G Suite](https://gsuite.google.com/), > **Note:** When you use [G Suite Marketplace](https://www.google.com/enterprise/marketplace/) to install an application for your domain, the required permissions are automatically granted to the application. You do not need to manually authorize the service accounts that the application uses. -> **Note:** Although you can use service accounts in applications that run from a G Suite domain, service accounts are not members of your G Suite account and aren't subject to domain policies set by G Suite administrators. For example, a policy set in the G Suite Admin console to restrict the ability of G Suite end users to share documents outside of the domain would not apply to service accounts. Similarly, that policy would prevent users from sharing documents with service accounts, because service acounts are always outside of the domain. If you're using G Suite domain-wide delegation, this isn't relevant to you - you are accessing APIs while acting as a domain user, not as the service account itself. +> **Note:** Although you can use service accounts in applications that run from a G Suite domain, service accounts are not members of your G Suite account and aren't subject to domain policies set by G Suite administrators. For example, a policy set in the G Suite Admin console to restrict the ability of G Suite end users to share documents outside of the domain would not apply to service accounts. Similarly, that policy would prevent users from sharing documents with service accounts, because service accounts are always outside of the domain. If you're using G Suite domain-wide delegation, this isn't relevant to you - you are accessing APIs while acting as a domain user, not as the service account itself. This document describes how an application can complete the server-to-server OAuth 2.0 flow by using the Google APIs Client Library for Python. diff --git a/googleapiclient/discovery.py b/googleapiclient/discovery.py index 4e92b2cc1bd..53f1438bc09 100644 --- a/googleapiclient/discovery.py +++ b/googleapiclient/discovery.py @@ -282,7 +282,7 @@ def build( # The default value for `static_discovery` depends on the value of # `discoveryServiceUrl`. `static_discovery` will default to `True` when # `discoveryServiceUrl` is also not provided, otherwise it will default to - # `False`. This is added for backwards compatability with + # `False`. This is added for backwards compatibility with # google-api-python-client 1.x which does not support the `static_discovery` # parameter. if static_discovery is None: @@ -709,7 +709,7 @@ def build_from_document( ) # Switch to mTLS endpoint, if environment variable is "always", or - # environment varibable is "auto" and client cert exists. + # environment variable is "auto" and client cert exists. if use_mtls_endpoint == "always" or ( use_mtls_endpoint == "auto" and client_cert_to_use ): diff --git a/googleapiclient/http.py b/googleapiclient/http.py index 5aad0768548..7d8eaff848d 100644 --- a/googleapiclient/http.py +++ b/googleapiclient/http.py @@ -1738,7 +1738,7 @@ class RequestMockBuilder(object): googleapiclient.discovery.build("plus", "v1", requestBuilder=requestBuilder) Methods that you do not supply a response for will return a - 200 OK with an empty string as the response content or raise an excpetion + 200 OK with an empty string as the response content or raise an exception if check_unexpected is set to True. The methodId is taken from the rpcName in the discovery document. diff --git a/samples/analytics/management_v3_reference.py b/samples/analytics/management_v3_reference.py index c5ad2e7ab46..cfce11aafa4 100755 --- a/samples/analytics/management_v3_reference.py +++ b/samples/analytics/management_v3_reference.py @@ -429,7 +429,7 @@ def print_pagination_info(management_response): """Prints common pagination details. Args: - management_response: The common reponse object for each collection in the + management_response: The common response object for each collection in the Management API. """ diff --git a/scripts/changesummary.py b/scripts/changesummary.py index 3a439550381..6232eaead8a 100644 --- a/scripts/changesummary.py +++ b/scripts/changesummary.py @@ -459,7 +459,7 @@ def _write_verbose_changes_to_disk(self, dataframe, directory, summary_df): # Get the string in the `Summary` column for the current api and # append it to `verbose_changes`. The `Summary` column contains # the conventional commit message. Use pandas.Series.iloc[0] to - # retrieve only the first elemnt, since all the values in the + # retrieve only the first element, since all the values in the # summary column are the same for a given API. verbose_changes.append(summary_df[current_api_filter].Summary.iloc[0])