diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 894fb6b..b8edda5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf + digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cbd7e77..ec867d9 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -1,10 +1,10 @@ gcp-docuploader -gcp-releasetool +gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x importlib-metadata typing-extensions twine wheel setuptools -nox +nox>=2022.11.21 # required to remove dependency on py charset-normalizer<3 click<8.1.0 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 096e480..66a2172 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # # pip-compile --allow-unsafe --generate-hashes requirements.in # @@ -154,9 +154,9 @@ gcp-docuploader==0.6.4 \ --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf # via -r requirements.in -gcp-releasetool==1.10.0 \ - --hash=sha256:72a38ca91b59c24f7e699e9227c90cbe4dd71b789383cb0164b088abae294c83 \ - --hash=sha256:8c7c99320208383d4bb2b808c6880eb7a81424afe7cdba3c8d84b25f4f0e097d +gcp-releasetool==1.10.5 \ + --hash=sha256:174b7b102d704b254f2a26a3eda2c684fd3543320ec239baf771542a2e58e109 \ + --hash=sha256:e29d29927fe2ca493105a82958c6873bb2b90d503acac56be2c229e74de0eec9 # via -r requirements.in google-api-core==2.10.2 \ --hash=sha256:10c06f7739fe57781f87523375e8e1a3a4674bf6392cd6131a3222182b971320 \ @@ -335,9 +335,9 @@ more-itertools==9.0.0 \ --hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \ --hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab # via jaraco-classes -nox==2022.8.7 \ - --hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \ - --hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c +nox==2022.11.21 \ + --hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \ + --hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684 # via -r requirements.in packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ @@ -380,10 +380,6 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core -py==1.11.0 \ - --hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \ - --hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378 - # via nox pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0d1bebe..093be7e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.6.0" + ".": "1.6.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index cf68d58..5ea6d7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.6.1](https://github.com/googleapis/python-vm-migration/compare/v1.6.0...v1.6.1) (2023-03-23) + + +### Documentation + +* Fix formatting of request arg in docstring ([#119](https://github.com/googleapis/python-vm-migration/issues/119)) ([cc95fb4](https://github.com/googleapis/python-vm-migration/commit/cc95fb484f188cf7967457a342a2f11da9c4db23)) + ## [1.6.0](https://github.com/googleapis/python-vm-migration/compare/v1.5.1...v1.6.0) (2023-02-09) diff --git a/google/cloud/vmmigration/gapic_version.py b/google/cloud/vmmigration/gapic_version.py index a016bdf..b4028ab 100644 --- a/google/cloud/vmmigration/gapic_version.py +++ b/google/cloud/vmmigration/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.6.0" # {x-release-please-version} +__version__ = "1.6.1" # {x-release-please-version} diff --git a/google/cloud/vmmigration_v1/gapic_version.py b/google/cloud/vmmigration_v1/gapic_version.py index a016bdf..b4028ab 100644 --- a/google/cloud/vmmigration_v1/gapic_version.py +++ b/google/cloud/vmmigration_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.6.0" # {x-release-please-version} +__version__ = "1.6.1" # {x-release-please-version} diff --git a/google/cloud/vmmigration_v1/services/vm_migration/async_client.py b/google/cloud/vmmigration_v1/services/vm_migration/async_client.py index 3bed265..272f572 100644 --- a/google/cloud/vmmigration_v1/services/vm_migration/async_client.py +++ b/google/cloud/vmmigration_v1/services/vm_migration/async_client.py @@ -2809,8 +2809,8 @@ async def sample_resume_migration(): Args: request (Optional[Union[google.cloud.vmmigration_v1.types.ResumeMigrationRequest, dict]]): - The request object. Request message for - 'ResumeMigration' request. + The request object. Request message for 'ResumeMigration' + request. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4800,8 +4800,8 @@ async def sample_remove_group_migration(): Args: request (Optional[Union[google.cloud.vmmigration_v1.types.RemoveGroupMigrationRequest, dict]]): - The request object. Request message for - 'RemoveMigration' request. + The request object. Request message for 'RemoveMigration' + request. group (:class:`str`): Required. The name of the Group. This corresponds to the ``group`` field diff --git a/google/cloud/vmmigration_v1/services/vm_migration/client.py b/google/cloud/vmmigration_v1/services/vm_migration/client.py index 3934e75..40c16b4 100644 --- a/google/cloud/vmmigration_v1/services/vm_migration/client.py +++ b/google/cloud/vmmigration_v1/services/vm_migration/client.py @@ -3219,8 +3219,8 @@ def sample_resume_migration(): Args: request (Union[google.cloud.vmmigration_v1.types.ResumeMigrationRequest, dict]): - The request object. Request message for - 'ResumeMigration' request. + The request object. Request message for 'ResumeMigration' + request. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5212,8 +5212,8 @@ def sample_remove_group_migration(): Args: request (Union[google.cloud.vmmigration_v1.types.RemoveGroupMigrationRequest, dict]): - The request object. Request message for - 'RemoveMigration' request. + The request object. Request message for 'RemoveMigration' + request. group (str): Required. The name of the Group. This corresponds to the ``group`` field diff --git a/google/cloud/vmmigration_v1/services/vm_migration/transports/rest.py b/google/cloud/vmmigration_v1/services/vm_migration/transports/rest.py index 86a96f7..0114c5a 100644 --- a/google/cloud/vmmigration_v1/services/vm_migration/transports/rest.py +++ b/google/cloud/vmmigration_v1/services/vm_migration/transports/rest.py @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import ( @@ -1503,7 +1503,7 @@ def pre_get_location( self, request: locations_pb2.GetLocationRequest, metadata: Sequence[Tuple[str, str]], - ) -> locations_pb2.Location: + ) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]: """Pre-rpc interceptor for get_location Override in a subclass to manipulate the request or metadata @@ -1512,7 +1512,7 @@ def pre_get_location( return request, metadata def post_get_location( - self, response: locations_pb2.GetLocationRequest + self, response: locations_pb2.Location ) -> locations_pb2.Location: """Post-rpc interceptor for get_location @@ -1526,7 +1526,7 @@ def pre_list_locations( self, request: locations_pb2.ListLocationsRequest, metadata: Sequence[Tuple[str, str]], - ) -> locations_pb2.ListLocationsResponse: + ) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]: """Pre-rpc interceptor for list_locations Override in a subclass to manipulate the request or metadata @@ -1535,7 +1535,7 @@ def pre_list_locations( return request, metadata def post_list_locations( - self, response: locations_pb2.ListLocationsRequest + self, response: locations_pb2.ListLocationsResponse ) -> locations_pb2.ListLocationsResponse: """Post-rpc interceptor for list_locations @@ -1549,7 +1549,7 @@ def pre_cancel_operation( self, request: operations_pb2.CancelOperationRequest, metadata: Sequence[Tuple[str, str]], - ) -> None: + ) -> Tuple[operations_pb2.CancelOperationRequest, Sequence[Tuple[str, str]]]: """Pre-rpc interceptor for cancel_operation Override in a subclass to manipulate the request or metadata @@ -1557,9 +1557,7 @@ def pre_cancel_operation( """ return request, metadata - def post_cancel_operation( - self, response: operations_pb2.CancelOperationRequest - ) -> None: + def post_cancel_operation(self, response: None) -> None: """Post-rpc interceptor for cancel_operation Override in a subclass to manipulate the response @@ -1572,7 +1570,7 @@ def pre_delete_operation( self, request: operations_pb2.DeleteOperationRequest, metadata: Sequence[Tuple[str, str]], - ) -> None: + ) -> Tuple[operations_pb2.DeleteOperationRequest, Sequence[Tuple[str, str]]]: """Pre-rpc interceptor for delete_operation Override in a subclass to manipulate the request or metadata @@ -1580,9 +1578,7 @@ def pre_delete_operation( """ return request, metadata - def post_delete_operation( - self, response: operations_pb2.DeleteOperationRequest - ) -> None: + def post_delete_operation(self, response: None) -> None: """Post-rpc interceptor for delete_operation Override in a subclass to manipulate the response @@ -1595,7 +1591,7 @@ def pre_get_operation( self, request: operations_pb2.GetOperationRequest, metadata: Sequence[Tuple[str, str]], - ) -> operations_pb2.Operation: + ) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]: """Pre-rpc interceptor for get_operation Override in a subclass to manipulate the request or metadata @@ -1604,7 +1600,7 @@ def pre_get_operation( return request, metadata def post_get_operation( - self, response: operations_pb2.GetOperationRequest + self, response: operations_pb2.Operation ) -> operations_pb2.Operation: """Post-rpc interceptor for get_operation @@ -1618,7 +1614,7 @@ def pre_list_operations( self, request: operations_pb2.ListOperationsRequest, metadata: Sequence[Tuple[str, str]], - ) -> operations_pb2.ListOperationsResponse: + ) -> Tuple[operations_pb2.ListOperationsRequest, Sequence[Tuple[str, str]]]: """Pre-rpc interceptor for list_operations Override in a subclass to manipulate the request or metadata @@ -1627,7 +1623,7 @@ def pre_list_operations( return request, metadata def post_list_operations( - self, response: operations_pb2.ListOperationsRequest + self, response: operations_pb2.ListOperationsResponse ) -> operations_pb2.ListOperationsResponse: """Post-rpc interceptor for list_operations @@ -1792,7 +1788,7 @@ class _AddGroupMigration(VmMigrationRestStub): def __hash__(self): return hash("AddGroupMigration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1816,7 +1812,6 @@ def __call__( request (~.vmmigration.AddGroupMigrationRequest): The request object. Request message for 'AddGroupMigration' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1892,7 +1887,7 @@ class _CancelCloneJob(VmMigrationRestStub): def __hash__(self): return hash("CancelCloneJob") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1916,7 +1911,6 @@ def __call__( request (~.vmmigration.CancelCloneJobRequest): The request object. Request message for 'CancelCloneJob' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1992,7 +1986,7 @@ class _CancelCutoverJob(VmMigrationRestStub): def __hash__(self): return hash("CancelCutoverJob") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2016,7 +2010,6 @@ def __call__( request (~.vmmigration.CancelCutoverJobRequest): The request object. Request message for 'CancelCutoverJob' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2092,7 +2085,7 @@ class _CreateCloneJob(VmMigrationRestStub): def __hash__(self): return hash("CreateCloneJob") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "cloneJobId": "", } @@ -2118,7 +2111,6 @@ def __call__( request (~.vmmigration.CreateCloneJobRequest): The request object. Request message for 'CreateCloneJob' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2194,7 +2186,7 @@ class _CreateCutoverJob(VmMigrationRestStub): def __hash__(self): return hash("CreateCutoverJob") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "cutoverJobId": "", } @@ -2220,7 +2212,6 @@ def __call__( request (~.vmmigration.CreateCutoverJobRequest): The request object. Request message for 'CreateCutoverJob' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2296,7 +2287,7 @@ class _CreateDatacenterConnector(VmMigrationRestStub): def __hash__(self): return hash("CreateDatacenterConnector") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "datacenterConnectorId": "", } @@ -2323,7 +2314,6 @@ def __call__( request (~.vmmigration.CreateDatacenterConnectorRequest): The request object. Request message for 'CreateDatacenterConnector' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2399,7 +2389,7 @@ class _CreateGroup(VmMigrationRestStub): def __hash__(self): return hash("CreateGroup") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "groupId": "", } @@ -2425,7 +2415,6 @@ def __call__( request (~.vmmigration.CreateGroupRequest): The request object. Request message for 'CreateGroup' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2499,7 +2488,7 @@ class _CreateMigratingVm(VmMigrationRestStub): def __hash__(self): return hash("CreateMigratingVm") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "migratingVmId": "", } @@ -2525,7 +2514,6 @@ def __call__( request (~.vmmigration.CreateMigratingVmRequest): The request object. Request message for 'CreateMigratingVm' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2601,7 +2589,7 @@ class _CreateSource(VmMigrationRestStub): def __hash__(self): return hash("CreateSource") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "sourceId": "", } @@ -2627,7 +2615,6 @@ def __call__( request (~.vmmigration.CreateSourceRequest): The request object. Request message for 'CreateSource' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2701,7 +2688,7 @@ class _CreateTargetProject(VmMigrationRestStub): def __hash__(self): return hash("CreateTargetProject") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "targetProjectId": "", } @@ -2727,7 +2714,6 @@ def __call__( request (~.vmmigration.CreateTargetProjectRequest): The request object. Request message for 'CreateTargetProject' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2803,7 +2789,7 @@ class _CreateUtilizationReport(VmMigrationRestStub): def __hash__(self): return hash("CreateUtilizationReport") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "utilizationReportId": "", } @@ -2829,7 +2815,6 @@ def __call__( request (~.vmmigration.CreateUtilizationReportRequest): The request object. Request message for 'CreateUtilizationReport' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2905,7 +2890,7 @@ class _DeleteDatacenterConnector(VmMigrationRestStub): def __hash__(self): return hash("DeleteDatacenterConnector") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -2930,7 +2915,6 @@ def __call__( request (~.vmmigration.DeleteDatacenterConnectorRequest): The request object. Request message for 'DeleteDatacenterConnector' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2997,7 +2981,7 @@ class _DeleteGroup(VmMigrationRestStub): def __hash__(self): return hash("DeleteGroup") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3021,7 +3005,6 @@ def __call__( request (~.vmmigration.DeleteGroupRequest): The request object. Request message for 'DeleteGroup' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3086,7 +3069,7 @@ class _DeleteMigratingVm(VmMigrationRestStub): def __hash__(self): return hash("DeleteMigratingVm") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3110,7 +3093,6 @@ def __call__( request (~.vmmigration.DeleteMigratingVmRequest): The request object. Request message for 'DeleteMigratingVm' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3177,7 +3159,7 @@ class _DeleteSource(VmMigrationRestStub): def __hash__(self): return hash("DeleteSource") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3201,7 +3183,6 @@ def __call__( request (~.vmmigration.DeleteSourceRequest): The request object. Request message for 'DeleteSource' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3266,7 +3247,7 @@ class _DeleteTargetProject(VmMigrationRestStub): def __hash__(self): return hash("DeleteTargetProject") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3290,7 +3271,6 @@ def __call__( request (~.vmmigration.DeleteTargetProjectRequest): The request object. Request message for 'DeleteTargetProject' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3357,7 +3337,7 @@ class _DeleteUtilizationReport(VmMigrationRestStub): def __hash__(self): return hash("DeleteUtilizationReport") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3381,7 +3361,6 @@ def __call__( request (~.vmmigration.DeleteUtilizationReportRequest): The request object. Request message for 'DeleteUtilizationReport' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3448,7 +3427,7 @@ class _FetchInventory(VmMigrationRestStub): def __hash__(self): return hash("FetchInventory") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3472,7 +3451,6 @@ def __call__( request (~.vmmigration.FetchInventoryRequest): The request object. Request message for [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3538,7 +3516,7 @@ class _FinalizeMigration(VmMigrationRestStub): def __hash__(self): return hash("FinalizeMigration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3562,7 +3540,6 @@ def __call__( request (~.vmmigration.FinalizeMigrationRequest): The request object. Request message for 'FinalizeMigration' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3638,7 +3615,7 @@ class _GetCloneJob(VmMigrationRestStub): def __hash__(self): return hash("GetCloneJob") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3662,7 +3639,6 @@ def __call__( request (~.vmmigration.GetCloneJobRequest): The request object. Request message for 'GetCloneJob' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3739,7 +3715,7 @@ class _GetCutoverJob(VmMigrationRestStub): def __hash__(self): return hash("GetCutoverJob") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3763,7 +3739,6 @@ def __call__( request (~.vmmigration.GetCutoverJobRequest): The request object. Request message for 'GetCutoverJob' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3833,7 +3808,7 @@ class _GetDatacenterConnector(VmMigrationRestStub): def __hash__(self): return hash("GetDatacenterConnector") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3857,7 +3832,6 @@ def __call__( request (~.vmmigration.GetDatacenterConnectorRequest): The request object. Request message for 'GetDatacenterConnector' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -3930,7 +3904,7 @@ class _GetGroup(VmMigrationRestStub): def __hash__(self): return hash("GetGroup") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -3954,7 +3928,6 @@ def __call__( request (~.vmmigration.GetGroupRequest): The request object. Request message for 'GetGroup' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4021,7 +3994,7 @@ class _GetMigratingVm(VmMigrationRestStub): def __hash__(self): return hash("GetMigratingVm") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4045,7 +4018,6 @@ def __call__( request (~.vmmigration.GetMigratingVmRequest): The request object. Request message for 'GetMigratingVm' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4114,7 +4086,7 @@ class _GetReplicationCycle(VmMigrationRestStub): def __hash__(self): return hash("GetReplicationCycle") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4138,7 +4110,6 @@ def __call__( request (~.vmmigration.GetReplicationCycleRequest): The request object. Request message for 'GetReplicationCycle' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4207,7 +4178,7 @@ class _GetSource(VmMigrationRestStub): def __hash__(self): return hash("GetSource") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4231,7 +4202,6 @@ def __call__( request (~.vmmigration.GetSourceRequest): The request object. Request message for 'GetSource' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4299,7 +4269,7 @@ class _GetTargetProject(VmMigrationRestStub): def __hash__(self): return hash("GetTargetProject") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4323,7 +4293,6 @@ def __call__( request (~.vmmigration.GetTargetProjectRequest): The request object. Request message for 'GetTargetProject' call. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4392,7 +4361,7 @@ class _GetUtilizationReport(VmMigrationRestStub): def __hash__(self): return hash("GetUtilizationReport") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -4416,7 +4385,6 @@ def __call__( request (~.vmmigration.GetUtilizationReportRequest): The request object. Request message for 'GetUtilizationReport' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4485,7 +4453,7 @@ class _ListCloneJobs(VmMigrationRestStub): def __hash__(self): return hash("ListCloneJobs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -4511,7 +4479,6 @@ def __call__( request (~.vmmigration.ListCloneJobsRequest): The request object. Request message for 'ListCloneJobsRequest' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4577,7 +4544,7 @@ class _ListCutoverJobs(VmMigrationRestStub): def __hash__(self): return hash("ListCutoverJobs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -4603,7 +4570,6 @@ def __call__( request (~.vmmigration.ListCutoverJobsRequest): The request object. Request message for 'ListCutoverJobsRequest' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4671,7 +4637,7 @@ class _ListDatacenterConnectors(VmMigrationRestStub): def __hash__(self): return hash("ListDatacenterConnectors") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -4698,7 +4664,6 @@ def __call__( request (~.vmmigration.ListDatacenterConnectorsRequest): The request object. Request message for 'ListDatacenterConnectors' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4766,7 +4731,7 @@ class _ListGroups(VmMigrationRestStub): def __hash__(self): return hash("ListGroups") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -4792,7 +4757,6 @@ def __call__( request (~.vmmigration.ListGroupsRequest): The request object. Request message for 'ListGroups' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4858,7 +4822,7 @@ class _ListMigratingVms(VmMigrationRestStub): def __hash__(self): return hash("ListMigratingVms") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -4884,7 +4848,6 @@ def __call__( request (~.vmmigration.ListMigratingVmsRequest): The request object. Request message for 'LisMigratingVmsRequest' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -4952,7 +4915,7 @@ class _ListReplicationCycles(VmMigrationRestStub): def __hash__(self): return hash("ListReplicationCycles") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -4978,7 +4941,6 @@ def __call__( request (~.vmmigration.ListReplicationCyclesRequest): The request object. Request message for 'LisReplicationCyclesRequest' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5046,7 +5008,7 @@ class _ListSources(VmMigrationRestStub): def __hash__(self): return hash("ListSources") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -5072,7 +5034,6 @@ def __call__( request (~.vmmigration.ListSourcesRequest): The request object. Request message for 'ListSources' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5138,7 +5099,7 @@ class _ListTargetProjects(VmMigrationRestStub): def __hash__(self): return hash("ListTargetProjects") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -5164,7 +5125,6 @@ def __call__( request (~.vmmigration.ListTargetProjectsRequest): The request object. Request message for 'ListTargetProjects' call. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5232,7 +5192,7 @@ class _ListUtilizationReports(VmMigrationRestStub): def __hash__(self): return hash("ListUtilizationReports") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "pageToken": "", } @@ -5258,7 +5218,6 @@ def __call__( request (~.vmmigration.ListUtilizationReportsRequest): The request object. Request message for 'ListUtilizationReports' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5326,7 +5285,7 @@ class _PauseMigration(VmMigrationRestStub): def __hash__(self): return hash("PauseMigration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5350,7 +5309,6 @@ def __call__( request (~.vmmigration.PauseMigrationRequest): The request object. Request message for 'PauseMigration' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5424,7 +5382,7 @@ class _RemoveGroupMigration(VmMigrationRestStub): def __hash__(self): return hash("RemoveGroupMigration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5448,7 +5406,6 @@ def __call__( request (~.vmmigration.RemoveGroupMigrationRequest): The request object. Request message for 'RemoveMigration' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5524,7 +5481,7 @@ class _ResumeMigration(VmMigrationRestStub): def __hash__(self): return hash("ResumeMigration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5548,7 +5505,6 @@ def __call__( request (~.vmmigration.ResumeMigrationRequest): The request object. Request message for 'ResumeMigration' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5624,7 +5580,7 @@ class _StartMigration(VmMigrationRestStub): def __hash__(self): return hash("StartMigration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5648,7 +5604,6 @@ def __call__( request (~.vmmigration.StartMigrationRequest): The request object. Request message for 'StartMigrationRequest' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5722,7 +5677,7 @@ class _UpdateGroup(VmMigrationRestStub): def __hash__(self): return hash("UpdateGroup") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5746,7 +5701,6 @@ def __call__( request (~.vmmigration.UpdateGroupRequest): The request object. Update message for 'UpdateGroups' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5820,7 +5774,7 @@ class _UpdateMigratingVm(VmMigrationRestStub): def __hash__(self): return hash("UpdateMigratingVm") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5844,7 +5798,6 @@ def __call__( request (~.vmmigration.UpdateMigratingVmRequest): The request object. Request message for 'UpdateMigratingVm' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -5920,7 +5873,7 @@ class _UpdateSource(VmMigrationRestStub): def __hash__(self): return hash("UpdateSource") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -5944,7 +5897,6 @@ def __call__( request (~.vmmigration.UpdateSourceRequest): The request object. Update message for 'UpdateSources' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -6018,7 +5970,7 @@ class _UpdateTargetProject(VmMigrationRestStub): def __hash__(self): return hash("UpdateTargetProject") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -6042,7 +5994,6 @@ def __call__( request (~.vmmigration.UpdateTargetProjectRequest): The request object. Update message for 'UpdateTargetProject' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -6118,7 +6069,7 @@ class _UpgradeAppliance(VmMigrationRestStub): def __hash__(self): return hash("UpgradeAppliance") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -6142,7 +6093,6 @@ def __call__( request (~.vmmigration.UpgradeApplianceRequest): The request object. Request message for 'UpgradeAppliance' request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/vmmigration_v1/types/vmmigration.py b/google/cloud/vmmigration_v1/types/vmmigration.py index 24c8c4a..b7032b7 100644 --- a/google/cloud/vmmigration_v1/types/vmmigration.py +++ b/google/cloud/vmmigration_v1/types/vmmigration.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import duration_pb2 # type: ignore diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vmmigration.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.vmmigration.v1.json index 50b6553..6b3401c 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vmmigration.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vmmigration.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vm-migration", - "version": "1.6.0" + "version": "1.6.1" }, "snippets": [ { diff --git a/setup.py b/setup.py index e7d321f..247249f 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ "proto-plus >= 1.22.0, <2.0.0dev", "proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'", "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", - "grpc-google-iam-v1 >= 0.12.4, < 1.0.0dev", + "grpc-google-iam-v1 >= 0.12.4, <1.0.0dev", ] url = "https://github.com/googleapis/python-vm-migration"