Dabei sollen nicht die Python-Clientbibliotheken erläutert werden, sondern die Vorgehensweise zum Durchführen von Aufrufen an die Natural Language API.
In diesem Lab erfahren Sie, wie Sie Nachrichten mit Cloud Pub/Sub über die Python-Clientbibliothek veröffentlichen.
This lab shows you how to get started publishing messages with Cloud Pub/Sub using the Python client library.
In diesem Lab erfahren Sie, wie Sie Nachrichten mit Cloud Pub/Sub über die Python-Clientbibliothek veröffentlichen.
In this lab, you launch a Confluent Kafka instance and use it to communicate with Cloud Pub/Sub.
Im vorherigen Beispiel wurde die Anwendung auf einer Compute Engine-Instanz ausgeführt, wobei die Python-Clientbibliothek mit den Standardanmeldedaten der Anwendung das Dienstkonto verwenden konnte, das mit der Instanz source verbunden war.
In the previous example, you ran the application on a Compute Engine instance where the Python client library could use Application Default Credentials to use the service account that was associated with the source instance.
In diesem Lab erfahren Sie, wie Sie Nachrichten mit Cloud Pub/Sub über die Python-Clientbibliothek veröffentlichen.
Da die Instanz source mit dem Dienstkonto ssh-account verbunden ist, das Sie erstellt haben, kann sich die Python-Clientbibliothek mithilfe der Standardanmeldedaten der Anwendung als Dienstkonto authentifizieren und die dem Dienstkonto zuvor zugewiesenen Rollen nutzen.
Because the source instance is associated with the ssh-account service account that you created, the Python client library can use Application Default Credentials to authenticate as the service account and use the roles that you granted to that service account earlier.
Hinweis: In den Code-Snippets in diesem Artikel wird die Python DB-Clientbibliothek für Cloud Datastore verwendet, die nicht mehr empfohlen wird.
Note: The code snippets in this article use the Python DB Client Library for Cloud Datastore, which is no longer recommended.
Python-Clientbibliothek mit benutzerdefinierten Transformern verwenden
Wenn Sie einen Trainingsjob mit der Google APIs-Clientbibliothek für Python senden, geben Sie die Konfiguration in einem Wörterbuch mit derselben Struktur wie die Ressource Job an.
When you submit a training job using the Google APIs Client Library for Python, set your configuration in a dictionary with the same structure as the Job resource.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.
Aucun résultat pour cette recherche.
Synonymes et analogies de "die Python-Clientbibliotheken" en allemand