Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
feat: add experiments API (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Dec 30, 2020
1 parent 58bb096 commit 5381512
Show file tree
Hide file tree
Showing 45 changed files with 17,432 additions and 80 deletions.
3 changes: 3 additions & 0 deletions docs/dialogflowcx_v3/services.rst
Expand Up @@ -10,6 +10,9 @@ Services for Google Cloud Dialogflowcx v3 API
.. automodule:: google.cloud.dialogflowcx_v3.services.environments
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflowcx_v3.services.experiments
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflowcx_v3.services.flows
:members:
:inherited-members:
Expand Down
6 changes: 6 additions & 0 deletions docs/dialogflowcx_v3beta1/services.rst
Expand Up @@ -10,6 +10,9 @@ Services for Google Cloud Dialogflowcx v3beta1 API
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.environments
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.experiments
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.flows
:members:
:inherited-members:
Expand All @@ -19,6 +22,9 @@ Services for Google Cloud Dialogflowcx v3beta1 API
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.pages
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.security_settings_service
:members:
:inherited-members:
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.session_entity_types
:members:
:inherited-members:
Expand Down
28 changes: 28 additions & 0 deletions google/cloud/dialogflowcx/__init__.py
Expand Up @@ -25,6 +25,10 @@
EnvironmentsAsyncClient,
)
from google.cloud.dialogflowcx_v3.services.environments.client import EnvironmentsClient
from google.cloud.dialogflowcx_v3.services.experiments.async_client import (
ExperimentsAsyncClient,
)
from google.cloud.dialogflowcx_v3.services.experiments.client import ExperimentsClient
from google.cloud.dialogflowcx_v3.services.flows.async_client import FlowsAsyncClient
from google.cloud.dialogflowcx_v3.services.flows.client import FlowsClient
from google.cloud.dialogflowcx_v3.services.intents.async_client import (
Expand Down Expand Up @@ -103,6 +107,17 @@
LookupEnvironmentHistoryResponse,
)
from google.cloud.dialogflowcx_v3.types.environment import UpdateEnvironmentRequest
from google.cloud.dialogflowcx_v3.types.experiment import CreateExperimentRequest
from google.cloud.dialogflowcx_v3.types.experiment import DeleteExperimentRequest
from google.cloud.dialogflowcx_v3.types.experiment import Experiment
from google.cloud.dialogflowcx_v3.types.experiment import GetExperimentRequest
from google.cloud.dialogflowcx_v3.types.experiment import ListExperimentsRequest
from google.cloud.dialogflowcx_v3.types.experiment import ListExperimentsResponse
from google.cloud.dialogflowcx_v3.types.experiment import StartExperimentRequest
from google.cloud.dialogflowcx_v3.types.experiment import StopExperimentRequest
from google.cloud.dialogflowcx_v3.types.experiment import UpdateExperimentRequest
from google.cloud.dialogflowcx_v3.types.experiment import VariantsHistory
from google.cloud.dialogflowcx_v3.types.experiment import VersionVariants
from google.cloud.dialogflowcx_v3.types.flow import CreateFlowRequest
from google.cloud.dialogflowcx_v3.types.flow import DeleteFlowRequest
from google.cloud.dialogflowcx_v3.types.flow import Flow
Expand Down Expand Up @@ -240,6 +255,7 @@
"CreateAgentRequest",
"CreateEntityTypeRequest",
"CreateEnvironmentRequest",
"CreateExperimentRequest",
"CreateFlowRequest",
"CreateIntentRequest",
"CreatePageRequest",
Expand All @@ -252,6 +268,7 @@
"DeleteAgentRequest",
"DeleteEntityTypeRequest",
"DeleteEnvironmentRequest",
"DeleteExperimentRequest",
"DeleteFlowRequest",
"DeleteIntentRequest",
"DeletePageRequest",
Expand All @@ -271,6 +288,9 @@
"EnvironmentsClient",
"EventHandler",
"EventInput",
"Experiment",
"ExperimentsAsyncClient",
"ExperimentsClient",
"ExportAgentRequest",
"ExportAgentResponse",
"Flow",
Expand All @@ -283,6 +303,7 @@
"GetAgentRequest",
"GetEntityTypeRequest",
"GetEnvironmentRequest",
"GetExperimentRequest",
"GetFlowRequest",
"GetIntentRequest",
"GetPageRequest",
Expand All @@ -303,6 +324,8 @@
"ListEntityTypesResponse",
"ListEnvironmentsRequest",
"ListEnvironmentsResponse",
"ListExperimentsRequest",
"ListExperimentsResponse",
"ListFlowsRequest",
"ListFlowsResponse",
"ListIntentsRequest",
Expand Down Expand Up @@ -351,6 +374,8 @@
"SpeechToTextSettings",
"SpeechWordInfo",
"SsmlVoiceGender",
"StartExperimentRequest",
"StopExperimentRequest",
"StreamingDetectIntentRequest",
"StreamingDetectIntentResponse",
"StreamingRecognitionResult",
Expand All @@ -364,6 +389,7 @@
"UpdateAgentRequest",
"UpdateEntityTypeRequest",
"UpdateEnvironmentRequest",
"UpdateExperimentRequest",
"UpdateFlowRequest",
"UpdateIntentRequest",
"UpdatePageRequest",
Expand All @@ -372,7 +398,9 @@
"UpdateTransitionRouteGroupRequest",
"UpdateVersionRequest",
"UpdateWebhookRequest",
"VariantsHistory",
"Version",
"VersionVariants",
"VersionsAsyncClient",
"VersionsClient",
"VoiceSelectionParams",
Expand Down
26 changes: 25 additions & 1 deletion google/cloud/dialogflowcx_v3/__init__.py
Expand Up @@ -18,6 +18,7 @@
from .services.agents import AgentsClient
from .services.entity_types import EntityTypesClient
from .services.environments import EnvironmentsClient
from .services.experiments import ExperimentsClient
from .services.flows import FlowsClient
from .services.intents import IntentsClient
from .services.pages import PagesClient
Expand Down Expand Up @@ -63,6 +64,17 @@
from .types.environment import LookupEnvironmentHistoryRequest
from .types.environment import LookupEnvironmentHistoryResponse
from .types.environment import UpdateEnvironmentRequest
from .types.experiment import CreateExperimentRequest
from .types.experiment import DeleteExperimentRequest
from .types.experiment import Experiment
from .types.experiment import GetExperimentRequest
from .types.experiment import ListExperimentsRequest
from .types.experiment import ListExperimentsResponse
from .types.experiment import StartExperimentRequest
from .types.experiment import StopExperimentRequest
from .types.experiment import UpdateExperimentRequest
from .types.experiment import VariantsHistory
from .types.experiment import VersionVariants
from .types.flow import CreateFlowRequest
from .types.flow import DeleteFlowRequest
from .types.flow import Flow
Expand Down Expand Up @@ -162,6 +174,7 @@
"CreateAgentRequest",
"CreateEntityTypeRequest",
"CreateEnvironmentRequest",
"CreateExperimentRequest",
"CreateFlowRequest",
"CreateIntentRequest",
"CreatePageRequest",
Expand All @@ -174,6 +187,7 @@
"DeleteAgentRequest",
"DeleteEntityTypeRequest",
"DeleteEnvironmentRequest",
"DeleteExperimentRequest",
"DeleteFlowRequest",
"DeleteIntentRequest",
"DeletePageRequest",
Expand All @@ -186,11 +200,12 @@
"DetectIntentResponse",
"DtmfInput",
"EntityType",
"EntityTypesClient",
"Environment",
"EnvironmentsClient",
"EventHandler",
"EventInput",
"Experiment",
"ExperimentsClient",
"ExportAgentRequest",
"ExportAgentResponse",
"Flow",
Expand All @@ -202,6 +217,7 @@
"GetAgentRequest",
"GetEntityTypeRequest",
"GetEnvironmentRequest",
"GetExperimentRequest",
"GetFlowRequest",
"GetIntentRequest",
"GetPageRequest",
Expand All @@ -221,6 +237,8 @@
"ListEntityTypesResponse",
"ListEnvironmentsRequest",
"ListEnvironmentsResponse",
"ListExperimentsRequest",
"ListExperimentsResponse",
"ListFlowsRequest",
"ListFlowsResponse",
"ListIntentsRequest",
Expand Down Expand Up @@ -265,6 +283,8 @@
"SpeechToTextSettings",
"SpeechWordInfo",
"SsmlVoiceGender",
"StartExperimentRequest",
"StopExperimentRequest",
"StreamingDetectIntentRequest",
"StreamingDetectIntentResponse",
"StreamingRecognitionResult",
Expand All @@ -276,6 +296,7 @@
"UpdateAgentRequest",
"UpdateEntityTypeRequest",
"UpdateEnvironmentRequest",
"UpdateExperimentRequest",
"UpdateFlowRequest",
"UpdateIntentRequest",
"UpdatePageRequest",
Expand All @@ -284,12 +305,15 @@
"UpdateTransitionRouteGroupRequest",
"UpdateVersionRequest",
"UpdateWebhookRequest",
"VariantsHistory",
"Version",
"VersionVariants",
"VersionsClient",
"VoiceSelectionParams",
"Webhook",
"WebhookRequest",
"WebhookResponse",
"WebhooksClient",
"EntityTypesClient",
"TransitionRouteGroupsClient",
)
24 changes: 24 additions & 0 deletions google/cloud/dialogflowcx_v3/services/experiments/__init__.py
@@ -0,0 +1,24 @@
# -*- 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
#
# http://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.
#

from .client import ExperimentsClient
from .async_client import ExperimentsAsyncClient

__all__ = (
"ExperimentsClient",
"ExperimentsAsyncClient",
)

0 comments on commit 5381512

Please sign in to comment.