This repository was archived by the owner on Dec 17, 2023. It is now read-only.
feat: add environments client#217
Merged
Merged
Conversation
…ng documentai as an example. Depends on googleapis/gapic-generator-python#402 PiperOrigin-RevId: 309824146 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon May 4 15:06:44 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: e0f9d9e1f9de890db765be46f45ca8490723e3eb Source-Link: googleapis/googleapis@e0f9d9e
Restores GAPIC v2 retry config overrides that were mistakenly removed during migration. PiperOrigin-RevId: 312088359 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon May 18 08:57:12 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 5a90d467aa65e7f038f87585e8fbb45d74475e7c Source-Link: googleapis/googleapis@5a90d46
PiperOrigin-RevId: 312123588 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon May 18 11:49:18 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: cd3ce2651c3921670217e664303976cdf76e9fe2 Source-Link: googleapis/googleapis@cd3ce26
… in the Document resource BREAKING CHANGE: additional long-running operation annotations BREAKING CHANGE: some existing request fields are now explicitly required BREAKING CHANGE: the order of the Session resource patterns has changed PiperOrigin-RevId: 312345206 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue May 19 13:46:01 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 7a8875d4bcf51993f6f7aa181066cc5ec95539d5 Source-Link: googleapis/googleapis@7a8875d
PiperOrigin-RevId: 312689208 Source-Author: Google APIs <noreply@google.com> Source-Date: Thu May 21 10:00:47 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: dec3204175104cef49bf21d685d5517caaf0058f Source-Link: googleapis/googleapis@dec3204
… update Go library. docs: update doc links for intent. PiperOrigin-RevId: 313408465 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed May 27 09:53:46 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 576234f179d2e8dde1e629888afafb59abec7e6c Source-Link: googleapis/googleapis@576234f
…sions - protobuf v3.12.1 - rules_go v0.23.0 - gazelle v0.21.0 - gapic-generator-go v0.14.1 PiperOrigin-RevId: 313460921 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed May 27 14:10:16 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: c4e37010d74071851ff24121f522e802231ac86e Source-Link: googleapis/googleapis@c4e3701
changes include: - build_gen: go lro gapic used as dep - go_gapic_library: fixes shading of go_library importpath PiperOrigin-RevId: 314363155 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jun 2 10:56:09 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 3a4894c4f0da3e763aca2c67bd280ae915177450 Source-Link: googleapis/googleapis@3a4894c
PiperOrigin-RevId: 314879617 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Jun 5 00:27:22 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: cd804bab06e46dd1a4f16c32155fd3cddb931b52 Source-Link: googleapis/googleapis@cd804ba
Fixes issue with missing newline before 'Attributes' in Python docstrings. PiperOrigin-RevId: 316182409 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Jun 12 14:52:11 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 184661793fbe3b89f2b485c303e7466cef9d21a1 Source-Link: googleapis/googleapis@1846617
…Agent external documentation. PiperOrigin-RevId: 317214667 Source-Author: Google APIs <noreply@google.com> Source-Date: Thu Jun 18 17:24:42 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 4bb127d2cfe943bd2813da3d66dce9e0b9ccb179 Source-Link: googleapis/googleapis@4bb127d
…Agent external documentation. PiperOrigin-RevId: 317902626 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jun 23 11:09:31 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 4e8f1142ff921de8d5ad757bce9f2c09dab6ff1b Source-Link: googleapis/googleapis@4e8f114
PiperOrigin-RevId: 317949519 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jun 23 15:22:22 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 7157f9552747421572cf1ab3aec1105c05ebd4f9 Source-Link: googleapis/googleapis@7157f95
PiperOrigin-RevId: 318028816 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed Jun 24 02:32:38 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: b882b8e6bfcd708042ff00f7adc67ce750817dd0 Source-Link: googleapis/googleapis@b882b8e
PiperOrigin-RevId: 318164649 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed Jun 24 16:33:31 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: b5549ea16a12ed36493101cc5fd45198e7124d68 Source-Link: googleapis/googleapis@b5549ea
PiperOrigin-RevId: 318303567 Source-Author: Google APIs <noreply@google.com> Source-Date: Thu Jun 25 10:50:03 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: dc3682a7075d3028f00de866446fd0543ebc6079 Source-Link: googleapis/googleapis@dc3682a
PiperOrigin-RevId: 320004023 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 7 09:56:15 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 4139410a6b2a3ce9df083c3d97f98498cefbfd78 Source-Link: googleapis/googleapis@4139410
PiperOrigin-RevId: 320411362 Source-Author: Google APIs <noreply@google.com> Source-Date: Thu Jul 9 09:26:49 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: db69b46790b55a82ab7cfa473d031da787bc7591 Source-Link: googleapis/googleapis@db69b46
PiperOrigin-RevId: 321243814 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 14 15:08:49 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 84ebe7c62f4c0875e001752fa84e87e629a1d418 Source-Link: googleapis/googleapis@84ebe7c
PiperOrigin-RevId: 322420178 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 21 12:43:47 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: be0c5a9b1b88ca3bb8ad993ae7b2e6affde7fee2 Source-Link: googleapis/googleapis@be0c5a9
PiperOrigin-RevId: 322667213 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed Jul 22 15:22:03 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 1d3ca22734bfd1c00d229e49009547c43f2d7a48 Source-Link: googleapis/googleapis@1d3ca22
PiperOrigin-RevId: 323086730 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Jul 24 15:42:41 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: a6b2dac798ed266136e990a2319b2e2e96f3bdbe Source-Link: googleapis/googleapis@a6b2dac
…around quota usage PiperOrigin-RevId: 323397413 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon Jul 27 11:04:11 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: ca22cfe3477f1c0095fba606d5a18c52d918a0dd Source-Link: googleapis/googleapis@ca22cfe
…around quota usage PiperOrigin-RevId: 323436667 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon Jul 27 14:05:51 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 546f389d95dbbc88d9d5a00fae25b29d49a0d5b6 Source-Link: googleapis/googleapis@546f389
busunkim96
reviewed
Aug 26, 2020
| self, | ||
| parent, | ||
| agent_uri=None, | ||
| agent_uri, |
Contributor
There was a problem hiding this comment.
agent_uri was always required by the API. Previous calls will still work
export_agent(parent, agent_uri)
export_agent(parent, agent_uri=agent_uri)| def get_validation_result( | ||
| self, | ||
| parent=None, | ||
| parent, |
Contributor
There was a problem hiding this comment.
FIXME:
revert to parent=None
| from_service_account_json = from_service_account_file | ||
|
|
||
| @classmethod | ||
| def agent_path(cls, project): |
Contributor
There was a problem hiding this comment.
FIXME Add copy that's named agent_path
@classmethod
def project_agent_path(cls, project):
"""Return a fully-qualified project_agent string."""
return google.api_core.path_template.expand(
"projects/{project}/agent", project=project
)|
|
||
| @classmethod | ||
| def agent_path(cls, project, agent): | ||
| def agent_path(cls, project): |
Contributor
There was a problem hiding this comment.
FIXME:
Re-add old agent_path and project_agent_path
| def get_validation_result( | ||
| self, | ||
| parent=None, | ||
| parent, |
Contributor
There was a problem hiding this comment.
FIXME Revert to optional arg
Comment on lines
-108
to
-130
| @classmethod | ||
| def environment_context_path(cls, project, environment, user, session, context): | ||
| """Return a fully-qualified environment_context string.""" | ||
| return google.api_core.path_template.expand( | ||
| "projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}", | ||
| project=project, | ||
| environment=environment, | ||
| user=user, | ||
| session=session, | ||
| context=context, | ||
| ) | ||
|
|
||
| @classmethod | ||
| def environment_session_path(cls, project, environment, user, session): | ||
| """Return a fully-qualified environment_session string.""" | ||
| return google.api_core.path_template.expand( | ||
| "projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}", | ||
| project=project, | ||
| environment=environment, | ||
| user=user, | ||
| session=session, | ||
| ) | ||
|
|
| def reload_document( | ||
| self, | ||
| name=None, | ||
| name, |
Comment on lines
-126
to
-132
| @classmethod | ||
| def project_agent_path(cls, project): | ||
| """Return a fully-qualified project_agent string.""" | ||
| return google.api_core.path_template.expand( | ||
| "projects/{project}/agent", project=project | ||
| ) | ||
|
|
Comment on lines
-109
to
-133
| @classmethod | ||
| def environment_session_path(cls, project, environment, user, session): | ||
| """Return a fully-qualified environment_session string.""" | ||
| return google.api_core.path_template.expand( | ||
| "projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}", | ||
| project=project, | ||
| environment=environment, | ||
| user=user, | ||
| session=session, | ||
| ) | ||
|
|
||
| @classmethod | ||
| def environment_session_entity_type_path( | ||
| cls, project, environment, user, session, entity_type | ||
| ): | ||
| """Return a fully-qualified environment_session_entity_type string.""" | ||
| return google.api_core.path_template.expand( | ||
| "projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type}", | ||
| project=project, | ||
| environment=environment, | ||
| user=user, | ||
| session=session, | ||
| entity_type=entity_type, | ||
| ) | ||
|
|
Comment on lines
-97
to
-107
| @classmethod | ||
| def environment_session_path(cls, project, environment, user, session): | ||
| """Return a fully-qualified environment_session string.""" | ||
| return google.api_core.path_template.expand( | ||
| "projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}", | ||
| project=project, | ||
| environment=environment, | ||
| user=user, | ||
| session=session, | ||
| ) | ||
|
|
busunkim96
approved these changes
Aug 26, 2020
gcf-merge-on-green Bot
pushed a commit
that referenced
this pull request
Aug 26, 2020
🤖 I have created a release \*beep\* \*boop\* --- ## [1.1.0](https://www.github.com/googleapis/dialogflow-python-client-v2/compare/v1.0.0...v1.1.0) (2020-08-26) ### Features * add environments client ([#217](https://www.github.com/googleapis/dialogflow-python-client-v2/issues/217)) ([7bf5926](https://www.github.com/googleapis/dialogflow-python-client-v2/commit/7bf592684b4d5df0cd1f66dd414efe2350d0461e)) ### Documentation * move to googleapisdotdev ([#155](https://www.github.com/googleapis/dialogflow-python-client-v2/issues/155)) ([89d071c](https://www.github.com/googleapis/dialogflow-python-client-v2/commit/89d071c55c5bf9c7f766c5b49de7ce33b75222d6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was generated using Autosynth. 🌈
Synth log will be available here:
https://source.cloud.google.com/results/invocations/dec3d329-9d7c-4ebe-9248-b6a88c9967c4/targets
PiperOrigin-RevId: 323436667
Source-Link: googleapis/googleapis@546f389
PiperOrigin-RevId: 323397413
Source-Link: googleapis/googleapis@ca22cfe
PiperOrigin-RevId: 323086730
Source-Link: googleapis/googleapis@a6b2dac
PiperOrigin-RevId: 322667213
Source-Link: googleapis/googleapis@1d3ca22
PiperOrigin-RevId: 322420178
Source-Link: googleapis/googleapis@be0c5a9
PiperOrigin-RevId: 321243814
Source-Link: googleapis/googleapis@84ebe7c
PiperOrigin-RevId: 320411362
Source-Link: googleapis/googleapis@db69b46
PiperOrigin-RevId: 320004023
Source-Link: googleapis/googleapis@4139410
PiperOrigin-RevId: 318303567
Source-Link: googleapis/googleapis@dc3682a
PiperOrigin-RevId: 318164649
Source-Link: googleapis/googleapis@b5549ea
PiperOrigin-RevId: 318028816
Source-Link: googleapis/googleapis@b882b8e
PiperOrigin-RevId: 317949519
Source-Link: googleapis/googleapis@7157f95
PiperOrigin-RevId: 317902626
Source-Link: googleapis/googleapis@4e8f114
PiperOrigin-RevId: 317214667
Source-Link: googleapis/googleapis@4bb127d
PiperOrigin-RevId: 316182409
Source-Link: googleapis/googleapis@1846617
PiperOrigin-RevId: 314879617
Source-Link: googleapis/googleapis@cd804ba
PiperOrigin-RevId: 314363155
Source-Link: googleapis/googleapis@3a4894c
PiperOrigin-RevId: 313460921
Source-Link: googleapis/googleapis@c4e3701
PiperOrigin-RevId: 313408465
Source-Link: googleapis/googleapis@576234f
PiperOrigin-RevId: 312689208
Source-Link: googleapis/googleapis@dec3204
PiperOrigin-RevId: 312345206
Source-Link: googleapis/googleapis@7a8875d
PiperOrigin-RevId: 312123588
Source-Link: googleapis/googleapis@cd3ce26
PiperOrigin-RevId: 312088359
Source-Link: googleapis/googleapis@5a90d46
PiperOrigin-RevId: 309824146
Source-Link: googleapis/googleapis@e0f9d9e