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

docs: Fix formatting of request arg in docstring #402

Merged
merged 2 commits into from
Mar 23, 2023
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,8 @@ async def sample_set_default_branch():

Args:
request (Optional[Union[google.cloud.retail_v2.types.SetDefaultBranchRequest, dict]]):
The request object. Request message to set a specified
branch as new default_branch.
The request object. Request message to set a specified branch as new
default_branch.
catalog (:class:`str`):
Full resource name of the catalog, such as
``projects/*/locations/global/catalogs/default_catalog``.
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/retail_v2/services/catalog_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ def sample_set_default_branch():

Args:
request (Union[google.cloud.retail_v2.types.SetDefaultBranchRequest, dict]):
The request object. Request message to set a specified
branch as new default_branch.
The request object. Request message to set a specified branch as new
default_branch.
catalog (str):
Full resource name of the catalog, such as
``projects/*/locations/global/catalogs/default_catalog``.
Expand Down
11 changes: 0 additions & 11 deletions google/cloud/retail_v2/services/catalog_service/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ def __call__(
The request object. Request for
[CatalogService.AddCatalogAttribute][google.cloud.retail.v2.CatalogService.AddCatalogAttribute]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -679,7 +678,6 @@ def __call__(
The request object. Request for
[CatalogService.GetAttributesConfig][google.cloud.retail.v2.CatalogService.GetAttributesConfig]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -770,7 +768,6 @@ def __call__(
The request object. Request for
[CatalogService.GetCompletionConfig][google.cloud.retail.v2.CatalogService.GetCompletionConfig]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -853,7 +850,6 @@ def __call__(
request (~.catalog_service.GetDefaultBranchRequest):
The request object. Request message to show which branch
is currently the default branch.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -945,7 +941,6 @@ def __call__(
The request object. Request for
[CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1037,7 +1032,6 @@ def __call__(
The request object. Request for
[CatalogService.RemoveCatalogAttribute][google.cloud.retail.v2.CatalogService.RemoveCatalogAttribute]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1137,7 +1131,6 @@ def __call__(
The request object. Request for
[CatalogService.ReplaceCatalogAttribute][google.cloud.retail.v2.CatalogService.ReplaceCatalogAttribute]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1226,7 +1219,6 @@ def __call__(
request (~.catalog_service.SetDefaultBranchRequest):
The request object. Request message to set a specified branch as new
default_branch.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1313,7 +1305,6 @@ def __call__(
The request object. Request for
[CatalogService.UpdateAttributesConfig][google.cloud.retail.v2.CatalogService.UpdateAttributesConfig]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1413,7 +1404,6 @@ def __call__(
The request object. Request for
[CatalogService.UpdateCatalog][google.cloud.retail.v2.CatalogService.UpdateCatalog]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1511,7 +1501,6 @@ def __call__(
The request object. Request for
[CatalogService.UpdateCompletionConfig][google.cloud.retail.v2.CatalogService.UpdateCompletionConfig]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ def __call__(
request (~.import_config.ImportCompletionDataRequest):
The request object. Request message for
ImportCompletionData methods.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
10 changes: 0 additions & 10 deletions google/cloud/retail_v2/services/product_service/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ def __call__(
The request object. Request message for
[ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -742,7 +741,6 @@ def __call__(
The request object. Request message for
[ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -845,7 +843,6 @@ def __call__(
The request object. Request message for
[ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -946,7 +943,6 @@ def __call__(
The request object. Request message for
[ProductService.DeleteProduct][google.cloud.retail.v2.ProductService.DeleteProduct]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1023,7 +1019,6 @@ def __call__(
The request object. Request message for
[ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1211,7 +1206,6 @@ def __call__(
The request object. Request message for
[ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1303,7 +1297,6 @@ def __call__(
The request object. Request message for
[ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1404,7 +1397,6 @@ def __call__(
The request object. Request message for
[ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1505,7 +1497,6 @@ def __call__(
The request object. Request message for
[ProductService.SetInventory][google.cloud.retail.v2.ProductService.SetInventory]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1604,7 +1595,6 @@ def __call__(
The request object. Request message for
[ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ def __call__(
The request object. Request message for
[SearchService.Search][google.cloud.retail.v2.SearchService.Search]
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ def __call__(
request (~.serving_config_service.CreateServingConfigRequest):
The request object. Request for CreateServingConfig
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -662,7 +661,6 @@ def __call__(
request (~.serving_config_service.DeleteServingConfigRequest):
The request object. Request for DeleteServingConfig
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -832,7 +830,6 @@ def __call__(
request (~.serving_config_service.ListServingConfigsRequest):
The request object. Request for ListServingConfigs
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1023,7 +1020,6 @@ def __call__(
request (~.serving_config_service.UpdateServingConfigRequest):
The request object. Request for UpdateServingConfig
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ def __call__(
request (~.user_event_service.CollectUserEventRequest):
The request object. Request message for CollectUserEvent
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -614,7 +613,6 @@ def __call__(
request (~.import_config.ImportUserEventsRequest):
The request object. Request message for the
ImportUserEvents request.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -714,7 +712,6 @@ def __call__(
request (~.purge_config.PurgeUserEventsRequest):
The request object. Request message for PurgeUserEvents
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -814,7 +811,6 @@ def __call__(
request (~.user_event_service.RejoinUserEventsRequest):
The request object. Request message for RejoinUserEvents
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -914,7 +910,6 @@ def __call__(
request (~.user_event_service.WriteUserEventRequest):
The request object. Request message for WriteUserEvent
method.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ async def sample_set_default_branch():

Args:
request (Optional[Union[google.cloud.retail_v2alpha.types.SetDefaultBranchRequest, dict]]):
The request object. Request message to set a specified
branch as new default_branch.
The request object. Request message to set a specified branch as new
default_branch.
catalog (:class:`str`):
Full resource name of the catalog, such as
``projects/*/locations/global/catalogs/default_catalog``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,8 @@ def sample_set_default_branch():

Args:
request (Union[google.cloud.retail_v2alpha.types.SetDefaultBranchRequest, dict]):
The request object. Request message to set a specified
branch as new default_branch.
The request object. Request message to set a specified branch as new
default_branch.
catalog (str):
Full resource name of the catalog, such as
``projects/*/locations/global/catalogs/default_catalog``.
Expand Down
Loading