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

feat: add environments client #217

Merged
merged 28 commits into from
Aug 26, 2020
Merged

feat: add environments client #217

merged 28 commits into from
Aug 26, 2020

Conversation

yoshi-automation
Copy link
Contributor

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

  • To automatically regenerate this PR, check this box.

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

…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
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 13, 2020
@product-auto-label product-auto-label bot added the api: dialogflow Issues related to the googleapis/python-dialogflow API. label Aug 21, 2020
@@ -637,7 +612,7 @@ def train_agent(
def export_agent(
self,
parent,
agent_uri=None,
agent_uri,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@@ -936,7 +926,7 @@ def restore_agent(

def get_validation_result(
self,
parent=None,
parent,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME:

revert to parent=None

@@ -111,6 +83,13 @@ def from_service_account_file(cls, filename, *args, **kwargs):

from_service_account_json = from_service_account_file

@classmethod
def agent_path(cls, project):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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	
        )

@@ -117,10 +88,10 @@ def from_service_account_file(cls, filename, *args, **kwargs):
from_service_account_json = from_service_account_file

@classmethod
def agent_path(cls, project, agent):
def agent_path(cls, project):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME:

Re-add old agent_path and project_agent_path

@@ -936,7 +932,7 @@ def restore_agent(

def get_validation_result(
self,
parent=None,
parent,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME: readd methods

@@ -689,36 +682,45 @@ def update_document(

def reload_document(
self,
name=None,
name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME: make optional

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
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME: re-add

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,
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME: re-add

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,
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME: re-add

@busunkim96 busunkim96 changed the title [CHANGE ME] Re-generated to pick up changes in the API or client library generator. feat: add environments client Aug 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: dialogflow Issues related to the googleapis/python-dialogflow API. automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement. context: full
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants