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

Commit

Permalink
fix: regenerate the client lib (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Jan 21, 2021
1 parent 54814f8 commit b9def52
Show file tree
Hide file tree
Showing 147 changed files with 2,957 additions and 292 deletions.
Expand Up @@ -126,12 +126,12 @@ def aggregated_list(
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"orderBy": request.order_by,
"filter": request.filter,
"pageToken": request.page_token,
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"includeAllScopes": request.include_all_scopes,
"orderBy": request.order_by,
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand All @@ -144,6 +144,9 @@ def aggregated_list(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.AcceleratorTypeAggregatedList.from_json(response.content)

Expand Down Expand Up @@ -201,6 +204,9 @@ def get(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.AcceleratorType.from_json(response.content)

Expand Down Expand Up @@ -236,11 +242,11 @@ def list(
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
"filter": request.filter,
"pageToken": request.page_token,
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"orderBy": request.order_by,
"filter": request.filter,
"pageToken": request.page_token,
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand All @@ -253,6 +259,9 @@ def list(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.AcceleratorTypeList.from_json(response.content)

Expand Down
25 changes: 20 additions & 5 deletions google/cloud/compute_v1/services/addresses/transports/rest.py
Expand Up @@ -125,12 +125,12 @@ def aggregated_list(
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"orderBy": request.order_by,
"filter": request.filter,
"pageToken": request.page_token,
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"includeAllScopes": request.include_all_scopes,
"orderBy": request.order_by,
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand All @@ -143,6 +143,9 @@ def aggregated_list(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.AddressAggregatedList.from_json(response.content)

Expand Down Expand Up @@ -222,6 +225,9 @@ def delete(
# Send the request
response = self._session.delete(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -298,6 +304,9 @@ def get(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Address.from_json(response.content)

Expand Down Expand Up @@ -379,6 +388,9 @@ def insert(
# Send the request
response = self._session.post(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -413,11 +425,11 @@ def list(
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
"filter": request.filter,
"pageToken": request.page_token,
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"orderBy": request.order_by,
"filter": request.filter,
"pageToken": request.page_token,
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand All @@ -430,6 +442,9 @@ def list(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.AddressList.from_json(response.content)

Expand Down
31 changes: 26 additions & 5 deletions google/cloud/compute_v1/services/autoscalers/transports/rest.py
Expand Up @@ -125,12 +125,12 @@ def aggregated_list(
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"orderBy": request.order_by,
"filter": request.filter,
"pageToken": request.page_token,
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"includeAllScopes": request.include_all_scopes,
"orderBy": request.order_by,
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand All @@ -143,6 +143,9 @@ def aggregated_list(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.AutoscalerAggregatedList.from_json(response.content)

Expand Down Expand Up @@ -222,6 +225,9 @@ def delete(
# Send the request
response = self._session.delete(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -291,6 +297,9 @@ def get(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Autoscaler.from_json(response.content)

Expand Down Expand Up @@ -372,6 +381,9 @@ def insert(
# Send the request
response = self._session.post(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -409,11 +421,11 @@ def list(
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
"filter": request.filter,
"pageToken": request.page_token,
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"orderBy": request.order_by,
"filter": request.filter,
"pageToken": request.page_token,
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand All @@ -426,6 +438,9 @@ def list(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.AutoscalerList.from_json(response.content)

Expand Down Expand Up @@ -508,6 +523,9 @@ def patch(
# Send the request
response = self._session.patch(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -590,6 +608,9 @@ def update(
# Send the request
response = self._session.put(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down
Expand Up @@ -173,6 +173,9 @@ def add_signed_url_key(
# Send the request
response = self._session.post(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -251,6 +254,9 @@ def delete(
# Send the request
response = self._session.delete(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -330,6 +336,9 @@ def delete_signed_url_key(
# Send the request
response = self._session.post(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -384,6 +393,9 @@ def get(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.BackendBucket.from_json(response.content)

Expand Down Expand Up @@ -465,6 +477,9 @@ def insert(
# Send the request
response = self._session.post(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -502,11 +517,11 @@ def list(
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
"filter": request.filter,
"pageToken": request.page_token,
"returnPartialSuccess": request.return_partial_success,
"maxResults": request.max_results,
"orderBy": request.order_by,
"filter": request.filter,
"pageToken": request.page_token,
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand All @@ -519,6 +534,9 @@ def list(
# Send the request
response = self._session.get(url)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.BackendBucketList.from_json(response.content)

Expand Down Expand Up @@ -602,6 +620,9 @@ def patch(
# Send the request
response = self._session.patch(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down Expand Up @@ -685,6 +706,9 @@ def update(
# Send the request
response = self._session.put(url, json=body,)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()

# Return the response
return compute.Operation.from_json(response.content)

Expand Down

0 comments on commit b9def52

Please sign in to comment.