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

Commit b53ed76

Browse files
authored
Add v2 Endpoint (#38)
Add generated v2 endpoint
1 parent d91dfc5 commit b53ed76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+15974
-10
lines changed

dialogflow/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414

1515
from __future__ import absolute_import
1616

17-
from dialogflow_v2beta1 import AgentsClient
18-
from dialogflow_v2beta1 import ContextsClient
19-
from dialogflow_v2beta1 import EntityTypesClient
20-
from dialogflow_v2beta1 import IntentsClient
21-
from dialogflow_v2beta1 import SessionEntityTypesClient
22-
from dialogflow_v2beta1 import SessionsClient
23-
from dialogflow_v2beta1 import enums
24-
from dialogflow_v2beta1 import types
17+
from dialogflow_v2 import AgentsClient
18+
from dialogflow_v2 import ContextsClient
19+
from dialogflow_v2 import EntityTypesClient
20+
from dialogflow_v2 import IntentsClient
21+
from dialogflow_v2 import SessionEntityTypesClient
22+
from dialogflow_v2 import SessionsClient
23+
from dialogflow_v2 import enums
24+
from dialogflow_v2 import types
2525

2626
__all__ = (
2727
'enums',

dialogflow_v2/__init__.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from __future__ import absolute_import
16+
17+
from dialogflow_v2 import types
18+
from dialogflow_v2.gapic import agents_client
19+
from dialogflow_v2.gapic import contexts_client
20+
from dialogflow_v2.gapic import entity_types_client
21+
from dialogflow_v2.gapic import enums
22+
from dialogflow_v2.gapic import intents_client
23+
from dialogflow_v2.gapic import session_entity_types_client
24+
from dialogflow_v2.gapic import sessions_client
25+
26+
27+
class AgentsClient(agents_client.AgentsClient):
28+
__doc__ = agents_client.AgentsClient.__doc__
29+
enums = enums
30+
31+
32+
class ContextsClient(contexts_client.ContextsClient):
33+
__doc__ = contexts_client.ContextsClient.__doc__
34+
enums = enums
35+
36+
37+
class EntityTypesClient(entity_types_client.EntityTypesClient):
38+
__doc__ = entity_types_client.EntityTypesClient.__doc__
39+
enums = enums
40+
41+
42+
class IntentsClient(intents_client.IntentsClient):
43+
__doc__ = intents_client.IntentsClient.__doc__
44+
enums = enums
45+
46+
47+
class SessionEntityTypesClient(
48+
session_entity_types_client.SessionEntityTypesClient):
49+
__doc__ = session_entity_types_client.SessionEntityTypesClient.__doc__
50+
enums = enums
51+
52+
53+
class SessionsClient(sessions_client.SessionsClient):
54+
__doc__ = sessions_client.SessionsClient.__doc__
55+
enums = enums
56+
57+
58+
__all__ = (
59+
'enums',
60+
'types',
61+
'AgentsClient',
62+
'ContextsClient',
63+
'EntityTypesClient',
64+
'IntentsClient',
65+
'SessionEntityTypesClient',
66+
'SessionsClient',
67+
)

dialogflow_v2/gapic/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)