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

Commit 977e2aa

Browse files
feat(v3beta1): added support for Deployments with ListDeployments and GetDeployment apis (#177)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 399726267 Source-Link: googleapis/googleapis@14829f3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bba746f8fc7494254decabce122582ad1a717958 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmJhNzQ2ZjhmYzc0OTQyNTRkZWNhYmNlMTIyNTgyYWQxYTcxNzk1OCJ9 feat(v3beta1): added support for DeployFlow api under Environments feat(v3beta1): added support for TestCasesConfig under Environment docs(v3beta1): added long running operation explanation for several apis fix(v3beta1): marked resource name of security setting as not-required
1 parent 0e3378d commit 977e2aa

File tree

40 files changed

+4953
-87
lines changed

40 files changed

+4953
-87
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Deployments
2+
-----------------------------
3+
4+
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.deployments
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.dialogflowcx_v3beta1.services.deployments.pagers
9+
:members:
10+
:inherited-members:

docs/dialogflowcx_v3beta1/services.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Services for Google Cloud Dialogflowcx v3beta1 API
44
:maxdepth: 2
55

66
agents
7+
deployments
78
entity_types
89
environments
910
experiments

google/cloud/dialogflowcx_v3beta1/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
from .services.agents import AgentsClient
1818
from .services.agents import AgentsAsyncClient
19+
from .services.deployments import DeploymentsClient
20+
from .services.deployments import DeploymentsAsyncClient
1921
from .services.entity_types import EntityTypesClient
2022
from .services.entity_types import EntityTypesAsyncClient
2123
from .services.environments import EnvironmentsClient
@@ -67,6 +69,10 @@
6769
from .types.audio_config import OutputAudioEncoding
6870
from .types.audio_config import SpeechModelVariant
6971
from .types.audio_config import SsmlVoiceGender
72+
from .types.deployment import Deployment
73+
from .types.deployment import GetDeploymentRequest
74+
from .types.deployment import ListDeploymentsRequest
75+
from .types.deployment import ListDeploymentsResponse
7076
from .types.entity_type import CreateEntityTypeRequest
7177
from .types.entity_type import DeleteEntityTypeRequest
7278
from .types.entity_type import EntityType
@@ -77,6 +83,9 @@
7783
from .types.environment import ContinuousTestResult
7884
from .types.environment import CreateEnvironmentRequest
7985
from .types.environment import DeleteEnvironmentRequest
86+
from .types.environment import DeployFlowMetadata
87+
from .types.environment import DeployFlowRequest
88+
from .types.environment import DeployFlowResponse
8089
from .types.environment import Environment
8190
from .types.environment import GetEnvironmentRequest
8291
from .types.environment import ListContinuousTestResultsRequest
@@ -237,6 +246,7 @@
237246

238247
__all__ = (
239248
"AgentsAsyncClient",
249+
"DeploymentsAsyncClient",
240250
"EntityTypesAsyncClient",
241251
"EnvironmentsAsyncClient",
242252
"ExperimentsAsyncClient",
@@ -290,6 +300,11 @@
290300
"DeleteTransitionRouteGroupRequest",
291301
"DeleteVersionRequest",
292302
"DeleteWebhookRequest",
303+
"DeployFlowMetadata",
304+
"DeployFlowRequest",
305+
"DeployFlowResponse",
306+
"Deployment",
307+
"DeploymentsClient",
293308
"DetectIntentRequest",
294309
"DetectIntentResponse",
295310
"DtmfInput",
@@ -317,6 +332,7 @@
317332
"Fulfillment",
318333
"GetAgentRequest",
319334
"GetAgentValidationResultRequest",
335+
"GetDeploymentRequest",
320336
"GetEntityTypeRequest",
321337
"GetEnvironmentRequest",
322338
"GetExperimentRequest",
@@ -346,6 +362,8 @@
346362
"ListAgentsResponse",
347363
"ListContinuousTestResultsRequest",
348364
"ListContinuousTestResultsResponse",
365+
"ListDeploymentsRequest",
366+
"ListDeploymentsResponse",
349367
"ListEntityTypesRequest",
350368
"ListEntityTypesResponse",
351369
"ListEnvironmentsRequest",

google/cloud/dialogflowcx_v3beta1/gapic_metadata.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,40 @@
109109
}
110110
}
111111
},
112+
"Deployments": {
113+
"clients": {
114+
"grpc": {
115+
"libraryClient": "DeploymentsClient",
116+
"rpcs": {
117+
"GetDeployment": {
118+
"methods": [
119+
"get_deployment"
120+
]
121+
},
122+
"ListDeployments": {
123+
"methods": [
124+
"list_deployments"
125+
]
126+
}
127+
}
128+
},
129+
"grpc-async": {
130+
"libraryClient": "DeploymentsAsyncClient",
131+
"rpcs": {
132+
"GetDeployment": {
133+
"methods": [
134+
"get_deployment"
135+
]
136+
},
137+
"ListDeployments": {
138+
"methods": [
139+
"list_deployments"
140+
]
141+
}
142+
}
143+
}
144+
}
145+
},
112146
"EntityTypes": {
113147
"clients": {
114148
"grpc": {
@@ -188,6 +222,11 @@
188222
"delete_environment"
189223
]
190224
},
225+
"DeployFlow": {
226+
"methods": [
227+
"deploy_flow"
228+
]
229+
},
191230
"GetEnvironment": {
192231
"methods": [
193232
"get_environment"
@@ -233,6 +272,11 @@
233272
"delete_environment"
234273
]
235274
},
275+
"DeployFlow": {
276+
"methods": [
277+
"deploy_flow"
278+
]
279+
},
236280
"GetEnvironment": {
237281
"methods": [
238282
"get_environment"

google/cloud/dialogflowcx_v3beta1/services/agents/async_client.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,9 @@ async def export_agent(
608608
timeout: float = None,
609609
metadata: Sequence[Tuple[str, str]] = (),
610610
) -> operation_async.AsyncOperation:
611-
r"""Exports the specified agent to a binary file. This method is a
612-
`long-running
611+
r"""Exports the specified agent to a binary file.
612+
613+
This method is a `long-running
613614
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
614615
The returned ``Operation`` type has the following
615616
method-specific fields:
@@ -684,6 +685,16 @@ async def restore_agent(
684685
existing resources in agent (e.g. intents, entity types, flows)
685686
will be removed.
686687
688+
This method is a `long-running
689+
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
690+
The returned ``Operation`` type has the following
691+
method-specific fields:
692+
693+
- ``metadata``: An empty `Struct
694+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct>`__
695+
- ``response``: An `Empty
696+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty>`__
697+
687698
Note: You should always train a flow prior to sending it
688699
queries. See the `training
689700
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.

google/cloud/dialogflowcx_v3beta1/services/agents/client.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,9 @@ def export_agent(
873873
timeout: float = None,
874874
metadata: Sequence[Tuple[str, str]] = (),
875875
) -> operation.Operation:
876-
r"""Exports the specified agent to a binary file. This method is a
877-
`long-running
876+
r"""Exports the specified agent to a binary file.
877+
878+
This method is a `long-running
878879
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
879880
The returned ``Operation`` type has the following
880881
method-specific fields:
@@ -950,6 +951,16 @@ def restore_agent(
950951
existing resources in agent (e.g. intents, entity types, flows)
951952
will be removed.
952953
954+
This method is a `long-running
955+
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
956+
The returned ``Operation`` type has the following
957+
method-specific fields:
958+
959+
- ``metadata``: An empty `Struct
960+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct>`__
961+
- ``response``: An `Empty
962+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty>`__
963+
953964
Note: You should always train a flow prior to sending it
954965
queries. See the `training
955966
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.

google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,9 @@ def export_agent(
386386
) -> Callable[[agent.ExportAgentRequest], operations_pb2.Operation]:
387387
r"""Return a callable for the export agent method over gRPC.
388388
389-
Exports the specified agent to a binary file. This method is a
390-
`long-running
389+
Exports the specified agent to a binary file.
390+
391+
This method is a `long-running
391392
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
392393
The returned ``Operation`` type has the following
393394
method-specific fields:
@@ -427,6 +428,16 @@ def restore_agent(
427428
existing resources in agent (e.g. intents, entity types, flows)
428429
will be removed.
429430
431+
This method is a `long-running
432+
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
433+
The returned ``Operation`` type has the following
434+
method-specific fields:
435+
436+
- ``metadata``: An empty `Struct
437+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct>`__
438+
- ``response``: An `Empty
439+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty>`__
440+
430441
Note: You should always train a flow prior to sending it
431442
queries. See the `training
432443
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.

google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc_asyncio.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,9 @@ def export_agent(
393393
) -> Callable[[agent.ExportAgentRequest], Awaitable[operations_pb2.Operation]]:
394394
r"""Return a callable for the export agent method over gRPC.
395395
396-
Exports the specified agent to a binary file. This method is a
397-
`long-running
396+
Exports the specified agent to a binary file.
397+
398+
This method is a `long-running
398399
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
399400
The returned ``Operation`` type has the following
400401
method-specific fields:
@@ -434,6 +435,16 @@ def restore_agent(
434435
existing resources in agent (e.g. intents, entity types, flows)
435436
will be removed.
436437
438+
This method is a `long-running
439+
operation <https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation>`__.
440+
The returned ``Operation`` type has the following
441+
method-specific fields:
442+
443+
- ``metadata``: An empty `Struct
444+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct>`__
445+
- ``response``: An `Empty
446+
message <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty>`__
447+
437448
Note: You should always train a flow prior to sending it
438449
queries. See the `training
439450
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from .client import DeploymentsClient
17+
from .async_client import DeploymentsAsyncClient
18+
19+
__all__ = (
20+
"DeploymentsClient",
21+
"DeploymentsAsyncClient",
22+
)

0 commit comments

Comments
 (0)