Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

feat: add from_service_account_info #259

Merged
merged 51 commits into from Mar 10, 2021
Merged
Show file tree
Hide file tree
Changes from 49 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
10e06c3
changes without context
yoshi-automation Mar 9, 2021
ac288b6
chore(java): update trademark blurb in README
yoshi-automation Mar 9, 2021
f2e33ce
build: add package name for iam-credentials
yoshi-automation Mar 9, 2021
7912589
feat: add experiment and security settings API docs: update comments …
yoshi-automation Mar 9, 2021
d148e18
docs: update comments on parameters and validation result.
yoshi-automation Mar 9, 2021
303ea4e
feat: C++ rules for frequently-mentioned services
yoshi-automation Mar 9, 2021
d9f394d
docs: update comments on parameters and validation result.
yoshi-automation Mar 9, 2021
ae4ed32
feat: add C++ rules for Logging service
yoshi-automation Mar 9, 2021
b1de085
chore: upgrade gapic-generator-python to 0.39.1
yoshi-automation Mar 9, 2021
27843af
chore: Update C# namespace
yoshi-automation Mar 9, 2021
c2acff7
feat: Publish experimental build files for Google Ads API.
yoshi-automation Mar 9, 2021
82ef915
feat: added expire_time and ttl fields to Secret
yoshi-automation Mar 9, 2021
18153c2
docs: clarified voice selection params names
yoshi-automation Mar 9, 2021
3d9971b
docs: Put resource paths in code spans and use absolute URLs
yoshi-automation Mar 9, 2021
84bc931
chore: update Go generator, rules_go, and protobuf
yoshi-automation Mar 9, 2021
6fa79e9
chore: upgrade gapic-generator-python to 0.40.5
yoshi-automation Mar 9, 2021
4a27162
feat: Add `ErrorReason` enum from `google.api.error_reason` for Googl…
yoshi-automation Mar 9, 2021
e69b1b8
chore: remove unused package option from Bazel build in aiplatform, s…
yoshi-automation Mar 9, 2021
a2f1707
chore(profiler): Set proto namespace to google.cloud
yoshi-automation Mar 9, 2021
df606e1
chore: remove all artman config files
yoshi-automation Mar 9, 2021
f5febcd
chore: remove more unused package options in java_gapic_library rules
yoshi-automation Mar 9, 2021
769fb2e
chore: re-remove non-existent package option from java_gapic_library …
yoshi-automation Mar 9, 2021
be990a5
fix: Update bazel builds for ER client libraries.
yoshi-automation Mar 9, 2021
5b7d31a
chore: update gapic-generator-python
yoshi-automation Mar 9, 2021
686d18c
feat: supports SentimentAnalysisResult in webhook request, add http r…
yoshi-automation Mar 9, 2021
079555c
docs: Update rules for currency_code in budget_amount.
yoshi-automation Mar 9, 2021
2a9b2ea
chore: Operations proto comment cleanup
yoshi-automation Mar 9, 2021
2bf5256
chore(bazel): temp override go-genproto dep
yoshi-automation Mar 9, 2021
ea10de6
build: add BUILD files to generate client library for orgpolicy
yoshi-automation Mar 9, 2021
09b3b2f
fix: RunTestCase http template. PHP REST client lib can be generated.…
yoshi-automation Mar 9, 2021
743deab
chore(bazel): update Go microgenerator to v0.18.2
yoshi-automation Mar 9, 2021
85f11d4
feat: Support Model Adaptation.
yoshi-automation Mar 9, 2021
9eb1f81
feat: add additional_bindings to Dialogflow v2beta1 ListIntents API d…
yoshi-automation Mar 9, 2021
6344cbe
feat: add additional_bindings to Dialogflow v2 ListIntents API docs: …
yoshi-automation Mar 9, 2021
db0e6bc
feat: Update the ruby_cloud_gapic_library rules for the libraries pub…
yoshi-automation Mar 9, 2021
ff16296
chore: update AdMob v1 build to use Java, Python microgenerators
yoshi-automation Mar 9, 2021
f3f88ee
chore: Uncomment Java build rules chore: Remove package from java_gap…
yoshi-automation Mar 9, 2021
522598c
feat: Initial release of version v1p7beta1. Changes since last versio…
yoshi-automation Mar 9, 2021
5d32764
chore: update gapic-generator-python to 0.40.11
yoshi-automation Mar 9, 2021
9b98d96
chore: clean up unused gapic.legacy.yaml files
yoshi-automation Mar 9, 2021
79476ac
chore: update deps in googleads proto packages
yoshi-automation Mar 9, 2021
b36b35c
feat: Add CCAI API
yoshi-automation Mar 9, 2021
45c5c6d
feat: Add CCAI API
yoshi-automation Mar 9, 2021
bccdf63
chore: set python target name to google-analytics-data-v1beta-py for …
yoshi-automation Mar 9, 2021
578044d
fix!: remove MixedAudio BREAKING CHANGE: mixed_audio is removed from …
yoshi-automation Mar 9, 2021
e8da16d
fix(retry): restore grpc_service_config for CreateBackup and {Restore…
yoshi-automation Mar 9, 2021
6d3d02c
chore: update gax-java dependency to 1.62
yoshi-automation Mar 9, 2021
5a88a91
chore: upgrade gapic-generator-python to 0.42.2
yoshi-automation Mar 9, 2021
c8d61bf
build: use gapic-generator-typescript v1.2.11.
yoshi-automation Mar 9, 2021
85e86bb
Merge branch 'master' into autosynth-googleapis
busunkim96 Mar 9, 2021
84e5794
chore: regen, lower cov to 99
busunkim96 Mar 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 3 additions & 19 deletions .coveragerc
@@ -1,27 +1,11 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
[run]
branch = True

[report]
fail_under = 100
show_missing = True
omit = google/cloud/dialogflow/__init__.py
omit =
google/cloud/dialogflow/__init__.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
Expand All @@ -31,4 +15,4 @@ exclude_lines =
# This is added at the module level as a safeguard for if someone
# generates the code and tries to run it without pip installing. This
# makes it virtually impossible to test properly.
except pkg_resources.DistributionNotFound
except pkg_resources.DistributionNotFound
8 changes: 4 additions & 4 deletions .kokoro/test-samples.sh
Expand Up @@ -87,11 +87,11 @@ for file in samples/**/requirements.txt; do
python3.6 -m nox -s "$RUN_TESTS_SESSION"
EXIT=$?

# If this is a periodic build, send the test log to the FlakyBot.
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
# If this is a periodic build, send the test log to the Build Cop Bot.
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop.
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
$KOKORO_GFILE_DIR/linux_amd64/flakybot
chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop
$KOKORO_GFILE_DIR/linux_amd64/buildcop
fi

if [[ $EXIT -ne 0 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/trampoline_v2.sh
Expand Up @@ -159,7 +159,7 @@ if [[ -n "${KOKORO_BUILD_ID:-}" ]]; then
"KOKORO_GITHUB_COMMIT"
"KOKORO_GITHUB_PULL_REQUEST_NUMBER"
"KOKORO_GITHUB_PULL_REQUEST_COMMIT"
# For FlakyBot
# For Build Cop Bot
"KOKORO_GITHUB_COMMIT_URL"
"KOKORO_GITHUB_PULL_REQUEST_URL"
)
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
107 changes: 32 additions & 75 deletions README.rst
@@ -1,92 +1,49 @@
Dialogflow: Python Client
=========================
Python Client for Google Cloud Dialogflow API
busunkim96 marked this conversation as resolved.
Show resolved Hide resolved
=================================================

|ga| |pypi| |versions|
Quick Start
-----------

Python idiomatic client for `Dialogflow ES`_
In order to use this library, you first need to go through the following steps:

`Dialogflow ES`_ is an enterprise-grade NLU platform that makes it easy for
developers to design and integrate conversational user interfaces into
mobile apps, web applications, devices, and bots.

* `Dialogflow ES Python Client API Reference <https://googleapis.dev/python/dialogflow/latest/index.html>`_
* `Dialogflow ES Documentation <https://cloud.google.com/dialogflow/es/docs>`_

Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in
`Client Libraries Explained <https://cloud.google.com/apis/docs/client-libraries-explained>`_.

.. |ga| image:: https://img.shields.io/badge/support-ga-gold.svg
:target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#ga-support
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-dialogflow.svg
:target: https://pypi.org/project/google-cloud-dialogflow/
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-dialogflow.svg
:target: https://pypi.org/project/google-cloud-dialogflow/
.. _Dialogflow ES: https://cloud.google.com/dialogflow/docs/


Before you begin
----------------

#. Select or create a Cloud Platform `project`_.
#. `Enable billing`_ for your project.
#. `Enable the Google Cloud Dialogflow API`_.
#. `Set up authentication`_ with a service account so you can access the
API from your local workstation.

.. _project: https://console.cloud.google.com/project
.. _Enable billing: https://support.google.com/cloud/answer/6293499#enable-billing
.. _Enable the Google Cloud Dialogflow API: https://console.cloud.google.com/flows/enableapi?apiid=dialogflow.googleapis.com
.. _Set up authentication: https://cloud.google.com/docs/authentication/getting-started
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
3. Enable the Google Cloud Dialogflow API.
4. `Setup Authentication.`_

.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html

Installation
------------

.. code-block:: shell

pip install google-cloud-dialogflow

.. note::

We highly recommend that you install this library in a
`virtualenv <https://virtualenv.pypa.io/en/latest/>`_.


Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.6

Unsupported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^
The last version of this library compatible with Python 2.7 is dialogflow==1.1.0.


Usage
-----
~~~~~~~~~~~~

View `usage documentation <https://googleapis.dev/python/dialogflow/latest/index.html>`_.
Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
create isolated Python environments. The basic problem it addresses is one of
dependencies and versions, and indirectly permissions.

With `virtualenv`_, it's possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.

Versioning
----------
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/

This library follows `Semantic Versioning <http://semver.org/>`_.

This library is considered to be stable. This means and that the code surface will not change in backwards-incompatible
ways unless either absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation
period. Issues and requests against GA libraries are addressed with the highest priority.
Mac/Linux
^^^^^^^^^

More Information: `Google Cloud Python Library Support <https://github.com/googleapis/google-cloud-python/blob/master/README.rst#general-availability>`_
.. code-block:: console

Contributing
------------
python3 -m venv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install /path/to/library

Contributions welcome! See the `Contributing Guide <https://github.com/googleapis/python-dialogflow/blob/master/.github/CONTRIBUTING.md>`_.

License
-------
Windows
^^^^^^^

Apache Version 2.0
.. code-block:: console

See `the LICENSE file <https://github.com/googleapis/python-dialogflow/blob/master/LICENSE>`_ for more information.
python3 -m venv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install \path\to\library
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/agents.rst
@@ -0,0 +1,11 @@
Agents
------------------------

.. automodule:: google.cloud.dialogflow_v2.services.agents
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.agents.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/answer_records.rst
@@ -0,0 +1,11 @@
AnswerRecords
-------------------------------

.. automodule:: google.cloud.dialogflow_v2.services.answer_records
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.answer_records.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/contexts.rst
@@ -0,0 +1,11 @@
Contexts
--------------------------

.. automodule:: google.cloud.dialogflow_v2.services.contexts
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.contexts.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/conversation_profiles.rst
@@ -0,0 +1,11 @@
ConversationProfiles
--------------------------------------

.. automodule:: google.cloud.dialogflow_v2.services.conversation_profiles
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.conversation_profiles.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/conversations.rst
@@ -0,0 +1,11 @@
Conversations
-------------------------------

.. automodule:: google.cloud.dialogflow_v2.services.conversations
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.conversations.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/documents.rst
@@ -0,0 +1,11 @@
Documents
---------------------------

.. automodule:: google.cloud.dialogflow_v2.services.documents
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.documents.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/entity_types.rst
@@ -0,0 +1,11 @@
EntityTypes
-----------------------------

.. automodule:: google.cloud.dialogflow_v2.services.entity_types
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.entity_types.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/environments.rst
@@ -0,0 +1,11 @@
Environments
------------------------------

.. automodule:: google.cloud.dialogflow_v2.services.environments
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.environments.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/intents.rst
@@ -0,0 +1,11 @@
Intents
-------------------------

.. automodule:: google.cloud.dialogflow_v2.services.intents
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.intents.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/knowledge_bases.rst
@@ -0,0 +1,11 @@
KnowledgeBases
--------------------------------

.. automodule:: google.cloud.dialogflow_v2.services.knowledge_bases
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.knowledge_bases.pagers
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/participants.rst
@@ -0,0 +1,11 @@
Participants
------------------------------

.. automodule:: google.cloud.dialogflow_v2.services.participants
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.participants.pagers
:members:
:inherited-members:
36 changes: 15 additions & 21 deletions docs/dialogflow_v2/services.rst
@@ -1,24 +1,18 @@
Services for Google Cloud Dialogflow v2 API
===========================================
.. toctree::
:maxdepth: 2

.. automodule:: google.cloud.dialogflow_v2.services.agents
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflow_v2.services.contexts
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflow_v2.services.entity_types
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflow_v2.services.environments
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflow_v2.services.intents
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflow_v2.services.session_entity_types
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflow_v2.services.sessions
:members:
:inherited-members:
agents
answer_records
contexts
conversation_profiles
conversations
documents
entity_types
environments
intents
knowledge_bases
participants
session_entity_types
sessions
11 changes: 11 additions & 0 deletions docs/dialogflow_v2/session_entity_types.rst
@@ -0,0 +1,11 @@
SessionEntityTypes
------------------------------------

.. automodule:: google.cloud.dialogflow_v2.services.session_entity_types
:members:
:inherited-members:


.. automodule:: google.cloud.dialogflow_v2.services.session_entity_types.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/dialogflow_v2/sessions.rst
@@ -0,0 +1,6 @@
Sessions
--------------------------

.. automodule:: google.cloud.dialogflow_v2.services.sessions
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/dialogflow_v2/types.rst
Expand Up @@ -3,4 +3,5 @@ Types for Google Cloud Dialogflow v2 API

.. automodule:: google.cloud.dialogflow_v2.types
:members:
:undoc-members:
:show-inheritance: