Skip to content

Commit

Permalink
[TASK] Fix serverless update for protos
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 515725afaa351f869bad20ba94b90e03ec8cc6b5
  • Loading branch information
mckornfield committed Oct 3, 2024
1 parent 445b8a8 commit 3e24bb1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/gretel_client/rest_v1/api/serverless_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,7 @@ def _poll_serverless_tenants_serialize(
@validate_call
def update_serverless_tenant(
self,
tenant_guid: StrictStr,
update_serverless_tenant_request: UpdateServerlessTenantRequest,
_request_timeout: Union[
None,
Expand All @@ -1020,6 +1021,8 @@ def update_serverless_tenant(
"""update_serverless_tenant
:param tenant_guid: (required)
:type tenant_guid: str
:param update_serverless_tenant_request: (required)
:type update_serverless_tenant_request: UpdateServerlessTenantRequest
:param _request_timeout: timeout setting for this request. If one
Expand All @@ -1045,6 +1048,7 @@ def update_serverless_tenant(
""" # noqa: E501

_param = self._update_serverless_tenant_serialize(
tenant_guid=tenant_guid,
update_serverless_tenant_request=update_serverless_tenant_request,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -1067,6 +1071,7 @@ def update_serverless_tenant(
@validate_call
def update_serverless_tenant_with_http_info(
self,
tenant_guid: StrictStr,
update_serverless_tenant_request: UpdateServerlessTenantRequest,
_request_timeout: Union[
None,
Expand All @@ -1083,6 +1088,8 @@ def update_serverless_tenant_with_http_info(
"""update_serverless_tenant
:param tenant_guid: (required)
:type tenant_guid: str
:param update_serverless_tenant_request: (required)
:type update_serverless_tenant_request: UpdateServerlessTenantRequest
:param _request_timeout: timeout setting for this request. If one
Expand All @@ -1108,6 +1115,7 @@ def update_serverless_tenant_with_http_info(
""" # noqa: E501

_param = self._update_serverless_tenant_serialize(
tenant_guid=tenant_guid,
update_serverless_tenant_request=update_serverless_tenant_request,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -1130,6 +1138,7 @@ def update_serverless_tenant_with_http_info(
@validate_call
def update_serverless_tenant_without_preload_content(
self,
tenant_guid: StrictStr,
update_serverless_tenant_request: UpdateServerlessTenantRequest,
_request_timeout: Union[
None,
Expand All @@ -1146,6 +1155,8 @@ def update_serverless_tenant_without_preload_content(
"""update_serverless_tenant
:param tenant_guid: (required)
:type tenant_guid: str
:param update_serverless_tenant_request: (required)
:type update_serverless_tenant_request: UpdateServerlessTenantRequest
:param _request_timeout: timeout setting for this request. If one
Expand All @@ -1171,6 +1182,7 @@ def update_serverless_tenant_without_preload_content(
""" # noqa: E501

_param = self._update_serverless_tenant_serialize(
tenant_guid=tenant_guid,
update_serverless_tenant_request=update_serverless_tenant_request,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -1188,6 +1200,7 @@ def update_serverless_tenant_without_preload_content(

def _update_serverless_tenant_serialize(
self,
tenant_guid,
update_serverless_tenant_request,
_request_auth,
_content_type,
Expand All @@ -1207,6 +1220,8 @@ def _update_serverless_tenant_serialize(
_body_params: Optional[bytes] = None

# process the path parameters
if tenant_guid is not None:
_path_params["tenant_guid"] = tenant_guid
# process the query parameters
# process the header parameters
# process the form parameters
Expand Down Expand Up @@ -1235,7 +1250,7 @@ def _update_serverless_tenant_serialize(

return self.api_client.param_serialize(
method="POST",
resource_path="/v1/serverless/tenants/update/",
resource_path="/v1/serverless/tenants/{tenant_guid}",
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
Expand Down

0 comments on commit 3e24bb1

Please sign in to comment.