Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.15.0" # {x-release-please-version}
__version__ = "0.4.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.15.0" # {x-release-please-version}
__version__ = "0.4.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ async def sample_stream_assist():
Returns:
AsyncIterable[google.cloud.discoveryengine_v1.types.StreamAssistResponse]:
Response for the
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
method.
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
method.

"""
# Create or coerce a protobuf request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,8 @@ def sample_stream_assist():
Returns:
Iterable[google.cloud.discoveryengine_v1.types.StreamAssistResponse]:
Response for the
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
method.
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
method.

"""
# Create or coerce a protobuf request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,13 @@ async def sample_update_cmek_config():

Returns:
google.api_core.operation_async.AsyncOperation:
An object representing a long-running operation.

The result type for the operation will be
:class:`google.cloud.discoveryengine_v1.types.CmekConfig`
Configurations used to enable CMEK data encryption with
Cloud KMS keys.
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.cloud.discoveryengine_v1.types.CmekConfig``
Configurations used to enable CMEK data
encryption with Cloud KMS keys.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -491,13 +492,15 @@ async def sample_get_cmek_config():
name (:class:`str`):
Required. Resource name of
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig],
such as ``projects/*/locations/*/cmekConfig`` or
such as
``projects/*/locations/*/cmekConfig`` or
``projects/*/locations/*/cmekConfigs/*``.

If the caller does not have permission to access the
If the caller does not have permission
to access the
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig],
regardless of whether or not it exists, a
PERMISSION_DENIED error is returned.
regardless of whether or not it exists,
a PERMISSION_DENIED error is returned.

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -577,8 +580,8 @@ async def list_cmek_configs(
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> cmek_config_service.ListCmekConfigsResponse:
r"""Lists all the
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s with
the project.
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s
with the project.

.. code-block:: python

Expand Down Expand Up @@ -612,14 +615,16 @@ async def sample_list_cmek_configs():
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
method.
parent (:class:`str`):
Required. The parent location resource name, such as
Required. The parent location resource
name, such as
``projects/{project}/locations/{location}``.

If the caller does not have permission to list
If the caller does not have permission
to list
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s
under this location, regardless of whether or not a
CmekConfig exists, a PERMISSION_DENIED error is
returned.
under this location, regardless of
whether or not a CmekConfig exists, a
PERMISSION_DENIED error is returned.

This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -635,8 +640,8 @@ async def sample_list_cmek_configs():
Returns:
google.cloud.discoveryengine_v1.types.ListCmekConfigsResponse:
Response message for
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
method.
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
method.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -755,18 +760,21 @@ async def sample_delete_cmek_config():

Returns:
google.api_core.operation_async.AsyncOperation:
An object representing a long-running operation.

The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated
empty messages in your APIs. A typical example is to
use it as the request or the response type of an API
method. For instance:

service Foo {
rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty);

}
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.protobuf.empty_pb2.Empty``
A generic empty message that you can
re-use to avoid defining duplicated
empty messages in your APIs. A typical
example is to use it as the request or
the response type of an API method. For
instance:

service Foo {
rpc Bar(google.protobuf.Empty)
returns (google.protobuf.Empty); }

"""
# Create or coerce a protobuf request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -853,12 +853,13 @@ def sample_update_cmek_config():

Returns:
google.api_core.operation.Operation:
An object representing a long-running operation.

The result type for the operation will be
:class:`google.cloud.discoveryengine_v1.types.CmekConfig`
Configurations used to enable CMEK data encryption with
Cloud KMS keys.
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.cloud.discoveryengine_v1.types.CmekConfig``
Configurations used to enable CMEK data
encryption with Cloud KMS keys.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -962,13 +963,15 @@ def sample_get_cmek_config():
name (str):
Required. Resource name of
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig],
such as ``projects/*/locations/*/cmekConfig`` or
such as
``projects/*/locations/*/cmekConfig`` or
``projects/*/locations/*/cmekConfigs/*``.

If the caller does not have permission to access the
If the caller does not have permission
to access the
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig],
regardless of whether or not it exists, a
PERMISSION_DENIED error is returned.
regardless of whether or not it exists,
a PERMISSION_DENIED error is returned.

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -1045,8 +1048,8 @@ def list_cmek_configs(
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> cmek_config_service.ListCmekConfigsResponse:
r"""Lists all the
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s with
the project.
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s
with the project.

.. code-block:: python

Expand Down Expand Up @@ -1080,14 +1083,16 @@ def sample_list_cmek_configs():
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
method.
parent (str):
Required. The parent location resource name, such as
Required. The parent location resource
name, such as
``projects/{project}/locations/{location}``.

If the caller does not have permission to list
If the caller does not have permission
to list
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s
under this location, regardless of whether or not a
CmekConfig exists, a PERMISSION_DENIED error is
returned.
under this location, regardless of
whether or not a CmekConfig exists, a
PERMISSION_DENIED error is returned.

This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -1103,8 +1108,8 @@ def sample_list_cmek_configs():
Returns:
google.cloud.discoveryengine_v1.types.ListCmekConfigsResponse:
Response message for
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
method.
[CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs]
method.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -1220,18 +1225,21 @@ def sample_delete_cmek_config():

Returns:
google.api_core.operation.Operation:
An object representing a long-running operation.

The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated
empty messages in your APIs. A typical example is to
use it as the request or the response type of an API
method. For instance:

service Foo {
rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty);

}
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.protobuf.empty_pb2.Empty``
A generic empty message that you can
re-use to avoid defining duplicated
empty messages in your APIs. A typical
example is to use it as the request or
the response type of an API method. For
instance:

service Foo {
rpc Bar(google.protobuf.Empty)
returns (google.protobuf.Empty); }

"""
# Create or coerce a protobuf request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ def list_cmek_configs(
r"""Return a callable for the list cmek configs method over gRPC.

Lists all the
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s with
the project.
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s
with the project.

Returns:
Callable[[~.ListCmekConfigsRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ def list_cmek_configs(
r"""Return a callable for the list cmek configs method over gRPC.

Lists all the
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s with
the project.
[CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s
with the project.

Returns:
Callable[[~.ListCmekConfigsRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ async def sample_complete_query():
Returns:
google.cloud.discoveryengine_v1.types.CompleteQueryResponse:
Response message for
[CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
method.
[CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
method.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -455,11 +455,14 @@ async def sample_import_suggestion_deny_list_entries():

Returns:
google.api_core.operation_async.AsyncOperation:
An object representing a long-running operation.

The result type for the operation will be :class:`google.cloud.discoveryengine_v1.types.ImportSuggestionDenyListEntriesResponse` Response message for
[CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1.CompletionService.ImportSuggestionDenyListEntries]
method.
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.cloud.discoveryengine_v1.types.ImportSuggestionDenyListEntriesResponse``
Response message for
[CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1.CompletionService.ImportSuggestionDenyListEntries]
method.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -563,11 +566,14 @@ async def sample_purge_suggestion_deny_list_entries():

Returns:
google.api_core.operation_async.AsyncOperation:
An object representing a long-running operation.

The result type for the operation will be :class:`google.cloud.discoveryengine_v1.types.PurgeSuggestionDenyListEntriesResponse` Response message for
[CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1.CompletionService.PurgeSuggestionDenyListEntries]
method.
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.cloud.discoveryengine_v1.types.PurgeSuggestionDenyListEntriesResponse``
Response message for
[CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1.CompletionService.PurgeSuggestionDenyListEntries]
method.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -674,14 +680,17 @@ async def sample_import_completion_suggestions():

Returns:
google.api_core.operation_async.AsyncOperation:
An object representing a long-running operation.

The result type for the operation will be :class:`google.cloud.discoveryengine_v1.types.ImportCompletionSuggestionsResponse` Response of the
[CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1.CompletionService.ImportCompletionSuggestions]
method. If the long running operation is done, this
message is returned by the
google.longrunning.Operations.response field if the
operation is successful.
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.cloud.discoveryengine_v1.types.ImportCompletionSuggestionsResponse``
Response of the
[CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1.CompletionService.ImportCompletionSuggestions]
method. If the long running operation is
done, this message is returned by the
google.longrunning.Operations.response
field if the operation is successful.

"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -783,11 +792,14 @@ async def sample_purge_completion_suggestions():

Returns:
google.api_core.operation_async.AsyncOperation:
An object representing a long-running operation.

The result type for the operation will be :class:`google.cloud.discoveryengine_v1.types.PurgeCompletionSuggestionsResponse` Response message for
[CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1.CompletionService.PurgeCompletionSuggestions]
method.
An object representing a long-running
operation.
The result type for the operation will
be
:class:``google.cloud.discoveryengine_v1.types.PurgeCompletionSuggestionsResponse``
Response message for
[CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1.CompletionService.PurgeCompletionSuggestions]
method.

"""
# Create or coerce a protobuf request object.
Expand Down
Loading
Loading